aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-04-02 12:03:01 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-04-09 16:04:40 +0100
commitd37aaf3ee29df0c6eea960e51ca64fd27e425598 (patch)
tree17ba0f9f99484cd79689336d77d11aa8604aeca3 /package
parent2809d0000744b77d5b6cef20f6d44eed75c35e6a (diff)
downloadupstream-d37aaf3ee29df0c6eea960e51ca64fd27e425598.tar.gz
upstream-d37aaf3ee29df0c6eea960e51ca64fd27e425598.tar.bz2
upstream-d37aaf3ee29df0c6eea960e51ca64fd27e425598.zip
arm-trusted-firmware-mediatek: increase NOR bl3 size
Use bl3 size of 0xa0000 instead of 0x80000 in NOR flash. This results in bl3 ending at 0xc0000 which is where the legacy bootchain typically puts U-Boot environment. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r--package/boot/arm-trusted-firmware-mediatek/patches/100-increase-nor-bl3-size.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/boot/arm-trusted-firmware-mediatek/patches/100-increase-nor-bl3-size.patch b/package/boot/arm-trusted-firmware-mediatek/patches/100-increase-nor-bl3-size.patch
new file mode 100644
index 0000000000..8de3cd77f6
--- /dev/null
+++ b/package/boot/arm-trusted-firmware-mediatek/patches/100-increase-nor-bl3-size.patch
@@ -0,0 +1,11 @@
+--- a/plat/mediatek/mt7622/bl2_boot_nor.c
++++ b/plat/mediatek/mt7622/bl2_boot_nor.c
+@@ -12,7 +12,7 @@
+ #define MT7622_NOR_MAP_BASE 0x30000000
+
+ #define FIP_BASE 0x20000
+-#define FIP_SIZE 0x80000
++#define FIP_SIZE 0xa0000
+
+ const io_block_spec_t mtk_boot_dev_fip_spec = {
+ .offset = MT7622_NOR_MAP_BASE + FIP_BASE,