Skip to contentSkip to conversation

Debug kernel init code? (was: Load address and entry point for mips?)

U-Boot-Users mitsy 2 participants 3 messages Jul 25, 2006 – Jul 26, 2006

lore
Share & tools
lore

mitsy

author
#0 lore raw

Again, thank you Andrew. I believe I got those parameters correctly now!

However, I tried everything I can think of, but it's still not working. I took a look at log_buf mem location and it sure it is hanging inside the kernel. What is the best way to debug kernel init code (rather than putting bunch of printk)? I know there's a how-to on how to debug kernel module but I can't find one for init code.

Mitsy

Quoted 32 lines · mitsy

Hi Andrew,

Thank you so much for your help on this. I tried my best but I couldn't figure them out. I'll try these numbers and let you know how it goes.

I really appreciate your help. Thank you so much!

Have a great day!

Mitsy

Quoted 18 lines · Andrew Dyer
Quoted 5 lines · mitsy

When I do the mkimage with linux bin, I'm not sure what values to use for load address and entry point. In README file, it says for powerpc use 0 for both, but I think for mips, it won't be the case. (SDRAM base is 0x80000000.)

this is a snippet from the script we use:

START=${CROSS_COMPILE}objdump -h vmlinux |awk '$2 == ".text" {print $4;}' ENTRY=${CROSS_COMPILE}objdump -f vmlinux |awk '/start/ {print $3;}'

--
Hardware, n.:
The parts of a computer system that can be kicked.

author
#1 lore raw

Please discard this message. I found what was causing the kernel to hang. It has nothing to do with u-boot. Thank you all for your help so far!

Mitsy

---------- Forwarded message ----------
From: mitsy <[email protected]>
Date: Jul 25, 2006 3:47 PM
Subject: Debug kernel init code? (was: Load address and entry point for mips?)
To: u-boot-users at lists.sourceforge.net

Again, thank you Andrew. I believe I got those parameters correctly now!

However, I tried everything I can think of, but it's still not working. I took a look at log_buf mem location and it sure it is hanging inside the kernel. What is the best way to debug kernel init code (rather than putting bunch of printk)? I know there's a how-to on how to debug kernel module but I can't find one for init code.

Mitsy

Quoted 32 lines · mitsy

Hi Andrew,

Thank you so much for your help on this. I tried my best but I couldn't figure them out. I'll try these numbers and let you know how it goes.

I really appreciate your help. Thank you so much!

Have a great day!

Mitsy

Quoted 18 lines · Andrew Dyer
Quoted 5 lines · mitsy

When I do the mkimage with linux bin, I'm not sure what values to use for load address and entry point. In README file, it says for powerpc use 0 for both, but I think for mips, it won't be the case. (SDRAM base is 0x80000000.)

this is a snippet from the script we use:

START=${CROSS_COMPILE}objdump -h vmlinux |awk '$2 == ".text" {print $4;}' ENTRY=${CROSS_COMPILE}objdump -f vmlinux |awk '/start/ {print $3;}'

--
Hardware, n.:
The parts of a computer system that can be kicked.

#2 lore raw
In reply to mitsy
Quoted 6 lines · In message <[email protected]> you…

However, I tried everything I can think of, but it's still not working. I took a look at log_buf mem location and it sure it is hanging inside the kernel. What is the best way to debug kernel init code (rather than putting bunch of printk)? I know there's a how-to on how to debug kernel module but I can't find one for init code.

Use a BDI2000. And please stop posting off topic stuff. This is the U-Boot mailing list. Linux is another place.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Those who do not  understand  Unix  are  condemned  to  reinvent  it,
poorly.              - Henry Spencer, University of Toronto Unix hack