Am 23.04.2017 um 15:49 schrieb H. Nikolaus Schaller hns@goldelico.com:
parameters (I still need to check how to tell it via DT but classified that as non-urgent):
seems to be done by
common/fdt_support.c: fdt_fixup_memory_banks()
That function has u64 parameter for start[] and size[]. Maybe U-Boot configures our 4GB RAM with 2 banks but still assumes each one is 1GB size.
Now, the boring part begins: going through code to find out how the parameters are set by the board file...
I think I have it running. Cleaned up patch is coming.
The only ugly issue is that I have no idea if we can auto-detect the RAM type / size. And we forgot to assign different CPU board version resistors.
So it either works or the other u-boot.img has to be installed on the SD card.
This makes swapping bootable SD cards between both variants impossible. Which is annoying since(I always forget to write on them what they are good for...
BR, Nikolaus