[Ideos S7 General] ramoncio:
A friend of mine got a new tablet and gave me his older S7-105.

He tried to upgrade to android 4.2.2 and repartition internal sd to have more internal space, and somewhere in the process his internal sd card seems to be dead.

After a couple of days reading this and some other forums, I have finally been able to install PAC-man 23 JB 4.2.2 rom, but all without external sd card. I tried to access the internal sd card from all systems: 2.1-upd1, 2.2.2 and 4.2.2, but no success.

I have also tried downgrading and zeroing the mbr with dd if=/dev/zero of=/dev/block/mmcblk0

but it just creates a 204mb file in /dev/block/mmcblk0 as /dev/block/mmcblk0 doesn't exist.

Now I have PAC-man 23 JB 4.2.2, and I have manually installed parted binaries.

This is what I get in dmesg related with mmc.

~/data/berserker.android.apps.sshdroid/home $ dmesg|grep -i mmc
[ 1.261768] [qsd8x50_init_mmc,4148] request GPIO 157 OK
[ 1.261927] [qsd8x50_init_mmc,4155] configure GPIO 157 OK
[ 4.133880] [vreg_mmc_control,3635] Switching ON vreg_mmc OK
[ 4.134412] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=00000002 sdccid=1 on=1
[ 4.142679] mmc0: Qualcomm MSM SDCC at 0x00000000a0300000 irq 24,221 dma 8
[ 4.149306] mmc0: 8 bit data mode disabled
[ 4.153476] mmc0: 4 bit data mode enabled
[ 4.157375] mmc0: polling status mode disabled
[ 4.161794] mmc0: MMC clock 144000 -> 64000000 Hz, PCLK 64000000 Hz
[ 4.168154] mmc0: Slot eject status = 0
[ 4.171863] mmc0: Power save feature enable = 1
[ 4.176492] mmc0: DM non-cached buffer at ffd52000, dma_addr 0x3fb93000
[ 4.182975] mmc0: DM cmd busaddr 0x3fb93000, cmdptr busaddr 0x3fb93c00
[ 4.203892] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=00000006 sdccid=2 on=1
[ 4.206968] mmc1: Qualcomm MSM SDCC at 0x00000000a0400000 irq 26,0 dma 8
[ 4.213593] mmc1: 8 bit data mode disabled
[ 4.217583] mmc1: 4 bit data mode enabled
[ 4.221663] mmc1: polling status mode disabled
[ 4.226000] mmc1: MMC clock 144000 -> 64000000 Hz, PCLK 64000000 Hz
[ 4.232341] mmc1: Slot eject status = 1
[ 4.236067] mmc1: Power save feature enable = 1
[ 4.240574] mmc1: DM non-cached buffer at ffd53000, dma_addr 0x3fb94000
[ 4.247282] mmc1: DM cmd busaddr 0x3fb94000, cmdptr busaddr 0x3fb94c00
[ 4.254142] mmc2: No card detect facilities available
[ 4.273889] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=00000006 sdccid=1 on=1
[ 4.293982] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=3 on=1
[ 4.333879] [msm_sdcc3_setup_power,4077] Switching ON vreg_emmc in msm_sdcc3_setup_power OK
[ 4.336856] mmc2: Qualcomm MSM SDCC at 0x00000000a0500000 irq 10,0 dma 8
[ 4.343490] mmc2: 8 bit data mode enabled
[ 4.347392] mmc2: 4 bit data mode disabled
[ 4.351562] mmc2: polling status mode enabled
[ 4.355814] mmc2: MMC clock 144000 -> 64000000 Hz, PCLK 64000000 Hz
[ 4.362151] mmc2: Slot eject status = 0
[ 4.365882] mmc2: Power save feature enable = 1
[ 4.370387] mmc2: DM non-cached buffer at ffd54000, dma_addr 0x3fb96000
[ 4.377093] mmc2: DM cmd busaddr 0x3fb96000, cmdptr busaddr 0x3fb96c00
[ 5.093877] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=1 on=1
[ 5.113877] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=1 on=1
[ 5.129089] mmc0: new high speed SDHC card at address b72f
[ 5.137774] mmcblk1: mmc0:b72f SU08G 7.40 GiB
[ 5.142280] mmcblk1: p1 p2
[ 5.313958] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=2 on=1
[ 5.333916] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=2 on=1
[ 6.686815] mmc2: host doesn't support card's voltages
[ 6.708055] mmc2: error -22 whilst initialising SDIO card
[ 7.862767] mmc2: host doesn't support card's voltages
[ 7.871566] EXT4-fs (mmcblk1p2): mounted filesystem without journal
[ 7.884177] mmc2: error -22 whilst initialising SDIO card
[ 9.036666] mmc2: host doesn't support card's voltages
[ 9.054071] mmc2: error -22 whilst initialising SDIO card
[ 10.196824] mmc2: host doesn't support card's voltages
[ 24.154689] mmc2: error -22 whilst initialising SDIO card
[ 25.214152] mmc1: Slot status change detected (0 -> 1)
[ 25.309190] mmc2: host doesn't support card's voltages
[ 25.324092] mmc2: error -22 whilst initialising SDIO card
[ 25.494016] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=2 on=1
[ 25.514020] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=2 on=1
[ 25.569839] mmc1: queuing CIS tuple 0x80 length 50
[ 25.592533] mmc1: queuing CIS tuple 0x80 length 7
[ 25.602561] mmc1: queuing CIS tuple 0x80 length 9
[ 25.610713] mmc1: queuing CIS tuple 0x80 length 6
[ 25.675273] mmc1: queuing CIS tuple 0x02 length 1
[ 25.694244] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=2 on=1
[ 25.714010] [vreg_mmc_control,3641] vreg_mmc control status: vreg_sts=0000000e sdccid=2 on=1
[ 25.725996] mmc1: new SDIO card at address 0001
[ 26.469183] mmc2: host doesn't support card's voltages
[ 26.484220] mmc2: error -22 whilst initialising SDIO card
[ 27.659404] mmc2: host doesn't support card's voltages
[ 27.674591] mmc2: error -22 whilst initialising SDIO card
[ 28.817352] mmc2: host doesn't support card's voltages

