projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87406bb
)
mediatek: mt7622: use ptgen generated MBR header
author
Oskari Lemmela
<
[email protected]
>
Tue, 2 Mar 2021 19:42:10 +0000
(21:42 +0200)
committer
Daniel Golle
<
[email protected]
>
Wed, 3 Mar 2021 01:00:23 +0000
(
01:00
+0000)
mt7622 uses MBR partition for booting from SD card.
Add hybrid MBR entry with boot flag after PMBR entry.
Signed-off-by: Oskari Lemmela <
[email protected]
>
target/linux/mediatek/image/mt7622.mk
patch
|
blob
|
history
diff --git
a/target/linux/mediatek/image/mt7622.mk
b/target/linux/mediatek/image/mt7622.mk
index d2c1fb5b13ec8864f5dddb20797aca7cda416036..8d7854d5d1bb1819cdb7a03790c6abbec4883ed5 100644
(file)
--- a/
target/linux/mediatek/image/mt7622.mk
+++ b/
target/linux/mediatek/image/mt7622.mk
@@
-16,9
+16,10
@@
endef
define Build/mt7622-gpt
cp $@
[email protected]
|| true
- ptgen -g -o
[email protected]
-
h 4 -s 31 -a 1 -l 1024 -g
\
+ ptgen -g -o
[email protected]
-
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
[email protected]
conv=notrunc
cat
[email protected]
>> $@
rm
[email protected]
endef