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

uport 1110 линукс драйвер


Recommended Posts

  • Replies 201
  • Created
  • Last Reply

Top Posters In This Topic

13 часов назад, Незнайка сказал:

Добрый день,

на 2 поста вверх успешно ставили 1.3.21 на Ubuntu 18.04.2 LTS. Вы так не пробовали?

Посмотрел всю тему. Такую же ошибку не нашел.

выглядит так, как будто драйвер не подписан.

Link to comment
50 minutes ago, Данил said:

Посмотрел всю тему. Такую же ошибку не нашел. 

выглядит так, как будто драйвер не подписан. 

Какую ошибку вы получили при установке 1.3.21?

Link to comment

Попробую вечером. Параллельно написал в саппорт. Иностранный саппорт ответил, что попробовали установить драйвер на версии Ubuntu 18.04.2. Установился без ошибок. Обещали попробовать установить на виртуальной машине Ubuntu Server 18.04.2 и попробовать установить драйвер.

 

И что странно. Я скачал дистрибутив Ubuntu Server 18.04.2, но после установки и проверки версии отображается 18.04.1. Kernel 4.15, хотя должен быть 4.18.

Link to comment

Ставлю на Intel NUC.

Включил в BIOS (UEFI) возможность установки драйверов сторонних разработчиков, продвинулся дальше. Теперь при установке ошибка:

"You are building kernel with non-retpoline compiler, please update your compiler."

Link to comment
On 6/1/2019 at 12:26 AM, Данил said:

Ставлю на Intel NUC.

Включил в BIOS (UEFI) возможность установки драйверов сторонних разработчиков, продвинулся дальше. Теперь при установке ошибка:

"You are building kernel with non-retpoline compiler, please update your compiler."

Для какой версии драйвера?

Link to comment

Пока нет. НА данный момент получил следующее сообщение от саппорта:

 

Please follow my steps to install the driver again.

I was got the “You are building kernel with non-retpoline compiler, please update your compiler” issue also, but I reinstall and test again, it works.

 

Here are the commands I used, I dumped from the history command for your reference:

 

Link to comment
  • 2 weeks later...

Здравствуйте!

Не получается установить драйвер на Fedora 23 (4.8.13)

./mxinstall
************************************************************************
 Admin Console: https://\4:9090/ or https://[\6]:9090/ 4.8.13-100.fc23.x86_64
 MOXA UPort 11x0 series driver ver 1.4
 Release Date: 2018/05/03
************************************************************************
***********************************ERROR********************************
 Unable to locate matching source for kernel 4.8.13-100.fc23.x86_64.
 Please refer the readme.txt to install proper kernel-header/source.
************************************************************************
Makefile:62: ошибка выполнения рецепта для цели «envchk»
make[1]: *** [envchk] Ошибка 1
Makefile:9: ошибка выполнения рецепта для цели «install»
make: *** [install] Ошибка 2


Выяснилось что изначально ругается на отсутствие каталога или файла /lib/modules/4.8.13-100.fc23.x86_64/build

Отредактировал параметр K_SOURCE в файле mxconf и параметр KDIR в Makefile в том же каталоге и получил следующее

./mxinstall
************************************************************************
 Admin Console: https://\4:9090/ or https://[\6]:9090/ 4.8.13-100.fc23.x86_64
 MOXA UPort 11x0 series driver ver 1.4
 Release Date: 2018/05/03
************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v1.4
                   for Linux Kernel 3.x & above

                   release date : 05/03/2018
  *******************************************************************
make[2]: *** Нет правила для сборки цели «modules».  Останов.
Makefile:53: ошибка выполнения рецепта для цели «module»
make[1]: *** [module] Ошибка 2
Makefile:9: ошибка выполнения рецепта для цели «install»
make: *** [install] Ошибка 2

 

Помогите установить драйвер

 

Link to comment
13 часов назад, frolkin сказал:

Здравствуйте!

Не получается установить драйвер на Fedora 23 (4.8.13)

./mxinstall
************************************************************************
 Admin Console: https://\4:9090/ or https://[\6]:9090/ 4.8.13-100.fc23.x86_64
 MOXA UPort 11x0 series driver ver 1.4
 Release Date: 2018/05/03
************************************************************************
***********************************ERROR********************************
 Unable to locate matching source for kernel 4.8.13-100.fc23.x86_64.
 Please refer the readme.txt to install proper kernel-header/source.
