[U-Boot] u-boot: raspberry pi 4 with 4G ram, bdinfo: dram bank size is < 1G

With top of the tree(tot) uboot, and tot firmware, uboot command bdinfo shows the dram bank size as 0x000000003b400000 which is <1G, but the rpi4 board has 4G of ram.
However with kernel8.img in the firmware, linux kernel shows in /proc/meminfo
cat /proc/meminfo
MemTotal:3999784 kB
MemFree: 3868044 kB
MemAvailable:3819600 kB
Does this current uboot does not yet support rpi with 4g ram?
-Thanks

Hi,
On 19/09/2019 13:51, Pi NewBie wrote:
With top of the tree(tot) uboot, and tot firmware, uboot command bdinfo shows the dram bank size as 0x000000003b400000 which is <1G, but the rpi4 board has 4G of ram.
However with kernel8.img in the firmware, linux kernel shows in /proc/meminfo
cat /proc/meminfo
MemTotal:3999784 kB
MemFree: 3868044 kB
MemAvailable:3819600 kB
Does this current uboot does not yet support rpi with 4g ram?
Can you try with this patch: https://patchwork.ozlabs.org/patch/1159868/
Background: I think you need to change the config to CONFIG_NR_DRAM_BANKS=2
Happy to hear back from you.
Regards, Matthias
-Thanks
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

On 25/09/2019 11:51, Matthias Brugger wrote:
Hi,
On 19/09/2019 13:51, Pi NewBie wrote:
With top of the tree(tot) uboot, and tot firmware, uboot command bdinfo shows the dram bank size as 0x000000003b400000 which is <1G, but the rpi4 board has 4G of ram.
However with kernel8.img in the firmware, linux kernel shows in /proc/meminfo
cat /proc/meminfo
MemTotal:3999784 kB
MemFree: 3868044 kB
MemAvailable:3819600 kB
Does this current uboot does not yet support rpi with 4g ram?
Can you try with this patch: https://patchwork.ozlabs.org/patch/1159868/
Background: I think you need to change the config to CONFIG_NR_DRAM_BANKS=2
Happy to hear back from you.
For the record: with this patch applied I can see both DRAM banks on my 4GB RPi4: DRAM bank = 0x0000000000000000 -> start = 0x0000000000000000 -> size = 0x000000003e000000 DRAM bank = 0x0000000000000001 -> start = 0x0000000040000000 -> size = 0x00000000bc000000
Regards, Matthias
Regards, Matthias
-Thanks
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
participants (2)
-
Matthias Brugger
-
Pi NewBie