"host doesn't support card's voltages" seems to be the main error... this looks as a kernel config error.

My external 8gb SD card is properly detected (mmcblk1).

It has two partitions, mmcblk1 and mmcblk1, but app2sd is not working. /sd-ext is mounted. I'll have to study a bit more.

Here is some system information:

# ls -la /dev/block/mm*
brw------- 1 root root 179, 16 Sep 20 11:38 /dev/block/mmcblk1
brw------- 1 root root 179, 17 Sep 20 11:38 /dev/block/mmcblk1p1
brw------- 1 root root 179, 18 Sep 20 11:38 /dev/block/mmcblk1p2

# mount
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /storage type tmpfs (rw,relatime,mode=050,gid=1028)
tmpfs on /mnt/secure type tmpfs (rw,relatime,mode=700)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/fuse type tmpfs (rw,relatime,mode=775,gid=1000)
/dev/block/mtdblock2 on /system type yaffs2 (ro,relatime)
/dev/block/mtdblock4 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock3 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mmcblk1p2 on /sd-ext type ext4 (rw,relatime,barrier=1,data=writeback)
/dev/block/vold/179:17 on /storage/sdcard0 type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /storage/sdcard0/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)

# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 204.2M 84.0K 204.1M 0% /dev
tmpfs 204.2M 0 204.2M 0% /storage
tmpfs 204.2M 0 204.2M 0% /mnt/secure
tmpfs 204.2M 0 204.2M 0% /mnt/asec
tmpfs 204.2M 0 204.2M 0% /mnt/obb
tmpfs 204.2M 0 204.2M 0% /mnt/fuse
/dev/block/mtdblock2 250.0M 216.5M 33.5M 87% /system
/dev/block/mtdblock4 160.0M 96.1M 63.9M 60% /data
/dev/block/mtdblock3 33.0M 1.2M 31.8M 4% /cache
/dev/block/mmcblk1p2 3.8G 52.0K 3.6G 0% /sd-ext
/dev/block/vold/179:17 3.6G 860.9M 2.7G 23% /storage/sdcard0

# cat /proc/mtd
dev: size erasesize name
mtd0: 00500000 00020000 "boot"
mtd1: 00500000 00020000 "recovery"
mtd2: 0fa00000 00020000 "system"
mtd3: 02100000 00020000 "cache"
mtd4: 0a000000 00020000 "userdata"
mtd5: 00200000 00020000 "logo"
mtd6: 000e0000 00020000 "splash"
mtd7: 00200000 00020000 "misc"

# fdisk -l /dev/block/mmcblk1

Disk /dev/block/mmcblk1: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk1p1 1 117554 3761718+ c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk1p2 117554 242560 4000201 83 Linux
Partition 2 does not end on cylinder boundary

# fdisk -l /dev/block/mmcblk0
fdisk: can't open '/dev/block/mmcblk0': No such file or directory

# uname -a
Linux localhost 2.6.32.9-ideos #1 PREEMPT Thu Aug 15 15:06:53 FET 2013 armv7l GNU/Linux

# cat /system/etc/vold.fstab
# Mounts the first usable partition of the specified device s7-105
dev_mount sdcard /storage/sdcard0 auto /devices/platform/msm_sdcc.1/mmc_host/mmc0
dev_mount usbdisk /storage/usbdisk0 auto /devices/platform/msm_hsusb_host.0/usb1

Could someone help me revive my internal sd?

I'm not sure but it might be a hardware problem.

It could also be some kernel problem, as I didn't see those mmc errors in dmesg with 2.1 or 2.2.2. (I coudn't access internal mmc anyway)

what other kernels can I try?

Thanks just for reading this long post!!