summaryrefslogtreecommitdiff
path: root/include/configs/colibri_t20.h
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-08-31 20:18:39 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2017-10-02 19:26:39 +0200
commitae968c66bbd50dd8538fb41fa68f904f901bb606 (patch)
tree03ae4083b43b99e69e946031b44241229ae5b09e /include/configs/colibri_t20.h
parent4370811cbaf9a3dd1c34fe51532d1454328e6de8 (diff)
apalis/colibri: fix and synchronize mount options
The kernel does not know about rw,noatime. The string rw by itself is valid, and to pass additional arguments rootflags=noatime can be used. The kernel mounts ext3/ext4 file systems by default ro, hence so far the kernel mounted the rootfs read-only. The init manager systemd then remounts the rootfs after file system checking. This makes sense and does not add measureable boot time. Let the kernel explicitly mount ro on block device based rootfs. The root mount flag noatime is only relevant when re-mounting read-write, hence it needs to be present in /etc/fstab. UBIFS used on raw NAND devices has no user space file checking, hence there is no value to mount it in read-only first. Also mount time for UBIFS is larger, and mounting first read-only and then read-write has higher boot time (300ms, likely due to missing block cache). Let the kernel explicitly mount rw on raw NAND based rootfs. UBIFS has no atime support, hence no root mount flags needed. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'include/configs/colibri_t20.h')
-rw-r--r--include/configs/colibri_t20.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index bbf7cb0365..18ce74ec6b 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -116,7 +116,7 @@
"&& setenv dtbparam ${fdt_addr_r}\0"
#define SD_BOOTCMD \
- "sdargs=ip=off root=/dev/mmcblk0p2 rw,noatime rootfstype=ext3 " \
+ "sdargs=ip=off root=/dev/mmcblk0p2 ro rootfstype=ext3 " \
"rootwait\0" \
"sdboot=run setup; setenv bootargs ${defargs} ${mtdparts} ${sdargs} " \
"${setupargs} ${vidargs}; echo Booting from SD card...; " \
@@ -140,7 +140,7 @@
"setenv dtbparam ${fdt_addr_r}\0"
#define USB_BOOTCMD \
- "usbargs=ip=off root=/dev/sda2 rw,noatime rootfstype=ext3 " \
+ "usbargs=ip=off root=/dev/sda2 ro rootfstype=ext3 " \
"rootwait\0" \
"usbboot=run setup; setenv bootargs ${defargs} ${mtdparts} " \
"${setupargs} ${usbargs} ${vidargs}; echo Booting from USB " \