unresolved symbol
Hi,
When attempting to load a module via 'insmod' I get the following:
insmod unresolved symbol kmalloc
insmod unresolved symbol unregister_chrdev
insmod unresolved symbol register_chrdev
...
insmod unresolved symbol printk
It seems that there was another person with the same problem on Sept 24, 2001 to this list. However, the solution to the problem was not posted to the list.
Can anyone give me some advice on where to look?
Bob Piatek
fishcamp engineering
105 W. Clark Ave
Orcutt, CA 93455
TEL: 805-937-6365
FAX: 805-937-6252
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Bob Piatek
When attempting to load a module via 'insmod' I get the following:
insmod unresolved symbol kmalloc
insmod unresolved symbolunregister_chrdev
insmod unresolved symbolregister_chrdev
...
insmod unresolved symbol printk
Quoted 3 lines
It seems that there was another person with the same problem on Sept 24, 2001 to this list. However, the solution to the problem was not posted to the list.
It sounds like you're running YellowDog Linux 2.0, and thus need to install the modutils update.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Tom,
I'm using YellowDog Linux 2.1 for my development system. I don't think the modutils update is needed for 2.1 and, indeed, I can compile and 'insmod' modules on my host system just fine.
My problem is that I can't load modules on my embedded system. Sorry I wasn't clear about that in my posting. I am using the kernel from:
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/linux-2.4.4-2001-11-24.tar.bz2
and ramdisk:
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/simple-ramdisk.image.gz
and have ported it to my custom hardware running with an MPC860. BTW... thanks to all who have contributed software for this effort especially the PPCBoot project!
Correct me if I'm wrong, but it looks like the problem is caused by the kernel not exporting the symbols that are needed by the module and not in the actual module itself. Is it that I built the kernel wrong somehow, or maybe the libraries in 'simple-ramdisk' image aren't sufficient, or is it something else?
Bob
fishcamp engineering
105 W. Clark Ave
Orcutt, CA 93455
TEL: 805-937-6365
FAX: 805-937-6252
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tom Rini
Sent: Monday, December 31, 2001 7:32 AM
To: Bob Piatek
Cc: [email protected]
Subject: Re: unresolved symbol
Quoted 10 lines · Bob Piatek
When attempting to load a module via 'insmod' I get the following:
insmod unresolved symbol kmalloc
insmod unresolved symbolunregister_chrdev
insmod unresolved symbolregister_chrdev
...
insmod unresolved symbol printkIt seems that there was another person with the same problem on Sept
24,
Quoted 1 line
2001 to this list. However, the solution to the problem was not
posted
Quoted 1 line
to the list.
It sounds like you're running YellowDog Linux 2.0, and thus need to install the modutils update.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Bob Piatek
Correct me if I'm wrong, but it looks like the problem is caused by the kernel not exporting the symbols that are needed by the module and not in the actual module itself. Is it that I built the kernel wrong somehow, or maybe the libraries in 'simple-ramdisk' image aren't sufficient, or is it something else?
Well, the kernel knows about its symbols at compile time, based on stuff from the modutils program. So, if you have a bad/missing genksyms program, you won't get any symbols.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
OK. I updated the modutils package and that fixed it! Thanks so much.
Bob
fishcamp engineering
105 W. Clark Ave
Orcutt, CA 93455
TEL: 805-937-6365
FAX: 805-937-6252
-----Original Message-----
From: Tom Rini [mailto:[email protected]] On Behalf Of Tom Rini
Sent: Monday, December 31, 2001 3:02 PM
To: Bob Piatek
Cc: [email protected]
Subject: Re: unresolved symbol
Quoted 1 line · Bob Piatek
Correct me if I'm wrong, but it looks like the problem is caused by
the
Quoted 4 lines
kernel not exporting the symbols that are needed by the module and not in the actual module itself. Is it that I built the kernel wrong somehow, or maybe the libraries in 'simple-ramdisk' image aren't sufficient, or is it something else?
Well, the kernel knows about its symbols at compile time, based on stuff from the modutils program. So, if you have a bad/missing genksyms program, you won't get any symbols.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/