booting single uImage on platforms with different base addresses for SDRAM
Hi,
Currently uImages have the load address hardcoded. As we now try to support as many ARM platforms as possible with a single binary, this becomes a problem. On tegra20 SDRAM starts at physical address 0, but on tegra30 SDRAM starts at 0x80000000. It's possible to build a kernel image which can deal with this, but the uImage still uses a hardcoded address. This results in requiring 2 different uImages even though the zImage is the same.
Has anyone thought of a solution to this problem?
Thanks,
Peter.
Quoted 6 lines · Peter De Schrijver
Currently uImages have the load address hardcoded. As we now try to support as many ARM platforms as possible with a single binary, this becomes a problem. On tegra20 SDRAM starts at physical address 0, but on tegra30 SDRAM starts at
0x80000000. It's possible to build a kernel image which can deal with this, but the uImage still uses a hardcoded address. This results in requiring 2 different uImages even though the zImage is the same.
This is a problem with the uImage format. It can only be fixed in uboot
- it's not a kernel problem.
Quoted 1 line
Has anyone thought of a solution to this problem?
There was talk about making '0' or something a special address, and fixing uboot to place it appropriately (in much the same way that the other boot loaders such as blob's offset from the start of RAM, or redboot's scripted loading which takes the load address.)
Quoted 11 lines · Russell King - ARM Linux
Quoted 6 lines · Peter De Schrijver
Currently uImages have the load address hardcoded. As we now try to support as many ARM platforms as possible with a single binary, this becomes a problem. On tegra20 SDRAM starts at physical address 0, but on tegra30 SDRAM starts at
0x80000000. It's possible to build a kernel image which can deal with this, but the uImage still uses a hardcoded address. This results in requiring 2 different uImages even though the zImage is the same.This is a problem with the uImage format. It can only be fixed in uboot
- it's not a kernel problem.
Quoted 6 lines
Quoted 1 line
Has anyone thought of a solution to this problem?
There was talk about making '0' or something a special address, and fixing uboot to place it appropriately (in much the same way that the other boot loaders such as blob's offset from the start of RAM, or redboot's scripted loading which takes the load address.)
... or make u-Boot support plain zImage on ARM (like it apparently does for MIPS). The u-Boot load command can accept a destination memory address just fine, but u-Boot always insists on relocating it when it is a uImage.
Nicolas
Quoted 23 lines · Nicolas Pitre
Quoted 2 lines · Russell King - ARM Linux
Quoted 1 line · Peter De Schrijver
Currently uImages have the load address hardcoded. As we now try to
support
Quoted 2 lines
Quoted 2 lines
as many ARM platforms as possible with a single binary, this becomes a problem. On tegra20 SDRAM starts at physical address 0, but on tegra30
SDRAM
Quoted 1 line
Quoted 1 line
starts at
0x80000000. It's possible to build a kernel image which candeal
Quoted 6 lines
Quoted 2 lines
with this, but the uImage still uses a hardcoded address. This results in requiring 2 different uImages even though the zImage is the same.
This is a problem with the uImage format. It can only be fixed in uboot
- it's not a kernel problem.Quoted 6 lines
Quoted 1 line
Has anyone thought of a solution to this problem?
There was talk about making '0' or something a special address, and fixing uboot to place it appropriately (in much the same way that the other boot loaders such as blob's offset from the start of RAM, or redboot's scripted loading which takes the load address.)
Quoted 6 lines
... or make u-Boot support plain zImage on ARM (like it apparently does for MIPS). The u-Boot load command can accept a destination memory address just fine, but u-Boot always insists on relocating it when it is a uImage.
Also, check out this thread.
http://comments.gmane.org/gmane.linux.ports.arm.kernel/95030
You may find it useful as a reference.
Regards,
Steve
Dear Peter De Schrijver,
Quoted 10 lines · In message <[email protected]> you wrote:
Hi,
Currently uImages have the load address hardcoded. As we now try to support as many ARM platforms as possible with a single binary, this becomes a problem. On tegra20 SDRAM starts at physical address 0, but on tegra30 SDRAM starts at
0x80000000. It's possible to build a kernel image which can deal with this, but the uImage still uses a hardcoded address. This results in requiring 2 different uImages even though the zImage is the same.Has anyone thought of a solution to this problem?
Yes, this has been discussed before. I proposed to allow for an offset specification instead of an absolute address. After that, the discussions faded. No code has been submitted yet.
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 "Never give in. Never give in. Never. Never. Never." - Winston Churchill