[U-Boot] [PATCH 12/26] ARM: add relocation support

Alessandro Rubini rubini-list at gnudd.com
Thu Sep 16 08:23:48 CEST 2010


Hello Heiko.

> Hmm.. at this place code is not relocated! So it should be executed
> on the right address.

May I say this is a huge step back from the non-relocation case?

One of the things I love(d) with u-boot (at least the ARM one) is that
I could place it in flash at any address and it would just work.  So
when I have a new binary I first write it to another flash sector and
"go" to it.  Only if it works I flash at offset 0.  Sure I test in RAM
first, but since writing the ram image to flash is not uncommon, the
final test for me has always been in flash -- also for other reasons.

I also think that simpler is better and I never understood the
contorsions of relocation.... but I wouldn't argue if it wasn't a step
back (I know the advantages, like going to end of ram, but they don't
mean much to me).

Is there any chance we could go on testing on a different flash
address without relinking in-between (with the risk of mismatching the
two images?)

Thanks
/alessandro


More information about the U-Boot mailing list