[Bug 1847500] Re: Full RAM on Pi4 isn't accessible when using u-boot

satmandu 1847500 at bugs.launchpad.net
Tue Oct 15 17:49:51 UTC 2019


Whoops, I meant mainline u-boot using tag v2019.10.

(The ram restriction was more complicated on arm64 since there was some
bounce buffer voodoo that needed to be done, IIRC.)

git clone --depth 1 --branch v2019.10 https://github.com/u-boot/u-boot.git
cd u-boot
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j $(($(nproc) + 1))
sudo cp u-boot.bin /boot/firmware/uboot_rpi_4.bin

arm64 boot dmesg on arm64: https://paste.ubuntu.com/p/Z8Rn59Dsw3/

@rpi4:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           3806         689        2852          10         263        3052
Swap:          4095           0        4095

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/1847500

Title:
  Full RAM on Pi4 isn't accessible when using u-boot

Status in Release Notes for Ubuntu:
  Invalid
Status in u-boot package in Ubuntu:
  Fix Released
Status in u-boot source package in Eoan:
  Fix Released

Bug description:
  Booting the latest eoan daily on a Pi4 with >1Gb of RAM, only the
  first 1Gb of RAM appears accessible:

      ubuntu at ubuntu:~$ free
                    total        used        free      shared  buff/cache   available
      Mem:         931920      185484      504748        3664      241688      723820
      Swap:             0           0           0

  However, adjusting the config.txt so that the kernel is booted
  directly without u-boot in between results in the full 4Gb being
  accessible:

      ubuntu at ubuntu:~$ free
                    total        used        free      shared  buff/cache   available
      Mem:        3884464      189852     3457504        3656      237108     3636004
      Swap:             0           0           0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-release-notes/+bug/1847500/+subscriptions



More information about the foundations-bugs mailing list