[source] octeon: fix mtd partitions for erlite on cmdline

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 1 08:39:19 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/d6a830ac7eb69933d610fcb35000b9b8fe0f1dc1

commit d6a830ac7eb69933d610fcb35000b9b8fe0f1dc1
Author: Jiri Kastner <cz172638 at gmail.com>
AuthorDate: Wed Jan 18 10:45:23 2017 +0100

    octeon: fix mtd partitions for erlite on cmdline
    
    erlite mtdparts exposes boot0, boot1 and eeprom regions
    as read/write.
    this patch adds readonly flags, so these regions can't be
    modified. same as it is already for ER profile.
    
    Signed-off-by: Jiri Kastner <cz172638 at gmail.com>
---
 target/linux/octeon/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile
index 62e55dc..299e9ba 100644
--- a/target/linux/octeon/image/Makefile
+++ b/target/linux/octeon/image/Makefile
@@ -35,7 +35,7 @@ define Device/er
 endef
 TARGET_DEVICES += er
 
-ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k at 1024k(eeprom) root=/dev/sda2 rootfstype=squashfs,ext4 rootwait
+ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0)ro,512k(boot1)ro,64k(eeprom)ro root=/dev/sda2 rootfstype=squashfs,ext4 rootwait
 define Device/erlite
   CMDLINE := $(ERLITE_CMDLINE) 
   DEVICE_TITLE := Ubiquiti EdgeRouter Lite



More information about the lede-commits mailing list