Problem: Setting Uboot custom version does not apply defconfig
Hello,
I am having issues using the custom uboot version feature: When setting a custom uboot version value and a particular uboot defconfig, buildroot seems to NOT apply the uboot defconfig properly, i.e. there is no .config in the uboot build folder. This is the error I get (further below my settings):
Quoted 1 line
Quoted 1 line
Quoted 1 line
uboot 2023.07-rc4 Patching
for p in ; do if test -d $p ; then PATH=/home/zinnecker/buildroot-test/ buildroot/output/host/bin:$PATH support/scripts/apply-patches.sh /home/ zinnecker/buildroot-test/buildroot/output/build/uboot-2023.07-rc4 $p \*.patch || exit 1 ; els
e PATH=/home/zinnecker/buildroot-test/buildroot/output/host/bin:$PATH support/ scripts/apply-patches.sh /home/zinnecker/buildroot-test/buildroot/output/ build/uboot-2023.07-rc4 dirname $p basename $p || exit 1; fi done
HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig").
***
make[5]: *** [scripts/kconfig/Makefile:75: syncconfig] Error 1 make[4]: *** [Makefile:576: syncconfig] Error 2
make[3]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
make[2]: *** [Makefile:558: __build_one_by_one] Error 2 make[1]: *** [boot/uboot/uboot.mk:553: /home/zinnecker/buildroot-test/ buildroot/output/build/uboot-2023.07-rc4/.stamp_dotconfig] Error 2
make: *** [Makefile:82: _all] Error 2
What I did: I want to use a fairly new uboot ("2023.07-rc4") because it features a defconfig for a particular board ("rock5b-rk3588_defconfig"). I therefore use the following settings in my buildroot board defconfig / .config:
BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.07-rc4" BR2_TARGET_UBOOT_USE_DEFCONFIG=y BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rock5b-rk3588"
The particular version of uboot features the particular defconfig. Also, with theses settings the uboot version 2023.07-rc4 is downloaded and the rock5b- rk3588_defconfig is present in buildroot/output/build/uboot-2023.07-rc4/ configs/. However, as said previously, it seems like the rock5b-rk3588_defconfig is not applied. I don't know whether I am doing something wrong here, or whether it is a bug. I appreciate all help.
Best regards,
Kilian
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Kilian, All,
On 2023-06-25 14:33 +0200, Kilian Zinnecker via buildroot spake thusly:
Quoted 40 lines
I am having issues using the custom uboot version feature: When setting a custom uboot version value and a particular uboot defconfig, buildroot seems to NOT apply the uboot defconfig properly, i.e. there is no .config in the uboot build folder. This is the error I get (further below my settings):
Quoted 1 line
Quoted 1 line
Quoted 1 line
uboot 2023.07-rc4 Patching
for p in ; do if test -d $p ; then PATH=/home/zinnecker/buildroot-test/ buildroot/output/host/bin:$PATH
support/scripts/apply-patches.sh/home/zinnecker/buildroot-test/buildroot/output/build/uboot-2023.07-rc4 $p \*.patch || exit 1 ; els
e PATH=/home/zinnecker/buildroot-test/buildroot/output/host/bin:$PATH support/scripts/apply-patches.sh/home/zinnecker/buildroot-test/buildroot/output/build/uboot-2023.07-rc4dirname $pbasename $p|| exit 1; fi doneHOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c LEX scripts/kconfig/zconf.lex.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf
scripts/kconfig/conf--syncconfigKconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig").
***
make[5]: *** [scripts/kconfig/Makefile:75: syncconfig] Error 1 make[4]: *** [Makefile:576: syncconfig] Error 2
make[3]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
make[2]: *** [Makefile:558:__build_one_by_one] Error 2 make[1]: *** [boot/uboot/uboot.mk:553:/home/zinnecker/buildroot-test/buildroot/output/build/uboot-2023.07-rc4/.stamp_dotconfig] Error 2
make: *** [Makefile:82:_all] Error 2What I did: I want to use a fairly new uboot ("2023.07-rc4") because it features a defconfig for a particular board ("rock5b-rk3588_defconfig"). I therefore use the following settings in my buildroot board defconfig / .config:
Quoted 6 lines
BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.07-rc4" BR2_TARGET_UBOOT_USE_DEFCONFIG=y BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rock5b-rk3588"
Looks like it is working as expected here, with this defconfig:
BR2_aarch64=y
BR2_cortex_a76_a55=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.07-rc4"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rock5b-rk3588"
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
BR2_TARGET_UBOOT_NEEDS_OPENSSL=yNote that the build fails much later, because it can't find rockchip-tpl.bin; see tools/binman/missing-blob-help for some hint on how to fix that.
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Yann,
thanks for your answer.
Quoted 14 lines
Looks like it is working as expected here, with this defconfig:
BR2_aarch64=y BR2_cortex_a76_a55=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TARGET_UBOOT=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.07-rc4" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rock5b-rk3588" BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
Thanks, it does work now! I was missing the openssl dependency and had some other uboot settings, which I removed. However, I don't understand what exactly then went wrong, such that the uboot .config was not present ... well, it does work now :)
Quoted 5 lines
Note that the build fails much later, because it can't find rockchip-tpl.bin; see
tools/binman/missing-blob-helpfor some hint on how to fix that.
Yes! Some ATF binaries are missing, which are provided by Rockchip as binary blobs. I am currently trying to prepare a buildroot package for those, such that the needed binaries are present for uboot at build. There is already a discussion about it, see email with the subject "Interested in board support for Radxa Rock 5b" on the buildroot mailing list.
Best regards and thanks alot,
Kilian
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot