aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-04-07 09:30:30 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-04-08 13:16:13 +0200
commitb7ffeef9249ccaca672f8483b9b19befd752cea3 (patch)
treeabad214b10abf846f6ad766010c704f363d664f3
parent2e2b5833931895f5cb6138b8563aa5ff1010a0ff (diff)
downloadupstream-b7ffeef9249ccaca672f8483b9b19befd752cea3.tar.gz
upstream-b7ffeef9249ccaca672f8483b9b19befd752cea3.tar.bz2
upstream-b7ffeef9249ccaca672f8483b9b19befd752cea3.zip
bcm4908: pad firmware image bootfs JFFS2 partition to 8 MiB
This way MTD "bootfs" partition will be always 8+ MiB. This should be enough for any custom / future firmware to fit its bootfs (e.g. big kernel) without having to repertition whole flash. That way we can preserve UBI and its erase counters during sysupgrade. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit ca9b1f15c424d68af0f372c37c8eee81b36ee7e1)
-rw-r--r--target/linux/bcm4908/image/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/bcm4908/image/Makefile b/target/linux/bcm4908/image/Makefile
index c7714ecf59..072915602d 100644
--- a/target/linux/bcm4908/image/Makefile
+++ b/target/linux/bcm4908/image/Makefile
@@ -20,7 +20,7 @@ define Build/bcm4908img
cp $(KDIR)/bcm63xx-cfe/$(subst _,$(comma),$(DEVICE_NAME))/cferam.000 $@-bootfs/
cp $(IMAGE_KERNEL) $@-bootfs/vmlinux.lz
- $(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad --little-endian --squash-uids \
+ $(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad=0x800000 --little-endian --squash-uids \
-v -e 128KiB -o $@-bootfs.jffs2 -d $@-bootfs -m none -n
$(STAGING_DIR_HOST)/bin/bcm4908img create $@.new -f $@-bootfs.jffs2 \
-a 0x20000 -f $@