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>
This commit is contained in:
parent
87406bbc09
commit
0234881f31
@ -16,9 +16,10 @@ endef
|
|||||||
|
|
||||||
define Build/mt7622-gpt
|
define Build/mt7622-gpt
|
||||||
cp $@ $@.tmp || true
|
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 \
|
-t 0xef \
|
||||||
$(if $(findstring sdmmc,$1), \
|
$(if $(findstring sdmmc,$1), \
|
||||||
|
-H \
|
||||||
-N bl2 -r -p 512k@512k \
|
-N bl2 -r -p 512k@512k \
|
||||||
) \
|
) \
|
||||||
-N fip -r -p 1M@2M \
|
-N fip -r -p 1M@2M \
|
||||||
@ -30,7 +31,6 @@ define Build/mt7622-gpt
|
|||||||
$(if $(findstring emmc,$1), \
|
$(if $(findstring emmc,$1), \
|
||||||
-t 0x2e -N production -p 980M@40M \
|
-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 >> $@
|
cat $@.tmp >> $@
|
||||||
rm $@.tmp
|
rm $@.tmp
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user