百度盘下载 buildroot-100ask_t113-pro 后,根据教程,编译
buildroot 出现 Can’t find default configuration “arch/arm/configs/sun8iw20p1smp_t113_auto_defconfig”!
搜索了一下 ,在目录 buildroot-100ask_t113-pro/buildroot/dl/linux/git/arch/arm/configs 下 是有这个文件的。
你好,请问你最后是怎么解决这个问题的?我在使用Buildroot源码(源码是在百度网盘上下载的完整压缩包)进行编译的时候,spinand镜像可以正常编译出来,如下是最后的log:
-----------------dragon pack--------------------------
/home/liefyuan/Liefyuan/buildroot-100ask_t113-pro/buildroot/output/images/
/home/liefyuan/Liefyuan/buildroot-100ask_t113-pro/buildroot/output/images
Begin Parse sys_partion.fex
Add partion boot-resource.fex BOOT-RESOURCE_FEX
Add partion very boot-resource.fex BOOT-RESOURCE_FEX
FilePath: boot-resource.fex
FileLength=200000Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=475800Add partion rootfs-ubifs.fex ROOTFS-UBIFS_FEX
Add partion very rootfs-ubifs.fex ROOTFS-UBIFS_FEX
FilePath: rootfs-ubifs.fex
FileLength=1dc7000Add partion dsp0.fex DSP0_FEX00000000
Add partion very dsp0.fex DSP0_FEX00000000
FilePath: dsp0.fex
FileLength=3fc78BuildImg 0
Dragon execute image.cfg SUCCESS !
real 17m12.280s
user 74m25.258s
sys 14m32.679s
编译SD卡最小系统镜像就报错如下:
...
/usr/bin/gcc -Wp,-MD,scripts/kconfig/.lexer.lex.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 -I ./scripts/kconfig -c -o scripts/kconfig/lexer.lex.o scripts/kconfig/lexer.lex.c
/usr/bin/gcc -Wp,-MD,scripts/kconfig/.parser.tab.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 -I ./scripts/kconfig -c -o scripts/kconfig/parser.tab.o scripts/kconfig/parser.tab.c
/usr/bin/gcc -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/confdata.o scripts/kconfig/expr.o scripts/kconfig/lexer.lex.o scripts/kconfig/parser.tab.o scripts/kconfig/preprocess.o scripts/kconfig/symbol.o
scripts/kconfig/conf --defconfig=arch/arm/configs/sun8iw20p1smp_t113_auto_defconfig Kconfig
***
*** Can't find default configuration "arch/arm/configs/sun8iw20p1smp_t113_auto_defconfig"!
***
scripts/kconfig/Makefile:90: recipe for target 'sun8iw20p1smp_t113_auto_defconfig' failed
make[3]: *** [sun8iw20p1smp_t113_auto_defconfig] Error 1
Makefile:590: recipe for target 'sun8iw20p1smp_t113_auto_defconfig' failed
make[2]: *** [sun8iw20p1smp_t113_auto_defconfig] Error 2
linux/linux.mk:597: recipe for target '/home/liefyuan/Liefyuan/buildroot-100ask_t113-pro/buildroot/output/build/linux-origin_master/.stamp_dotconfig' failed
make[1]: *** [/home/liefyuan/Liefyuan/buildroot-100ask_t113-pro/buildroot/output/build/linux-origin_master/.stamp_dotconfig] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
real 14m21.868s
user 51m4.585s
sys 9m54.995s
我也查找了该文件,是存在的。
buildroot-100ask_t113-pro$ find ./ -name "sun8iw20p1smp_t113_auto_defconfig"
./buildroot/dl/linux/git/arch/arm/configs/sun8iw20p1smp_t113_auto_defconfig
参考下图所示,修改 buildroot源码目录下的 .config文件
找到 箭头所指两行位置,把原来的 origin/master 修改为
dc6e999b53b3994078cff097ca569a3143660185
修改完成后,保存退出,继续执行 make 编译命令。
注意:编译过程中需要联网