Skip to contentSkip to conversation

linux doesn't boot when CS for initial cache disabled

U-Boot-Users Thomas Schäfer 3 participants 3 messages May 9, 2003 – May 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,

I want to port u-boot to a custom board based on the walnut board where CS0-CS7 are in use by separate chips. I tried to program CS4, which is used for temporary stack and data before relocation, with the settings for a chip after the relocation has been done. u-boot seems to work fine with this setting, global data structure and board info structure are located in RAM and contain the correct values. Loading a kernel via tftp works without problems. As soon as I'm trying to boot the kernel, the system hangs after the kernel has been uncompressed. Trying to debug the kernel boot sequence, I found that the function reloc_offset seems to hang in an endless loop.

My question is: why is that CS for the temporary stack of u-boot important for the start sequence of the linux kernel? The Readme says that this stack and data area is only used before relocation of u-boot.

Any comments would be appreciated

Best regards,

Thomas Sch?fer

____________________________________

GIGA STREAM - UMTS Technologies GmbH

Konrad-Zuse-Str. 7
66115 Saarbr?cken

Tel.: + 49 (0)681 / 95916 - 203
Fax: + 49 (0)681 / 95916 - 100
E-mail: tschaefer at giga-stream.de

#1 lore raw
Quoted 5 lines · Thomas Sch?fer

Hi all,

My question is: why is that CS for the temporary stack of u-boot important for the start sequence of the linux kernel? The Readme says that this stack and data area is only used before relocation of u-boot.

The answer is it is not important for the kernel the readme is right.

Signature · 4 lines
Kenneth Johansson	
Ericsson AB                       Tel: +46 8 719 70 20
Tellusborgsv?gen  90              Fax: +46 8 719 29 45
126 25 Stockholm                  ken at switchboard.ericsson.se
#2 lore raw
In reply to Thomas Schäfer
Quoted 10 lines · In message <[email protected]> you wrote:

I want to port u-boot to a custom board based on the walnut board where CS0-CS7 are in use by separate chips. I tried to program CS4, which is us> ed for temporary stack and data before relocation, with the settings for a c> hip after the relocation has been done. u-boot seems to work fine with this setting, global data structure and board info structure are located in RA> M and contain the correct values. Loading a kernel via tftp works without problems. As soon as I'm trying to boot the kernel, the system hangs afte> r the kernel has been uncompressed. Trying to debug the kernel boot sequenc> e, I found that the function reloc_offset seems to hang in an endless loop.

Where exactly is it hanging, and why?

Quoted 5 lines

My question is: why is that CS for the temporary stack of u-boot importan> t for the start sequence of the linux kernel? The Readme says that this sta> ck and data area is only used before relocation of u-boot.

Any comments would be appreciated

Maybe there is a bug in the code? Patches welcome...

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I often quote myself; it adds spice to my conversation.  - G. B. Shaw