************************************************************************
Makefile:62: ошибка выполнения рецепта для цели «envchk»
make[1]: *** [envchk] Ошибка 1
Makefile:9: ошибка выполнения рецепта для цели «install»
make: *** [install] Ошибка 2


Выяснилось что изначально ругается на отсутствие каталога или файла /lib/modules/4.8.13-100.fc23.x86_64/build

Отредактировал параметр K_SOURCE в файле mxconf и параметр KDIR в Makefile в том же каталоге и получил следующее

./mxinstall
************************************************************************
 Admin Console: https://\4:9090/ or https://[\6]:9090/ 4.8.13-100.fc23.x86_64
 MOXA UPort 11x0 series driver ver 1.4
 Release Date: 2018/05/03
************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v1.4
                   for Linux Kernel 3.x & above

                   release date : 05/03/2018
  *******************************************************************
make[2]: *** Нет правила для сборки цели «modules».  Останов.
Makefile:53: ошибка выполнения рецепта для цели «module»
make[1]: *** [module] Ошибка 2
Makefile:9: ошибка выполнения рецепта для цели «install»
make: *** [install] Ошибка 2

 

Помогите установить драйвер

 

Спасибо разобрался, однако сохраняется проблема работы 2-х устройств на одном ПК

 

Link to comment

Добрый день!

Пытаюсь установить драйвер для uport1130 на raspberry. Выдает:

:~/moxa/mxu11x0/driver $ sudo make install
/bin/sh: 1: ./mxconf: Permission denied
Makefile:62: recipe for target 'envchk' failed
make: *** [envchk] Error 1
 

Как исправить?

Link to comment
В 16.06.2019 в 16:25, Незнайка сказал:

Добрый день. Что за ошибка для 2х устройств?

Если 2 устройства (1130) установлены в оди ПК и соединены между собой по RS485 то передача ижет не корректно или я пока не до конца разобрался и настройками

Link to comment
1 hour ago, frolkin said:

Если 2 устройства (1130) установлены в оди ПК и соединены между собой по RS485 то передача ижет не корректно или я пока не до конца разобрался и настройками 

Ясно. Пока о такой проблеме не слышали.

Link to comment
В 16.06.2019 в 10:53, frolkin сказал:

Спасибо разобрался, однако сохраняется проблема работы 2-х устройств на одном ПК

 

Подскажите, как разобрались с проблемой?

Link to comment
  • 3 months later...

Приветствую, подскажите куда копать.

openSUSE

VERSION = 15.1

Linux utp-sanomac 4.12.14-lp151.28.16-default #1 SMP Wed Sep 18 05:32:19 UTC 2019 (3e458e0) x86_64 x86_64 x86_64 GNU/Linux

Были испробованы

driv_linux2_1_.6_uport1p_v1.1.9_build09011914.tar
driv_linux2.6_uport1p_v1.2.1_build_09072819.tgz
driv_linux_uport1p_v1.3.11_build_13121621.tgz
driv_linux_uport1p_v1.3.17_build_17041110.7z
driv_linux_uport1p_v1.3.21_build_17112717.tgz

utp-sanomac:/tmp/5/mxu11x0 # ./mxinstall 
************************************************************************
  4.12.14-lp151.28.16-default
 MOXA UPort 11x0 series driver ver 1.3.21
 Release Date: 2017/11/27
************************************************************************
  *******************************************************************
  # MOXA UPort 11x0 series USB to Serial Hub Driver v1.3.21         #
  #                for Linux Kernel 2.6.x & above                   #
  #                                                                 #
  #               release date : 11/27/2017                         #
  *******************************************************************
/tmp/5/mxu11x0/driver/mxu11x0.c: In function ‘mxu1_drain’:
/tmp/5/mxu11x0/driver/mxu11x0.c:2425:2: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
  wait_queue_t wait;
  ^~~~~~~~~~~~
  wait_event
/tmp/5/mxu11x0/driver/mxu11x0.c:2437:23: error: passing argument 1 of ‘init_waitqueue_entry’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  init_waitqueue_entry(&wait, current);
                       ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/5/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:78:20: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 static inline void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p)
                    ^~~~~~~~~~~~~~~~~~~~
/tmp/5/mxu11x0/driver/mxu11x0.c:2438:42: error: passing argument 2 of ‘add_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  add_wait_queue(&mxport->mxp_write_wait, &wait);
                                          ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/5/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:149:13: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
             ^~~~~~~~~~~~~~
