[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problems with config-2.2.19pre17



hi ...
I'm trying to build an e100 network driver for Devian v2.2_r3, but having
problems getting a set of headers that match the vanilla i386 kernel.

Problem #1:
there seems to be no kernel-headers-2.2.19pre17 package for the
i386 vanilla kernel (referring to the file "ls-lR" on the ftp site).
There are only compact and idepci versions, plus versions for other
platforms.

Problem #2:
I installed the base system on machine A, then copied its file
	/boot/config-2.2.19pre17
to this filename on machine B where I'd installed the
kernel-source-2.2.19pre17 package:
	/usr/src/kernel-source-2.2.19pre17/.config
Then I did "make oldconfig" on machine B.
"make oldconfig" asked me about 110 questions, because
many options such as CONFIG_PCI_OPTIMIZE are not in the .config
file.
This is unexpected ... I expected the file config-2.2.19pre17 should
contain complete configuration options for that version of the kernel.
(cksum config-2.2.19pre17 returns "365396408 14685")

Problem #3: after giving default answers to the 110 questions, I can
do "make-kpkg kernel_image" and then build e100.o, pointing to the built
kernel headers.
However e100.o doesn't run on machine A.
Instead I get nine "unresolved symbol" messages (appended here) indicating
that the modversions are wrong.

Indeed, on machine B, netsyms.ver has this:
#define __ver_unregister_netdev     a0c784c4
while on machine A, "ksyms -a" reports that it should be
	unregister_netdev_R0f2c93ea

This suggests that I have the wrong shape for things like struct device
and struct_sk_buff, which contain various configuration-dependent #ifdefs.
So, could anyone tell me how to configure a kernel to be the same as the
vanilla kernel in debian 2.2_r3, or where I can get a matching set of
headers?

many thanks,

	Jonathan Mark

p.s.  appended here are the insmod error messages:

/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol unregister_netdev_R0a08afd4
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol netif_rx_Rd2ab8753
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol __kfree_skb_R2ac5d00c
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol eth_type_trans_Rf6578369
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol skb_under_panic_Rff7c1226
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol skb_over_panic_R0d71a63a
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol alloc_skb_Rfbe6d341
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol init_etherdev_Re116aaef
/lib/modules/2.2.19pre17/net/e100.o: unresolved symbol skb_realloc_headroom_R715ac9d0
Using /lib/modules/2.2.19pre17/net/e100.o



Reply to: