Firefly开源社区

打印 上一主题 下一主题

[Linux] update.img固件打包失败

85

积分

0

威望

0

贡献

技术小白

积分
85

update.img固件打包失败

发表于 2021-6-15 17:07:39      浏览:5230 | 回复:5        打印      只看该作者   [复制链接] 楼主
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 ------
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11138

优秀版主

发表于 2021-6-15 17:22:45        只看该作者  沙发
按提示是打开文件失败哦,看一下 rockdev/ 目录下的文件,看看是否有文件缺失
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11138

优秀版主

发表于 2021-6-15 17:26:30        只看该作者  板凳
板蓝根 发表于 2021-6-15 17:22
按提示是打开文件失败哦,看一下 rockdev/ 目录下的文件,看看是否有文件缺失

total 151444
drwxrwxr-x  3 daijh daijh       253 6月  15 16:38 ./
drwxrwxr-x 15 daijh daijh      4096 6月   2 15:09 ../
lrwxrwxrwx  1 daijh daijh        19 5月  19 17:27 boot.img -> ../kernel/zboot.img
lrwxrwxrwx  1 daijh daijh        41 5月  19 17:27 MiniLoaderAll.bin -> ../u-boot/rv1126_spl_loader_v1.05.106.bin
lrwxrwxrwx  1 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-x  2 daijh daijh      4096 5月  19 17:27 pack/
lrwxrwxrwx  1 daijh daijh        60 5月  19 17:27 parameter.txt -> ../device/rockchip/rv1126_rv1109/parameter-buildroot-fit.txt
lrwxrwxrwx  1 daijh daijh        71 5月  19 17:27 recovery.img -> ../buildroot/output/rockchip_rv1126_rv1109_recovery/images/recovery.img
lrwxrwxrwx  1 daijh daijh        60 5月  19 17:27 rootfs.ext4 -> ../buildroot/output/firefly_rv1126_rv1109/images/rootfs.ext2
lrwxrwxrwx  1 daijh daijh        60 5月  19 17:27 rootfs.img -> ../buildroot/output/firefly_rv1126_rv1109/images/rootfs.ext2
lrwxrwxrwx  1 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 目录下看看是否有用
回复

使用道具 举报

85

积分

0

威望

0

贡献

技术小白

积分
85
发表于 2021-6-16 08:56:53        只看该作者  地板
板蓝根 发表于 2021-6-15 17:26
total 151444
drwxrwxr-x  3 daijh daijh       253 6月  15 16:38 ./
drwxrwxr-x 15 daijh daijh      ...

对,是文件缺失,但是mkfirmware.sh之后其他文件还是不会被生成。
anbly@linux:~/working/rk$ ls
app  br.log  buildroot  build.sh  device  docs  envsetup.sh  external  IMAGE  kernel  Makefile  make_kernel.sh  mkfirmware.sh  prebuilts  rkbin  rkflash.sh  rockdev  tools  u-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.img  MiniLoaderAll.bin  parameter.txt  uboot.img  update.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$
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11138

优秀版主

发表于 2021-6-16 09:29:36        只看该作者  5#
为什么你的是 rockchip_rv1126_evb_tb ,请问你有按照 wiki ,配置编译文件吗? ./build.sh xxxx.mk
回复

使用道具 举报

85

积分

0

威望

0

贡献

技术小白

积分
85
发表于 2021-6-16 10:07:30        只看该作者  6#
板蓝根 发表于 2021-6-16 09:29
为什么你的是 rockchip_rv1126_evb_tb ,请问你有按照 wiki ,配置编译文件吗? ./build.sh xxxx.mk

找到问题了,同事修改了mk文件
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表