aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/image
diff options
context:
space:
mode:
authorOskari Lemmela <oskari@lemmela.net>2021-03-02 21:42:10 +0200
committerDaniel Golle <daniel@makrotopia.org>2021-03-03 01:00:23 +0000
commit0234881f31e627e2e4cca266a9e5b943c6bf5148 (patch)
tree43189c2785d2db203ad4ac6dabc180b3c6f90e4c /target/linux/mediatek/image
parent87406bbc09a81735f084d16b19fffc241cc60135 (diff)
downloadupstream-0234881f31e627e2e4cca266a9e5b943c6bf5148.tar.gz
upstream-0234881f31e627e2e4cca266a9e5b943c6bf5148.tar.bz2
upstream-0234881f31e627e2e4cca266a9e5b943c6bf5148.zip
mediatek: mt7622: use ptgen generated MBR header
mt7622 uses MBR partition for booting from SD card. Add hybrid MBR entry with boot flag after PMBR entry. Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Diffstat (limited to 'target/linux/mediatek/image')
-rw-r--r--target/linux/mediatek/image/mt7622.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk
index d2c1fb5b13..8d7854d5d1 100644
--- a/target/linux/mediatek/image/mt7622.mk
+++ b/target/linux/mediatek/image/mt7622.mk
@@ -16,9 +16,10 @@ endef
define Build/mt7622-gpt
cp $@ $@.tmp || true
- ptgen -g -o $@.tmp -h 4 -s 31 -a 1 -l 1024 -g \
+ ptgen -g -o $@.tmp -a 1 -l 1024 \
-t 0xef \
$(if $(findstring sdmmc,$1), \
+ -H \
-N bl2 -r -p 512k@512k \
) \
-N fip -r -p 1M@2M \
@@ -30,7 +31,6 @@ define Build/mt7622-gpt
$(if $(findstring emmc,$1), \
-t 0x2e -N production -p 980M@40M \
)
- dd if=$(STAGING_DIR_IMAGE)/mt7622-header_$1.bin bs=512 count=1 of=$@.tmp conv=notrunc
cat $@.tmp >> $@
rm $@.tmp
endef