Just noticed that .config contains
BR2_KERNEL_HEADERS_5_15=y as specified, whereas buildroot has this in
configs/raspberrypi4_64_defconfig:
Code:
# Linux headers same as kernel, a 5.10 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
. This is current 'buildconfig stable'.
End of update, original follows.
Feels like a top level misconfiguration/omission, but nothing looks out of place to me. Any pointer to start digging appreciated.
First run w buildroot, running under slack 15.0 x86_64 w .34 kernel bump.
The error:
Code:
...
barebox-2021.12.0.tar.bz2: OK (sha256: 555569fe9e71524e0bf927eaa2c1aa2e81ee2c34dd71e39fe21620db6ccc8aa6)
>>> barebox 2021.12.0 Extracting
bzcat /big/arm/buildroot-2022.02.1/dl/barebox/barebox-2021.12.0.tar.bz2 | tar --strip-components=1 -C /big/arm/buildroot-2022.02.1/output/build/barebox-2021.12.0 -xf -
>>> barebox 2021.12.0 Patching
make[1]: Entering directory '/big/arm/buildroot-2022.02.1/output/build/barebox-2021.12.0'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/menu.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/arm/configs/raspberrypi4_64_defconfig"!
***
make[2]: *** [/big/arm/buildroot-2022.02.1/output/build/barebox-2021.12.0/scripts/kconfig/Makefile:94: raspberrypi4_64_defconfig] Error 1
make[1]: *** [Makefile:530: raspberrypi4_64_defconfig] Error 2
make[1]: Leaving directory '/big/arm/buildroot-2022.02.1/output/build/barebox-2021.12.0'
make: *** [boot/barebox/barebox/barebox.mk:9: /big/arm/buildroot-2022.02.1/output/build/barebox-2021.12.0/.stamp_dotconfig] Error 2
Code:
xyzzy@video:/big/arm/buildroot-2022.02.1$ ls -l configs/raspberrypi4_64_defconfig
-rw-r--r-- 1 xyzzy users 1181 Apr 11 14:49 configs/raspberrypi4_64_defconfig
xyzzy@video:/big/arm/buildroot-2022.02.1$ grep raspb .config
BR2_DEFCONFIG="/big/arm/buildroot-2022.02.1/configs/raspberrypi4_64_defconfig"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi4-64/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi4-64/post-image.sh"
BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi4-64/config_4_64bit.txt"
BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="raspberrypi4_64"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="raspberrypi4_64"
The script was looking for
arch/arm/configs/raspberrypi4_64_defconfig, which is not in arch.
Code:
xyzzy@video:/big/arm/buildroot-2022.02.1$ ls -l arch
total 148
-rw-r--r-- 1 xyzzy users 12286 Apr 11 14:49 Config.in
-rw-r--r-- 1 xyzzy users 3190 Apr 11 14:49 Config.in.arc
-rw-r--r-- 1 xyzzy users 28776 Apr 11 14:49 Config.in.arm
-rw-r--r-- 1 xyzzy users 1009 Apr 11 14:49 Config.in.csky
-rw-r--r-- 1 xyzzy users 779 Apr 11 14:49 Config.in.m68k
-rw-r--r-- 1 xyzzy users 431 Apr 11 14:49 Config.in.microblaze
-rw-r--r-- 1 xyzzy users 7295 Apr 11 14:49 Config.in.mips
-rw-r--r-- 1 xyzzy users 309 Apr 11 14:49 Config.in.nds32
-rw-r--r-- 1 xyzzy users 214 Apr 11 14:49 Config.in.nios2
-rw-r--r-- 1 xyzzy users 212 Apr 11 14:49 Config.in.or1k
-rw-r--r-- 1 xyzzy users 5388 Apr 11 14:49 Config.in.powerpc
-rw-r--r-- 1 xyzzy users 2927 Apr 11 14:49 Config.in.riscv
-rw-r--r-- 1 xyzzy users 517 Apr 11 14:49 Config.in.s390x
-rw-r--r-- 1 xyzzy users 798 Apr 11 14:49 Config.in.sh
-rw-r--r-- 1 xyzzy users 848 Apr 11 14:49 Config.in.sparc
-rw-r--r-- 1 xyzzy users 18737 Apr 11 14:49 Config.in.x86
-rw-r--r-- 1 xyzzy users 1367 Apr 11 14:49 Config.in.xtensa
-rw-r--r-- 1 xyzzy users 971 Apr 11 14:49 arch.mk
-rw-r--r-- 1 xyzzy users 541 Apr 11 14:49 arch.mk.arc
-rw-r--r-- 1 xyzzy users 470 Apr 11 14:49 arch.mk.csky
-rw-r--r-- 1 xyzzy users 590 Apr 11 14:49 arch.mk.riscv
-rw-r--r-- 1 xyzzy users 1621 Apr 11 14:49 arch.mk.xtensa
Code:
xyzzy@video:/big/arm/buildroot-2022.02.1$ cat configs/raspberrypi4_64_defconfig
BR2_aarch64=y
BR2_cortex_a72=y
BR2_ARM_FPU_VFPV4=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_SYSTEM_DHCP="eth0"
# Linux headers same as kernel, a 5.10 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,0b54dbda3cca2beb51e236a25738784e90853b64)/linux-0b54dbda3cca2beb5
1e236a25738784e90853b64.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
# Build the DTB from the kernel sources
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
BR2_PACKAGE_RPI_FIRMWARE=y
BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4=y
BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi4-64/config_4_64bit.txt"
# Required tools to create the SD image
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y
# Filesystem / image
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi4-64/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi4-64/post-image.sh"