|
我的内猫是ECOM的EM-56HAM,用的是Ambient的MD5628D-L-B芯片,我在它的官方网站上下载了它的Linux驱动(http://www.longway.com/center.asp),但按它的Readme文件上的说明步骤安装时出错,搞了老半天搞不懂。我是初装Linux的,好多都不懂,请大虾指点呀~~~~~~~~~~~
具体的错误信息如下(它有三步的1.make clean, 2.make all, 3.make install,我只列出了前两步):
[root@Ahy-MagicLinux release]# make clean
cd src/hamcore; make clean
make[1]: Entering directory `/mnt/E/v90hamlinuxv2.2/release/src/hamcore'
rm -f *.o *~ core
make[1]: Leaving directory `/mnt/E/v90hamlinuxv2.2/release/src/hamcore'
cd src/serial; make clean
make[1]: Entering directory `/mnt/E/v90hamlinuxv2.2/release/src/serial'
rm -f *.o *~ core
make[1]: Leaving directory `/mnt/E/v90hamlinuxv2.2/release/src/serial'
rm -f ham.o
rm -f hamcore.o
[root@Ahy-MagicLinux release]# make all
cd src/hamcore; make hamcore-release
make[1]: Entering directory `/mnt/E/v90hamlinuxv2.2/release/src/hamcore'
cc -Wall -O -I /usr/include -I../inc -c -o coredrv.o coredrv.c
In file included from hamcore.h:38,
from coredrv.c:33:
hamdefs.h:89:8: warning: extra tokens at end of #endif directive
In file included from hamcore.h:39,
from coredrv.c:33:
/usr/include/linux/proc_fs.h:70: error: syntax error before "atomic_t"
/usr/include/linux/proc_fs.h:72: error: syntax error before "rdev"
/usr/include/linux/proc_fs.h:187: error: syntax error before "kdev_t"
/usr/include/linux/proc_fs.h:203: error: syntax error before "void"
In file included from coredrv.c:33:
hamcore.h:233: warning: `struct file' declared inside parameter list
In file included from coredrv.c:33:
hamcore.h:261:8: warning: extra tokens at end of #endif directive
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /usr/include/linux/delay.h:12,
from coredrv.c:36:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from coredrv.c:36:
/usr/include/linux/timex.h:173: error: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/delay.h:12,
from coredrv.c:36:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/delay.h:12,
from coredrv.c:36:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/delay.h:12,
from coredrv.c:36:
/usr/include/linux/timer.h:45: error: syntax error before "spinlock_t"
/usr/include/linux/timer.h:53: error: syntax error before '}' token
/usr/include/linux/timer.h:67: error: syntax error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: syntax error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from coredrv.c:36:
/usr/include/linux/delay.h:13:23: asm/delay.h: 没有那个文件或目录
coredrv.c: In function `hamcore_init':
coredrv.c:54: error: `printk' undeclared (first use in this function)
coredrv.c:54: error: (Each undeclared identifier is reported only once
coredrv.c:54: error: for each function it appears in.)
coredrv.c:55: error: `schedule' undeclared (first use in this function)
coredrv.c:56: error: `printk' used prior to declaration
coredrv.c:56: warning: implicit declaration of function `printk'
coredrv.c:56: error: `KERN_DEBUG' undeclared (first use in this function)
coredrv.c:56: error: syntax error before string constant
coredrv.c:59: error: `KERN_ALERT' undeclared (first use in this function)
coredrv.c:59: error: syntax error before string constant
coredrv.c:64: error: syntax error before string constant
coredrv.c:76: error: syntax error before string constant
coredrv.c:86: error: syntax error before string constant
coredrv.c:96: error: syntax error before string constant
coredrv.c:106: error: syntax error before string constant
coredrv.c:117: error: syntax error before string constant
coredrv.c: In function `init_module':
coredrv.c:127: error: `printk' used prior to declaration
coredrv.c: In function `cleanup_module':
coredrv.c:132: error: `printk' used prior to declaration
coredrv.c: In function `hamdelay':
coredrv.c:138: warning: implicit declaration of function `udelay'
make[1]: *** [coredrv.o] Error 1
make[1]: Leaving directory `/mnt/E/v90hamlinuxv2.2/release/src/hamcore'
make: *** [all] Error 2
[root@Ahy-MagicLinux release]# |
|