aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Shields <simon@lineageos.org>2018-06-14 01:06:49 +1000
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-03-28 01:14:35 +0100
commit3a6494d2482d19a423afa7890c15ec8d7992e0ee (patch)
tree9fb404259071778b558aa38489ce96a58be0236f /include
parent7e5d3068c616c1c8639bdf61317fef3f4a502d9f (diff)
downloadu-boot-midas-3a6494d2482d19a423afa7890c15ec8d7992e0ee.tar.gz
u-boot-midas-3a6494d2482d19a423afa7890c15ec8d7992e0ee.tar.bz2
u-boot-midas-3a6494d2482d19a423afa7890c15ec8d7992e0ee.zip
i9300: new partition table
i9300.bpt can be converted to a GPT using bpttool (obtainable from AOSP: https://android.googlesource.com/platform/system/tools/bpt/) and running the following command: python2 bpttool make_table --input i9300.bpt --output_gpt out.gpt you can then update the device by running "fastboot 0" from a u-boot prompt, and then running "fastboot flash gpt out.gpt && fastboot reboot" on your computer. This partition table preserves the location of the EFS and RADIO partitions from the stock ROM.
Diffstat (limited to 'include')
-rw-r--r--include/configs/i9300.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/i9300.h b/include/configs/i9300.h
index a99497a958..0f74474856 100644
--- a/include/configs/i9300.h
+++ b/include/configs/i9300.h
@@ -79,7 +79,14 @@
"mmc dev 0 1; mmc write 0x50000000 0x0 0x1000;\0" \
"sdupdate=" /* install updated u-boot from bootable SD card */ \
"mmc dev 1; mmc read 0x50000000 0x1 0x1000;" \
- "mmc dev 0 1; mmc write 0x50000000 0x0 0x1000;\0"
+ "mmc dev 0 1; mmc write 0x50000000 0x0 0x1000;\0" \
+ "mmcbootpart=3\0" \
+ "mmcrecoverypart=5\0" \
+ "mmcbootinfopart=0\0" \
+ "mmcboot=" \
+ "read mmc 0:${mmcbootpart} 0x50000000 0x0 0xbfff; bootm 0x50000000\0" \
+ "mmcrecovery=" \
+ "read mmc 0:${mmcrecoverypart} 0x50000000 0x0 0xbfff; bootm 0x50000000\0"
#include <linux/sizes.h>