zoukankan      html  css  js  c++  java
  • 关于 manjaro20 gcc10 编译 rk1126 sdk 的一些可恶的问题。

    我的机器软件体系都会比较新。

    [dls@dls-pc ~]$ uname -a
    Linux dls-pc 5.4.80-2-MANJARO #1 SMP PREEMPT Sat Nov 28 09:58:18 UTC 2020 x86_64 GNU/Linux
    [dls@dls-pc ~]$ 
    

    如果觉得自己没有能力解决编译过程中的问题,建议用官方推荐的 Ubuntu16 & 17 进行编译。

    • 编译用 ./build.sh 烧录用 ./rkflash.sh 。

    • gcc 过高会出现 mksquashfs 的问题,自行改一下 bwriter_buffer 和 fwriter_buffer 为 extern 变量。

    /usr/bin/ld: restore.o:(.bss+0x8): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x400bf0): first defined here /usr/bin/ld: process_fragments.o:(.bss+0x0): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x400be8): first defined here /usr/bin/ld: process_fragments.o:(.bss+0x8): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x400bf0): first defined here /usr/bin/ld: xattr.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x400be8): first defined here /usr/bin/ld: xattr.o:(.bss+0x10): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x400bf0): first defined here
    
    /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/buildroot/output/rockchip_rv1126_rv1109/host/bin/fakeroot -- /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/buildroot/output/rockchip_rv1126_rv1109/build/rk_oem/oem_fakeroot.fs
    chown: 无效的用户: “www-data:www-data”
    

    最终结果如下:

    /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/buildroot/output/rockchip_rv1126_rv1109/.rockchipconfig:141:warning: override: reassigning to symbol BR2_PACKAGE_RKWIFIBT
    #
    # configuration written to /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/buildroot/output/rockchip_rv1126_rv1109/.config
    #
    make: Leaving directory '/home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/buildroot'
    2021-01-31T00:59:25 >>>   Finalizing target directory
    2021-01-31T00:59:27 >>>   Sanitizing RPATH in target tree
    2021-01-31T00:59:36 >>>   Copying overlay board/rockchip/common/base
    2021-01-31T00:59:36 >>>   Copying overlay board/rockchip/common/wifi
    2021-01-31T00:59:36 >>>   Copying overlay board/rockchip/rv1126_rv1109/fs-overlay/
    2021-01-31T00:59:36 >>>   Copying overlay board/rockchip/rv1126_rv1109/fs-overlay-sysv/
    2021-01-31T00:59:36 >>>   Executing post-build script build/post.sh
    2021-01-31T00:59:37 >>>   Generating root filesystem image rootfs.cpio
    2021-01-31T01:00:04 >>>   Generating root filesystem image rootfs.ext2
    2021-01-31T01:00:06 >>>   Generating root filesystem image rootfs.squashfs
    2021-01-31T01:00:12 >>>   Generating root filesystem image rootfs.tar
    2021-01-31T01:00:13 >>>   Generating root filesystem image rootfs.ubifs
    2021-01-31T01:00:36 >>>   Generating root filesystem image rootfs.ubi
    Done in 1min 19s
    log saved on /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/br.log. pack buildroot image at: /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/buildroot/output/rockchip_rv1126_rv1109/images/rootfs.ext4
    you take 1:20.61 to build builroot
    ====Build buildroot ok!====
    ls: cannot access 'buildroot/output/rockchip_rv1126_rv1109/images/rootfs.*': No such file or directory
    There's no rootfs.ext4 generated...
    [dls@dls-pc rv1126_rv1109_linux_v1.5.1_20201109]$ ./rkflash.sh 
    flash all images as default
    Not found config.ini
    Program Data in /home/dls/desktop/rv1126_rv1109_linux_v1.5.1_20201109/tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool
    No found any rockusb device,please plug device in!
    

    烧录的截图回头补。

  • 相关阅读:
    后台取得非服务器控件的一种方法(Request.Form.GetKey(i))
    扩展jQuery键盘事件的几个基本方法(练习jQuery插件扩展)
    Javascript得到CheckBoxList的Value
    sql server的count(小技巧)
    oracle数据库约束条件删除、取消、启用
    iis7.0修改网站端口
    session模式和web园
    理解Session State模式+ASP.NET SESSION丢失FAQ (转)
    Gridview中生成的属性rules="all",在Firefox出现内线框解决办法
    一个类windows系统的效果图
  • 原文地址:https://www.cnblogs.com/juwan/p/14351436.html
Copyright © 2011-2022 走看看