Skip to contentSkip to conversation

CFG_FLASH_BASE and CFG_MONITOR_BASE question

U-Boot-Users Frank Young 2 participants 2 messages Jul 15, 2004

lore
Share & tools
lore
#0 lore raw

Anyone else can share your success story? I just want to get some clues from the similiar cases.

Thanks!

Frank

Quoted 45 lines

From: Wolfgang Denk <[email protected]>
To: "Frank Young" <[email protected]>
CC: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] CFG_FLASH_BASE and CFG_MONITOR_BASE question
Date: Thu, 15 Jul 2004 00:41:26 +0200

Quoted 2 lines · In message <[email protected]> you wrote:

Yes, I did try it out. Seems the u-boot works fine and the example application runs fine in SDRAM. But when I tried to load the kernel,

kernel

Quoted 1 line

hangs when early_init (in head_4xx.S) is called. So I want to come back

to

Quoted 1 line

u-boot and double check everything in u-boot is correct.

I think we've been there before. How do you know that the kernel "hangs", and what exactly means "hangs" here?

Don't tell me again that you added some debug code to toggle LED's or write to memory or something like that.

Your "it hangs" may be an "it chrashes because of your debug code" with your debug code, and something completely different without it.

Attach a debugger and find out what's really going on.

In a first step, I recommend to re-read the FAQ section.

Quoted 1 line

BTW, does anyone happen to have early_init problem and solved it? I saw

a

Yes. Many people have posted such problems before, and in all cases I can remember the only problem was some debug code that had been added, or the attempt to use tools (or engineers) that have no idea what virtual memory is.

Quoted 2 lines

lot of discussions on the internet. But most of them didn't give a final solution. It doesn't matter if we are using same board or CPU. I just

want

Quoted 1 line

to get some idea of what could be wrong. Any input would be appreciated!

We've been there before. Everything has been said before. follow the advice, or ignore it - your choice. I give up here. I will stop reading this thread and replying to it.

Quoted 7 lines

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de What about WRITING it first and rationalizing it afterwords? :-)
- Larry Wall in <[email protected]>

_________________________________________________________________
MSN Life Events gives you the tips and tools to handle the turning points in your life. http://lifeevents.msn.com

#1 lore raw
Quoted 2 lines · Frank Young

Anyone else can share your success story? I just want to get some clues from the similiar cases.

Problem is that there could be literally dozens of things wrong... You will have to use a debugger to find out where linux stops. At least check the linux output log (see DLUG, this can be read from u-boot after a reboot, as long as the Memory isn't clobbered)).

A few thing that have bitten me is:
Wrong bd_info struct, Serial ports not configured correct, PCI not configured correct.
And last but not least of the problems I have encountered... SDRAM.... That it works under U-Boot des NOT mean that it works 100%.... Some timing problems (for me it was hardware timing) will ONLY show up when linux is running (because of burst mode), and some only showed up when doing GCC compiles or other memory intensive operations.