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,
Quoted 8 lines · Pi NewBie
With top of the tree(tot) uboot, and tot firmware, uboot command bdinfo shows the dram bank size as
0x000000003b400000which is <1G, but the rpi4 board has 4G of ram.However with kernel8.img in the firmware, linux kernel shows in
/proc/meminfocat
/proc/meminfo
Quoted 9 lines
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
Quoted 7 lines
-Thanks
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
Quoted 21 lines · Matthias Brugger
Hi,
Quoted 8 lines · Pi NewBie
With top of the tree(tot) uboot, and tot firmware, uboot command bdinfo shows the dram bank size as
0x000000003b400000which is <1G, but the rpi4 board has 4G of ram.However with kernel8.img in the firmware, linux kernel shows in
/proc/meminfocat
/proc/meminfoQuoted 9 lines
MemTotal:3999784 kB
MemFree: 3868044 kB
MemAvailable:3819600 kB
Does this current uboot does not yet support rpi with 4g ram?
Quoted 7 lines
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=2Happy 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
Quoted 10 lines
Regards,
MatthiasQuoted 7 lines
-Thanks
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot