向朗向明朗 发表于 2022-9-27 21:41:49

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 isROC-RK3566-PC-2CAM_Buildroot_v1.3.0a_220927.img
Rename the file? 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


Liuth 发表于 2022-9-28 09:40:42

你的 packge-file 不对,你是否有更新 SDK ?是否自行修改过 device/rockchip 仓库和 tools 仓库?

向朗向明朗 发表于 2022-9-28 10:42:07

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:20

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:20

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:51

先执行./build.sh roc-rk3568-pc-2cam-buildroot.mk
然后执行./build.sh不加参数全自动编译会有问题吗?

向朗向明朗 发表于 2022-9-28 17:06:02

Liuth 发表于 2022-9-28 11:42
先执行./build.sh roc-rk3568-pc-2cam-buildroot.mk
然后执行./build.sh不加参数全自动编译会有问题吗?

按照您的方法来了   也是一样的效果, 编不过去

Liuth 发表于 2022-9-28 17:25:35

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

在 sdk 根目录执行 repo status,看看你哪个仓库有改动

向朗向明朗 发表于 2022-9-28 17:35:43

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:22

那就是你修改了device/rockchip里的分区表rk356x/parameter-buildroot-fit.txt导致的
页: [1] 2
查看完整版本: roc-rk3566-pc-buildroot.mk固件打包错误