/tmp/5/mxu11x0/driver/mxu11x0.c:2451:45: error: passing argument 2 of ‘remove_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  remove_wait_queue(&mxport->mxp_write_wait, &wait);
                                             ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/5/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:151:13: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
             ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [/usr/src/linux-4.12.14-lp151.28.16/scripts/Makefile.build:332: /tmp/5/mxu11x0/driver/mxu11x0.o] Ошибка 1
make[4]: *** [/usr/src/linux-4.12.14-lp151.28.16/Makefile:1569: _module_/tmp/5/mxu11x0/driver] Ошибка 2
make[3]: *** [Makefile:152: sub-make] Ошибка 2
make[2]: *** [Makefile:24: __sub-make] Ошибка 2
make[1]: *** [Makefile:47: module] Ошибка 2
make: *** [Makefile:9: install] Ошибка 2

 

Link to comment
4 минуты назад, Незнайка сказал:

Добрый день, последняя версия вроде бы 1.4, она на офф. сайте должна лежать. С ней пробовали?

moxa-uport-1000-series-linux-3.x-and-4.x-for-uport-11x0-series-driver-v1.4.tgz

utp-sanomac:/tmp/6/mxu11x0 # ./mxinstall 
************************************************************************
  4.12.14-lp151.28.16-default
 MOXA UPort 11x0 series driver ver 1.4
 Release Date: 2018/05/03
************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v1.4      
                   for Linux Kernel 3.x & above                      
                                                                     
                   release date : 05/03/2018                        
  *******************************************************************
/tmp/6/mxu11x0/driver/mxu11x0.c: In function ‘mxu1_drain’:
/tmp/6/mxu11x0/driver/mxu11x0.c:2506:2: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
  wait_queue_t wait;
  ^~~~~~~~~~~~
  wait_event
/tmp/6/mxu11x0/driver/mxu11x0.c:2518:23: error: passing argument 1 of ‘init_waitqueue_entry’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  init_waitqueue_entry(&wait, current);
                       ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/6/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:78:20: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 static inline void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p)
                    ^~~~~~~~~~~~~~~~~~~~
/tmp/6/mxu11x0/driver/mxu11x0.c:2519:42: error: passing argument 2 of ‘add_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  add_wait_queue(&mxport->mxp_write_wait, &wait);
                                          ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/6/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:149:13: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
             ^~~~~~~~~~~~~~
/tmp/6/mxu11x0/driver/mxu11x0.c:2532:45: error: passing argument 2 of ‘remove_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  remove_wait_queue(&mxport->mxp_write_wait, &wait);
                                             ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/6/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:151:13: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
             ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [/usr/src/linux-4.12.14-lp151.28.16/scripts/Makefile.build:332: /tmp/6/mxu11x0/driver/mxu11x0.o] Ошибка 1
make[4]: *** [/usr/src/linux-4.12.14-lp151.28.16/Makefile:1569: _module_/tmp/6/mxu11x0/driver] Ошибка 2
make[3]: *** [Makefile:152: sub-make] Ошибка 2
make[2]: *** [Makefile:24: __sub-make] Ошибка 2
make[1]: *** [Makefile:58: module] Ошибка 2
make: *** [Makefile:9: install] Ошибка 2
utp-sanomac:/tmp/6/mxu11x0 # 

 

Link to comment
15 minutes ago, sano_prv said:

moxa-uport-1000-series-linux-3.x-and-4.x-for-uport-11x0-series-driver-v1.4.tgz

utp-sanomac:/tmp/6/mxu11x0 # ./mxinstall 
************************************************************************
  4.12.14-lp151.28.16-default
 MOXA UPort 11x0 series driver ver 1.4
 Release Date: 2018/05/03
************************************************************************
  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v1.4      
                   for Linux Kernel 3.x & above                      
                                                                     
                   release date : 05/03/2018                        
  *******************************************************************
/tmp/6/mxu11x0/driver/mxu11x0.c: In function mxu1_drain’:
/tmp/6/mxu11x0/driver/mxu11x0.c:2506:2: error: unknown type name wait_queue_t’; did you mean wait_event’?
  wait_queue_t wait;
  ^~~~~~~~~~~~
  wait_event
/tmp/6/mxu11x0/driver/mxu11x0.c:2518:23: error: passing argument 1 of init_waitqueue_entry from incompatible pointer type [-Werror=incompatible-pointer-types]
  init_waitqueue_entry(&wait, current);
                       ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/6/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:78:20: note: expected struct wait_queue_entry *’ but argument is of type int *’
 static inline void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p)
                    ^~~~~~~~~~~~~~~~~~~~
