• ubuntu21.04 + 编译 debian11 报错解决过程


    1. 
    apt-get install repo git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath    diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip   device-tree-compiler ncurses-dev
    
    2.
    ./build.sh lunch
    
    
    3.
    ./build.sh uboot
    
    报错:
    ERROR: No python2
    ERROR: Running build_uboot failed!
    ERROR: exit code 1 from line 590:
        ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS CROSS_COMPILE=$CROSS_COMPILE
    
    解决:
    sudo apt-get install python2
    
    
    4. 
    ./build.sh kernel
    
    报错:
    /usr/bin/env: ‘python’  CC      scripts/mod/devicetable-offsets.s
    : No such file or directory
    make[2]: *** [scripts/Makefile.build:273: scripts/mod/empty.o] Error 127
    make[2]: *** Waiting for unfinished jobs....
    /usr/bin/env: ‘python’: No such file or directory
    make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 127
    make[1]: *** [Makefile:1321: prepare0] Error 2
    make: *** [arch/arm64/Makefile:214: rk3588-evb2-lp4-v10-edp-linux.img] Error 2
    ERROR: Running build_kernel failed!
    ERROR: exit code 2 from line 656:
        make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
    
    解决:
    sudo apt install python-is-python3
    
    5.
    ./build.sh recovery
    
    6.
    cd debian
    
    sudo apt-get install binfmt-support qemu-user-static live-build
    sudo dpkg -i ubuntu-build-service/packages/*
    
    sudo apt-get install -f
    
    RELEASE=bullseye TARGET=desktop ARCH=arm64 ./mk-base-debian.sh
    
    VERSION=debug ARCH=arm64 ./mk-rootfs-bullseye.sh
    
    ./mk-image.sh
    
    7. 
    
    ./mkfirmware.sh 
    
    报错:
    make: Entering directory '/home/debian11/linux/buildroot'
      GEN     /home/debian11/linux/buildroot/output/rockchip_rk3588/Makefile
    /home/debian11/linux/buildroot/build/defconfig_hook.py -m /home/debian11/linux/buildroot/configs/rockchip_rk3588_defconfig /home/debian11/linux/buildroot/output/rockchip_rk3588/.rockchipconfig
    /usr/bin/env: ‘python’: No such file or directory
    make[1]: *** [Makefile:1042: rockchip_rk3588_defconfig] Error 127
    make: *** [Makefile:88: _all] Error 2
    make: Leaving directory '/home/debian11/linux/buildroot'
    
    解决:
    sudo apt install python-is-python3
    
    ./mkfirmware.sh 
    export RK_ROOTFS_SYSTEM=debian
    
    ./build.sh updateimg
    
    
    
    
    
  • 相关阅读:
    数字媒体概论——声音
    SpringBoot中公共字段的自动填充
    Ubuntu22.04开启后屏幕黄屏
    10、MySQL-索引
    Worthington木瓜蛋白酶化学性质和特异性
    通过CMD快速安装VNC服务器,无ico
    ​EtherNet/IP 库卡机器人和EtherCAT倍福PLC总线协议连接案例​
    Mysql其他日志
    动态规划--01背包问题详解
    1-VSCode搭建GD32开发环境
  • 原文地址:https://blog.csdn.net/YY2065/article/details/126957096