From eed6b351b299408a71aaa4115608b311271535f4 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 16 Oct 2011 09:58:44 +0200 Subject: [PATCH] u-boot: switch beagleboard and beaglebone to RO rootfs at boot Signed-off-by: Koen Kooi --- ...ount-rootfs-RO-instead-of-RW-at-boot.patch | 26 +++++++++++++++++++ ...03-am335x-evm-make-rootfs-RO-on-boot.patch | 26 +++++++++++++++++++ recipes-bsp/u-boot/u-boot_2011.09.bb | 3 ++- recipes-bsp/u-boot/u-boot_2011.10rc.bb | 3 ++- 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot/2011.09/0003-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0003-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch b/recipes-bsp/u-boot/u-boot/2011.09/0003-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch new file mode 100644 index 00000000..3c6743e9 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0003-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch @@ -0,0 +1,26 @@ +From 78080b20d8daa8e80f962beeab898d171bcc8eac Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Sun, 16 Oct 2011 09:37:38 +0200 +Subject: [PATCH 3/3] beagleboard: mount rootfs RO instead of RW at boot + +Signed-off-by: Koen Kooi +--- + include/configs/omap3_beagle.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h +index a67e5a0..95a134b 100644 +--- a/include/configs/omap3_beagle.h ++++ b/include/configs/omap3_beagle.h +@@ -231,7 +231,7 @@ + "dvimode=640x480MR-16@60\0" \ + "defaultdisplay=dvi\0" \ + "mmcdev=0\0" \ +- "mmcroot=/dev/mmcblk0p2 rw\0" \ ++ "mmcroot=/dev/mmcblk0p2 ro\0" \ + "mmcrootfstype=ext3 rootwait\0" \ + "nandroot=/dev/mtdblock4 rw\0" \ + "nandrootfstype=jffs2\0" \ +-- +1.6.6.1 + diff --git a/recipes-bsp/u-boot/u-boot/2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch b/recipes-bsp/u-boot/u-boot/2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch new file mode 100644 index 00000000..28877463 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch @@ -0,0 +1,26 @@ +From 9f8585887a08e6a9c7ca24c2a9c0e9a8c66a2a54 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Sun, 16 Oct 2011 09:57:06 +0200 +Subject: [PATCH 3/3] am335x-evm: make rootfs RO on boot + +Signed-off-by: Koen Kooi +--- + include/configs/am335x_evm.h | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h +index cb45037..5db3d9f 100755 +--- a/include/configs/am335x_evm.h ++++ b/include/configs/am335x_evm.h +@@ -50,7 +50,7 @@ + "script_addr=0x81900000\0" \ + "console=ttyO0,115200n8\0" \ + "mmc_dev=0\0" \ +- "mmc_root=/dev/mmcblk0p2 rw\0" \ ++ "mmc_root=/dev/mmcblk0p2 ro\0" \ + "nand_root=/dev/mtdblock4 rw\0" \ + "spi_root=/dev/mtdblock4 rw\0" \ + "nor_root=/dev/mtdblock3 rw\0" \ +-- +1.6.6.1 + diff --git a/recipes-bsp/u-boot/u-boot_2011.09.bb b/recipes-bsp/u-boot/u-boot_2011.09.bb index 223ccb90..8eef7c71 100644 --- a/recipes-bsp/u-boot/u-boot_2011.09.bb +++ b/recipes-bsp/u-boot/u-boot_2011.09.bb @@ -1,6 +1,6 @@ require u-boot.inc -PR = "r3" +PR = "r4" # No patches for other machines yet COMPATIBLE_MACHINE = "(beagleboard)" @@ -12,6 +12,7 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \ file://2011.09/0001-beagleboard-add-support-for-TCT-Beacon-board.patch \ file://2011.09/0001-beagleboard-add-support-for-scanning-loop-through-ex.patch \ file://2011.09/0002-beagleboard-switch-to-ttyO2.patch \ + file://2011.09/0003-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch \ file://fw_env.config \ " diff --git a/recipes-bsp/u-boot/u-boot_2011.10rc.bb b/recipes-bsp/u-boot/u-boot_2011.10rc.bb index a5338308..314446a4 100644 --- a/recipes-bsp/u-boot/u-boot_2011.10rc.bb +++ b/recipes-bsp/u-boot/u-boot_2011.10rc.bb @@ -4,7 +4,7 @@ require u-boot.inc COMPATIBLE_MACHINE = "beaglebone" DEFAULT_PREFERENCE_beaglebone = "99" PV = "2011.09+git" -PR = "r6" +PR = "r7" # SPL build UBOOT_BINARY = "u-boot.img" @@ -14,6 +14,7 @@ UBOOT_SYMLINK = "u-boot-${MACHINE}.img" SRC_URI = "git://github.com/trini/u-boot.git;protocol=git;branch=int_am335xpsp_04.06.00.01-v2011.09-for-sdk-05.03.00.00 \ file://2011.09git/0001-am335x_evm-boot-kernel-from-ext2-3-filesystem.patch \ file://2011.09git/0002-am335x_evm-set-bootdelay-to-0.patch \ + file://2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch \ " SRCREV = "456880b203bc44c025c374c98fa327b804a9cf64"