build for 2.4 kernel possible?
John Sutton <[email protected]> Wed, 9 Jul 2003 14:32:59 +0100
| Newsgroups | gmane.linux.drivers.tulip.general |
|---|---|
| Organization | SCL Internet |
| Message-ID | <[email protected]> |
Hi there Is it still possible to build the tulip driver into the kernel (i.e. not as a module) with the 2.4 kernel series? I've tried 2.4.18 and 2.4.19 with no success. Using the 3.0 release of netdrivers (tulip.c 0.92x), and with a small mod to pci-scan.c to stop the inclusion of pci_find_capability (which is already in the kernel), it will build OK either as module or builtin. When as module, it works fine (so both pci-scan.o and tulip.o must be functional) but when linked into the kernel, the driver does not show up at all when you boot the kernel! For all releases of netdrivers >3.0, i.e. 3.1 3.2 3.3 & 3.4, it will build and work fine as module but I cannot get the build to complete when trying builtin (or rather, not builtin!). The problem is the final link of net.o into vmlinux - there are a bunch of unresolved references coming from pci-scan.o. Basically, all the calls to pci_read_config_word, pci_write_config_dword, etc. Guessing here, but it appears that the reason that they are unresolved is because in fact pci-scan.o has been built "module fashion" even though the -DMODULE is not specified for the compile. Because the unresolved symbols in pci-scan.o have lots of funny numbers appended to them, which, as far as I can make out, means that the code expects to get linked at runtime as a module rather than statically at build time. So my (tentative) conclusion is that somewhere in the pea-soup of conditional defines in pci-scan.c and/or kern_compat.h, there is a mistake which results in the wrong type of build. But it is beyond me to track it down ;-( Any help greatly appreciated. If in fact this driver is dead as regards builtin use, I'd really like to be told that (Donald!) so that I can just go out and buy a whole new bunch of cards ;-(. TIA *************************************************** John Sutton SCL Internet URL http://www.scl.co.uk/ Tel. +44 (0) 1239 711 888 *************************************************** _______________________________________________ tulip mailing list, [email protected] To change to digest mode or unsubscribe visit http://www.scyld.com/mailman/listinfo/tulip