编译 android 源码后打包 genpac 的 avbtool 报错问题

2022-07-18 07:45:47 +08:00
 yhm2046

编译 android10 后打包 genpac 报错

使用 python2.7 报错: gen emmc pac for sign images for vbmeta_emmc_desc: emmc_bpt_orig: vbmeta_sign_args:--algorithm SHA256_RSA2048 --key build3/buildsystem-x9-ptg3.8/res/tools/release/sign_tool//vbmeta/keys/vbmeta-user-key.pem --public_key_meta build3/buildsystem-x9-ptg3.8/res/tools/release/sign_tool//vbmeta/keys/vbmeta-user-rsa2048whitsha256-romtest.cer.chain vbmeta_emmc_out: cp: omitting directory 'lk/lk_customize/chipcfg/' VBMTEA_DESCIPTOR: INCLUDE_DESC: usage: avbtool make_vbmeta_image [-h] [--output OUTPUT] [--padding_size NUMBER] [--algorithm ALGORITHM] [--key KEY] [--signing_helper APP] [--signing_helper_with_files APP] [--public_key_metadata KEY_METADATA] [--rollback_index ROLLBACK_INDEX] [--append_to_release_string STR] [--prop KEY:VALUE] [--prop_from_file KEY:PATH] [--kernel_cmdline CMDLINE] [--setup_rootfs_from_kernel IMAGE] [--include_descriptors_from_image IMAGE] [--print_required_libavb_version] [--chain_partition PART_NAME:ROLLBACK_SLOT:KEY_PATH] [--flags FLAGS] [--set_hashtree_disabled_flag] avbtool make_vbmeta_image: error: argument --output: expected one argument Makefile:705: recipe for target 'gen_emmc_pac' failed make: *** [gen_emmc_pac] Error 1

使用 python3.x 报错: gen emmc pac for sign images for vbmeta_emmc_desc: emmc_bpt_orig: vbmeta_sign_args:--algorithm SHA256_RSA2048 --key /build3/buildsystem-x9-ptg3.8/res/tools/release/sign_tool//vbmeta/keys/vbmeta-user-key.pem --public_key_meta /build3/buildsystem-x9-ptg3.8/res/tools/release/sign_tool//vbmeta/keys/vbmeta-user-rsa2048whitsha256-romtest.cer.chain vbmeta_emmc_out: cp: omitting directory 'lk/lk_customize/chipcfg/' VBMTEA_DESCIPTOR: INCLUDE_DESC: File "/build3/buildsystem-x9-ptg3.8/res/tools/release/sign_tool/avbtool", line 410 b = 2L**32 ^ SyntaxError: invalid syntax Makefile:705: recipe for target 'gen_emmc_pac' failed make: *** [gen_emmc_pac] Error 1

8906 次点击
所在节点    Android
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/866876

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX