MA-10872 Write vaild size of gpt image for i.MX8
authorLuo Ji <ji.luo@nxp.com>
Thu, 7 Dec 2017 09:04:59 +0000 (17:04 +0800)
committerLuo Ji <ji.luo@nxp.com>
Wed, 13 Dec 2017 01:43:45 +0000 (09:43 +0800)
commit4ef8c1eed185ebfd2b716d7d8fe7bc3cb2af0a93
treea655bee84f7781e370e4373e768f7e219f4b1e78
parent380dd20f8d5a493fa1814d6ecd55606297d34ebc
MA-10872 Write vaild size of gpt image for i.MX8

The offset of u-boot for i.MX8 boards is 33k bytes, writing whole gpt
image (34k) will break u-boot when the board is booted with SD card.
This patch only write vaild part (first 17k bytes) of gpt into SD card
and will keep backup gpt at the last LBA.

Change-Id: Iac5d337fb11a3e3ad2a9686efbfbacf9523dae58
Signed-off-by: Luo Ji <ji.luo@nxp.com>
drivers/usb/gadget/f_fastboot.c