From a476140f68290ba3919df85ff9c7aade2c81f219 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 1 May 2017 16:32:33 +0200 Subject: [PATCH] Properly support external SD cards --- tulip-chiphd/fstab.sun50iw1p1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tulip-chiphd/fstab.sun50iw1p1 b/tulip-chiphd/fstab.sun50iw1p1 index be49b38..7ff0f03 100755 --- a/tulip-chiphd/fstab.sun50iw1p1 +++ b/tulip-chiphd/fstab.sun50iw1p1 @@ -3,12 +3,18 @@ /dev/block/mmcblk0p3 /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check /dev/block/mmcblk0p4 /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check -/devices/soc.0/1c10000.sdmmc/mmc_host/mmc* auto auto defaults voldmanaged=sdcard1:auto /devices/soc.0/1c1a000.ehci0-controller/usb* auto auto defaults voldmanaged=usb:auto /devices/soc.0/1c1b000.ehci1-controller/usb* auto auto defaults voldmanaged=usb:auto /devices/soc.0/1c1a000.ohci0-controller/usb* auto auto defaults voldmanaged=usb:auto /devices/soc.0/1c1b000.ohci1-controller/usb* auto auto defaults voldmanaged=usb:auto /dev/block/zram0 none swap defaults zramsize=268435456 -# this is internal MMC storage and it should not be managed by vold -# /devices/soc.0/1c0f000.sdmmc/mmc_host/mmc* auto auto defaults voldmanaged=sdcard0:auto +# mmc0 is always a boot storage, so we allow to use mmc1 and mmc2 only + +/devices/soc.0/1c0f000.sdmmc/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard1:auto +/devices/soc.0/1c10000.sdmmc/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard2:auto +/devices/soc.0/1c11000.sdmmc/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard3:auto + +/devices/soc.0/1c0f000.sdmmc/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard1:auto +/devices/soc.0/1c10000.sdmmc/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard2:auto +/devices/soc.0/1c11000.sdmmc/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard3:auto