[PATCH 02/16] ARM: i.MX: phytec-som-imx: env: automount emmc if available

Sascha Hauer s.hauer at pengutronix.de
Thu Apr 12 00:30:03 PDT 2018


From: Matthias Rabe <matthias.rabe at sigma-chemnitz.de>

added automount configuration for emmc, if available.
needed f.e. by the android boot.

Signed-off-by: Matthias Rabe <matthias.rabe at sigma-chemnitz.de>
Tested-by: Wadim Egorov <w.egorov at phytec.de>
Signed-off-by: Christian Hemp <c.hemp at phytec.de>
---
 .../arm/boards/phytec-som-imx6/defaultenv-physom-imx6/init/automount | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6/init/automount b/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6/init/automount
index 4b223d8037..fea64d627e 100644
--- a/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6/init/automount
+++ b/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6/init/automount
@@ -7,3 +7,8 @@ automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'
 
 mkdir -p /mnt/mmc
 automount -d /mnt/mmc 'mmc2.probe=1 && [ -e /dev/mmc2.0 ] && mount /dev/mmc2.0 /mnt/mmc'
+
+if [ -e /dev/mmc3 ]; then
+  mkdir -p /mnt/mmc3
+  automount -d /mnt/mmc3 'mmc3.probe=1 && [ -e /dev/mmc3.0 ] && mount /dev/mmc3.0 /mnt/mmc3'
+fi
-- 
2.16.1




More information about the barebox mailing list