Re: Linux on ARM: bootloader & remapping



Hello, Måns
You wrote on Wed, 17 Dec 2008 19:20:10 +0000:

MR> U-Boot already supports many arm926-based boards. Chances are yours
MR> only needs a bit of tweaking.

My concern is how to define a memory map and consequently a valid TEXT_BASE
value. For example, on my chip, after reset 0x0 and before remap points at
NOR flash, RAM is mapped to 0x1000_0000. Therefore, U-Boot image should be
linked to 0x0000_0000 address to properly start off the flash, i.e.
TEXT_BASE defined in $(uboot)/board/my_board/config.mk should be 0x00000000.

But uboot usually copies itself to RAM, which is at 0x1000_0000 in my
case -- it won't work as I understand, as my image is linked to 0x0000_0000.
Then if we do remap first (making RAM at 0x0000_0000), then copy image to
RAM, then there would not be a room for 'malloc' area and stack (which uboot
allocates at lower addresses), as we specified TEXT_BASE=0x0, and this is
the address U-Boot copies itself in memory at.

Perhaps I misunderstand something in a work of U-Boot...

-- Mark


.



Relevant Pages

  • Boot vxWorks from flash via U-Boot
    ... To build a binary image which I can boot from flash, ... I use the U-Boot bootloader: ... Why can I start it from RAM, ... Now, if I burn this image to my flash location, i cannot ...
    (comp.os.vxworks)
  • Re: ARM processors and remap
    ... FB> usually it is faster to execute programs from RAM. ... FB> you need to do this, because U-Boot is mostly C, which doesn't use self ... NOR flash, ... Then if we do remap first, ...
    (comp.arch.embedded)
  • Re: After executing MDCreateThread data abort occurs
    ... This is almost always RAM configuration, memory map, or cache problems. ... target.The code under Startup and KernelStart routines are running fine ... So the Kernel is not letting this address 0xc2000000 to be programmed. ...
    (microsoft.public.windowsce.embedded)
  • Re: RAM Question
    ... It is rather obvious the OP looked at some kind reading to determine what he ... missed the fact that when he had 512mgs RAM, his system used ... Do yourself a big favor, and mainly for others seeking help here, don't ... > see your memory map. ...
    (microsoft.public.windowsxp.general)
  • Re: Linux for Asymmetric Multi Processing Systems.
    ... the ARM7 Memory Map through a _Shared RAM_. ... the Memory Map of ARM7 processors is visible to ARM9 ...
    (Linux-Kernel)