PDA

Visualizza la versione completa : drivers pci 8 seriali


bonzox
21-07-2009, 09:00
devo installare una periferica pci che aggiunge 8 seriali

ora sto provando su CentOS

il readme mi da queste istruzioni:


Install step:
step 1:
make
step 2:
make install
step 3:
cp rc.jpt /etc/rc.d
step 4:
edit /etc/inittab by vi, add following in last line,

jpt::sysinit:/etc/rc.d/rc.jpt

step 5:
reboot linux, and check if jpt activated by command "lsmod | grep jpt"

note: ttynames are assigned as follow example,
1st card : ttyn0 --- ttyn15
2nd card : ttyn16 --- ttyn31
3rd card : ttyn32 --- ttyn47
4th card : ttyn48 --- ttyn63
5th card : ttyn64 --- ttyn79



[root@rfc-1918 linux]# make
make -C /lib/modules/2.6.18-8.el5/build M=/home/bonzo/Desktop/drivers/linux CC=gcc modules
make: *** /lib/modules/2.6.18-8.el5/build: No such file or directory. Stop.
make: *** [module] Error 2
[root@rfc-1918 linux]#


ora faccio:



[root@rfc-1918 linux]# make -C /usr/src/kernels/2.6.18-128.2.1.el5-i686 M=/home/bonzo/Desktop/drivers/linux CC=gcc modules
make: Entering directory `/usr/src/kernels/2.6.18-128.2.1.el5-i686'
CC [M] /home/bonzo/Desktop/drivers/linux/jpt_driver.o
In file included from /home/bonzo/Desktop/drivers/linux/jpt_driver.c:1:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:213: error: expected ‘)’ before string constant
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:214: error: expected ‘)’ before string constant
/home/bonzo/Desktop/drivers/linux/jpt_driver.c: In function ‘nuart_receive_chars’:
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:339: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:339: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:352: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:358: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:368: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:374: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:379: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:381: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:383: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c: In function ‘nuart16_receive_chars’:
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:411: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:411: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:425: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:431: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:441: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:447: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:452: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:454: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:456: error: ‘struct tty_struct’ has no member named ‘flip’
/home/bonzo/Desktop/drivers/linux/jpt_driver.c: In function ‘nuart_module_init’:
/home/bonzo/Desktop/drivers/linux/jpt_driver.c:1408: error: ‘struct tty_driver’ has no member named ‘devfs_name’
make[1]: *** [/home/bonzo/Desktop/drivers/linux/jpt_driver.o] Error 1
make: *** [_module_/home/bonzo/Desktop/drivers/linux] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-128.2.1.el5-i686'
[root@rfc-1918 linux]#




Suggerimenti?

Loading