盛科7132版本编译记录

7132编译总结:
1.新增具有root权限的用户,rootfs系统编译时不能使用root,否则很麻烦,编译出来后命令使用会出问题
  useradd zhuwei_new
  passwd zhuwei_new
  usermod -aG wheel zhuwei_new
  nano /etc/pam.d/su
     找到以下行:
          auth required pam_unix.so
      在这一行下面添加以下内容:
           auth sufficient pam_wheel.so trust use_uid
     保存退出
  echo "ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/zhuwei_new
  使更改生效:
  chmod 440 /etc/sudoers.d/zhuwei_new
  
  
2.在1操作后,在home目录下会生成zhuwei_new目录,
    将7132版本拷贝到zhuwei_new目录下,直接使用zhuwei_new用户编译内核和文件系统。
    cp -r ./configs/centec_64_defconfig ../output/rootfs/rootfs_output_64/.config
    ./ctc_mk.sh -c rootfs -a arm64 normal
    错误1:
    [zhuwei_new@VM-4-14-centos cldk-v20.11]$ ./ctc_mk.sh -c rootfs -a arm64 normal
    *********************** Start build rootfs ***********************
    ****** defconfig : centec_64_defconfig
    ****** target    : initramfs_data.cpio.gz rootfs.ext4 rootfs.jffs2
    ******************************************************************
      GEN     /home/zhuwei_new/cldk-v20.11/output/rootfs/rootfs_output_64/Makefile
    #
    # configuration written to /home/zhuwei_new/cldk-v20.11/output/rootfs/rootfs_output_64/.config
    #

    You have PERL_MM_OPT defined because Perl local::lib
    is installed on your system. Please unset this variable
    before starting Buildroot, otherwise the compilation of
    Perl related packages will fail
    make[1]: *** [core-dependencies] Error 1
    恢复变量:unset PERL_MM_OPT
    
    重新编译:./ctc_mk.sh -c rootfs -a arm64 normal
    
    错误2:
    [ 69%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmOrderDirectories.cxx.o
    g++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    make[4]: *** [Source/CMakeFiles/CMakeLib.dir/cmGeneratorTarget.cxx.o] Error 4
    make[4]: *** Waiting for unfinished jobs....
    make[3]: *** [Source/CMakeFiles/CMakeLib.dir/all] Error 2
    make[2]: *** [all] Error 2
    make[1]: *** [/home/zhuwei_new/cldk-v20.11/output/rootfs/rootfs_output_64/build/host-cmake-3.8.2/.stamp_built] Error 2
    make: *** [_all] Error 2
    
    解决办法:可能是ctc_mk.sh中build_linux4_19函数中使用-j24引起的,虚拟机只有2核,改成-j2,问题解决
    

 3.可能需要修改板卡类型,defualt类型。
   vim ./tools/uimage_linux4.19_rootfs64.its 
  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值