summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorStefan Christ <s.christ@phytec.de>2016-03-09 15:51:20 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2016-03-11 10:03:24 +0100
commit59268153299526360cbdda8940a0f943153d7919 (patch)
tree92b261440532f27be13453fcfe5f1a08e9add298 /recipes-bsp
parentb63f4ab8ef5af9b57c914c336aada826df6148f8 (diff)
downloadmeta-phytec-59268153299526360cbdda8940a0f943153d7919.tar.bz2
meta-phytec-59268153299526360cbdda8940a0f943153d7919.zip
barebox: env: use 'data=journal' for ext4 filesystem for reliability
Change ext4 data mode from 'ordered' to 'journal', because we observe that newly written files are empty, after a powercut happens. This change improves the filesystem reliability in case of a power cut. There are three modes for ext4 filesystem: see https://www.kernel.org/doc/Documentation/filesystems/ext4.txt * writeback mode (journal is not used) (fastest) * ordered mode (only metadata is committed to journal) * journal mode (data+metadata are committed to journal) (slowest) The first observation of reliability issue were empty ssh host keys in /etc/ssh. These are generated on the first ssh login via ssh-keygen. If a powercut happens right after the keys are created, the files are empty on the next boot. That leads to ssh login failures, because keys are invalid and ssh-keygen doesn't regenerated key files that already exist. This option has be set via rootflags in the kernel commandline, because it must be present at the initial mount of the filesystem. It cannot be set in the fstab, because changing this mode via remounting in service systemd-remount-fs.service fails. Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/barebox/env-2015.09.0-phy4/ti33x/commonenv/boot/mmc2
-rw-r--r--recipes-bsp/barebox/env-2015.11.0-phy2/mx6/commonenv/boot/mmc2
-rw-r--r--recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/emmc2
-rw-r--r--recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/mmc2
4 files changed, 4 insertions, 4 deletions
diff --git a/recipes-bsp/barebox/env-2015.09.0-phy4/ti33x/commonenv/boot/mmc b/recipes-bsp/barebox/env-2015.09.0-phy4/ti33x/commonenv/boot/mmc
index 839f6c3..f14f388 100644
--- a/recipes-bsp/barebox/env-2015.09.0-phy4/ti33x/commonenv/boot/mmc
+++ b/recipes-bsp/barebox/env-2015.09.0-phy4/ti33x/commonenv/boot/mmc
@@ -4,4 +4,4 @@
global.bootm.image=/boot/linuximage
global.bootm.oftree=/boot/oftree
-global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2"
+global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootflags='data=journal'"
diff --git a/recipes-bsp/barebox/env-2015.11.0-phy2/mx6/commonenv/boot/mmc b/recipes-bsp/barebox/env-2015.11.0-phy2/mx6/commonenv/boot/mmc
index e6a56e3..2b1f714 100644
--- a/recipes-bsp/barebox/env-2015.11.0-phy2/mx6/commonenv/boot/mmc
+++ b/recipes-bsp/barebox/env-2015.11.0-phy2/mx6/commonenv/boot/mmc
@@ -4,4 +4,4 @@
global.bootm.image="/mnt/mmc/zImage"
global.bootm.oftree="/mnt/mmc/oftree"
-global.linux.bootargs.dyn.root="root=/dev/mmcblk2p2"
+global.linux.bootargs.dyn.root="root=/dev/mmcblk2p2 rootflags='data=journal'"
diff --git a/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/emmc b/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/emmc
index 3c89309..8826e2c 100644
--- a/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/emmc
+++ b/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/emmc
@@ -4,4 +4,4 @@
global.bootm.image="/mnt/emmc/zImage"
global.bootm.oftree="/mnt/emmc/oftree"
-global.linux.bootargs.dyn.root="root=/dev/mmcblk3p2"
+global.linux.bootargs.dyn.root="root=/dev/mmcblk3p2 rootflags='data=journal'"
diff --git a/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/mmc b/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/mmc
index d2fa6a6..708d1e9 100644
--- a/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/mmc
+++ b/recipes-bsp/barebox/env-2015.11.0-phy2/phyboard-mira-imx6/boardenv/boot/mmc
@@ -4,4 +4,4 @@
global.bootm.image="/mnt/mmc/zImage"
global.bootm.oftree="/mnt/mmc/oftree"
-global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2"
+global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootflags='data=journal'"