Jump to content
Форум по продукции MOXA

Драйвера для CP-118EL-A под Linux kernel 4.x (ASTRA LINUX)


Recommended Posts

Всем добрый день.

Прошу помочь разобраться с установкой драйвера  CP-118EL-A под ядро kernel 4.x ASTRA LINUX

Скачал драйверы с официального сайта moxa-linux-kernel-4.x.x-driver-v4.0.tgz

Пробую собрать драйвер по инструкции, которая идет с архивом.

3.4 Module driver configuration
       Module driver is the easiest way to install. If you prefer the static
       driver installation, please skip this paragraph.
       

       ------------- Prepare to use the MOXA driver--------------------  
       3.4.1 Create tty device with correct major number
          Before using MOXA driver, your system must have the tty devices 
          which are created with the driver's major number. We offer one 
          shell script "msmknod" to simplify the procedure.
          This step is only needed to be executed once. But you still
          need to do this procedure when:
          a. You change the driver's major number. Please refer to the 
             "3.7" section.
          b. Your total installed MOXA boards number is changed. Maybe you 
             add/delete one MOXA board.
          c. You want to change the tty name. This needs to modify the 
             shell script "msmknod"

          The procedure is:
      # cd /moxa/mxser/driver
      # ./msmknod

          This shell script will require the major number for dial-in 
          device and callout device to create tty device. You also need 
          to specify the total installed MOXA board number. Default major 
          numbers for dial-in device and callout device are 30, 35. If
          you need to change to other numbers, please refer section "3.7"
          for more detcdailed procedure.
          Msmknod will delete any special files occupying the same device 
          naming.
          
       3.4.2 Build the MOXA driver and utilities
          Before using the MOXA driver and utilities, you need to compile 
          the all the source code. This step is only need to be executed 
          once. But you still re-compile the source code if you modify the
          source code. For example, if you change the driver's major number
          (see "3.7" section), then you need to do this step again.
                    
          Find "Makefile" in /moxa/mxser, then run

      # make;

          !!!!!!!!!! NOTE !!!!!!!!!!!!!!!!!
      For Red Hat Enterprise Linux AS4/ES4/WS4:
      # make SP2
          !!!!!!!!!! NOTE !!!!!!!!!!!!!!!!! 

      The driver files and utilities will be compiled respectively.

Вроде ничего сложного, выполнил скрипт,  ./msmknod потом пытаюсь собрать драйвер командой make;

Но получаю следующую ошибку.

pyramid@astra:/moxa/mxser$ sudo make;
/usr/bin/ld: ../mxlib/mxlib_64.a(f_alloc.o): relocation R_X86_64_32 against `.ro                                   data' can not be used when making a shared object; перекомпилируйте с параметром                                    -fPIC
/usr/bin/ld: ../mxlib/mxlib_64.a(confirm.o): relocation R_X86_64_PC32 against sy                                   mbol `strlen@@GLIBC_2.2.5' can not be used when making a shared object; перекомп илируйте с параметром -fPIC
/usr/bin/ld: final link failed: Некорректное значение
collect2: error: ld returned 1 exit status
Makefile:34: ошибка выполнения рецепта для цели «msmon»
make[2]: *** [msmon] Ошибка 1
Makefile:13: ошибка выполнения рецепта для цели «msmon»
make[1]: *** [msmon] Ошибка 2
Makefile:29: ошибка выполнения рецепта для цели «utility_make»
make: *** [utility_make] Ошибка 2
 

Есть ли у кого опыт в решении данной проблемы.

---------------------------------------------------------------------------------------------------

Под REDOS 7.3 МУРОМ  Ядро Linux 5.15.35 встали вот такие драйвера с предварительной установкой хедеров.

 

driv_linux_smart_v5.1.1_build_22062011.tgz

Edited by tokyo
Появились рабочие драйверы под RedOS Муром 7.3
Link to comment

Хорошая плата, но лично я по ней помочь не смогу, подождём, может кто ещё напишет, ну или к поставщику обращайтесь, может там чего подскажут.

Link to comment
30 минут назад, Знайка сказал:

Хорошая плата, но лично я по ней помочь не смогу, подождём, может кто ещё напишет, ну или к поставщику обращайтесь, может там чего подскажут.

Они тоже помочь не могут. Очень странно конечно, никто ничего не знает по драйверам, и в принципе рабочие они или нет тоже никто не говорит. То есть продают продукт, который заведомо может не работать на linux операционках.

Link to comment
4 minutes ago, tokyo said:

Они тоже помочь не могут. Очень странно конечно, никто ничего не знает по драйверам, и в принципе рабочие они или нет тоже никто не говорит. То есть продают продукт, который заведомо может не работать на linux операционках.

Ошибочный вывод :rolleyes: Впрочем, если плата действительно неработоспособна, то её всегда же всегда можно вернуть по гарантии, не так ли?

Link to comment

Эти платы у нас используются в пром pc. С windows проблемы минимальные. Но так как нужно сейчас внедрять импортозамещение, то соответственно от windows рекомендуют отказываться и переходить на якобы отечественный операционки, а они на Linux конечно же. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...