[U-Boot] Run U-boot from Flash!

Hi,
We are in the process of porting linux to our custom board. We are using u-boot-1.1.6 as bootloader. We are able to successfully port u-boot in RAM to our custom board. But we want to run the u-boot from flash. We understand that u-boot is capable of relocating the code from flash to ram. But we didn't find any idea for changing the address of '_start', which is always loaded with TEXT_BASE address. Expecting a postive response.
Thanks Manu

On 06/24/2011 03:53 PM, manojatl wrote:
Hi,
Hi,
We are in the process of porting linux to our custom board. We are using u-boot-1.1.6 as bootloader.
Before you waste your time: make a pleasure to yourself and update to the last U-Boot code, better from GIT repository (git.denx.de). Your version is so old that it is quite difficult to find someone remembering details about it.
We are able to successfully port u-boot in RAM to our custom board. But we want to run the u-boot from flash. We understand that u-boot is capable of relocating the code from flash to ram.
You have not indicated which architecture you have (ARM,PPC, ...), and from which board you are basing your porting.
Expecting a postive response.
Start using last code and check again if you have relevant issues.
Best regards, Stefano Babic

Dear manojatl,
In message 31920053.post@talk.nabble.com you wrote:
We are in the process of porting linux to our custom board. We are using u-boot-1.1.6 as bootloader. We are able to successfully port u-boot in RAM
First, U-Boot 1.1.6 is more than 5 years old and only of interest to paleontologists - like a dinosaur. I tmakes absolutely no sense putting any efforts n such old code. Please do yourself (and us) a favour and use current code (i. e. v2011-06-rc3 or later).
to our custom board. But we want to run the u-boot from flash. We understand that u-boot is capable of relocating the code from flash to ram. But we didn't find any idea for changing the address of '_start', which is always loaded with TEXT_BASE address.
Then just change the setting of TEXT_BASE as needed.
Note that it would have been helpful if you had mentioned which architecture / CPU / board you are talking about.
Best regards,
Wolfgang Denk
participants (3)
-
manojatl
-
Stefano Babic
-
Wolfgang Denk