update.img固件打包失败
start to make update.img...Android Firmware Package Tool v1.66
------ PACKAGE ------
Add file: ./package-file
Add file: ./package-file done,offset=0x800,size=0x32c,userspace=0x1
Add file: ./Image/MiniLoaderAll.bin
Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x2c14e,userspace=0x59
Add file: ./Image/parameter.txt
Add file: ./Image/parameter.txt done,offset=0x2d800,size=0x180,userspace=0x1
Add file: ./Image/uboot.img
Add file: ./Image/uboot.img done,offset=0x2e000,size=0x50000,userspace=0xa0
Add file: ./Image/misc.img
Error:<AddFile> open file failed,err=2!
------ FAILED ------
按提示是打开文件失败哦,看一下 rockdev/ 目录下的文件,看看是否有文件缺失 板蓝根 发表于 2021-6-15 17:22
按提示是打开文件失败哦,看一下 rockdev/ 目录下的文件,看看是否有文件缺失
total 151444
drwxrwxr-x3 daijh daijh 253 6月15 16:38 ./
drwxrwxr-x 15 daijh daijh 4096 6月 2 15:09 ../
lrwxrwxrwx1 daijh daijh 19 5月19 17:27 boot.img -> ../kernel/zboot.img
lrwxrwxrwx1 daijh daijh 41 5月19 17:27 MiniLoaderAll.bin -> ../u-boot/rv1126_spl_loader_v1.05.106.bin
lrwxrwxrwx1 daijh daijh 44 5月19 17:27 misc.img -> ../device/rockchip/rockimg/wipe_all-misc.img*
-rw-r--r--1 daijh daijh 168820736 5月19 17:26 oem.img
drwxrwxr-x2 daijh daijh 4096 5月19 17:27 pack/
lrwxrwxrwx1 daijh daijh 60 5月19 17:27 parameter.txt -> ../device/rockchip/rv1126_rv1109/parameter-buildroot-fit.txt
lrwxrwxrwx1 daijh daijh 71 5月19 17:27 recovery.img -> ../buildroot/output/rockchip_rv1126_rv1109_recovery/images/recovery.img
lrwxrwxrwx1 daijh daijh 60 5月19 17:27 rootfs.ext4 -> ../buildroot/output/firefly_rv1126_rv1109/images/rootfs.ext2
lrwxrwxrwx1 daijh daijh 60 5月19 17:27 rootfs.img -> ../buildroot/output/firefly_rv1126_rv1109/images/rootfs.ext2
lrwxrwxrwx1 daijh daijh 19 5月19 17:27 uboot.img -> ../u-boot/uboot.img
-rw-rw-r--1 daijh daijh 5242880 5月19 17:27 userdata.img
这是参考,如果是文件缺失可以先通过 ./mkfirmware.sh ,把编译的各个部分输出文件先同步过来 rockdev 目录下看看是否有用 板蓝根 发表于 2021-6-15 17:26
total 151444
drwxrwxr-x3 daijh daijh 253 6月15 16:38 ./
drwxrwxr-x 15 daijh daijh ...
对,是文件缺失,但是mkfirmware.sh之后其他文件还是不会被生成。
anbly@linux:~/working/rk$ ls
appbr.logbuildrootbuild.shdevicedocsenvsetup.shexternalIMAGEkernelMakefilemake_kernel.shmkfirmware.shprebuiltsrkbinrkflash.shrockdevtoolsu-boot
anbly@linux:~/working/rk$ ./mkfirmware.sh
/usr/bin/fakeroot
Source buildroot/build/envsetup.sh
Top of tree: /home/anbly/working/rk
===========================================
#TARGET_BOARD=rv1126
#OUTPUT_DIR=output/rockchip_rv1126_evb_tb
#CONFIG=rockchip_rv1126_evb_tb_defconfig
===========================================
make: 进入目录“/home/anbly/working/rk/buildroot”
GEN /home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/Makefile
/home/anbly/working/rk/buildroot/build/defconfig_hook.py -m /home/anbly/working/rk/buildroot/configs/rockchip_rv1126_evb_tb_defconfig /home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/build/buildroot-config/tristate.config BR2_CONFIG=/home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/.config HOST_GCC_VERSION="7" BUILD_DIR=/home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/build SKIP_LEGACY= BR2_DEFCONFIG=/home/anbly/working/rk/buildroot/configs/rockchip_rv1126_evb_tb_defconfig /home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/build/buildroot-config/conf --defconfig=/home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/.rockchipconfig Config.in
#
# configuration written to /home/anbly/working/rk/buildroot/output/rockchip_rv1126_evb_tb/.config
#
make: 离开目录“/home/anbly/working/rk/buildroot”
create parameter...done.
/home/anbly/working/rk/device/rockchip/rv1126_rv1109/parameter-spi-nor-tb-32M.txt
0x00000180@0x00000040(IDBlock),0x00000280@0x00000200(uboot),0x00005000@0x00000480(boot),-@0x00005480(userdata:grow)
warning: not found!
create uboot.img...done.
uboot fotmat type is fit, so ignore trust.img...
create loader...done.
create boot.img...done.
create boot.img...done.
Image: image in rockdev is ready
anbly@linux:~/working/rk$ ls rockdev/
boot.imgMiniLoaderAll.binparameter.txtuboot.imgupdate.img
anbly@linux:~/working/rk$ ls -lh rockdev/
总用量 512K
lrwxrwxrwx 1 anbly anbly 61 6月16 08:53 boot.img -> ../buildroot/output/rockchip_rv1126_evb_tb/images/ramboot.img
lrwxrwxrwx 1 anbly anbly 41 6月16 08:53 MiniLoaderAll.bin -> ../u-boot/rv1126_spl_loader_v1.04.113.bin
lrwxrwxrwx 1 anbly anbly 61 6月16 08:53 parameter.txt -> ../device/rockchip/rv1126_rv1109/parameter-spi-nor-tb-32M.txt
lrwxrwxrwx 1 anbly anbly 19 6月16 08:53 uboot.img -> ../u-boot/uboot.img
-rw-rw-r-- 1 anbly anbly 504K 6月15 17:02 update.img
anbly@linux:~/working/rk$
为什么你的是 rockchip_rv1126_evb_tb ,请问你有按照 wiki ,配置编译文件吗? ./build.sh xxxx.mk 板蓝根 发表于 2021-6-16 09:29
为什么你的是 rockchip_rv1126_evb_tb ,请问你有按照 wiki ,配置编译文件吗? ./build.sh xxxx.mk
找到问题了,同事修改了mk文件
页:
[1]