红联Linux门户
Linux帮助

无线网卡的驱动

发布时间:2009-08-31 17:51:46来源:红联作者:xinyuyadx
我想把无线网卡的驱动编译进内核,用的源代码是ZD1211LnxDrv_2_22_0_0.tar.gz
make zImage后出现的错误是

[root@localhost linux]# make zImage
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/home/cvtech/jx2410/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /home/cvtech/jx2410/linux/include/linux/tty.h:30,
from /home/cvtech/jx2410/linux/include/linux/fb.h:4,
from /home/cvtech/jx2410/linux/include/asm/linuette_kernel.h:23,
from /home/cvtech/jx2410/linux/include/asm/hardware.h:23,
from /home/cvtech/jx2410/linux/include/asm/arch/cpu_s3c2410.h:35,
from init/main.c:15:
/home/cvtech/jx2410/linux/include/linux/fs.h:1132: parse error before `1'
/home/cvtech/jx2410/linux/include/linux/fs.h:1133: warning: function declaration isn't a prototype
/home/cvtech/jx2410/linux/include/linux/fs.h: In function `mark_buffer_uptodate':
/home/cvtech/jx2410/linux/include/linux/fs.h:1135: `bh' undeclared (first use in this function)
/home/cvtech/jx2410/linux/include/linux/fs.h:1135: (Each undeclared identifier is reported only once
/home/cvtech/jx2410/linux/include/linux/fs.h:1135: for each function it appears
in.)
/home/cvtech/jx2410/linux/include/linux/fs.h: At top level:
/home/cvtech/jx2410/linux/include/linux/fs.h:1160: parse error before `1'
/home/cvtech/jx2410/linux/include/linux/fs.h:1161: warning: function declaration isn't a prototype
/home/cvtech/jx2410/linux/include/linux/fs.h: In function `mark_buffer_async':
/home/cvtech/jx2410/linux/include/linux/fs.h:1163: `bh' undeclared (first use in this function)
make: *** [init/main.o] Error 1




我的内核是2.4 gcc为2.95.3 希望不吝赐教 谢谢
文章评论

共有 2 条评论

  1. xiazhouquan 于 2009-09-03 16:00:13发表:

    我也没编译成功过

  2. Luoall 于 2009-08-31 20:23:48发表:

    建议安装过最新的版本,2.4支持的东西有限