本帖最后由 httb88 于 2023-9-4 21:45 编辑 我按照官方wiki配置的编译环境。编译uboot出错,编译kernel和recovery无异常。 求大佬指点,谢谢! ./build.sh uboot 错误信息如下: COPY spl/u-boot-spl.bin CFGCHK u-boot.cfg awk: line 2: function strtonum never defined ERROR: Running build_uboot failed! ERROR: exit code 2 from line 522: ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS 已解决: 问题出现在:awk: line 2: function strtonum never defined 解决办法:sudo apt-get install gawk 目录结构 t@N5110:~/proj/rk3288_linux_release_v2.5.0a_20230510$ tree -L 1. ├── app ├── buildroot ├── build.sh -> device/rockchip/common/build.sh ├── device ├── docs ├── envsetup.sh -> buildroot/build/envsetup.sh ├── external ├── kernel ├── Makefile -> buildroot/build/Makefile ├── mkfirmware.sh -> device/rockchip/common/mkfirmware.sh ├── prebuilts ├── rkbin ├── rkflash.sh -> device/rockchip/common/rkflash.sh ├── rockdev ├── tools └── u-boot 编译前配置 t@N5110:~/proj/rk3288_linux_release_v2.5.0a_20230510$ ./build.sh firefly-rk3288-ubuntu.mk processing option: firefly-rk3288-ubuntu.mk switching to board: /home/tang/proj/rk3288_linux_release_v2.5.0a_20230510/device/rockchip/rk3288/firefly-rk3288-ubuntu.mk t@N5110:~/proj/rk3288_linux_release_v2.5.0a_20230510$ vim device/rockchip/.BoardConfig.mk #!/bin/bash CMD=`realpath $BASH_SOURCE` CUR_DIR=`dirname $CMD` source $CUR_DIR/BoardConfig.mk # Uboot defconfig export RK_UBOOT_DEFCONFIG=firefly-rk3288 # Kernel defconfig export RK_KERNEL_DEFCONFIG=firefly_linux_defconfig # Kernel dts export RK_KERNEL_DTS=rk3288-firefly # PRODUCT MODEL export RK_PRODUCT_MODEL=FIREFLY_RK3288 # parameter for GPT table export RK_PARAMETER=parameter-ubuntu.txt # packagefile for pack image files export RK_PACKAGE_FILE=rk3288-ubuntu-package-file # Set rootfs type, including ext2 ext4 squashfs export RK_ROOTFS_TYPE=ext4 # rootfs image path |
-
2.5 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1