V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yhm2046
V2EX  ›  Android

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

  •  
  •   yhm2046 · 2022-07-18 07:45:47 +08:00 · 8323 次点击
    这是一个创建于 859 天前的主题,其中的信息可能已经有所发展或是发生改变。

    编译 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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2832 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 13:31 · PVG 21:31 · LAX 05:31 · JFK 08:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.