From: Matthias Brugger Date: Tue, 1 Oct 2019 16:39:05 +0200 Subject: [U-Boot] u-boot: raspberry pi 4 with 4G ram, bdinfo: dram bank size is < 1G In-Reply-To: <4ca59ca3-841f-a5ff-cd4c-ef48856012af@gmail.com> References: <4ca59ca3-841f-a5ff-cd4c-ef48856012af@gmail.com> Message-ID: <311f5f1b-4721-0c5b-bdb3-1637250a716c@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 at lists.denx.de >> https://lists.denx.de/listinfo/u-boot