Skip to contentSkip to conversation

Run U-boot from Flash!

U-Boot manojatl 3 participants 3 messages Jun 24, 2011

lore
Share & tools
lore

manojatl

author
#0 lore raw

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

Signature · 2 lines
View this message in context: http://old.nabble.com/Run-U-boot-from-Flash%21-tp31920053p31920053.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 3 lines · manojatl

Hi,

Hi,

Quoted 2 lines

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.

Quoted 3 lines

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.

Quoted 1 line

Expecting a postive response.

Start using last code and check again if you have relevant issues.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================
#2 lore raw
In reply to manojatl

Dear manojatl,

Quoted 3 lines · In message <[email protected]> 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).

Quoted 4 lines

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

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you're out of tree, you don't exist.
     - David Woodhouse in <[email protected]>