Firefly开源社区

打印 上一主题 下一主题

[Linux] 打包固件时出错

133

积分

0

威望

0

贡献

技术小白

积分
133

打包固件时出错

发表于 2022-4-29 19:29:29      浏览:2225 | 回复:1        打印      只看该作者   [复制链接] 楼主
开发板:ROC-RK3566-PC
屏幕:DM-M10R800 V2 MIPI屏模组
操作如下:
1、./build.sh roc-rk3566-pc-ubuntu.mk
2、./build.sh roc-rk3566-pc-mipi-ubuntu.mk
3、./build.sh
4、./mkfirmware.sh
5、./build.sh updateimg
执行号第5步,出错,过程如下:
processing option: updateimg
File name is  ROC-RK3566-PC-MIPI_Rk356x_v1.2.3a_220429.img
Rename the file? [N|y]n
Make update.img
start to make update.img...
Resize rootfs partition size
dumpe2fs 1.44.1 (24-Mar-2018)
dumpe2fs: No such file or directory while trying to open /home/dlj/linux/proj/rk356x_linux_release_20211019/ubuntu_rootfs/rk356x_ubuntu_rootfs.img
./mkupdate.sh: line 36: >>9: syntax error: operand expected (error token is ">>9")
Android Firmware Package Tool v1.66
------ PACKAGE ------
Add file: ./package-file
Add file: ./package-file done,offset=0x800,size=0x11a,userspace=0x1
Add file: ./Image/MiniLoaderAll.bin
Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x701c0,userspace=0xe1
Add file: ./Image/parameter.txt
Add file: ./Image/parameter.txt done,offset=0x71800,size=0x1d9,userspace=0x1
Add file: ./Image/uboot.img
Add file: ./Image/uboot.img done,offset=0x72000,size=0x400000,userspace=0x800
Add file: ./Image/misc.img
Add file: ./Image/misc.img done,offset=0x472000,size=0xc000,userspace=0x18
Add file: ./Image/boot.img
Add file: ./Image/boot.img done,offset=0x47e000,size=0x1ff1400,userspace=0x3fe3
Add file: ./Image/recovery.img
Add file: ./Image/recovery.img done,offset=0x246f800,size=0x1e20400,userspace=0x3c41
Add file: ./Image/rootfs.img
Error:<AddFile> open file failed,err=2!
------ FAILED ------
Press any key to quit:


回复

使用道具 举报

133

积分

0

威望

0

贡献

技术小白

积分
133
发表于 2022-4-30 12:07:23        只看该作者  沙发
ubuntu_rootfs目录下的img文件,没有按照规则命名,需要将其命名为rk356x_ubuntu_rootfs.img
回复

使用道具 举报

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

本版积分规则

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