Lvov_Pash Posted December 24, 2020 Share Posted December 24, 2020 Добрый день! Возникла проблема с установкой драйвера. Оборудование - Moxa NPort 5110. Система: Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-58-generic x86_64) Версия драйвера: real-tty-drivers-for-linux-5_x_x-driver-v5_0_2 При установке выдает в конце ошибку: Copyright (C) 2002-2019 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver Ver5.0 Installation. System Information: Kernel 5.4.0-58-generic; Machine x86_64. =============================================================================== ********************************WARNING********************************** MOXA NPort Server Real TTY Driver has been tested under kernel 5.3.0. That may not be compatible with Linux Kernel versions 5.4.0-58-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]. n make -C /lib/modules/5.4.0-58-generic/build M=/home/teh-t/moxa modules make[1]: Entering directory '/usr/src/linux-headers-5.4.0-58-generic' CC [M] /home/teh-t/moxa/npreal2.o Building modules, stage 2. MODPOST 1 modules CC [M] /home/teh-t/moxa/npreal2.mod.o LD [M] /home/teh-t/moxa/npreal2.ko make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-58-generic' cp -p npreal2.ko /lib/modules/5.4.0-58-generic/kernel/drivers/char/ depmod -a cc -c npreal2d.c cc npreal2d.o -o npreal2d strip npreal2d cc -c redund_main.c cc -c redund.c cc redund_main.o redund.o -lpthread -o npreal2d_redund strip npreal2d_redund cc -o mxaddsvr mxaddsvr.c strip mxaddsvr cc -o mxdelsvr mxdelsvr.c strip mxdelsvr cc -o mxcfmat mxcfmat.c strip mxcfmat cc -o mxloadsvr mxloadsvr.c strip mxloadsvr cc -o mxsetsec mxsetsec.c strip mxsetsec Check Driver... Copying configurations files ... OK! Copying driver files ... OK! Load driver... modprobe: ERROR: could not insert 'npreal2': Operation not permitted Failed!!! please contact the provider Создать порт позволяет (./mxaddsvr), но в /usr/lib/npreal2/driver/npreal2d.log идёт ошибка - Master tty open fail (/proc/npreal/0)! Создавать скрипт запуска (https://www.moxa.com/en/support/product-support/product-faq/when-i-install-the-nport-real-tty-driver-on-debian-i-see-error-message) пробовал, безрезультатно. При этом ping идёт и через telnet доступ есть. Данный драйвер устанавливал не впервые, до этого таких проблем не было. Прошу подсказать возможные пути решения. Link to comment
Знайка Posted December 24, 2020 Share Posted December 24, 2020 Добрый день. Давайте для начала попробуем 5.0.3 https://yadi.sk/d/7Tkho1QXvLSl0A . Если не пойдёт - приведите, пожалуйста, такой же вывод ошибок. Link to comment
Lvov_Pash Posted December 24, 2020 Author Share Posted December 24, 2020 22 минуты назад, Знайка сказал: Добрый день. Давайте для начала попробуем 5.0.3 https://yadi.sk/d/7Tkho1QXvLSl0A . Если не пойдёт - приведите, пожалуйста, такой же вывод ошибок. К сожалению ничего не изменило. Перед установкой новой версии удалил порт и драйвер предыдущей версии. Copyright (C) 2002-2019 Moxa Inc. All Rights Reserved. MOXA NPort Server Real TTY Driver Ver5.0.3 Installation. System Information: Kernel 5.4.0-58-generic; Machine x86_64. =============================================================================== 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]. n make -C /lib/modules/5.4.0-58-generic/build M=/home/teh-t/moxa modules make[1]: Entering directory '/usr/src/linux-headers-5.4.0-58-generic' CC [M] /home/teh-t/moxa/npreal2.o Building modules, stage 2. MODPOST 1 modules CC [M] /home/teh-t/moxa/npreal2.mod.o LD [M] /home/teh-t/moxa/npreal2.ko make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-58-generic' cp -p npreal2.ko /lib/modules/5.4.0-58-generic/kernel/drivers/char/ depmod -a cc -c npreal2d.c cc npreal2d.o -o npreal2d strip npreal2d cc -c redund_main.c cc -c redund.c cc redund_main.o redund.o -lpthread -o npreal2d_redund strip npreal2d_redund cc -o mxaddsvr mxaddsvr.c strip mxaddsvr cc -o mxdelsvr mxdelsvr.c strip mxdelsvr cc -o mxcfmat mxcfmat.c strip mxcfmat cc -o mxloadsvr mxloadsvr.c strip mxloadsvr cc -o mxsetsec mxsetsec.c strip mxsetsec Check Driver... Copying configurations files ... OK! Copying driver files ... OK! Load driver... modprobe: ERROR: could not insert 'npreal2': Operation not permitted Failed!!! please contact the provider Link to comment
Знайка Posted December 24, 2020 Share Posted December 24, 2020 Хорошо. Будем разбираться. Link to comment
Lvov_Pash Posted December 24, 2020 Author Share Posted December 24, 2020 56 минут назад, Знайка сказал: Хорошо. Будем разбираться. Проблема решена. Спасибо! Дело не в драйверах, а в платформе куда происходит установка. В моём случае Linux стоит на платформе Intel NUC. Для решения проблемы нужно в BIOS отключить опции "secure boot" и "Intel Platform Trust". Помогла данная статья, где описывалась проблема загрузки модуля: https://stackoverflow.com/questions/63449218/modprobe-insmod-error-could-not-insert-module-operation-not-permitted-install Link to comment
Знайка Posted December 24, 2020 Share Posted December 24, 2020 1 hour ago, Lvov_Pash said: Проблема решена. Спасибо! Дело не в драйверах, а в платформе куда происходит установка. В моём случае Linux стоит на платформе Intel NUC. Для решения проблемы нужно в BIOS отключить опции "secure boot" и "Intel Platform Trust". Помогла данная статья, где описывалась проблема загрузки модуля: https://stackoverflow.com/questions/63449218/modprobe-insmod-error-could-not-insert-module-operation-not-permitted-install О как! Спасибо, будем иметь в виду Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now