“Buildroot trouble shootings”的版本间的差异

来自个人维基
跳转至: 导航搜索
(以“1. toolchain-external-custom Configuring Incorrect selection of kernel headers: expected 4.10.x, got 4.20.x => toolchain 配置错误, modify configd/defconfig <...”为内容创建页面)

2023年6月29日 (四) 15:39的版本

1. toolchain-external-custom Configuring

  Incorrect selection of kernel headers: expected 4.10.x, got 4.20.x

=> toolchain 配置错误, modify configd/defconfig

BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_PATH="/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="aarch64-linux-gnu"
BR2_TOOLCHAIN_EXTERNAL_GCC_7=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y

To check kernel headers version of the toolchain:
cat /opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/include/linux/version.h

#define LINUX_VERSION_CODE 264707 (=0x040a03)

Match the required version 4.10

2. Download package too slow
Use download_cache, add

BR2_DL_DIR="/data/download_cache/buildroot"