My kernel size is now 80MB, But boot partition size is 64MB in hikey960.
I tried using the partition tools in “device/linaro/hikey/l-loader/generate_ptable.sh” and “partition-table-tool”, but after which the userdata flashing fails. Can you please suggest if any other method is available to create partition table(ptable.img) ?
Partition.h (git diff)
Original
- {PART_BOOT, 2891024, 641024, UFS_PART_3},/* boot 64M sdd7 */
- {PART_DTS, 3531024, 161024, UFS_PART_3},/* dtimage 16M sdd8 */
- {PART_TRUSTFIRMWARE, 3691024, 21024, UFS_PART_3},/* trustfirmware 2M sdd9 */
- {PART_SYSTEM, 3711024, 46881024, UFS_PART_3},/* system 4688M sdd10 */
- {PART_VENDOR, 50591024, 7841024, UFS_PART_3},/* vendor 784M sdd11 */
- {PART_RESERVED, 58431024, 1024, UFS_PART_3},/ reserved 1M sdd12 */
- {PART_USERDATA, 5844*1024, (24646UL)1024, UFS_PART_3},/ userdata 24G sdd13 */
Modified :
- {PART_BOOT, 2891024, 841024, UFS_PART_3},/* boot 64M sdd7 */
- {PART_DTS, 3731024, 161024, UFS_PART_3},/* dtimage 16M sdd8 */
- {PART_TRUSTFIRMWARE, 3891024, 21024, UFS_PART_3},/* trustfirmware 2M sdd9 */
- {PART_SYSTEM, 3911024, 46881024, UFS_PART_3},/* system 4688M sdd10 */
- {PART_VENDOR, 50791024, 7841024, UFS_PART_3},/* vendor 784M sdd11 */
- {PART_RESERVED, 58631024, 1024, UFS_PART_3},/ reserved 1M sdd12 */
- {PART_USERDATA, 5864*1024, (24646UL)1024, UFS_PART_3},/ userdata 24G sdd13 */
Flashing logs :
partition ‘vendor’ updated
usbloader: - OKAY
usbloader: usb_rx_cmd_complete() ‘getvar:has-slot:userdata’, size is 0x00000018
usbloader: usb_rx_cmd_complete() ‘getvar:max-download-size’, size is 0x00000018
usbloader: usb_rx_cmd_complete() ‘getvar:is-logical:userdata’, size is 0x0000001a
usbloader: usb_rx_cmd_complete() ‘download:0042c19c’, size is 0x00000011
usbloader: usb_rx_cmd_complete() ‘flash:userdata’, size is 0x0000000e
usbloader: writing 4374940 bytes to ‘userdata’…
usbloader: partition ‘userdata’ image is in sparse format
storage: storage_erase: partition userdata
usbloader: partition ‘userdata’ erased before flash
sparse: size 24628 MB exceeded
usbloader: - FAIL
usbloader: usb_rx_cmd_complete() ‘reboot’, size is 0x00000006
ufs: ufs power mode = 0x00000033
usbloader: reboot kernel
reboot_reason: set_reboot_type is 0x00000010.
Thank You,
Murali