A problem of debugging kernel with BDI2000 and PPC
Domen Puncer
domen.puncer at telargo.com
Mon Mar 12 18:18:02 EST 2007
On 10/03/07 13:46 +0800, Zhou Rui wrote:
> Hi, all
> I am trying to debug a trivial "helloworld" module with BDI2000 and PPC405EP board. The kernel in the PPC board is 2.6.15 compiled from ELDK4.0. I have tried to get a load map of the module, but there is no "-m" parameter in ELDK's insmod, and if "insmod.old -m hello_module.ko > module.map" is executed, the result is "insmod QM_MODULES : Function not implemented", while "insmod hello_module.ko" runs ok. I also have tried the "insmod" provided by busybox, but there is no content in module.map after "insmod.old -m hello_module.ko > module.map".
> So would you like to tell me it is the correct way to get the load map for module debugging? Or is there any other method to do that? Thank you very much.
I used something like:
~ $ insmod pcan.ko
~ $ grep '\[pcan\]' /proc/kallsyms | sort | grep '^.\{8\} t' | head -n 1
d1088000 t buffer_dump [pcan]
(gdb) add-symbol-file pcan.ko 0xd1088000
You should probably provide other section addresses too, if you need them.
Domen
More information about the Linuxppc-embedded
mailing list