[U-Boot-Users] How to load the second u-boot loader from first one

Hi all,
I am trying to build a new u-boot loader on MPC8560, I have already a u-boot loader on it, but I don't want to replace the old one, could I load the testing u-boot loader from the old one ? What type should I select for the testing u-boot loader ?
Thanks a lot.
_________________________________________________________________ 立即申請 MSN Mobile 服務:在您的手機上收發 MSN Hotmail http://msn.com.tw/msnmobile

--- kkk kkk kk23400@hotmail.com wrote:
Hi all,
I am trying to build a new u-boot loader on MPC8560, I have already a u-boot loader on it, but I don't want to replace the old one, could I load the testing u-boot loader from the old one ? What type should I select for the testing u-boot loader ?
Thanks a lot
Change TEXT_BASE in <your board dir>/config.mk file to the address you want to load it at in ram. Disbale the cpu and SDRAM init with CONFIG_INRAM (look in the source for the correct spelling), tftpboot the image to the address in sdram and "go address".
_________________________________________________________________
¥ß§Y¥Ó½Ð MSN Mobile ªA°È¡G¦b±zªº¤â¾÷¤W¦¬µo MSN Hotmail http://msn.com.tw/msnmobile
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

In message 20060810051417.91047.qmail@web32210.mail.mud.yahoo.com you wrote:
What type should I select for the testing u-boot loader ?
Change TEXT_BASE in <your board dir>/config.mk file to the address you want to load it at in ram. Disbale the cpu and SDRAM init with CONFIG_INRAM (look in the source for the correct spelling), tftpboot the image to the address in sdram and "go address".
This may work, but it does not help the original poster. He waneted to *test* his new image. You will create a *modified* version, which does not include the parts of U-Boot that cause 99% of the typical "does not run" problems.
Your approach is worthless for testing.
Best regards,
Wolfgang Denk

Hi all,
I am trying to build a new u-boot loader on MPC8560, I have already a u-boot loader on it, but I don't want to replace the old one, could I load the testing u-boot loader from the old one ? What type should I select for the testing u-boot loader ?
You can build your new u-boot loader with RAM version. Then you can download it into your RAM and run it. Roy

In message 7EA18FDD2DC2154AA3BD6D2F22A62A0E19D66C@zch01exm23.fsl.freescale.net you wrote:
You can build your new u-boot loader with RAM version. Then you can download it into your RAM and run it.
Yes. You can also nail a piano to your knee.
Neither is a good idea, though.
Especially, the "RAM version" is significantly different fromn the image the original poster wanted to test. So it is just a wasste of time, as the trest of the most critical part (the RAM init sequence) is still missing.
Please read the FAQ. Both befroe asking, and before answering questions. Thanks.
Best regards,
Wolfgang Denk

In message 1155216193.920.5.camel@saruman.qstreams.net you wrote:
Yes. You can also nail a piano to your knee.
Neither is a good idea, though.
Would you consider licensing this saying under the GPL?
B-)
I would, if I had the Copyright on this. Sorry. I have been knowing this phrase for >20 years. It's most probably of (East) German origin, where you would say: "Da kannst Du Dir auch ein Klavier an's Knie nageln." or "Dreh' Dir doch eine Schraube in's Knie und häng' ein Klavier dran auf!".
But I'm afraid we're somewhat off topic here ;-)
Best regards,
Wolfgang Denk

--- Wolfgang Denk wd@denx.de wrote:
In message
7EA18FDD2DC2154AA3BD6D2F22A62A0E19D66C@zch01exm23.fsl.freescale.net
you wrote:
You can build your new u-boot loader with RAM version. Then
you can
download it into your RAM and run it.
Yes. You can also nail a piano to your knee.
Neither is a good idea, though.
Especially, the "RAM version" is significantly different fromn the image the original poster wanted to test. So it is just a wasste of time, as the trest of the most critical part (the RAM init sequence) is still missing.
Please read the FAQ. Both befroe asking, and before answering questions. Thanks.
I do this all of the time, but I do it to _test_ functionality past the SDRAM init functions. Obviously the SDRAM functions are working or the original u-boot would not be running. So tell me, just out of curiousty, why is my apporach useless? I'm always eagar to learn something new...
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

In message 20060810143427.99389.qmail@web32212.mail.mud.yahoo.com you wrote:
working or the original u-boot would not be running. So tell me, just out of curiousty, why is my apporach useless? I'm always eagar to learn something new...
The OP's question was how to "load the testing u-boot loader from the old one", in other words, how to test thew new image before installing it in flash. This cannot be done - the image in your approach will be fundamentally different from the one that can be booted from flash.
Best regards,
Wolfgang Denk

In message <7EA18FDD2DC2154AA3BD6D2F22A62A0E19D66C@zch01exm23.fsl.freesca le.net> you wrote:
You can build your new u-boot loader with RAM version. Then you can download it into your RAM and run it.
Yes. You can also nail a piano to your knee.
Neither is a good idea, though.
Especially, the "RAM version" is significantly different fromn the image the original poster wanted to test. So it is just a wasste of time, as the trest of the most critical part (the RAM init sequence) is still missing.
Please read the FAQ. Both befroe asking, and before answering questions. Thanks.
I read the FAQ. I still do not think a RAM version u-boot is just "waste of time". It depends. If we only want to improve some part of the u-boot, such as "PCI", a RAM version might be useful. It is more convenience and cheaper. Finally, we should program the image to flash to verify it. For the original poster, a ram version u-boot is one choice. He can backup his flash image to a file with CodeWarrior + PowerTAP(BDI2000) before programming his new flash image. I hope my comments do not lead to a wrong direction... Roy

In message 7EA18FDD2DC2154AA3BD6D2F22A62A0E19D733@zch01exm23.fsl.freescale.net you wrote:
I still do not think a RAM version u-boot is just "waste of time". It depends.
YMMV...
If we only want to improve some part of the u-boot, such as "PCI", a RAM version might be useful. It is more convenience and cheaper.
No. Modifying the code, loading the image to RAM, booting it there, finally undoing all the modifications, storing the final image in flash, re-test everything is more effort and takes longer than just using the original code right from the beginning. Of course this assumes you have either ethernet on your board or a fast JTAG prgrammer so the image download / flashing is a matter of just a few seconds (remember that this can be a singlke command in U-Boot, like "run load update" :-)
He can backup his flash image to a file with CodeWarrior + PowerTAP(BDI2000) before programming his new flash image.
If he can do this, there is zero need for a RAM image.
Best regards,
Wolfgang Denk

In message BAY22-F41B07AEA37DC04025119EFA4A0@phx.gbl you wrote:
I am trying to build a new u-boot loader on MPC8560, I have already a u-boot loader on it, but I don't want to replace the old one, could I load the testing u-boot loader from the old one ? What type should I select for the testing u-boot loader ?
Please read the FAQ:
http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStarted...
Best regards,
Wolfgang Denk
participants (5)
-
Ben Warren
-
Frank
-
kkk kkk
-
Wolfgang Denk
-
Zang Roy-r61911