I wasn't sure where the right place to ask this was so if anyone can point me to a more appropriate forum I would appreciate it.
My question is about the way memory works in U-Boot.
On the DM814x devices, when booting from NAND flash, there are two stages of U-Boot involved. The first stage loads the second stage into memory address 0x8100000 and executes from there. By the time the user prompt is presented for the second stage U-Boot, we can overwrite the memory at address 0x81000000 again without affecting U-Boot. I assume that means U-Boot relocated itself somewhere else? Where and how does this mechanism work?
I'm also curious about the malloc() call provided by U-Boot. Where is the memory region used to allocate space and how big is it? Where can I find the definitions for this stuff?
Thanks for any pointers.