* After add CONFIG_MODULES,it works noting?
@ 2001-05-08 1:38 zjuzhou
2001-05-08 1:54 ` Kim, Kwansuk
0 siblings, 1 reply; 4+ messages in thread
From: zjuzhou @ 2001-05-08 1:38 UTC (permalink / raw)
To: linuxppc-embedded
hello,
when i don't use CONFIG_MODULES in .config,HHL works well,but when i
add CONFIG_MODULES into kernel,i reboot my borad using new kernel,when it
uncompress kernel image,then do noting.Just like the question asked by somebody
before.
By the way,i want to write driver,if don't use "ismod",how can i debug
my driver?i don't like compile kernel again and again.
thanks.
Dross Chou
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: After add CONFIG_MODULES,it works noting?
2001-05-08 1:38 After add CONFIG_MODULES,it works noting? zjuzhou
@ 2001-05-08 1:54 ` Kim, Kwansuk
0 siblings, 0 replies; 4+ messages in thread
From: Kim, Kwansuk @ 2001-05-08 1:54 UTC (permalink / raw)
To: linuxppc-embedded
If you don't use driver as module, whenever you modify the driver you should compile the kernel.
(I think it's one of the reasons why module is used)
And if you want you the driver, I suggest using KGDB.
Using KGDB you can even debug dynamically linked modules by add-symbols command (maybe) during exploring (almost) all the kernel source.
There is the method in "Linux Device Drivers" (O'reilly) Chap. 4.
==============================================
Kwansuk Kim
Engineer, NeoWave Inc.
Tel +82-31-380-4927 Fax +82-31-380-4747
E-mail: kskim@neowave.co.kr
==============================================
-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org [mailto:owner-linuxppc-
embedded@lists.linuxppc.org]On Behalf Of zjuzhou@163.net
Sent: Tuesday, May 08, 2001 10:38 AM
To: linuxppc-embedded@lists.linuxppc.org
Subject: After add CONFIG_MODULES,it works noting?
hello,
when i don't use CONFIG_MODULES in .config,HHL works well,but when i
add CONFIG_MODULES into kernel,i reboot my borad using new kernel,when it
uncompress kernel image,then do noting.Just like the question asked by somebody
before.
By the way,i want to write driver,if don't use "ismod",how can i debug
my driver?i don't like compile kernel again and again.
thanks.
Dross Chou
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: After add CONFIG_MODULES,it works noting?
@ 2001-05-08 2:23 zjuzhou
2001-05-08 10:33 ` Kim, Kwansuk
0 siblings, 1 reply; 4+ messages in thread
From: zjuzhou @ 2001-05-08 2:23 UTC (permalink / raw)
To: linuxppc-embedded
>Kim write:
> If you don't use driver as module, whenever you modify the driver you should compile the kernel.
> (I think it's one of the reasons why module is used)
Maybe we can write programe controling simple hardware in user space not in kernel sapce.About KGDB ,does it need more device? Thanks.
I still don't konw why after uncompressing kernel,it works noting.
But when I remove CONFIG_MODULES from config file,it works well again.When
arch/ppc/mbxboot/head.s give the control to init/main.c ,it will
display LINUX_BANNER information,but it do noting,I think serial port must
works well.My bootloader is pSOS's.
thanks.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: After add CONFIG_MODULES,it works noting?
2001-05-08 2:23 zjuzhou
@ 2001-05-08 10:33 ` Kim, Kwansuk
0 siblings, 0 replies; 4+ messages in thread
From: Kim, Kwansuk @ 2001-05-08 10:33 UTC (permalink / raw)
To: linuxppc-embedded
Maybe we can write programe controling simple hardware in user space not in kernel sapce.About KGDB ,does it need more device? Thanks.
-> KGDB uses just console for display printk output on target. After selecting KGDB support on kernel configuration, place breakpoint() where you want to begin debugging. Even in module you can use it. (I can't remember whether you should export breakpoint symbol.) Notice that you should place breakpoint after console initialized.
GDB in host will communicate with target with the serial target used for console.
I still don't konw why after uncompressing kernel,it works noting.
But when I remove CONFIG_MODULES from config file,it works well again.
-> Actually, I don't know why it hangs. But how about checking whether the symbols in no use are exported?
When
arch/ppc/mbxboot/head.s give the control to init/main.c ,it will
display LINUX_BANNER information,but it do noting,I think serial port must
works well.My bootloader is pSOS's.
-> if it hangs just after transmit on serial port, these banner may not displayed. If you want to check kernel executes that command, how about use test LED?
==============================================
Kwansuk Kim
Engineer, NeoWave Inc.
Tel +82-31-380-4927 Fax +82-31-380-4747
E-mail: kskim@neowave.co.kr
==============================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-05-08 10:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-08 1:38 After add CONFIG_MODULES,it works noting? zjuzhou
2001-05-08 1:54 ` Kim, Kwansuk
-- strict thread matches above, loose matches on Subject: below --
2001-05-08 2:23 zjuzhou
2001-05-08 10:33 ` Kim, Kwansuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).