Skip to contentSkip to conversation

RAM vs. ROM version of ppcboot

U-Boot-Users Stephan Linz 2 participants 3 messages Dec 3, 2002

lore
Share & tools
lore
#0 lore raw

Hi all,

I hope it's right to post questions about PPCBoot at U-Boot mailing list. I'm new at PPCBoot, but know about internals of ARMBoot. So I know the ROM and RAM versions of ARMBoot have to differ.

Now, I plan to download PPCBoot into the RAM of a TQM850L via gdb and run from there. Gdb init the target processor inclusive address decoder. Can I load a ppcboot binary builded from plain tarball into the RAM or schould I swap some configs in include/configs/TQM850L.h ?

thanks,
Stephan

Signature · 12 lines
======================================================================
Stephan Linz
Software Engineer

MAZeT GmbH                   Email:   mailto:linz at mazet.de
Branche office Jena          Phone:   +49-3641-2809-55
G?schwitzer Stra?e 32        Fax  :   +49-3641-2809-12
D-07745 JENA
Germany

Visit our web-pages: http://www.MAZeT.de
======================================================================
#1 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I hope it's right to post questions about PPCBoot at U-Boot mailing list. I'm

Given the fact that PPCBoot has been laid to rest, yes.

Quoted 2 lines

new at PPCBoot, but know about internals of ARMBoot. So I know the ROM and RAM versions of ARMBoot have to differ.

Ummm... you don;t need a "RAM version" at all.

Quoted 4 lines

Now, I plan to download PPCBoot into the RAM of a TQM850L via gdb and run from there. Gdb init the target processor inclusive address decoder. Can I load a ppcboot binary builded from plain tarball into the RAM or schould I swap some configs in include/configs/TQM850L.h ?

Why would you want to do this? U-Boot (and PPCBoot) is running perfectly fine from flash on all TQ boards. Why would you want to create a "RAM version"? It makes no sense to me.

As the CPU starts executing code from the boot device (CS0 = typically flash) this is the most natural mode to run PPCBoot, too. It was written to expect a CPU coming up from reset, so don't force it into any other environment without a good reason and a very good understanding of what you do, and why.

Since you ask this question, I think you should NOT try doing this.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Even historians fail to learn from history -- they repeat the same
mistakes.
	-- John Gill, "Patterns of Force", stardate 2534.7
#2 lore raw

Am Dienstag, 3. Dezember 2002 13:55 schrieb Wolfgang Denk:

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

I hope it's right to post questions about PPCBoot at U-Boot mailing list. I'm

Given the fact that PPCBoot has been laid to rest, yes.

Yes I know. My running project will be using PPCBoot anymore.

Quoted 5 lines
Quoted 2 lines

new at PPCBoot, but know about internals of ARMBoot. So I know the ROM and RAM versions of ARMBoot have to differ.

Ummm... you don;t need a "RAM version" at all.

Quoted 9 lines
Quoted 4 lines

Now, I plan to download PPCBoot into the RAM of a TQM850L via gdb and run from there. Gdb init the target processor inclusive address decoder. Can I load a ppcboot binary builded from plain tarball into the RAM or schould I swap some configs in include/configs/TQM850L.h ?

Why would you want to do this? U-Boot (and PPCBoot) is running perfectly fine from flash on all TQ boards. Why would you want to create a "RAM version"? It makes no sense to me.

I'm using TQ board for studies and learn to swim. The final PPCBoot will be running at my own plattform which is similar to TQ. So I plan to clone the TQ board in PPCBoot and change something in flash.c and tqm8xx.c.

Why RAM version? Hmm, after hardware production my own target has no code at flash. So I could download an ppcboot into flash via debugger, but my VisionCLICK from Windriver doesn't know about the flash briks at my own target (ha, TQ boards too :-). The last chance I have is to use my MPCBDM. But til now I don't know abot flash access via MPCBDM. There is no further doc and I have no time for try'n error.

Thus I plan to use ppcboot running from ram and download / burn to flash itself.

But for all that: Is there any step by step manual how to use the MPCBDM flash facility? Where can I found HOWTOs or FAQs about PPCBoot debugging via gdb (MPCBDM).

Thanks and best regards,
Stephan

Quoted 12 lines

As the CPU starts executing code from the boot device (CS0 = typically flash) this is the most natural mode to run PPCBoot, too. It was written to expect a CPU coming up from reset, so don't force it into any other environment without a good reason and a very good understanding of what you do, and why.

Since you ask this question, I think you should NOT try doing this.

Best regards,

Wolfgang Denk

Signature · 12 lines
======================================================================
Stephan Linz
Software Engineer

MAZeT GmbH                   Email:   mailto:linz at mazet.de
Branche office Jena          Phone:   +49-3641-2809-55
G?schwitzer Stra?e 32        Fax  :   +49-3641-2809-12
D-07745 JENA
Germany

Visit our web-pages: http://www.MAZeT.de
======================================================================