Build error while creating super_empty image

459 views
Skip to first unread message

Abhi jr

unread,
Apr 4, 2020, 5:05:24 PM4/4/20
to Android Building
Hi,

 I am trying to implement dynamic partition for a device upgrading to Android 10 and i am getting a the following build error. Can some one please help me in rectifying this

2020-04-04 22:41:23 - build_super_image.py - ERROR   :
   ERROR
:
Traceback (most recent call last):
 
File "build/make/tools/releasetools/build_super_image.py", line 217, in <module>
    main
(sys.argv[1:])
 
File "build/make/tools/releasetools/build_super_image.py", line 211, in main
   
BuildSuperImage(args[0], args[1])
 
File "build/make/tools/releasetools/build_super_image.py", line 196, in BuildSuperImage
   
return BuildSuperImageFromDict(common.LoadDictionaryFromLines(lines.split("\n")), out)
 
File "build/make/tools/releasetools/build_super_image.py", line 137, in BuildSuperImageFromDict
    common
.RunAndCheckOutput(cmd)
 
File "/u/kyocera_upgrade/ja32q/build/make/tools/releasetools/common.py", line 250, in RunAndCheckOutput
    args
, proc.returncode, output))
ExternalError: Failed to run command '['lpmake', '--metadata-size', '65536', '--super-name', 'system', '--metadata-slots', '2', '--auto-slot-suffixing', '--device', 'system:2684354560', '--device', 'product:1073741824', '--device', 'vendor:1073741824', '--sparse', '--output', 'out/target/product/sdm660_64/super_empty.img']' (exit code 64):
Partition table must have at least one entry.


It tells that partition table needs at least one entry and i don't know what to do and where to do changes. This is for a qualcomm sdm660_64 based device
Also i have mentioned the following flags 

PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_RETROFIT_DYNAMIC_PARTITIONS
:= true
BOARD_SUPER_PARTITION_METADATA_DEVICE
:= system

Boardconfig.mk
BOARD_SUPER_PARTITION_BLOCK_DEVICES := system product vendor

BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE
:= <some_size>
BOARD_SUPER_PARTITION_PRODUCT_DEVICE_SIZE
:= <some_size>
BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE
:= <some_size>

BOARD_SUPER_PARTITION_SIZE
:= <total_size_of_all_above_partitions>

Thanks


Reply all
Reply to author
Forward
0 new messages