QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 978|回复: 2

急求帮助:内猫安装有一大堆问题搞不懂吖

[复制链接]
发表于 2004-1-15 00:06:43 | 显示全部楼层 |阅读模式
我的内猫是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]#
 楼主| 发表于 2004-1-15 00:09:23 | 显示全部楼层
忘了说,我用的是MagicLinux 1.2pre, 内核是2.4.22-1, KDE 3.1.3
回复

使用道具 举报

发表于 2004-1-17 20:12:17 | 显示全部楼层
是不是你的内核原码包没有安装???安装了kernel-source *(系统光盘里有) 后再装驱动!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-6 19:35 , Processed in 0.052305 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表