
Dear Ben Gardiner,
In message 1303996341-6582-1-git-send-email-bengardiner@nanometrics.ca you wrote:
When your emulator is connected at reset (or is used to load u-boot) it is possible to get the relocation address from the parameter passed to relocate_code() instead of building with -DDEBUG and extracting from the console messages.
Hm... Maybe we should try and unify code a bit better.
On PowerPC, relocaddr (the start address of the U-Boot image in RAM) is part of the global data structure, and simply gets printed with the "bdinfo" command:
=> bdinfo memstart = 0x00000000 memsize = 0x20000000 flashstart = 0xFC000000 flashsize = 0x04000000 flashoffset = 0x00000000 sramstart = 0x00000000 sramsize = 0x00000000 bootflags = 0xFFFE72CC intfreq = 1066.667 MHz busfreq = 266.667 MHz ethaddr = 00:10:ec:01:08:84 eth1addr = 00:10:ec:81:08:84 IP addr = 192.168.100.6 baudrate = 115200 bps ===> relocaddr = 0x1FF50000
Why not simply follow this example?
Best regards,
Wolfgang Denk