From: Matthias Rabe <matthias.r...@sigma-chemnitz.de>

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

Signed-off-by: Matthias Rabe <matthias.r...@sigma-chemnitz.de>
Tested-by: Wadim Egorov <w.ego...@phytec.de>
Signed-off-by: Christian Hemp <c.h...@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to