[openwrt/openwrt] bcm4908: pad firmware image bootfs JFFS2 partition to 8 MiB

LEDE Commits lede-commits at lists.infradead.org
Wed Apr 7 08:37:05 BST 2021


rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/ca9b1f15c424d68af0f372c37c8eee81b36ee7e1

commit ca9b1f15c424d68af0f372c37c8eee81b36ee7e1
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Wed Apr 7 09:30:30 2021 +0200

    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 at milecki.pl>
---
 target/linux/bcm4908/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/bcm4908/image/Makefile b/target/linux/bcm4908/image/Makefile
index 9af815d611..3d23568069 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 $@



More information about the lede-commits mailing list