Re: depmod problem
SZABO Miklos Zsolt <[email protected]> Tue, 15 Mar 2005 00:14:34 +0100 (CET)
| Newsgroups | gmane.linux.drivers.at76c503a.user |
|---|---|
| Message-ID | <[email protected]> |
Hoi, and thanx for answering!
> 1) grep for CONFIG_MODVERSIONS in your .config
set
anoftc:/usr/src/linux-2.4.26# cat .config | grep MODV
CONFIG_MODVERSIONS=y
> 2) Do you see the flag -DMODVERSIONS while make'ing the Berlios driver?
yes
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
-DCOMPILE_FIRMWARE_INTO_DRIVER -fno-common -Wno-sign-compare -Wno-unused
-D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I/lib/modules/2.4.26/build/include
-DMODVERSIONS -include
/lib/modules/2.4.26/build/include/linux/modversions.h -c at76c503-i3861.c
> 3) Is there any file in include/linux/modules/ containing
> "iw_handler_get_spy" and an include line for any such file in
> include/linux/modversions.h?
No.
anoftc:/usr/src/linux-2.4.26/include/linux/modules# cat * | grep
iw_handler_get_spy
{no result}
anoftc:/usr/src/linux-2.4.26/include/linux/modules# cat * | grep
modversions.h
{no result}
But there's no include line in any of the files, so I'm not even sure that
I did the grep in the good directory. :)
> depmod / modprobe cannot match the reference iw_handler_get_spy to
> iw_handler_get_spy_R__ver_iw_handler_get_spy from the kernel.
Ah. I didnt know that.
Shall I remove that versioning thing from my kernel? After all, I guess I
dont need it.
> Does "custom kernel" implies that the kernel source the symlink
> /lib/modules/`uname -r`/build is pointing at is a tree, where you compiled
> the currently running kernel?
Yes.
> Never tried to configure the kernel source after compiling it?
No, I didnt touch the sources after the kernel was built.
> I really wonder how you got the above symbols
> (name_R__ver_name) into your kernel?
Isnt it because of the CONFIG_MODVERSIONS ? Tomorrow I'll try to recompile
without that setting.
> Is genksym (from modutils) installed
> as mentioned in the Kbuild help text for CONFIG_MODVERSIONS?
I have that command, I never used it though... :\
Thanx for your help, tomorrow i'll try it without config_modversions.
Bye, goodnight
Zs