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

Драйверы для Linux, версия ядра 5+


Recommended Posts

  • 1 month later...
 
 
 
День добрый. Делаю как в описании. такие вот ошибки вылезают подскажите пожалуйста что нужно сделать.
 
frost@monitoring:~/moxa/mxuport2000$ sudo make install
**********************************************************************
 Ubuntu 22.04.1 LTS
 \l 5.15.0-52-generic
 MOXA UPort 2000 series driver ver 5.1.
 Release Date: 2021/12/03
**********************************************************************
**********************************WARNING*******************************
 MOXA UPort 2000 series driver has been tested under kernel 5.13.0 .
 That may not be compatible with Linux Kernel version 5.15.0-52-generic .
 To download the latest driver, please visit Moxa at: http://www.moxa.com
 If you have questions, please contact Moxa support at: support@moxa.com
************************************************************************
Build Fail! Please check build.log for further information.
make[1]: *** [Makefile:35: module] Error 1
make: *** [Makefile:26: driver_install] Error 2
 
build.log
 
**********************************************************************
 Ubuntu 22.04.1 LTS
 \l 5.15.0-52-generic
 MOXA UPort 2000 series driver ver 5.1.
 Release Date: 2021/12/03
**********************************************************************
**********************************WARNING*******************************
 MOXA UPort 2000 series driver has been tested under kernel 5.13.0 .
 That may not be compatible with Linux Kernel version 5.15.0-52-generic .
 To download the latest driver, please visit Moxa at: http://www.moxa.com
 If you have questions, please contact Moxa support at: support@moxa.com
