[Bug 1848230] Re: uboot_rpi_4.bin doesn't show 4Gb RAM on rpi4, needs update to u-boot/v2019.10

Dave Jones dave.jones at canonical.com
Fri Apr 17 18:58:48 UTC 2020


** Changed in: u-boot (Ubuntu Eoan)
       Status: New => Fix Released

** Changed in: u-boot (Ubuntu)
       Status: New => Fix Released

-- 
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/1848230

Title:
  uboot_rpi_4.bin doesn't show 4Gb RAM on rpi4, needs update to
  u-boot/v2019.10

Status in u-boot package in Ubuntu:
  Fix Released
Status in u-boot source package in Eoan:
  Fix Released

Bug description:
  u-boot-rpi:arm64 installs uboot_rpi_4.bin into /boot/firmware and uses
  that to boot as per entries in /boot/firmware/config.txt

  While this version boots arm64 eoan using a recent rpi kernel, it
  doesn't show all 4Gb of RAM on the 4GB versions of the rpi4, only
  showing 1Gb.

  Updating u-boot to the recently tagged v2019.10 DOES allow u-boot to
  load linux kernels which can show all 4Gb of ram.

  I've replaced the /boot/firmware/uboot_rpi_4.bin with a more recently
  compiled version of u-boot thus and am seeing all 4Gb.

  This is (-ish) how I get a working u-boot on an arm64 system. (Some of
  the options are not needed, but I'm trying to be future-proof.)

      sudo apt install bison flex build-essential -y
      cd /tmp
      git clone --depth 1 --branch v2019.10 https://github.com/u-boot/u-boot.git
      cd u-boot
      echo "CONFIG_SUPPORT_RAW_INITRD=y" >> configs/rpi_4_defconfig
      echo "CONFIG_ENV_IS_IN_FAT=y" >> configs/rpi_4_defconfig
      sed -i 's/CONFIG_OF_EMBED/CONFIG_OF_BOARD/' configs/rpi_4_defconfig
      echo "CONFIG_LZ4=y" >> configs/rpi_4_defconfig
      echo "CONFIG_GZIP=y" >> configs/rpi_4_defconfig
      echo "CONFIG_BZIP2=y" >> configs/rpi_4_defconfig
      echo "CONFIG_SYS_LONGHELP=y" >> configs/rpi_4_defconfig
      echo "CONFIG_REGEX=y" >> configs/rpi_4_defconfig
      echo "CONFIG_CMD_ZFS=y" >> configs/rpi_4_defconfig
      echo "CONFIG_FS_BTRFS=y" >> configs/rpi_4_defconfig
      echo "CONFIG_FS_EXT4=y" >> configs/rpi_4_defconfig
      echo "CONFIG_FS_FAT=y" >> configs/rpi_4_defconfig
      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
      if [[ -L "/lib" && -d "/lib" ]]
      then
         sudo mkdir -p /usr/lib/u-boot/rpi_4/ && sudo cp u-boot.bin \
         /usr/lib/u-boot/rpi_4/u-boot.bin
      else
         sudo mkdir -p /lib/u-boot/rpi_4/ && sudo cp u-boot.bin \
         /lib/u-boot/rpi_4/u-boot.bin
      fi

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: u-boot-rpi 2019.07+dfsg-1ubuntu3 [modified: usr/lib/u-boot/rpi_4/u-boot.bin]
  Uname: Linux 4.19.79-v8-g047589b6d-pr3280 aarch64
  NonfreeKernelModules: zfs zunicode zlua zcommon znvpair zavl icp spl
  ApportVersion: 2.20.11-0ubuntu8
  Architecture: arm64
  Date: Tue Oct 15 12:25:13 2019
  Dependencies:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: u-boot
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/1848230/+subscriptions



More information about the foundations-bugs mailing list