* [Buildroot] Problem: Setting Uboot custom version does not apply defconfig
@ 2023-06-25 12:33 Kilian Zinnecker via buildroot
2023-06-25 13:02 ` Yann E. MORIN
0 siblings, 1 reply; 3+ messages in thread
From: Kilian Zinnecker via buildroot @ 2023-06-25 12:33 UTC (permalink / raw)
To: buildroot
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):
>>> 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
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] Problem: Setting Uboot custom version does not apply defconfig
2023-06-25 12:33 [Buildroot] Problem: Setting Uboot custom version does not apply defconfig Kilian Zinnecker via buildroot
@ 2023-06-25 13:02 ` Yann E. MORIN
2023-06-25 14:31 ` Kilian Zinnecker via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2023-06-25 13:02 UTC (permalink / raw)
To: Kilian Zinnecker; +Cc: buildroot
Kilian, All,
On 2023-06-25 14:33 +0200, Kilian Zinnecker via buildroot spake thusly:
> 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):
>
> >>> 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"
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
Note 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.
--
.-----------------.--------------------.------------------.--------------------.
| 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
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] Problem: Setting Uboot custom version does not apply defconfig
2023-06-25 13:02 ` Yann E. MORIN
@ 2023-06-25 14:31 ` Kilian Zinnecker via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Kilian Zinnecker via buildroot @ 2023-06-25 14:31 UTC (permalink / raw)
To: Yann E. MORIN, buildroot
Hello Yann,
thanks for your answer.
>
> 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 :)
>
> Note 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.
>
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
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-25 14:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-25 12:33 [Buildroot] Problem: Setting Uboot custom version does not apply defconfig Kilian Zinnecker via buildroot
2023-06-25 13:02 ` Yann E. MORIN
2023-06-25 14:31 ` Kilian Zinnecker via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.