一、报错的信息是这样的:
Add partion boot-resource.fex BOOT-RESOURCE_FEX
Add partion very boot-resource.fex BOOT-RESOURCE_FEX
FilePath: boot-resource.fex
FileLength=4b3c00Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=d5d000Add partion system.fex SYSTEM_FEX000000
Add partion very system.fex SYSTEM_FEX000000
FilePath: system.fex
FileLength=1d488b18Add partion verity_block.fex VERITY_BLOCK_FEX
Add partion very verity_block.fex VERITY_BLOCK_FEX
FilePath: verity_block.fex
CreateFile failed 2
Add partion recovery.fex RECOVERY_FEX0000
Add partion very recovery.fex RECOVERY_FEX0000
FilePath: recovery.fex
FileLength=e5e000sys_config.fex Len: 0x13a46
config.fex Len: 0xdf78
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0x11c8
boot0_nand.fex Len: 0x8000
boot0_sdcard.fex Len: 0x8000
u-boot.fex Len: 0xe8000
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x33c0
usbtool.fex Len: 0x23000
aultools.fex Len: 0x27c29
aultls32.fex Len: 0x2455d
cardtool.fex Len: 0x11a00
cardscript.fex Len: 0x6ea
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
arisc.fex Len: 0x420ef
boot-resource.fex Len: 0x4b3c00
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0xd5d000
Vboot.fex Len: 0x4
system.fex Len: 0x1d488b18
Vsystem.fex Len: 0x4
The file verity_block.fex length = 0
BuildImg 400
Dragon execute image.cfg Failed ! ArgCnt = 3, 400
pack finish
二、解决方法
在pack打包之前执行verity_data_init命令后再执行pack就能正常生成固件了。