Jump to content
Форум по продукции MOXA
Sign in to follow this  
specar

Установка Real TTY Driver в Debian

Recommended Posts

Всем доброго дня,

проблема при установке драйверов вирт. порта  вышла

 вроде все по инструкции делал

root@scada:/home/specar/moxa# uname -a
Linux scada 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux


по инструкции устанавливал

apt-get source linux-image-$(uname -r)
make oldconfig && make prepare

также установил gcc, libc, binutils, make, gawk
 

root@scada:/home/specar/kernel3.x# ./mxinst m64  

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

MOXA NPort Server Real TTY Driver Ver1.18.59 Installation.
System Information: Kernel 3.16.0-4-amd64; Machine x86_64.
===============================================================================


Tar files, please wait ... OK!
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/3.16.0-4-amd64/build SUBDIRS=/home/specar/kernel3.x modules
make[1]: вход в каталог «/lib/modules/3.16.0-4-amd64/build»
  CC [M]  /home/specar/kernel3.x/npreal2.o
/home/specar/kernel3.x/npreal2.c: In function ‘npreal_net_writeâ€:
/home/specar/kernel3.x/npreal2.c:3675:2: warning: ignoring return value of ‘copy_from_userâ€, declared with attribute warn_unused_result [-Wunused-result]
  copy_from_user(k_buf, buf, count);
  ^
/bin/sh: 1: ./scripts/recordmcount: not found
scripts/Makefile.build:263: Ошибка выполнения рецепта для цели «/home/specar/kernel3.x/npreal2.o»
make[2]: *** [/home/specar/kernel3.x/npreal2.o] Ошибка 127
Makefile:1354: Ошибка выполнения рецепта для цели «_module_/home/specar/kernel3.x»
make[1]: *** [_module_/home/specar/kernel3.x] Ошибка 2
make[1]: Выход из каталога «/lib/modules/3.16.0-4-amd64/build»
Makefile:63: Ошибка выполнения рецепта для цели «module»
make: *** [module] Ошибка 2
Check Driver...
FAILED !!!

Install Not Completed !

Подскажите если нетрудно  в чем проблема.
 

Share this post


Link to post
Share on other sites

Добрый день!

 

А есть возможность без русификации это попробовать? То есть листинг на английском получить?

Share this post


Link to post
Share on other sites

на новых драйверах, листинг на английском

root@scada:/home/specar/kernel3.1# ./mxinst m64

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

MOXA NPort Server Real TTY Driver Ver1.18.65 Installation.
System Information: Kernel 3.16.0-4-amd64; 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/3.16.0-4-amd64/build SUBDIRS=/home/specar/kernel3.1 modules
make[1]: Entering directory '/lib/modules/3.16.0-4-amd64/build'
  CC [M]  /home/specar/kernel3.1/npreal2.o
/home/specar/kernel3.1/npreal2.c: In function вЂnpreal_net_writeвЂ:
/home/specar/kernel3.1/npreal2.c:3674:2: warning: ignoring return value of вЂcopy_from_userвЂ, declared with attribute warn_unused_result [-Wunused-result]
  copy_from_user(k_buf, buf, count);
  ^
/bin/sh: 1: ./scripts/recordmcount: not found
scripts/Makefile.build:263: recipe for target '/home/specar/kernel3.1/npreal2.o' failed
make[2]: *** [/home/specar/kernel3.1/npreal2.o] Error 127
Makefile:1354: recipe for target '_module_/home/specar/kernel3.1' failed
make[1]: *** [_module_/home/specar/kernel3.1] Error 2
make[1]: Leaving directory '/lib/modules/3.16.0-4-amd64/build'
Makefile:63: recipe for target 'module' failed
make: *** [module] Error 2
Check Driver...
FAILED !!!
 
Install Not Completed !

Share this post


Link to post
Share on other sites

"In function вЂnpreal_net_writeвЂ:"

 

А почему у вас кавычки то так представляются, не могу понять?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×