发新话题
打印

将3COM网卡支持编译进内核时出错

将3COM网卡支持编译进内核时出错

我的内核是2.4.26-gentoo-r6,我电脑上有三块网卡,一块Intel 的e1000是主板上带的,已经可以使用.
还有两块是3COM 的3C905CX-TXM 和3C905-TX-NM.现在不能使用,后来发现是有编译内核时没加进去.使用make menucofig 将3COM的支持加进去后,运行
make dep && make bzImage modules modules_install 出现以下错误:
make all_targets
make[3]: Entering directory `/usr/src/linux-2.4.26-gentoo-r6/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26-gentoo-r6/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=3c59x  -c -o 3c59x.o 3c59x.c
3c59x.c:265:24: linux/eisa.h: No such file or directory
3c59x.c:973: error: elements of array `vortex_eisa_ids' have incomplete type
3c59x.c:974: warning: excess elements in struct initializer
3c59x.c:974: warning: (near initialization for `vortex_eisa_ids[0]')
3c59x.c:974: warning: excess elements in struct initializer
3c59x.c:974: warning: (near initialization for `vortex_eisa_ids[0]')
3c59x.c:975: warning: excess elements in struct initializer
3c59x.c:975: warning: (near initialization for `vortex_eisa_ids[1]')
3c59x.c:975: warning: excess elements in struct initializer
3c59x.c:975: warning: (near initialization for `vortex_eisa_ids[1]')
3c59x.c:976: warning: excess elements in struct initializer
3c59x.c:976: warning: (near initialization for `vortex_eisa_ids[2]')
3c59x.c:982: error: variable `vortex_eisa_driver' has initializer but incomplete type
3c59x.c:983: error: unknown field `id_table' specified in initializer
3c59x.c:983: warning: excess elements in struct initializer
3c59x.c:983: warning: (near initialization for `vortex_eisa_driver')
3c59x.c:984: error: unknown field `driver' specified in initializer
3c59x.c:984: error: extra brace group at end of initializer
3c59x.c:984: error: (near initialization for `vortex_eisa_driver')
3c59x.c:988: warning: excess elements in struct initializer
3c59x.c:988: warning: (near initialization for `vortex_eisa_driver')
3c59x.c: In function `vortex_eisa_probe':
3c59x.c:996: warning: implicit declaration of function `to_eisa_device'
3c59x.c:996: warning: assignment makes pointer from integer without a cast
3c59x.c:997: error: dereferencing pointer to incomplete type
3c59x.c:1003: error: dereferencing pointer to incomplete type
3c59x.c: In function `vortex_eisa_remove':
3c59x.c:1020: warning: assignment makes pointer from integer without a cast
3c59x.c:1021: warning: implicit declaration of function `eisa_get_drvdata'
3c59x.c:1021: warning: assignment makes pointer from integer without a cast
3c59x.c:1028: warning: implicit declaration of function `netdev_priv'
3c59x.c:1028: warning: assignment makes pointer from integer without a cast
3c59x.c: In function `vortex_eisa_init':
3c59x.c:1047: warning: implicit declaration of function `eisa_driver_register'
3c59x.c: In function `vortex_init_one':
3c59x.c:1077: error: structure has no member named `dev'
...........................................................................................................................................      

TOP

和以前的一个人一样,chroot时没有mount proc
不是编译内核出问题,
试试mount后再编译内核,不行的话只有MAKEDEV后重建/dev了      
撑一枝长篙, 向青草更青处漫溯, 满载一船星辉, 在星辉斑斓里放歌。

TOP

发新话题