mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-11 22:33:29 +08:00
379a21b4f4
Add defconfig for the Khadas VIM3 board which uses a A311D SoC with a 4x ARM Cortex-A73 + 2x ARM Cortex-A53 big.LITTLE architecture. This defconfig includes the Linux mainline kernel version 6.3 as well as mainline uboot version 2023.04 with an in-tree .dts and uboot-defconfig. It also includes the host-tool amlogic-boot-fip which is necessary for signing the bootloader. This host tool is used in the post-image.sh script in order to generate the signed binary. This binary is then flashed to the final sdcard.img after it is generated using genimage. It is done in this way because the bootloader image needs to be flashed in 2 steps. First the first 444 bytes need to be flashed to the beginning of the sdcard.img, then we need to skip 68 bytes in the source and the destination and then write the remaining bootloader image to the sdcard.img. Ref: http://docs.khadas.com/products/sbc/vim3/development/create-bootable-tf-card Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr> [Romain: add BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_3=y add BR2_TARGET_UBOOT_NEEDS_OPENSSL=y add BR2_PACKAGE_HOST_DOSFSTOOLS=y for genimage vfat support ] Signed-off-by: Romain Naour <romain.naour@smile.fr>
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Architecture
|
|
BR2_aarch64=y
|
|
BR2_cortex_a73_a53=y
|
|
BR2_ARM_FPU_VFPV4=y
|
|
|
|
# Image
|
|
BR2_ROOTFS_POST_BUILD_SCRIPT="board/khadas/vim3/post-build.sh"
|
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/khadas/vim3/post-image.sh"
|
|
|
|
# Kernel
|
|
BR2_LINUX_KERNEL=y
|
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.3"
|
|
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
|
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-g12b-a311d-khadas-vim3"
|
|
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
|
|
|
# Linux headers same as kernel, a 6.3 series
|
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_3=y
|
|
|
|
# Filesystem
|
|
BR2_TARGET_ROOTFS_EXT2=y
|
|
BR2_TARGET_ROOTFS_EXT2_4=y
|
|
BR2_TARGET_ROOTFS_EXT2_SIZE="128M"
|
|
|
|
# Bootloader
|
|
BR2_TARGET_UBOOT=y
|
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.04"
|
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="khadas-vim3"
|
|
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
|
|
|
|
# Required tool to sign the bootloader image
|
|
BR2_PACKAGE_HOST_AMLOGIC_BOOT_FIP=y
|
|
BR2_PACKAGE_HOST_AMLOGIC_BOOT_FIP_DEVICE="khadas-vim3"
|
|
|
|
# Required tools to create the SD image
|
|
BR2_PACKAGE_DOSFSTOOLS=y
|
|
BR2_PACKAGE_HOST_GENIMAGE=y
|
|
BR2_PACKAGE_HOST_MTOOLS=y
|
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
|
|
|
# Supporting host tools to build FIT image
|
|
# BR2_PACKAGE_HOST_UBOOT_TOOLS=y
|
|
# BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
|