Open Ripper346 opened 3 days ago
@Ripper346 thanks for the hint ;) reverse this patch in u-boot: https://github.com/armbian/build/blob/cc4513958fb01d0fcdafe96144d2da76bcd51427/patch/u-boot/u-boot-sunxi/opizero3-1.5GB-trim-from-u-boot-v2024.01.patch#L64
just restore the "return" instead of "size =" and the code flow works without 1.5G detection... more stable for me!
@tmoore22 after doing the patch, how do you build the new u-boot? I tried with make orangepi_zero3_defconfig; make all
but I don't know then what to do with all the files it makes. I tried also with the orangepi-build tool but it fails
[ o.k. ] Using config file [ /home/pi/orangepi-build/userpatches/config-example.conf ]
[ .... ] Extension being added [ sunxi-tools :: added by ./build.sh:305 -> scripts/main.sh:374 -> scripts/configuration.sh:151 -> external/config/sources/families/sun50iw9.conf:1 -> external/config/sources/families/include/sunxi64_common.inc:1 -> scripts/extensions.sh:0 ]
[ o.k. ] Extension manager [ processed 3 Extension Methods calls and 3 Extension Method implementations ]
[ o.k. ] Preparing [ host ]
[ o.k. ] Build host OS release [ noble ]
[ .... ] Installing build dependencies
[ o.k. ] Syncing clock [ cn.pool.ntp.org ]
[ o.k. ] Downloading sources
[ o.k. ] Checking git sources [ /home/pi/orangepi-build/u-boot v2024.01 ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ /home/pi/orangepi-build/external/cache/sources/arm-trusted-firmware-sunxi-mainline master ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ /home/pi/orangepi-build/external/cache/sources/sunxi-tools master ]
[ .... ] Up to date
[ o.k. ] Cleaning /home/pi/orangepi-build/output/debs for [ orangepizero3 next ]
[ o.k. ] Compiling ATF
[ o.k. ] Compiler version [ aarch64-linux-gnu-gcc 13 ]
[ o.k. ] Started patching process for [ atf sun50iw9-orangepizero3-next ]
[ o.k. ] Looking for user patches in [ userpatches/atf/atf-sun50iw9 ]
CC bl31/bl31_context_mgmt.c
CC bl31/bl31_main.c
CC bl31/interrupt_mgmt.c
CC bl31/bl31_traps.c
CC common/bl_common.c
[ error ] ERROR in function compile_atf [ ./build.sh:305 -> scripts/main.sh:632 -> scripts/main.sh:516 -> scripts/compilation.sh:86 -> scripts/general.sh:0 ]
[ error ] ATF compilation failed
[ o.k. ] Process terminated
It seems you might be missing some make params: make CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc) BL31=/path/to/trusted-firmware/build/sun50i-a64/debug/bl31.bin
From: Alessandro @.> Sent: 22 November 2024 23:27 To: orangepi-xunlong/u-boot-orangepi @.> Cc: Tim Moore @.>; Mention @.> Subject: Re: [orangepi-xunlong/u-boot-orangepi] Invalid DRAM detection [pi zero 3] (Issue #19)
@tmoore22https://github.com/tmoore22 after doing the patch, how do you build the new u-boot? I tried with make orangepi_zero3_defconfig; make all but I don't know then what to do with all the files it makes. I tried also with the orangepi-build tool but it fails
[ o.k. ] Using config file [ /home/pi/orangepi-build/userpatches/config-example.conf ]
[ .... ] Extension being added [ sunxi-tools :: added by ./build.sh:305 -> scripts/main.sh:374 -> scripts/configuration.sh:151 -> external/config/sources/families/sun50iw9.conf:1 -> external/config/sources/families/include/sunxi64_common.inc:1 -> scripts/extensions.sh:0 ]
[ o.k. ] Extension manager [ processed 3 Extension Methods calls and 3 Extension Method implementations ]
[ o.k. ] Preparing [ host ]
[ o.k. ] Build host OS release [ noble ]
[ .... ] Installing build dependencies
[ o.k. ] Syncing clock [ cn.pool.ntp.org ]
[ o.k. ] Downloading sources
[ o.k. ] Checking git sources [ /home/pi/orangepi-build/u-boot v2024.01 ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ /home/pi/orangepi-build/external/cache/sources/arm-trusted-firmware-sunxi-mainline master ]
[ .... ] Up to date
[ o.k. ] Checking git sources [ /home/pi/orangepi-build/external/cache/sources/sunxi-tools master ]
[ .... ] Up to date
[ o.k. ] Cleaning /home/pi/orangepi-build/output/debs for [ orangepizero3 next ]
[ o.k. ] Compiling ATF
[ o.k. ] Compiler version [ aarch64-linux-gnu-gcc 13 ]
[ o.k. ] Started patching process for [ atf sun50iw9-orangepizero3-next ]
[ o.k. ] Looking for user patches in [ userpatches/atf/atf-sun50iw9 ]
CC bl31/bl31_context_mgmt.c
CC bl31/bl31_main.c
CC bl31/interrupt_mgmt.c
CC bl31/bl31_traps.c
CC common/bl_common.c
[ error ] ERROR in function compile_atf [ ./build.sh:305 -> scripts/main.sh:632 -> scripts/main.sh:516 -> scripts/compilation.sh:86 -> scripts/general.sh:0 ]
[ error ] ATF compilation failed
[ o.k. ] Process terminated
- Reply to this email directly, view it on GitHubhttps://github.com/orangepi-xunlong/u-boot-orangepi/issues/19#issuecomment-2494975797, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIPU5JIX75KYUUMLT2H3CT2B6VUPAVCNFSM6AAAAABSCXIVSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJUHE3TKNZZG4. You are receiving this because you were mentioned.Message ID: @.**@.>>
Hi, I have a problem with the u-boot shipped with Ubuntu and Debian images. I have a stock of Orange Pi Zero 3 with 2GB of RAM and this is happening on the batch 24-01 (I don't know if it is important but I would like to specify it). The problem is that u-boot is detecting 4GB of RAM almost at every boot and this then breaks the system. From the serial output I get the log below. Do you think there is a way to fix the issue or even to hardcode the size? I had this problem with also the previous version of u-boot since the ubuntu image was updated last October. Also, the u-boot in SPI, version 2018.05, always detects the correct amount.