os: Ubuntu 22.04.5 LTS
sdk版本:Luckfox_Lyra_SDK_250815.tar.gz
流程:
1 ./build.sh lunch 依次选择 [4] RK3506B_Luckfox_Lyra_Zero_W、 [1] SPI_NAND
2 ./build.sh
错误如下:
Buildroot config changed!
You might need to clean it before building:
rm -rf /home/leo/rk/buildroot/output/rockchip_rk3506_luckfox
Done in 5s (error code: 2)
Failed to build rockchip_rk3506_luckfox:
# 2026-01-06 23:36:29
2026-01-06T23:36:29 make: Entering directory '/home/leo/rk/buildroot'
2026-01-06T23:36:32 RKPARTYBOX_CONF_OPTS is
2026-01-06T23:36:33 /usr/bin/make -j1 O=/home/leo/rk/buildroot/output/rockchip_rk3506_luckfox HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2026-01-06T23:36:33 make[1]: Entering directory '/home/leo/rk/buildroot'
2026-01-06T23:36:33 GEN /home/leo/rk/buildroot/output/rockchip_rk3506_luckfox/Makefile
2026-01-06T23:36:33 make[1]: Leaving directory '/home/leo/rk/buildroot'
2026-01-06T23:36:33
2026-01-06T23:36:33 Your PATH contains spaces, TABs, and/or newline (\n) characters.
2026-01-06T23:36:33 This doesn't work. Fix you PATH.
2026-01-06T23:36:33 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
2026-01-06T23:36:33 make: Leaving directory '/home/leo/rk/buildroot'
Please check details in /home/leo/rk/output/sessions/2026-01-06_23-35-08/br-rockchip_rk3506_luckfox_2026-01-06_23-36-29.log
ERROR: Running /home/leo/rk/device/rockchip/common/scripts/mk-rootfs.sh - build_buildroot failed!
ERROR: exit code 1 from line 16:
"$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$IMAGE_DIR"
ERROR: call stack:
mk-rootfs.sh: build_buildroot(16)
mk-rootfs.sh: build_hook(311)
mk-rootfs.sh: main(340)
ERROR: Running /home/leo/rk/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 21:
"$RK_SCRIPTS_DIR/mk-rootfs.sh"
ERROR: call stack:
99-all.sh: build_all(21)
99-all.sh: build_hook(136)
build-helper: try_func(63)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
ERROR: Running /home/leo/rk/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
build_hook
ERROR: call stack:
build-helper: try_func(67)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
Buildroot 编译报错
您好,出现这种报错一般是WSL的环境变量和宿主机混用导致的,参考 viewtopic.php?p=461&hilit=Your+PATH+con ... paces#p461
原来是wsl中的path确实多了windows环境变量,有空格。官方文档也有提示, 我以为编译路径没空格就行,没意识到是同一个问题。
官方回复真及时,给你点赞。
因为我要做图形化启动,还有两个小问题:
1、如何关闭启动控制台文字输出?现在再启动lvgl(fbdev)程序,还是会有光标闪烁。
2、启动logo在哪里配置的,如何关闭?需要用psplash替换启动图。
非常感谢。
官方回复真及时,给你点赞。
因为我要做图形化启动,还有两个小问题:
1、如何关闭启动控制台文字输出?现在再启动lvgl(fbdev)程序,还是会有光标闪烁。
2、启动logo在哪里配置的,如何关闭?需要用psplash替换启动图。
非常感谢。
Last edited by Wilyte on 2026-01-17 3:53, edited 1 time in total.
1 内核配置关闭 CONIFG_VT, rootfs 修改 /etc/inittab 注释 “tty1::respawn:/sbin/getty 115200 tty1”
2 设备树 &route_dsi 节点设置为 disabled 关闭开机 LOGO 显示
2 设备树 &route_dsi 节点设置为 disabled 关闭开机 LOGO 显示

