• 编译rk3588_buildroot报错


    报错内容:
    
    #
    # No change to .config
    #
      CALL    scripts/atomic/check-atomics.sh
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
    fatal: not a git repository (or any of the parent directories): .git
      LZ4C    arch/arm64/boot/Image.lz4
    Incorrect parameters
    Usage :
          lz4 [arg] [input] [output]
    
    input   : a filename
              with no FILE, or when FILE is - or stdin, read standard input
    Arguments :
     -1     : Fast compression (default) 
     -9     : High compression 
     -d     : decompression (default for .lz4 extension)
     -z     : force compression
     -f     : overwrite output without prompting 
     -h/-H  : display help/long help and exit
    arch/arm64/boot/Makefile:31: recipe for target 'arch/arm64/boot/Image.lz4' failed
    make[2]: *** [arch/arm64/boot/Image.lz4] Error 1
    make[2]: *** Deleting file 'arch/arm64/boot/Image.lz4'
    arch/arm64/Makefile:170: recipe for target 'Image.lz4' failed
    make[1]: *** [Image.lz4] Error 2
    make[1]: *** Waiting for unfinished jobs....
    arch/arm64/Makefile:214: recipe for target 'rk3588-evb2-lp4-v10-edp-linux.img' failed
    make: *** [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
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34

    在这里插入图片描述

    1.对于报错:
    fatal: not a git repository (or any of the parent directories): .git
    2.解决办法:
    sudo git init
    
    • 1
    • 2
    • 3
    • 4

    在这里插入图片描述

    2.关于lz4报错的问题,我在网上查了,根据一个大佬的见解,应该是版本跟不上吧,我是通过以下方法解决的:
    sudo apt-get remove  liblz4-tool
    sudo git clone https://github.com/lz4/lz4.git
    cd /lz4
    sudo make
    sudo make install
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    在这里插入图片描述

    补充解决办法:
    遇到这个问题的时候我是自己搭建的虚拟机,可以去服务器上拷贝这个文件到虚拟机里,或者使用以下的方法,拷贝Android12编译出来的LZ4.
    
    
    • 1
    • 2
    • 3

    在这里插入图片描述

  • 相关阅读:
    微信小程序关注公众号
    4、Jvm(栈)
    Linux: 会话登录超时的一些改动
    IK学习笔记(2)——TwoBones IK
    Oracle Merge Into ORA-00001: unique constaint violated问题
    vue 路由钩子
    java--拼图游戏
    NDK交叉编译
    Ambari环境准备需要哪些_大数据培训
    python3基础知识复习 --异步IO(asyncio,aiohttp)
  • 原文地址:https://blog.csdn.net/YY2065/article/details/126490272