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

vanlove2die

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

    3
  • Joined

  • Last visited

Posts posted by vanlove2die

  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. В 03.05.2018 в 17:26, Tatiana сказал:

    При установке выдал ошибку, не знаете как лечить?

     

    [root@localhost Загрузки]# cd mxu11x0

    [root@localhost mxu11x0]# make clean; make install;

    Removing driver files...

    ************************************************************************

      4.15.17-200.fc26.x86_64

     MOXA UPort 11x0 series driver ver 1.3.21

     Release Date: 2017/11/27

    ************************************************************************

    **********************************WARNING*******************************

     MOXA UPort 11x0 series driver may not be compatible with

     Linux kernel versions newer than 4.13.0 .

     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

    ************************************************************************

      *******************************************************************

      # MOXA UPort 11x0 series USB to Serial Hub Driver v1.3.21         #

      #                for Linux Kernel 2.6.x & above                   #

      #                                                                 #

      #               release date : 11/27/2017                         #

      *******************************************************************

    Makefile:951: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel".  Останов.

    make[1]: *** [Makefile:47: module] Ошибка 2

    make: *** [Makefile:9: install] Ошибка 2

    [root@localhost mxu11x0]#

     

    ошибки аналогичные этой. пробовал поставить пакеты, нашел libelf-dev остальные не нашел. не помогло. Привести листинг утсановки не могу, снес 18.04 ставлю 16.04 но что-то и тут у меня не работает все как надо. Возможно чуть позже вернусь к варианту 18.04.

×
×
  • Create New...