/tmp/6/mxu11x0/driver/mxu11x0.c:2519:42: error: passing argument 2 of add_wait_queue from incompatible pointer type [-Werror=incompatible-pointer-types]
  add_wait_queue(&mxport->mxp_write_wait, &wait);
                                          ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/6/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:149:13: note: expected struct wait_queue_entry *’ but argument is of type int *’
 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
             ^~~~~~~~~~~~~~
/tmp/6/mxu11x0/driver/mxu11x0.c:2532:45: error: passing argument 2 of remove_wait_queue from incompatible pointer type [-Werror=incompatible-pointer-types]
  remove_wait_queue(&mxport->mxp_write_wait, &wait);
                                             ^
In file included from /usr/src/linux-4.12.14-lp151.28.16/include/linux/mmzone.h:9:0,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/gfp.h:5,
                 from /usr/src/linux-4.12.14-lp151.28.16/include/linux/slab.h:14,
                 from /tmp/6/mxu11x0/driver/mxu11x0.c:23:
/usr/src/linux-4.12.14-lp151.28.16/include/linux/wait.h:151:13: note: expected struct wait_queue_entry *’ but argument is of type int *’
 extern void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
             ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [/usr/src/linux-4.12.14-lp151.28.16/scripts/Makefile.build:332: /tmp/6/mxu11x0/driver/mxu11x0.o] Ошибка 1
make[4]: *** [/usr/src/linux-4.12.14-lp151.28.16/Makefile:1569: _module_/tmp/6/mxu11x0/driver] Ошибка 2
make[3]: *** [Makefile:152: sub-make] Ошибка 2
make[2]: *** [Makefile:24: __sub-make] Ошибка 2
make[1]: *** [Makefile:58: module] Ошибка 2
make: *** [Makefile:9: install] Ошибка 2
utp-sanomac:/tmp/6/mxu11x0 # 

 

Образ системы сможете выложить?

Link to comment
  • 7 months later...

Драйвер для 5.х ядра в Ubuntu 20.04 не работает

************************************************************************
 Ubuntu 20.04 LTS 
 \l 5.4.0-29-generic
 MOXA UPort 11x0 series driver ver 
 Release Date: 
************************************************************************
**********************************WARNING*******************************
 MOXA UPort 11x0 series driver hes been tested under kernel 5.3.7
 That may not be compatible with Linux Kernel version 5.4.0-29-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 
************************************************************************
Press enter to continue...

  *******************************************************************
    MOXA UPort 11x0 series USB to Serial Hub Driver v5.0      
                                                                     
                   release date : 2019/11/06                        
  *******************************************************************

Loading driver...
modprobe: ERROR: could not insert 'mxu11x0': Unknown symbol in module, or unknown parameter (see dmesg)

dmesg

[ 4714.291011] mxu11x0: Unknown symbol usb_serial_deregister_drivers (err -2)
[ 4714.291032] mxu11x0: Unknown symbol usb_serial_register_drivers (err -2)
[ 4726.804687] mxu11x0: Unknown symbol usb_serial_deregister_drivers (err -2)
[ 4726.804707] mxu11x0: Unknown symbol usb_serial_register_drivers (err -2)
[ 5199.883748] mxu11x0: Unknown symbol usb_serial_deregister_drivers (err -2)
[ 5199.883770] mxu11x0: Unknown symbol usb_serial_register_drivers (err -2)
[ 5533.416593] mxu11x0: Unknown symbol usb_serial_deregister_drivers (err -2)
[ 5533.416613] mxu11x0: Unknown symbol usb_serial_register_drivers (err -2)
[ 5927.040137] mxu11x0: Unknown symbol usb_serial_deregister_drivers (err -2)
[ 5927.040170] mxu11x0: Unknown symbol usb_serial_register_drivers (err -2)
[ 6191.146267] mxu11x0: Unknown symbol usb_serial_deregister_drivers (err -2)
[ 6191.146291] mxu11x0: Unknown symbol usb_serial_register_drivers (err -2)

 

Link to comment

Попробовали на 5.4.0-26 - работает. Исходя из чего 2 вопроса:
1. серийный номер устройства;
2. ссылка на дистрибутив 5.4.0-29.

Link to comment
  • 2 years later...

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