Firefly开源社区

标题: roc-rk3566-pc-buildroot.mk固件打包错误 [打印本页]

作者: 向朗向明朗    时间: 2022-9-27 21:41
标题: roc-rk3566-pc-buildroot.mk固件打包错误

yh11000@server3:/home2/yh11000/3566-linux-sdk/Linux-SDK/proj/rk356x_linux_release_20211019$ ./build.sh updateimg
processing option: updateimg
File name is  ROC-RK3566-PC-2CAM_Buildroot_v1.3.0a_220927.img
Rename the file? [N|y]n
Make update.img
start to make update.img...
Resize rootfs partition size
dumpe2fs 1.42.13 (17-May-2015)
Android Firmware Package Tool v2.0
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0x28b,userspace=0x1
Add file: ./Image/MiniLoaderAll.bin
bootloader,Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x689c0,userspace=0xd2
Add file: ./Image/parameter.txt
parameter,Add file: ./Image/parameter.txt done,offset=0x6a000,size=0x1f9,userspace=0x1
Add file: ./Image/uboot.img
uboot,Add file: ./Image/uboot.img done,offset=0x6a800,size=0x400000,userspace=0x800
Add file: ./Image/misc.img
misc,Add file: ./Image/misc.img done,offset=0x46a800,size=0xc000,userspace=0x18
Add file: ./Image/boot.img
boot,Add file: ./Image/boot.img done,offset=0x476800,size=0x8000000,userspace=0x10000
Add file: ./Image/recovery.img
recovery,Add file: ./Image/recovery.img done,offset=0x8476800,size=0x204e600,userspace=0x409d
Add file: ./Image/rootfs.img
rootfs,Add file: ./Image/rootfs.img done,offset=0xa4c5000,size=0x2f7a9000,userspace=0x5ef52
Add file: ./Image/oem.img
oem,Add file: ./Image/oem.img done,offset=0x39c6e000,size=0x10a8000,userspace=0x2150
Add file: ./Image/userdata.img
Error:<AddFile> open file failed,err=2!
------ FAILED ------
Press any key to quit:
ERROR: Running build_updateimg failed!
ERROR: exit code 1 from line 1641:
    ./mkupdate.sh


tchip_askquestions

