u-boot: switch beagleboard and beaglebone to RO rootfs at boot
authorKoen Kooi <koen@dominion.thruhere.net>
Sun, 16 Oct 2011 07:58:44 +0000 (09:58 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Sun, 16 Oct 2011 07:58:44 +0000 (09:58 +0200)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-bsp/u-boot/u-boot/2011.09/0003-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch [new file with mode: 0644]
recipes-bsp/u-boot/u-boot/2011.09git/0003-am335x-evm-make-rootfs-RO-on-boot.patch [new file with mode: 0644]
recipes-bsp/u-boot/u-boot_2011.09.bb
recipes-bsp/u-boot/u-boot_2011.10rc.bb

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 (file)
index 0000000..3c6743e
--- /dev/null
@@ -0,0 +1,26 @@
+From 78080b20d8daa8e80f962beeab898d171bcc8eac Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+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 <koen@dominion.thruhere.net>
+---
+ 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 (file)
index 0000000..2887746
--- /dev/null
@@ -0,0 +1,26 @@
+From 9f8585887a08e6a9c7ca24c2a9c0e9a8c66a2a54 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <koen@dominion.thruhere.net>
+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 <koen@dominion.thruhere.net>
+---
+ 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
+
index 223ccb90861fff5acccec654f9a3660dd6593579..8eef7c7110fc843b278278fbb6e8d3c43c807fed 100644 (file)
@@ -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 \
           "
 
index a53383087a6739a39ea7996f4f0724904b32a507..314446a4e0e2effa4cdbd84985f164f48cc8c8cf 100644 (file)
@@ -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"