96boards-hikey / tools-images-hikey960

Tools and images for HiKey960
BSD 2-Clause "Simplified" License
53 stars 47 forks source link

ptable.img: Updated for all partitions 1M byte alignment #8

Closed docularxu closed 7 years ago

docularxu commented 7 years ago

Update partition table, so all partitions are now in 1M byte alignment.

Namely, there are three changes:

  1. To make partitions 1M byte alignment, PART_XLOADER_RESERVED1 and PART_XLOADER_RESERVED2 are merged into one partition, and size is 1MB.
  2. Moved PART_FIP from sdd12 to sdd5, starting at 20M offset. This is at request of Arm Trusted Firmware design.
  3. Add an reserved partition as sdd12, so userdata partition no. is still sdd13, unchanged.

Steps to upgrade to this new ptable.img:

  1. set board into fastboot mode. See README.md
  2. flash this new ptable. $ fastboot flash ptable [new]/ptable.img
  3. reboot the board. $ fastboot reboot
  4. flash all other images, including: $ fastboot flash xloader sec_xloader.img $ fastboot flash fastboot fastboot.img $ fastboot flash nvme nvme.img $ fastboot flash fw_lpm3 lpm3.img $ fastboot flash trustfirmware bl31.bin $ fastboot flash boot boot.img $ fastboot flash dts dt.img $ fastboot flash system system.img $ fastboot flash cache cache.img $ fastboot flash userdata userdata.img
  5. Reboot the board.

Signed-off-by: Guodong Xu guodong.xu@linaro.org