|
各位大侠好:
弟在驱动主机板内建的LAN芯片上遇到了问题
主机板是ASUS的P4C800-Deluxe, 华硕提供的linux驱动只有在RedHat9上
驱动成功, 在SuSE8上无法驱动, 以下是SuSE上安装的错误讯息:
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I
/usr/include -include /usr/include/linux/modversions.h -DMODVERSIONS -D__SMP__ -c -o
skge.o skge.c
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:45,
from h/skdrv1st.h:161,
from skge.c:347:
/usr/include/linux/irq.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT undeclared here (not in a
function)
/usr/include/linux/irq.h:65: error: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:45,
from h/skdrv1st.h:161,
from skge.c:347:
/usr/include/asm/hardirq.h:16: error: `CONFIG_X86_L1_CACHE_SHIFT undeclared here (not in
a function)
/usr/include/asm/hardirq.h:16: error: requested alignment is not a constant
In file included from h/skdrv1st.h:161,
from skge.c:347:
/usr/include/linux/interrupt.h:128: error: `CONFIG_X86_L1_CACHE_SHIFT undeclared here (not
in a function)
/usr/include/linux/interrupt.h:128: error: requested alignment is not a constant
In file included from h/skdrv1st.h:166,
from skge.c:347:
/usr/include/linux/netdevice.h:165: error: `CONFIG_X86_L1_CACHE_SHIFT undeclared here
(not in a function)
/usr/include/linux/netdevice.h:165: error: requested alignment is not a constant
In file included from h/skdrv1st.h:166,
from skge.c:347:
/usr/include/linux/netdevice.h:507: error: `CONFIG_X86_L1_CACHE_SHIFT undeclared here
(not in a function)
/usr/include/linux/netdevice.h:507: error: requested alignment is not a constant
In file included from skge.c:347:
h/skdrv1st.h:172:26: net/checksum.h: No such file or directory
skge.c: In function `skge_probe:
skge.c:525: warning: integer constant is too large for "long" type
skge.c:644: error: `proc_net undeclared (first use in this function)
skge.c:644: error: (Each undeclared identifier is reported only once
skge.c:644: error: for each function it appears in.)
skge.c: In function `skge_cleanup_module:
skge.c:986: error: `proc_net undeclared (first use in this function)
skge.c: In function `XmitFrameSG:
skge.c:2098: warning: comparison between signed and unsigned
skge.c:2100: warning: comparison between signed and unsigned
skge.c:2171: warning: comparison between signed and unsigned
skge.c:2216: warning: comparison between signed and unsigned
skge.c: In function `ReceiveIrq:
skge.c:2569: warning: comparison between signed and unsigned
skge.c:2579: warning: comparison between signed and unsigned
skge.c: In function `SkGeIoctl:
skge.c:3526: warning: comparison between signed and unsigned
skge.c:3526: warning: signed and unsigned type in conditional expression
skge.c:3526: warning: comparison between signed and unsigned
skge.c:3526: warning: signed and unsigned type in conditional expression
skge.c:3526: warning: comparison between signed and unsigned
skge.c:3526: warning: signed and unsigned type in conditional expression
skge.c: In function `SkDrvEvent:
skge.c:4445: warning: comparison between signed and unsigned
skge.c: At top level:
h/skversion.h:51: warning: `SysKonnectFileId defined but not used
h/skversion.h:52: warning: `SysKonnectBuildNumber defined but not used
skge.c:792: warning: `__module_license defined but not used
make: *** [skge.o] Error 1 |
|