U-Boot memory detection error on BeagleBoard-xM.

Just installed Bookworm and a 6.6.x kernel on my BeagleBoard-xM. No bootloader for the omap3-beagleboard has been built for Bookworm, so I had to use my old 2018.03 bootloader from Bullseye, which worked fine. I then discovered there was a 2023.10-rc4 U-Boot from September, 2023 and tried booting with that. That booted fine, except the DRAM was half of what it should have been. The problem is U-Boot and not the kernel. Below are the banners from both U-Boot versions. I have a small armada of BeagleBoard-xM boards that I use actively. For now, I will stick with the 2018 U-Boot. I could post the ‘printenv’ from each, but not sure that matters since the DRAM is detected incorrectly so early in U-Boot coming up. Thanks for all the great work RCN!

U-Boot 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500), Build: jenkins-github_Bootloader-Builder-49
OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 800 MHz
Model: TI OMAP3 BeagleBoard
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0

U-Boot 2023.10-rc4 (Sep 05 2023 - 19:35:19 +0000)
OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 800 MHz
Model: TI OMAP3 BeagleBoard
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
Core: 44 devices, 18 uclasses, devicetree: separate
NAND: 0 MiB
MMC: OMAP SD/MMC: 0

1 Like

Correct, i’ve seen this too last time i built it, never ran git bisect to figure out when it broke.

I have looked through every U-Boot git repo that I can find and come up empty finding commit 21a26066ea. Could you help me find it? This U-Boot SPL version is the only one where the second stage U-Boot detects 512MB. Trying to use any other SPL version detects only 256MB. Based on my first run through of source code. My current idea is that maybe reading of the EMIF and SDRC registers give incorrect results when using a newer SPL. Would really like to get this tracked down. Thanks.

it would have been this patch: Bootloader-Builder/patches/v2018.03/0001-omap3_beagle-uEnv.txt-bootz-n-fixes.patch at master · RobertCNelson/Bootloader-Builder · GitHub

Regards,

1 Like