************************************************************************
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:65:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(>
   65 |                 .write_room             = mxu2_write_room,
      |                                           ^~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:65:43: note: (near initialization for ‘mxu2_2210_device.write_room’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:66:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(>
   66 |                 .chars_in_buffer        = mxu2_chars_in_buffer,
      |                                           ^~~~~~~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:66:43: note: (near initialization for ‘mxu2_2210_device.chars_in_buffer’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:96:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(>
   96 |                 .write_room             = mxu2_write_room,
      |                                           ^~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:96:43: note: (near initialization for ‘mxu2_2250_device.write_room’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:97:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(>
   97 |                 .chars_in_buffer        = mxu2_chars_in_buffer,
      |                                           ^~~~~~~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:97:43: note: (near initialization for ‘mxu2_2250_device.chars_in_buffer’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:127:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)>
  127 |                 .write_room             = mxu2_write_room,
      |                                           ^~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:127:43: note: (near initialization for ‘mxu2_2410_device.write_room’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:128:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)>
  128 |                 .chars_in_buffer        = mxu2_chars_in_buffer,
      |                                           ^~~~~~~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:128:43: note: (near initialization for ‘mxu2_2410_device.chars_in_buffer’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:158:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)>
  158 |                 .write_room             = mxu2_write_room,
      |                                           ^~~~~~~~~~~~~~~
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:158:43: note: (near initialization for ‘mxu2_2450_device.write_room’)
/home/frost/moxa/mxuport2000/driver/mxuport2000.c:159:43: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)>
  159 |                 .chars_in_buffer        = mxu2_chars_in_buffer,
Link to comment

Доброго дня, идентичная проблема с драйвером для UPort 1150 под ядро 5.15.78. Прилагаю содержимое файла build.log. Ждём-с апдейтов всем офисом xD

/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:340:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  340 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:340:17: note: (near initialization for ‘mxu1110_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:341:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  341 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:341:21: note: (near initialization for ‘mxu1110_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:372:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  372 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:372:17: note: (near initialization for ‘mxu1130_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:373:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  373 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:373:21: note: (near initialization for ‘mxu1130_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:404:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  404 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:404:17: note: (near initialization for ‘mxu1150_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:405:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  405 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:405:21: note: (near initialization for ‘mxu1150_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:436:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  436 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:436:17: note: (near initialization for ‘mxu1151_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:437:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  437 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:437:21: note: (near initialization for ‘mxu1151_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:468:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  468 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:468:17: note: (near initialization for ‘mxu1131_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:469:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  469 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:469:21: note: (near initialization for ‘mxu1131_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:501:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  501 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:501:17: note: (near initialization for ‘mxu3001_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:502:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  502 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:502:21: note: (near initialization for ‘mxu3001_1port_device.chars_in_buffer’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.o] Error 1
make[1]: *** [Makefile:1900: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver] Error 2
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:340:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  340 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:340:17: note: (near initialization for ‘mxu1110_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:341:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  341 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:341:21: note: (near initialization for ‘mxu1110_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:372:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  372 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:372:17: note: (near initialization for ‘mxu1130_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:373:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  373 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:373:21: note: (near initialization for ‘mxu1130_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:404:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  404 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:404:17: note: (near initialization for ‘mxu1150_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:405:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  405 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:405:21: note: (near initialization for ‘mxu1150_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:436:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  436 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:436:17: note: (near initialization for ‘mxu1151_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:437:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  437 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:437:21: note: (near initialization for ‘mxu1151_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:468:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  468 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:468:17: note: (near initialization for ‘mxu1131_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:469:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  469 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:469:21: note: (near initialization for ‘mxu1131_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:501:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  501 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:501:17: note: (near initialization for ‘mxu3001_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:502:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  502 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:502:21: note: (near initialization for ‘mxu3001_1port_device.chars_in_buffer’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.o] Error 1
make[1]: *** [Makefile:1900: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver] Error 2
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:340:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  340 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:340:17: note: (near initialization for ‘mxu1110_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:341:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  341 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:341:21: note: (near initialization for ‘mxu1110_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:372:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  372 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:372:17: note: (near initialization for ‘mxu1130_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:373:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  373 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:373:21: note: (near initialization for ‘mxu1130_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:404:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  404 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:404:17: note: (near initialization for ‘mxu1150_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:405:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  405 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:405:21: note: (near initialization for ‘mxu1150_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:436:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  436 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:436:17: note: (near initialization for ‘mxu1151_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:437:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  437 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:437:21: note: (near initialization for ‘mxu1151_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:468:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  468 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:468:17: note: (near initialization for ‘mxu1131_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:469:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  469 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:469:21: note: (near initialization for ‘mxu1131_1port_device.chars_in_buffer’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:501:17: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  501 |  .write_room  = mxu1_write_room,
      |                 ^~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:501:17: note: (near initialization for ‘mxu3001_1port_device.write_room’)
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:502:21: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  502 |  .chars_in_buffer = mxu1_chars_in_buffer,
      |                     ^~~~~~~~~~~~~~~~~~~~
/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.c:502:21: note: (near initialization for ‘mxu3001_1port_device.chars_in_buffer’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.o] Error 1
make[1]: *** [Makefile:1900: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver] Error 2

Так же прилагаю данные из консоли:

gerralexltd@gerralexltd-Work:~/Documents/moxa_drvr/mxu11x0/driver$ sudo make install
************************************************************************
 Ubuntu 20.04.4 LTS 
 \l 5.15.78
 MOXA UPort 11x0 series driver ver 5.1
 Release Date: 2021/09/02
************************************************************************
**********************************WARNING*******************************
 MOXA UPort 11x0 series driver hes been tested under kernel 5.13.12
 That may not be compatible with Linux Kernel version 5.15.78 .
 Please download the latest driver at http://www.moxa.com first.
 If you still have issue, you can contact support@moxa.com 
************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v5.1      
                                                                     
                   release date : 2021/09/02                        
  *******************************************************************
Build unsuccessfully! Please check build.log for further information
make: *** [Makefile:64: module] Error 1


 

 

Link to comment

Проблема изменилась, теперь имеется: 

gerralexltd@gerralexltd-Work:~/Documents/moxa_drvr/mxu11x0$ sudo ./mxinstall 
[sudo] password for gerralexltd: 
************************************************************************
 Ubuntu 20.04.4 LTS 
 \l 5.15.78
 MOXA UPort 11x0 series driver ver 5.1.5
 Release Date: 2022/05/31
************************************************************************
**********************************WARNING*******************************
 MOXA UPort 11x0 series driver hes been tested under kernel 5.15.32
 That may not be compatible with Linux Kernel version 5.15.78 .
 Please download the latest driver at http://www.moxa.com first.
 If you still have issue, you can contact support@moxa.com 
************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v5.1.5      
                                                                     
                   release date : 2022/05/31                        
  *******************************************************************
Build unsuccessfully! Please check build.log for further information
make[1]: *** [Makefile:63: module] Error 1
make: *** [Makefile:16: install] Error 2

А в build.log:

ERROR: modpost: "usb_serial_deregister_drivers" [/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.ko] undefined!
ERROR: modpost: "usb_serial_register_drivers" [/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/mxu11x0.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:133: /home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/Module.symvers] Error 1
make[3]: *** Deleting file '/home/gerralexltd/Documents/moxa_drvr/mxu11x0/driver/Module.symvers'
make[2]: *** [Makefile:1815: modules] Error 2

 

Link to comment

Добрый день. Проверили 5.1.5 под Ubuntu 20.04.4 LTS. Говорят, что всё устанавливается и работает, мол либо c gcc у вас проблема, либо с исходниками, и что неплохо бы вам команды apt install build-essential и apt-get install linux-source повыполнять и тогда есть шанс, что соберётся успешно.

Link to comment
  • 5 months later...

Всем трям!

Не было у меня проблем с ОС основанных на Debian, и вот Simpy Linux меня побеждает(

Товарищи разработчики, технические специалисты драйверов под Линух! Подсказку дайте пожалуйста как установить драйвера под этот Линух........

ругается на отсутствие kernel/source/headers. Все установил вроде! Не найду решение ((((( Ткните пальцем пожалуйста.

Link to comment
2 hours ago, Знайка said:

Добрый день. Про какие версии драйверов, ядра мы говорим? Какие ошибки?

Извините забылся(

драйвера: скачал с этой ветки форума и со странички устройства Uport 1150 - 5.1.5 от 2022/05/31

Ядро: 5.15.106-un-def-alt1

Link to comment

только что проверил на Ubuntu 22.04.2 LTS драйвер для 6 версии ядра. вроде как все встало нормально.

************************************************************************
 Ubuntu 22.04.2 LTS
 \l 5.19.0-41-generic
 MOXA UPort 11x0 series driver ver 6.0
 Release Date: 2023/03/14
************************************************************************
********************************WARNING**********************************
 MOXA UPort 11x0 series driver only support kernel 6.0
 or later versions.
 That may not be compatible with Linux Kernel versions 5.19.0-41-generic .
 Please download the available driver at http://www.moxa.com first.
 If you still have issue, yoc can contact support@moxa.com
*************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v6.0      
                                                                     
                   release date : 2023/03/14                        
  *******************************************************************

Loading driver...
************************************************************************
 MOXA UPort 11x0 series driver ver 6.0 loaded successfully.
************************************************************************
 

Просто для информации. Вдруг у кого-то возникнет ситуёвина.

Link to comment
11 minutes ago, Знайка said:

5.1.5 последняя версия, у меня новее нет :( 

sudo apt update
sudo apt-get install linux-headers-$(uname -r)

пробовали, я думаю?

1. да я и написал, что именно эту версию пробовал.

2. да пробовал, но нет(

Победил!

Решил через Synaptic глазками пробежаться и выдел на установку kernel-source-6.0, а также kernel-header -std и -un. Дополнительно воткнул kernel-build-tools.

все они подтянули то что нужно и ВУАЛЯ! Все заработало. Индикатор на МОХА загорелся.

 

если что закрепите инфу.

 

Link to comment
  • 4 months later...
В 14.08.2022 в 00:59, dima35 сказал:
root@server:~/temp/moxa/moxa/moxa# ./mxinst

===============================================================================
Copyright (C) 2002-2021  Moxa Inc.
All Rights Reserved.

MOXA NPort Server Real TTY Driver Ver5.1 Installation.
System Information: Kernel 5.15.0-43-generic; Machine x86_64.
===============================================================================

********************************WARNING**********************************
 MOXA NPort Server Real TTY Driver has been tested under kernel 5.13.4.
 That may not be compatible with Linux Kernel versions 5.15.0-43-generic .
 To download the available driver, please visit Moxa at: http://www.moxa.com
 If you have questions, please contact Moxa support at: support@moxa.com
*************************************************************************
Press enter to continue...


Building driver...

If you want to use secure communication with target,
you might choose [y] to enable the SSL function.
Note: This function support RealCOM with secure mode only.
Do you want to enable secure function? [y/N].

make -C /lib/modules/5.15.0-43-generic/build M=/root/temp/moxa/moxa/moxa EXTRA_CFLAGS=" -DTTYNAME='"ttyr"'" modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-43-generic'
  CC [M]  /root/temp/moxa/moxa/moxa/npreal2.o
/root/temp/moxa/moxa/moxa/npreal2.c:490:31: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  490 |                 .write_room = npreal_write_room,
      |                               ^~~~~~~~~~~~~~~~~
/root/temp/moxa/moxa/moxa/npreal2.c:490:31: note: (near initialization for ‘mpvar_ops.write_room’)
/root/temp/moxa/moxa/moxa/npreal2.c:491:36: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
  491 |                 .chars_in_buffer = npreal_chars_in_buffer,
      |                                    ^~~~~~~~~~~~~~~~~~~~~~
/root/temp/moxa/moxa/moxa/npreal2.c:491:36: note: (near initialization for ‘mpvar_ops.chars_in_buffer’)
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal2_module_exit’:
/root/temp/moxa/moxa/moxa/npreal2.c:570:9: error: implicit declaration of function ‘put_tty_driver’ [-Werror=implicit-function-declaration]
  570 |         put_tty_driver(DRV_VAR);
      |         ^~~~~~~~~~~~~~
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_init’:
/root/temp/moxa/moxa/moxa/npreal2.c:663:25: error: implicit declaration of function ‘alloc_tty_driver’ [-Werror=implicit-function-declaration]
  663 |         npvar_sdriver = alloc_tty_driver(NPREAL_PORTS+1);
      |                         ^~~~~~~~~~~~~~~~
/root/temp/moxa/moxa/moxa/npreal2.c:663:23: warning: assignment to ‘struct tty_driver *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  663 |         npvar_sdriver = alloc_tty_driver(NPREAL_PORTS+1);
      |                       ^
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_close’:
/root/temp/moxa/moxa/moxa/npreal2.c:1065:34: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1065 |                         current->state = TASK_INTERRUPTIBLE;
      |                                  ^~~~~
      |                                  __state
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_ldisc_flush_buffer’:
/root/temp/moxa/moxa/moxa/npreal2.c:1326:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1326 |         current->state = TASK_INTERRUPTIBLE;
      |                  ^~~~~
      |                  __state
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_ioctl’:
/root/temp/moxa/moxa/moxa/npreal2.c:1434:26: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1434 |                 current->state = TASK_RUNNING;
      |                          ^~~~~
      |                          __state
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_block_til_ready’:
/root/temp/moxa/moxa/moxa/npreal2.c:1755:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1755 |         current->state = TASK_RUNNING;
      |                  ^~~~~
      |                  __state
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_startup’:
/root/temp/moxa/moxa/moxa/npreal2.c:1792:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1792 |         current->state = TASK_RUNNING;
      |                  ^~~~~
      |                  __state
/root/temp/moxa/moxa/moxa/npreal2.c:1939:34: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 1939 |                         current->state = TASK_INTERRUPTIBLE;
      |                                  ^~~~~
      |                                  __state
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_shutdown’:
/root/temp/moxa/moxa/moxa/npreal2.c:2052:26: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 2052 |                 current->state = TASK_INTERRUPTIBLE;
      |                          ^~~~~
      |                          __state
/root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_wait_and_set_command’:
/root/temp/moxa/moxa/moxa/npreal2.c:3935:34: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
 3935 |                         current->state = TASK_INTERRUPTIBLE;
      |                                  ^~~~~
      |                                  __state
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:285: /root/temp/moxa/moxa/moxa/npreal2.o] Error 1
make[1]: *** [Makefile:1875: /root/temp/moxa/moxa/moxa] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-43-generic'
make: *** [Makefile:75: module] Error 2

FAILED !!! Please check above message.

 

# uname -a
Linux server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

 

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

 

Такая же проблема с Astra Linux.... (((

Moxa.jpg

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...