我的機器軟件體系都會比較新。
[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
-
gcc10 會有 Build error gcc 10.x (SOLVED, PLS FIX ON REPO) multiple definition of 'yylloc' 這個問題。
-
manjaro 沒有 www-data 用戶組和用戶,自行添加,不然 buildroot 打包時不過
/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!
燒錄的截圖回頭補。