{X3ED8OEREAUV6N)%G4E{{5.png (79.43 KB, 下载次数: 140)

{X3ED8OEREAUV6N)%G4E{{5.png

log.txt

9.45 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

log.txt

9.45 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1


作者: Liuth    时间: 2022-9-28 09:40
你的 packge-file 不对,你是否有更新 SDK ?是否自行修改过 device/rockchip 仓库和 tools 仓库?
作者: 向朗向明朗    时间: 2022-9-28 10:42
Liuth 发表于 2022-9-28 09:40
你的 packge-file 不对,你是否有更新 SDK ?是否自行修改过 device/rockchip 仓库和 tools 仓库?

我是按照官网上的流程来的, 使用.repo/repo/repo sync -c --no-tags同步完代码后, 按照官网的编译流程来的, ./build.sh 进行整体编译的, 没是否自行修改过 device/rockchip和tools仓库
作者: 向朗向明朗    时间: 2022-9-28 10:45
Liuth 发表于 2022-9-28 09:40
你的 packge-file 不对,你是否有更新 SDK ?是否自行修改过 device/rockchip 仓库和 tools 仓库?

# NAME                Relative path
#
#HWDEF                HWDEF
package-file        package-file
bootloader        Image/MiniLoaderAll.bin
parameter        Image/parameter.txt
#trust                Image/trust.img
uboot                Image/uboot.img
misc                Image/misc.img
#resource        Image/resource.img
#kernel                Image/kernel.img
boot                Image/boot.img
recovery        Image/recovery.img
rootfs                Image/rootfs.img
oem                Image/oem.img
userdata        Image/userdata.img
# 要写入backup分区的文件就是自身(update.img)
# SELF 是关键字,表示升级文件(update.img)自身
# 在生成升级文件时,不加入SELF文件的内容,但在头部信息中有记录
# 在解包升级文件时,不解包SELF文件的内容。
backup                RESERVED
#update-script        update-script
#recover-script        recover-script

您好, 这是我的package-file, 请问是哪里不对呢
作者: 向朗向明朗    时间: 2022-9-28 10:50
Liuth 发表于 2022-9-28 09:40
你的 packge-file 不对,你是否有更新 SDK ?是否自行修改过 device/rockchip 仓库和 tools 仓库?

yh11000@server3:/home2/yh11000/3566-linux-sdk/Linux-SDK/proj/rk356x_linux_release_20211019$ .repo/repo/repo sync -c --no-tags
Fetching project app/aiserver
Fetching project app/multivideoplayer
Fetching project external/avb
Fetching project external/common_algorithm
Fetching project external/rkupdate
Fetching project external/bluetooth_bsa
Fetching project external/rknpu2
Fetching project external/security/bin
Fetching project external/rk_pcba_test
Fetching project app/qfm
Fetching project external/ble_wificonfig
Fetching project external/linux-rga
Fetching project external/uvc_app
Fetching project external/camera_engine_rkaiq
Fetching project external/security/rk_tee_user
Fetching project tools
Fetching project buildroot
Fetching project app/eptz_demo
Fetching project external/quectel-cm
Fetching project external/bluez-alsa
Fetching project external/libglCompositor
Fetching project external/rkfacial
Fetching project app/qcamera
Fetching projects:  38% (20/52)  Fetching project rkbin
Fetching projects:  40% (21/52)  Fetching project external/rockit
Fetching projects:  42% (22/52)  Fetching project app/qsetting
Fetching projects:  44% (23/52)  Fetching project external/recovery
Fetching projects:  46% (24/52)  Fetching project debian
Fetching projects:  48% (25/52)  Fetching project external/libmali
Fetching projects:  50% (26/52)  Fetching project device/rockchip
Fetching projects:  51% (27/52)  Fetching project external/uac_app
Fetching projects:  53% (28/52)  Fetching project external/mpp
Fetching projects:  55% (29/52)  Fetching project external/broadcom_bsa
Fetching projects:  57% (30/52)  Fetching project prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu
Fetching projects:  59% (31/52)  Fetching project external/rknn-toolkit2
Fetching projects:  61% (32/52)  Fetching project app/qplayer
Fetching projects:  63% (33/52)  Fetching project docs
Fetching projects:  65% (34/52)  Fetching project kernel
Fetching projects:  67% (35/52)  Fetching project external/rktoolkit
Fetching projects:  69% (36/52)  Fetching project app/rkaiq_tool_server
Fetching projects:  71% (37/52)  Fetching project external/rkwifibt
Fetching projects:  73% (38/52)  Fetching project docs-soc_internal
Fetching projects:  75% (39/52)  Fetching project external/deviceio_release
Fetching projects:  76% (40/52)  Fetching project app/QLauncher
Fetching projects:  78% (41/52)  Fetching project external/gstreamer-rockchip
Fetching projects:  80% (42/52)  Fetching project external/eq_drc_process
Fetching projects:  82% (43/52)  Fetching project prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
Fetching projects:  84% (44/52)  Fetching project external/chromium
Fetching projects:  86% (45/52)  Fetching project external/alsa-config
Fetching projects:  88% (46/52)  Fetching project u-boot
Fetching projects:  90% (47/52)  Fetching project external/rkscript
Fetching projects:  92% (48/52)  Fetching project buildroot-dl
Fetching projects: 100% (52/52), done.
info: A new version of repo is available


warning: project 'repo' branch 'stable' is not signed
warning: Skipped upgrade to unverified version
Syncing work tree: 100% (52/52), done.
作者: Liuth    时间: 2022-9-28 11:42
先执行./build.sh roc-rk3568-pc-2cam-buildroot.mk
然后执行./build.sh不加参数全自动编译会有问题吗?
作者: 向朗向明朗    时间: 2022-9-28 17:06
Liuth 发表于 2022-9-28 11:42
先执行./build.sh roc-rk3568-pc-2cam-buildroot.mk
然后执行./build.sh不加参数全自动编译会有问题吗?

按照您的方法来了   也是一样的效果, 编不过去
作者: Liuth    时间: 2022-9-28 17:25
向朗向明朗 发表于 2022-9-28 17:06
按照您的方法来了   也是一样的效果, 编不过去

在 sdk 根目录执行 repo status,看看你哪个仓库有改动
作者: 向朗向明朗    时间: 2022-9-28 17:35
Liuth 发表于 2022-9-28 17:25
在 sdk 根目录执行 repo status,看看你哪个仓库有改动


yh11000@server3:/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019$ repo status

... A new repo command ( 1.23) is available.
... You should upgrade soon:

    cp /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/.repo/repo/repo /usr/bin/repo

project app/QLauncher/                          branch firefly
project app/aiserver/                           branch firefly
project app/eptz_demo/                          branch firefly
project app/multivideoplayer/                   branch firefly
project app/qcamera/                            branch firefly
project app/qfm/                                branch firefly
project app/qplayer/                            branch firefly
project app/qsetting/                           branch firefly
project app/rkaiq_tool_server/                  branch firefly
project buildroot/                              branch firefly
project debian/                                 branch firefly
project device/rockchip/                        branch firefly
-m     rk356x/parameter-buildroot-fit.txt
--     rk356x/parameter-buildroot-fit.txt.orig
project docs/                                   branch firefly
--     .Socs/
--     RK356X
project buildroot/dl/                           branch firefly
project external/alsa-config/                   branch firefly
project docs/.Socs/                             branch firefly
project external/avb/                           branch firefly
project external/bluetooth_bsa/                 branch firefly
project external/ble_wificonfig/                branch firefly
project external/broadcom_bsa/                  branch firefly
project external/bluez-alsa/                    branch firefly
project external/camera_engine_rkaiq/           branch firefly
project external/chromium/                      branch firefly
project external/deviceio_release/              branch firefly
project external/common_algorithm/              branch firefly
project external/eq_drc_process/                branch firefly
project external/gstreamer-rockchip/            branch firefly
project external/libmali/                       branch firefly
project external/linux-rga/                     branch firefly
project external/libglCompositor/               branch firefly
project external/mpp/                           branch firefly
project external/quectel-cm/                    branch firefly
project external/recovery/                      branch firefly
project external/rk_pcba_test/                  branch firefly
project external/rkfacial/                      branch firefly
project external/rknn-toolkit2/                 branch firefly
project external/rkscript/                      branch firefly
project external/rknpu2/                        branch firefly
project external/rktoolkit/                     branch firefly
project external/rkupdate/                      branch firefly
project external/rkwifibt/                      branch firefly
project external/rockit/                        branch firefly
project external/security/bin/                  branch firefly
project external/uac_app/                       branch firefly
project external/security/rk_tee_user/          branch firefly
project external/uvc_app/                       branch firefly
project prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu/ branch firefly
project prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/ branch firefly
project rkbin/                                  branch firefly
project tools/                                  branch firefly
project u-boot/                                 branch firefly
project kernel/                                 branch firefly

作者: Liuth    时间: 2022-9-28 17:53
那就是你修改了device/rockchip里的分区表rk356x/parameter-buildroot-fit.txt导致的
作者: 向朗向明朗    时间: 2022-9-28 17:58
Liuth 发表于 2022-9-28 17:53
那就是你修改了device/rockchip里的分区表rk356x/parameter-buildroot-fit.txt导致的

您好, 我并没有修改这分区的内存, ./build.sh 编译之后默认的.
FIRMWARE_VER: 1.0
MACHINE_MODEL: RK3568
MACHINE_ID: 007
MANUFACTURER: RK3568
MAGIC: 0x5041524B
ATAG: 0x00200800
MACHINE: 0xffffffff
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
TYPE: GPT
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00040000@0x00008000(boot:bootable),0x00020000@0x00048000(recovery),0x00010000@0x00068000(backup),0x00040000@0x00078000(oem),0x18ac00@0x000b8000(rootfs),-@0x242c00(userdata:grow)
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
作者: Liuth    时间: 2022-9-29 09:15
本帖最后由 Liuth 于 2022-9-29 09:17 编辑

git reset --hard HEAD还原回去,然后再编译试试

作者: 时间的蝴蝶    时间: 2022-9-29 10:00
执行 ./mkfirmware.sh 链接文件;
看下有没有 userdata.img,ls -l rockdev/

作者: 向朗向明朗    时间: 2022-9-29 13:29
时间的蝴蝶 发表于 2022-9-29 10:00
执行 ./mkfirmware.sh 链接文件;
看下有没有 userdata.img,ls -l rockdev/

./mkfirmware.sh
/usr/bin/fakeroot
Source buildroot/build/envsetup.sh
Top of tree: /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019
===========================================

#TARGET_BOARD=rk3568
#OUTPUT_DIR=output/rockchip_rk3568
#CONFIG=rockchip_rk3568_defconfig

===========================================
make: Entering directory '/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot'
  GEN     /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/Makefile
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/build/defconfig_hook.py -m /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/configs/rockchip_rk3568_defconfig /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/buildroot-config/tristate.config BR2_CONFIG=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.config HOST_GCC_VERSION="6" BUILD_DIR=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build SKIP_LEGACY= BR2_DEFCONFIG=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/configs/rockchip_rk3568_defconfig /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/build/buildroot-config/conf --defconfig=/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig Config.in
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:285:warning: override: reassigning to symbol BR2_PACKAGE_ROCKCHIP_MPP
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:286:warning: override: reassigning to symbol BR2_PACKAGE_ROCKCHIP_MPP_ALLOCATOR_DRM
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:288:warning: override: reassigning to symbol BR2_PACKAGE_ROCKCHIP_RGA
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:313:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTP
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:314:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTPMANAGER
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:315:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTSP
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:321:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEORATE
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:322:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VORBIS
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:323:warning: override: reassigning to symbol BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_OGG
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:326:warning: override: reassigning to symbol BR2_PACKAGE_BLUEZ5_UTILS
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:345:warning: override: reassigning to symbol BR2_PACKAGE_ROCKCHIP_TEST
/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.rockchipconfig:348:warning: override: reassigning to symbol BR2_PACKAGE_RKWIFIBT
#
# configuration written to /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk3568/.config
#
make: Leaving directory '/home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot'
Linking parameter.txt from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/device/rockchip/rk356x/parameter-buildroot-fit.txt...
Done linking parameter.txt
Linking uboot.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/u-boot/uboot.img...
./mkfirmware.sh: line 98: "4194304" / 1024 : syntax error: operand expected (error token is ""4194304" / 1024 ")
Linking MiniLoaderAll.bin from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/u-boot/rk356x_spl_loader_v1.13.112.bin...
Done linking MiniLoaderAll.bin
Linking boot.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/kernel/extboot.img...
./mkfirmware.sh: line 98: "134217728" / 1024 : syntax error: operand expected (error token is ""134217728" / 1024 ")
Linking recovery.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/buildroot/output/rockchip_rk356x_recovery/images/recovery.img...
./mkfirmware.sh: line 98: "33886208" / 1024 : syntax error: operand expected (error token is ""33886208" / 1024 ")
Linking misc.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/device/rockchip/rockimg/misc.img...
Fallback to /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/device/rockchip/rockimg/wipe_all-misc.img
./mkfirmware.sh: line 98: "49152" / 1024 : syntax error: operand expected (error token is ""49152" / 1024 ")
Linking rootfs.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/rockdev/rootfs.ext4...
./mkfirmware.sh: line 98: "54" / 1024 : syntax error: operand expected (error token is ""54" / 1024 ")
Packing oem.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/device/rockchip/oem/oem_normal...
Making /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/rockdev/oem.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/device/rockchip/oem/oem_normal (auto sized)
Making /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/rockdev/oem.img from /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/device/rockchip/oem/oem_normal with size(17056KB)
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 17056 1k blocks and 4272 inodes
Filesystem UUID: 828f00e9-b624-40c7-ac37-100e9d4d9875
Superblock backups stored on blocks:
        8193

Allocating group tables: done
Writing inode tables: done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done

tune2fs 1.46.5 (30-Dec-2021)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
./mkfirmware.sh: line 98: "17465344" / 1024 : syntax error: operand expected (error token is ""17465344" / 1024 ")
Images in /home2/yh11000/3566-linux-sdk/rk356x_linux_release_20211019/rockdev are ready!


ls -l rockdev/
total 954996
lrwxrwxrwx 1 yh11000 yh11000        21 Sep 29 13:27 boot.img -> ../kernel/extboot.img
lrwxrwxrwx 1 yh11000 yh11000        41 Sep 29 13:27 MiniLoaderAll.bin -> ../u-boot/rk356x_spl_loader_v1.13.112.bin
lrwxrwxrwx 1 yh11000 yh11000        44 Sep 29 13:27 misc.img -> ../device/rockchip/rockimg/wipe_all-misc.img
-rw-rw-r-- 1 yh11000 yh11000  17465344 Sep 29 13:27 oem.img
drwxrwxr-x 2 yh11000 yh11000      4096 Sep 28 15:08 pack
lrwxrwxrwx 1 yh11000 yh11000        53 Sep 29 13:27 parameter.txt -> ../device/rockchip/rk356x/parameter-buildroot-fit.txt
lrwxrwxrwx 1 yh11000 yh11000        64 Sep 29 13:27 recovery.img -> ../buildroot/output/rockchip_rk356x_recovery/images/recovery.img
lrwxrwxrwx 1 yh11000 yh11000        54 Sep 29 11:57 rootfs.ext4 -> ../buildroot/output/rockchip_rk3568/images/rootfs.ext2
lrwxrwxrwx 1 yh11000 yh11000        54 Sep 29 13:27 rootfs.img -> ../buildroot/output/rockchip_rk3568/images/rootfs.ext2
lrwxrwxrwx 1 yh11000 yh11000        19 Sep 29 13:27 uboot.img -> ../u-boot/uboot.img
-rw-rw-r-- 1 yh11000 yh11000 965449728 Sep 29 12:39 update.img

您好, 没有 userdata.img 文件


作者: 向朗向明朗    时间: 2022-9-29 13:35
本帖最后由 向朗向明朗 于 2022-9-29 13:53 编辑
Liuth 发表于 2022-9-29 09:15
git reset --hard HEAD还原回去,然后再编译试试

您好, 重新编译好多次了, 还是不行, 一样的问题
作者: 时间的蝴蝶    时间: 2022-9-29 14:52
向朗向明朗 发表于 2022-9-29 13:29
./mkfirmware.sh
/usr/bin/fakeroot
Source buildroot/build/envsetup.sh

按下面,把 device/rockchip/common/mkfirmware.sh 的 PART_SIZE  这行改掉,再按之前的操作。

diff --git a/common/mkfirmware.sh b/common/mkfirmware.sh
index 9cde466..7f5113d 100755
--- a/common/mkfirmware.sh
+++ b/common/mkfirmware.sh
@@ -85,7 +85,7 @@ assert_size() {

     IMG_SIZE=$(stat -c "%s" "$IMG")

-    if [ $PART_SIZE -lt $(( "$IMG_SIZE" / 1024 )) ]; then
+    if [ $PART_SIZE -lt $(( $IMG_SIZE / 1024 )) ]; then
         fatal "error: $IMG's size exceed parameter.txt's limit!"
     fi
}

作者: 向朗向明朗    时间: 2022-9-29 15:14
时间的蝴蝶 发表于 2022-9-29 14:52
按下面,把 device/rockchip/common/mkfirmware.sh 的 PART_SIZE  这行改掉,再按之前的操作。

diff - ...

谢谢谢谢, 编过了, 感谢两位前辈的帮助   谢谢
作者: Liuth    时间: 2022-9-29 19:44
向朗向明朗 发表于 2022-9-29 15:14
谢谢谢谢, 编过了, 感谢两位前辈的帮助   谢谢

这个问题在ubuntu18上应该不会出现,所以你是在ubuntu16上编译的吧
维基里说了推荐ubuntu18,用别的就会出现这种奇奇怪怪的问题
下次要记得按照维基推荐来部署环境
作者: 向朗向明朗    时间: 2022-9-30 11:08
Liuth 发表于 2022-9-29 19:44
这个问题在ubuntu18上应该不会出现,所以你是在ubuntu16上编译的吧
维基里说了推荐ubuntu18,用别的就会 ...

是的   确实是部署的环境有问题, 谢谢指点




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1