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

vanlove2die

Пользователи
  • Posts

    3
  • Joined

  • Last visited

vanlove2die's Achievements

Новичок

Новичок (1/5)

0

Reputation

  1. День добрый. Делаю как в описании. такие вот ошибки вылезают подскажите пожалуйста что нужно сделать. 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,
  2. ошибки аналогичные этой. пробовал поставить пакеты, нашел libelf-dev остальные не нашел. не помогло. Привести листинг утсановки не могу, снес 18.04 ставлю 16.04 но что-то и тут у меня не работает все как надо. Возможно чуть позже вернусь к варианту 18.04.
  3. Для ubuntu 18.04 где драйвера взять.. ядро 4.15 а эти все для 4.13, не подскажите?
×
×
  • Create New...