Random reboots caused by SD card I/O problems - HTC Desire X

My phone keeps randomly restarting for the last three months with ROM Slimbean 0.1 flashed. Usually the phone restarts, when the display is off, but sometimes it restarts out of blue.
After getting the kmsg log, found out, that it might be related with the SD card. The SD card itself is ok, verified with scandisk & the socket seems to be ok, as it always properly mounts after reboot.
Code:
[ 2230.608158] C0 mmc0: Controller has been reinitialized
[ 2230.615133] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.621089] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.627128] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.627249] C0 end_request: I/O error, dev mmcblk0, sector 5250040
[ 2230.627456] C0 Buffer I/O error on device mmcblk0p28, logical block 4991
[ 2230.627593] C0 EXT4-fs warning (device mmcblk0p28): ext4_end_bio:258: I/O error writing to inode 30 (offset 258048 size 4096 starting block 656256)
[ 2230.628796] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.628909] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.629176] C0 mmc0: Controller has been reinitialized
[ 2230.636071] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.642109] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.648058] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.648266] C0 end_request: I/O error, dev mmcblk0, sector 5214360
[ 2230.648383] C0 end_request: I/O error, dev mmcblk0, sector 5214368
[ 2230.648621] C0 Aborting journal on device mmcblk0p28-8.
[ 2230.648794] C0 EXT4-fs error (device mmcblk0p28) in ext4_reserve_inode_write:5645: Journal has aborted
[ 2230.649924] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.650123] C0 Flush data: 0000c003 11620000 00000000 00400040 00400040 00000003
[ 2230.650321] C0 mmc0: Controller has been reinitialized
[ 2230.657301] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.663256] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.669294] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.669411] C0 end_request: I/O error, dev mmcblk0, sector 728920
[ 2230.670531] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.670646] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.670919] C0 mmc0: Controller has been reinitialized
[ 2230.677891] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.683848] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.689886] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.689999] C0 end_request: I/O error, dev mmcblk0, sector 5210960
[ 2230.690199] C0 Buffer I/O error on device mmcblk0p28, logical block 106
[ 2230.690309] C0 lost page write due to I/O error on mmcblk0p28
[ 2230.690571] C0 JBD2: I/O error detected when updating journal superblock for mmcblk0p28-8.
[ 2230.692661] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.692886] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.693361] C0 mmc0: Controller has been reinitialized
[ 2230.700399] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.706699] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.712823] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.713211] C0 end_request: I/O error, dev mmcblk0, sector 5210112
[ 2230.713431] C0 Buffer I/O error on device mmcblk0p28, logical block 0
[ 2230.713811] C0 lost page write due to I/O error on mmcblk0p28
[ 2230.714074] C0 EXT4-fs (mmcblk0p28): Remounting filesystem read-only
[ 2230.714454] C0 ext4_e2fsck
[ 2230.715753] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.716143] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.716459] C0 mmc0: Controller has been reinitialized
[ 2230.720488] C0 ext4_reboot: reboot to run e2fsck
[ 2230.720704] C0 Take CPU down - Begin
[ 2230.720914] C0 Take CPU down - End
[ 2230.722351] C0 [BATT][tps65200] TPS65200 shutdown
[ 2230.722848] C0 journal commit I/O error
[ 2230.724989] C0 Restarting system with command 'oem-22'.
I have Link2sd installed, most of my apps are linked to the second partition of the SD card.

Ist it always the same sector?
As an sd-card is extremely cheap, I would replace it to try it.
With scandisk you mean the crappy windows tool?
David.

Related

[Q] Phone crashed last night - last_kmsg included

Currently running CM10. I woke up this morning to my phone being off, booted up and pulled last_kmsg. I leave my phone charging every night, this is the 2nd time this happened in a week (last time was Friday I think, I forgot to get last_kmsg then though). Here's the end of the file which I think probably contains the important bits, but the entire file is also attached.
[ 1222.096758] c0 CPU1: shutdown
[ 1222.098990] c0 cpu1 off!
[ 1222.595215] c0 cpu1 turning on!
[ 1222.613470] c1 CPU1: Booted secondary processor
[ 1222.613572] c1 notifier_call_chain : NOTIFY BAD tick_notify
[ 1222.615051] c1 Switched to NOHz mode on CPU #1
[ 1222.615241] c0 cpu1 on
[ 1223.206990] c0 mif: link_pm_slave_wake: gpio [SWK] set [1]
[ 1223.207156] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]
[ 1223.212411] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):
[ 1223.212541] c0 mif: set hsic lpa wake: pda active (1)
[ 1223.217162] c0 pn544 : pn544_dev_irq_handler error
[ 1223.241421] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]
[ 1223.290079] c0 mif: usb_port_resume: 1283, 4
[ 1223.304620] c1 pn544_dev_ioctl power off
[ 1223.692774] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]
[ 1223.693076] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):
[ 1223.693189] c0 mif: set hsic lpa wake: pda active (1)
[ 1223.720957] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]
[ 1223.770104] c0 mif: usb_port_resume: 1283, 4
[ 1224.725234] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]
[ 1224.725376] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):
[ 1224.725598] c0 mif: set hsic lpa wake: pda active (1)
[ 1224.755893] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]
[ 1224.805113] c0 mif: usb_port_resume: 1283, 4
[ 1225.975895] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]
[ 1225.976080] c0 mif: set_hsic_lpa_states: 281: called(s5p_usb_phy_resume+0x490/0x5c8):
[ 1225.976130] c0 mif: set hsic lpa wake: pda active (1)
[ 1226.005875] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]
[ 1226.055074] c0 mif: usb_port_resume: 1283, 4
[ 1226.538066] c1 SysRq : Emergency Remount R/O
[ 1226.584327] c1 EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[ 1226.675297] c1 EXT4-fs (mmcblk0p10): re-mounted. Opts: (null)
[ 1226.701464] c1 EXT4-fs (mmcblk0p12): re-mounted. Opts: (null)
[ 1226.780891] c1 EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[ 1226.884372] c1 Emergency Remount complete
[ 1226.941537] c0 (sec_debug_set_upload_magic) 0
[ 1226.941905] c0 REBOOT Notifier for CPUFREQ
[ 1226.941975] c0 REBOOT Notifier for BUSFREQ
[ 1226.942019] c0 hotplug_reboot_notifier_call: disabling pm hotplug
[ 1226.942230] c0 mif: xmm6260_off: xmm6260_off()
[ 1226.942551] c0 max8997-muic max8997-muic: max8997_muic_shutdown: JIGSet: auto detection
[ 1226.943230] c0 max8997-rtc max8997-rtc: max8997_rtc_enable_wtsr: disable WTSR
[ 1226.965248] c0 max8997_rtc_shutdown: WTSR_SMPL reg(0x80)
[ 1226.965302] c0 max8997_rtc_shutdown: success to disable WTSR
[ 1226.965419] c0 k3dh_shutdown: is called.
[ 1226.965607] c0 pn544_shutdown
[ 1226.967218] c0 Disabling non-boot CPUs ...
[ 1226.967733] c1 IRQ112 no longer affine to CPU1
[ 1226.968081] c0 CPU1: shutdown
[ 1226.968827] c0 Restarting system.
[ 1226.968953] c0 sec_reboot (104, (null))
Any ideas as to what went wrong?
Thanks in advance

[Q] Devlog partition corrupt - can be removed?

Hi all,
a friends Desire X took an unfortunate swim in a washing machine. Since then, it will hang with a black screen with backlight on about four times a week, mostly when it isn't actively used. /proc/last_kmsg contains:
Code:
[ 5105.131426] C0 mmc0: Deferred resume completed
[ 5110.136727] C0 mmc0: Starting deferred resume
[ 5120.175589] C0 mmc0: CMD5: Request timeout
[ 5120.175777] C0 mmc0: SDCC PWR is ON
[ 5120.176006] C0 mmc0: SDCC clks are ON, MCLK rate=144000
[ 5120.176322] C0 mmc0: SDCC irq is enabled
[ 5120.176497] C0 ===== SDCC-CORE: Register Dumps @phys_base=0xa0600000, @virt_base=0xcf824000 =====
[ 5120.176821] C0 Reg=0x00: 0x00000001, 0x00009100, 0x00010000, 0x00000c45
[ 5120.177142] C0 Reg=0x10: 0x00000005, 0x00001500, 0x0f5903ff, 0xffffffe7
[ 5120.177326] C0 Reg=0x20: 0x8a4040e2, 0x039396a0, 0x00001000, 0x00022008
[ 5120.177646] C0 Reg=0x30: 0x00000000, 0x00000400, 0x00000000, 0x008001ff
[ 5120.177826] C0 Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 5120.178146] C0 Reg=0x50: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 5120.178466] C0 Reg=0x60: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 5120.178649] C0 mmc0: got_dataend=0, prog_enable=1, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=10000
[ 5120.178981] C0 mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0
[ 5120.179422] C0 mmc0: Controller has been reinitialized
[ 5121.371397] C0 mmc0: Deferred resume Fail
[ 5121.372651] C0 mmc0: DMA channel flushed (0x80000004)
[ 5121.372836] C0 Flush data: 0000c003 11720000 00000000 00400040 003f003d 00008003
[ 5121.373254] C0 mmc0: Controller has been reinitialized
[ 5121.380404] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.386454] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.392637] C0 mmcblk0: error -110 sending status command, aborting
[ 5121.392831] C0 end_request: I/O error, dev mmcblk0, sector 5253328
[ 5121.393159] C0 Buffer I/O error on device mmcblk0p28, logical block 5402
[ 5121.393369] C0 EXT4-fs warning (device mmcblk0p28): ext4_end_bio:258: I/O error writing to inode 19 (offset 368640 size 4096 starting block 656667)
[ 5121.393879] C0 JBD2: Detected IO errors while flushing file data on mmcblk0p28-8
[ 5121.395007] C0 mmc0: DMA channel flushed (0x80000004)
[ 5121.395331] C0 Flush data: 0000c003 11720000 00000000 00400040 003f003d 00008003
[ 5121.395602] C0 mmc0: Controller has been reinitialized
[ 5121.402749] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.408804] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.414984] C0 mmcblk0: error -110 sending status command, aborting
[ 5121.415177] C0 end_request: I/O error, dev mmcblk0, sector 5218184
[ 5121.415514] C0 end_request: I/O error, dev mmcblk0, sector 5218192
[ 5121.415992] C0 Aborting journal on device mmcblk0p28-8.
[ 5121.416417] C0 EXT4-fs error (device mmcblk0p28) in ext4_reserve_inode_write:5645: Journal has aborted
[ 5121.418139] C0 mmc0: DMA channel flushed (0x80000004)
[ 5121.418334] C0 Flush data: 0000c003 11720000 00000000 00400040 003f003d 00008003
[ 5121.418767] C0 mmc0: Controller has been reinitialized
[ 5121.425804] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.431986] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.438059] C0 mmcblk0: error -110 sending status command, aborting
[ 5121.438246] C0 end_request: I/O error, dev mmcblk0, sector 5210960
[ 5121.438571] C0 Buffer I/O error on device mmcblk0p28, logical block 106
[ 5121.438751] C0 lost page write due to I/O error on mmcblk0p28
[ 5121.439099] C0 JBD2: I/O error detected when updating journal superblock for mmcblk0p28-8.
[ 5121.440251] C0 mmc0: DMA channel flushed (0x80000004)
[ 5121.440571] C0 Flush data: 0000c003 11720000 00000000 00400040 003f003d 00008003
[ 5121.440989] C0 mmc0: Controller has been reinitialized
[ 5121.447992] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.454177] C0 mmcblk0: error -110 sending status command, retrying
[ 5121.460227] C0 mmcblk0: error -110 sending status command, aborting
[ 5121.460551] C0 end_request: I/O error, dev mmcblk0, sector 5210112
[ 5121.460734] C0 Buffer I/O error on device mmcblk0p28, logical block 0
[ 5121.461052] C0 lost page write due to I/O error on mmcblk0p28
[ 5121.461262] C0 EXT4-fs (mmcblk0p28): Remounting filesystem read-only
[ 5121.461581] C0 ext4_e2fsck
[ 5121.465612] C0 ext4_reboot: reboot to run e2fsck
[ 5121.465796] C0 Take CPU down - Begin
[ 5121.466106] C0 Take CPU down - End
[ 5121.467227] C0 [BATT][tps65200] TPS65200 shutdown
[ 5121.473664] C0 Restarting system with command 'oem-22'.
[ 5121.473859] C0 [K] msm_pm_restart: restart_reason 0x6f656d22, cmd oem-22
[ 5121.474474] C0 [K] @@@@@@@@@@@ msm_proc_comm end
[ 5121.474659] C0 [K] from msm_pm_restart
[ 5122.621554] C0 [RMT] rmt_storage_event_write_iovec_cb: write iovec callback received
[ 5122.622382] C0 [RMT] handle = 1
[ 5122.622822] C0 [RMT] sec_addr = 0, data_addr = 300000, num_sec = 6143
[ 5122.623612] C0 [RMT] sec_addr = 6143, data_addr = 5ffe00, num_sec = 1
[ 5122.624066] C0 [RMT] iovec transfer count = 2
[ 5122.624089] C0
[ 5122.625316] C0 [RMT] rmt_storage_ioctl: ioctl cmd -2140093951 return value 0
[ 5122.626584] C0 [RMT] rmt_storage_ioctl: wait for request ioctl
[ 5122.640087] C0 [RMT] handle_rmt_storage_call: Sending result=0x0
[ 5122.839952] C0 mmc0: DMA channel flushed (0x80000004)
[ 5122.840149] C0 Flush data: 0000c003 11720000 00000000 00400040 003f003d 00008003
[ 5122.840561] C0 mmc0: Controller has been reinitialized
[ 5122.848189] C0 mmcblk0: error -110 sending status command, retrying
[ 5122.854384] C0 mmcblk0: error -110 sending status command, retrying
[ 5122.860802] C0 mmcblk0: error -110 sending status command, aborting
[ 5122.861214] C0 end_request: I/O error, dev mmcblk0, sector 131073
[ 5122.861404] C0 Buffer I/O error on device mmcblk0p13, logical block 0
[ 5122.861724] C0 lost page write due to I/O error on mmcblk0p13
[ 5122.861972] C0 end_request: I/O error, dev mmcblk0, sector 131081
So it seems it gets an I/O error while writing to /dev/mmcblk0p28, which is devlog, AFAICT the internal logfile HTC uses for service requests. It then wants to reboot but crashes during reboot because the eMMC isn't responding at all anymore.
Now my question: Would it be possible to remove the devlog mount? I haven't tried yet since this might lead to a bootloop, and I wanted to ask here for experiences first. Any hints greatly appreciated, also maybe other approaches than removing devlog?

[Q] Damaged EMMC? Is booting from SD card possible?

Hi!
I have a problem with my HTC Desire X. The device was ok until it went off and was plugged to a power source, then only the HBOOT menu appeared.
The device has not been touched concerning custom roms, boot loaders etc. until then. So it had the stock rom and as far as I know, there was no update going on, when the device turned off.
To solve the problem, I unlocked the bootloader and installed the recovery image TWRP 2.5.0. But in the Recovery mode I could not mount any internal partition. So it was not possible to wipe anything or install a custom rom.
The only explanation I found for this is, that maybe the internal memory (EMMC) was corrupted and the system could not mount it and boot up. My question is: Is there something I can do to about it?
It would be nice if I could boot up an Android system from SD card. Is this possible? I only found solutions for other HTC devices so far.
I did some more research.
First I tried to start fdisk/parted to print the partition table. Both did not work. parted hangs, while fdisk says it could not read the device.
So I looked what I can find with procfs. There are only four partitions printed.
Code:
cat /proc/partitions
major minor #blocks name
179 0 3784708 mmcblk0
179 1 20 mmcblk0p1
179 2 544 mmcblk0p2
179 3 4500 mmcblk0p3
179 4 1 mmcblk0p4
Code:
cat /proc/emmc
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 00c7f600 00000200 "recovery"
mmcblk0p27: 00fffc00 00000200 "boot"
mmcblk0p24: 3bdffe00 00000200 "system"
mmcblk0p26: 0f000000 00000200 "cache"
mmcblk0p25: 4cfffe00 00000200 "userdata"
mmcblk0p28: 017ade00 00000200 "devlog"
mmcblk0p30: 00040000 00000200 "pdata"
mmcblk0p31: 46800000 00000200 "fat"
mmcblk0p29: 00011c00 00000200 "extra"
Then I tried to find out wether there were error messanges concerning the emmc:
Code:
dmesg |grep mmc
<6>[ 7.378778] C0 mmc0: SDCC Version: 0x00000000
<3>[ 7.378981] C0 mmc0: No card detect facilities available
<6>[ 7.380389] C0 mmc0: Qualcomm MSM SDCC-core at 0x00000000a0600000 irq 80,0
dma 7 dmacrcri 12
<6>[ 7.380416] C0 mmc0: Controller capabilities: 0x00000001
<6>[ 7.380434] C0 mmc0: Platform slot type: MMC
<6>[ 7.380451] C0 mmc0: 8 bit data mode enabled
<6>[ 7.380468] C0 mmc0: 4 bit data mode disabled
<6>[ 7.380484] C0 mmc0: polling status mode disabled
<6>[ 7.380504] C0 mmc0: MMC clock 144000 -> 50000000 Hz, PCLK 80000000 Hz
<6>[ 7.380524] C0 mmc0: Slot eject status = 0
<6>[ 7.380541] C0 mmc0: Power save feature enable = 1
<6>[ 7.380561] C0 mmc0: DM non-cached buffer at ffdc0000, dma_addr 0x13740000
<6>[ 7.380584] C0 mmc0: DM cmd busaddr 0x13740000, cmdptr busaddr 0x13757f40
<6>[ 7.381294] C0 mmc1: SDCC Version: 0x00000000
<6>[ 7.383129] C0 mmc1: Qualcomm MSM SDCC-core at 0x00000000a0400000 irq 56,2
94 dma 10 dmacrcri 6
<6>[ 7.383156] C0 mmc1: Controller capabilities: 0x00000001
<6>[ 7.383174] C0 mmc1: Platform slot type: SD
<6>[ 7.383191] C0 mmc1: 8 bit data mode disabled
<6>[ 7.383208] C0 mmc1: 4 bit data mode enabled
<6>[ 7.383224] C0 mmc1: polling status mode disabled
<6>[ 7.383244] C0 mmc1: MMC clock 144000 -> 50000000 Hz, PCLK 80000000 Hz
<6>[ 7.383264] C0 mmc1: Slot eject status = 1
<6>[ 7.383281] C0 mmc1: Power save feature enable = 1
<6>[ 7.383301] C0 mmc1: DM non-cached buffer at ffda0000, dma_addr 0x13760000
<6>[ 7.383324] C0 mmc1: DM cmd busaddr 0x13760000, cmdptr busaddr 0x13777f40
<6>[ 7.383951] C0 mmc2: SDCC Version: 0x00000000
<6>[ 7.385494] C0 mmc2: Qualcomm MSM SDCC-core at 0x00000000a0500000 irq 58,0
dma 8 dmacrcri 7
<6>[ 7.385521] C0 mmc2: Controller capabilities: 0x00000001
<6>[ 7.385539] C0 mmc2: Platform slot type: SDIO(WIFI)
<6>[ 7.385556] C0 mmc2: 8 bit data mode disabled
<6>[ 7.385573] C0 mmc2: 4 bit data mode enabled
<6>[ 7.385589] C0 mmc2: polling status mode disabled
<6>[ 7.385609] C0 mmc2: MMC clock 144000 -> 50000000 Hz, PCLK 80000000 Hz
<6>[ 7.385629] C0 mmc2: Slot eject status = 1
<6>[ 7.385646] C0 mmc2: Power save feature enable = 1
<6>[ 7.385666] C0 mmc2: DM non-cached buffer at ffd80000, dma_addr 0x13780000
<6>[ 7.385689] C0 mmc2: DM cmd busaddr 0x13780000, cmdptr busaddr 0x13797f40
<6>[ 7.447169] C0 mmc_attach_sdio mmc_send_io_op_cond error1: -110
<3>[ 7.470703] C0 mmc0: ACMD 41 init process fail : resp : 0x0
<6>[ 7.534723] C0 mmc0: cid 90014a2058494e594814005f562a8f6e
<6>[ 7.534738] C0 mmc0: csd d02701320f5903d7ffffffe78a4040e6
<6>[ 7.534758] C0 mmc0: ext_csd 00000000000000010301000000000000
<6>[ 7.534776] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.534794] C0 mmc0: ext_csd 00004000000000080000000000000000
<6>[ 7.534813] C0 mmc0: ext_csd 00000000000000000000080000000000
<6>[ 7.534831] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.534849] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.534868] C0 mmc0: ext_csd 00000800000000000000000000000000
<6>[ 7.534886] C0 mmc0: ext_csd 00000000000001040000000000000000
<6>[ 7.534904] C0 mmc0: ext_csd 00000000000000000000200000000000
<6>[ 7.534923] C0 mmc0: ext_csd 00000000000000000000080000000000
<6>[ 7.534941] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.534959] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.534978] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.534996] C0 mmc0: ext_csd 00000040000000000000020000000000
<6>[ 7.535014] C0 mmc0: ext_csd 00001000000000000000000000000000
<6>[ 7.535033] C0 mmc0: ext_csd 00000000000000000000080000000000
<6>[ 7.535051] C0 mmc0: ext_csd 00000000000000000000000000000a00
<6>[ 7.535069] C0 mmc0: ext_csd 0000000000000001150a0a0700100701
<6>[ 7.535088] C0 mmc0: ext_csd 02010807070013000073800800080808
<6>[ 7.535108] C0 mmc0: ext_csd 08080800000000000202020700020005
<6>[ 7.535126] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.535144] C0 mmc0: ext_csd 00000000000000101f05000000010003
<6>[ 7.535163] C0 mmc0: ext_csd 00011e00000000000000000000000000
<6>[ 7.535181] C0 mmc0: ext_csd 00000000000000000000000000000004
<6>[ 7.535199] C0 mmc0: ext_csd 00000008000000000000000000000200
<6>[ 7.535218] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.535234] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.535253] C0 mmc0: ext_csd 00000010000000000000000000000000
<6>[ 7.535271] C0 mmc0: ext_csd 00000000000000000000000000000002
<6>[ 7.535289] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.535308] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.535326] C0 mmc0: ext_csd 00000000000000000000000000000000
<6>[ 7.539618] C0 mmc0: set ext_csd.erase_group_def
<6>[ 7.550189] C0 mmc0: new high speed MMC card at address 0001
<6>[ 7.550671] C0 mmcblk0: mmc0:0001 XINYH 3.60 GiB
<6>[ 7.607051] C0 mmc2: Slot status change detected (0 -> 1)
<3>[ 7.857109] C0 mmc0: CMD18: Data timeout
<3>[ 7.857121] C0 mmc0: SDCC PWR is ON
<3>[ 7.857169] C0 mmc0: SDCC clks are ON, MCLK rate=50000000
<3>[ 7.857181] C0 mmc0: SDCC irq is enabled
<3>[ 7.857399] C0 mmc0: MCI_TEST_INPUT = 0x000003fe
<3>[ 7.857411] C0 mmc0: ADM mode: busy=1, chnl=7, crci=12
<3>[ 7.857423] C0 mmc0: xfer_size=4096, data_xfered=0, xfer_remain=4096
<3>[ 7.857438] C0 mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done
=0, got_auto_prog_done=0, req_tout_ms=10000
<3>[ 7.857454] C0 mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspendi
ng=0
<3>[ 7.857471] C0 mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0,
disable_depth=0, runtime_error=0, request_pending=0, request=0
<3>[ 7.857538] C1 mmc0: DMA channel flushed (0x80000004)
<6>[ 7.857621] C1 mmc0: Controller has been reinitialized
<3>[ 7.857711] C0 mmcblk0: error -110 sending stop command, original cmd resp
onse 0x40000900, card status 0x400900
<3>[ 7.857728] C0 mmcblk0: r/w command failed, status = 0x40000900
<3>[ 7.857751] C0 end_request: I/O error, dev mmcblk0, sector 10128
<3>[ 7.857768] C0 Buffer I/O error on device mmcblk0, logical block 1266
<3>[ 8.163094] C0 mmc0: CMD18: Data timeout
<3>[ 8.163106] C0 mmc0: SDCC PWR is ON
<3>[ 8.163153] C0 mmc0: SDCC clks are ON, MCLK rate=50000000
<3>[ 8.163163] C0 mmc0: SDCC irq is enabled
<3>[ 8.163381] C0 mmc0: MCI_TEST_INPUT = 0x000003fe
<3>[ 8.163393] C0 mmc0: ADM mode: busy=1, chnl=7, crci=12
<3>[ 8.163404] C0 mmc0: xfer_size=4096, data_xfered=0, xfer_remain=4096
<3>[ 8.163419] C0 mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done
=0, got_auto_prog_done=0, req_tout_ms=10000
<3>[ 8.163436] C0 mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspendi
ng=0
<3>[ 8.163453] C0 mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0,
disable_depth=0, runtime_error=0, request_pending=0, request=0
<3>[ 8.163514] C1 mmc0: DMA channel flushed (0x80000004)
<6>[ 8.163596] C1 mmc0: Controller has been reinitialized
<3>[ 8.163676] C0 mmcblk0: error -110 sending stop command, original cmd resp
onse 0x40000900, card status 0x400900
<3>[ 8.163693] C0 mmcblk0: r/w command failed, status = 0x40000900
<3>[ 8.163713] C0 end_request: I/O error, dev mmcblk0, sector 10128
<3>[ 8.163729] C0 Buffer I/O error on device mmcblk0, logical block 1266
<6>[ 8.163773] C0 mmcblk0: p1 p2 p3 p4 < >
<6>[ 8.164671] C0 mmc_rescan_try_freq: Find a MMC/eMMC card
<6>[ 8.233194] C0 mmc2: new high speed SDIO card at address 0001
<6>[ 8.251248] C0 mmc_rescan_try_freq: Find a SDIO card
<3>[ 8.790308] C0 mmc0: CMD18: Data timeout
<3>[ 8.790318] C0 mmc0: SDCC PWR is ON
<3>[ 8.790366] C0 mmc0: SDCC clks are ON, MCLK rate=50000000
<3>[ 8.790376] C0 mmc0: SDCC irq is enabled
<3>[ 8.790594] C0 mmc0: MCI_TEST_INPUT = 0x000003fe
<3>[ 8.790606] C0 mmc0: ADM mode: busy=1, chnl=7, crci=12
<3>[ 8.790618] C0 mmc0: xfer_size=4096, data_xfered=0, xfer_remain=4096
<3>[ 8.790633] C0 mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done
=0, got_auto_prog_done=0, req_tout_ms=10000
<3>[ 8.790649] C0 mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspendi
ng=0
<3>[ 8.790666] C0 mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0,
disable_depth=0, runtime_error=0, request_pending=0, request=0
<3>[ 8.790741] C1 mmc0: DMA channel flushed (0x80000004)
<6>[ 8.790841] C1 mmc0: Controller has been reinitialized
<3>[ 8.790936] C0 mmcblk0: error -110 sending stop command, original cmd resp
onse 0x40000900, card status 0x400900
<3>[ 8.790953] C0 mmcblk0: r/w command failed, status = 0x40000900
<3>[ 8.790979] C0 end_request: I/O error, dev mmcblk0, sector 10128
<3>[ 8.790998] C0 Buffer I/O error on device mmcblk0, logical block 1266
<3>[ 9.096353] C0 mmc0: CMD18: Data timeout
<3>[ 9.096363] C0 mmc0: SDCC PWR is ON
<3>[ 9.096408] C0 mmc0: SDCC clks are ON, MCLK rate=50000000
<3>[ 9.096416] C0 mmc0: SDCC irq is enabled
<3>[ 9.096591] C0 mmc0: MCI_TEST_INPUT = 0x000003fe
<3>[ 9.096599] C0 mmc0: ADM mode: busy=1, chnl=7, crci=12
<3>[ 9.096609] C0 mmc0: xfer_size=4096, data_xfered=0, xfer_remain=4096
<3>[ 9.096621] C0 mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done
=0, got_auto_prog_done=0, req_tout_ms=10000
<3>[ 9.096634] C0 mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspendi
ng=0
<3>[ 9.096648] C0 mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0,
disable_depth=0, runtime_error=0, request_pending=0, request=0
<3>[ 9.096721] C1 mmc0: DMA channel flushed (0x80000004)
<6>[ 9.096803] C1 mmc0: Controller has been reinitialized
<3>[ 9.096889] C0 mmcblk0: error -110 sending stop command, original cmd resp
onse 0x40000900, card status 0x400900
<3>[ 9.096903] C0 mmcblk0: r/w command failed, status = 0x40000900
<3>[ 9.096924] C0 end_request: I/O error, dev mmcblk0, sector 10128
<3>[ 9.096941] C0 Buffer I/O error on device mmcblk0, logical block 1266
I see some I/O errors there.

Dead embedded MMC ? Can I recover some of the data ?

Hello,
my i9300 has been rebooting strangely in the past days, and this morning was stuck in boot loop. Unfortunately I didn't get to backup the last pictures I took. I am trying to find a way to get access to the data it might still hold.
I can enter recovery mode (works but sometimes requires several attemps). Once there it cannot read system partitions (and thus can't wipe cache).
I tried to remove battery / sdcard, hold power button for a long time, hold it with home + up as well
More info:
* kernel has some issues to access the root system
Code:
$ dmesg | grep mmc
<5>[ 0.000000] c0 Kernel command line: console=ram loglevel=4 bootmode=2 sec_debug.level=0 sec_watchdog.sec_pet=5 androidboot.debug_level=0x4f4c [email protected] s3cfb.bootloaderfb=0x5ec00000 sysscope=0xff000000 lcdtype=96 consoleblank=0 lpcharge=0 lpj=3981312 vmalloc=144m oops=panic pmic_info=65 cordon=80682fa972fd0742b08c3ec03dbe74be connie=GT-I9300_OPEN_EUR_ca5a0240c80b887511e34b14c9d00c16 androidboot.emmc_checksum=3 androidboot.odin_download=1 androidboot.bootloader=I9300XXUGND5 androidboot.serialno=4df1dd821ee57fd9 snd_soc_core.pmdown_time=1000
<6>[ 1.741101] c2 dw_mmc dw_mmc: clock source 0: sclk_dwmci (40000000 Hz)
<3>[ 1.741379] c2 mmc0: Version ID 0x5342240a.
<6>[ 1.741630] c2 mmc0: FIFO WMARK FOR RX 0x80 WX 0x40. ###########
<6>[ 1.742124] c2 mmc0: MSHCI controller on samsung-mshci [dw_mmc] using IDMA
<6>[ 1.742616] c2 s3c-sdhci s3c-sdhci.2: clock source 2: sclk_mmc (88888888 Hz)
<6>[ 1.742906] c2 mmc1: vtf_2.8v regulator found
<3>[ 1.770850] c0 mmc0: cmd 52 response timeout error
<3>[ 1.771702] c0 mmc0: cmd 52 response timeout error
<3>[ 1.775742] c0 mmc0: cmd 8 response timeout error
<3>[ 1.776591] c0 mmc0: cmd 5 response timeout error
<3>[ 1.777420] c0 mmc0: cmd 5 response timeout error
<3>[ 1.778246] c0 mmc0: cmd 5 response timeout error
<3>[ 1.779073] c0 mmc0: cmd 5 response timeout error
<3>[ 1.779920] c0 mmc0: cmd 55 response timeout error
<3>[ 1.780767] c0 mmc0: cmd 55 response timeout error
<3>[ 1.781613] c0 mmc0: cmd 55 response timeout error
<3>[ 1.782463] c0 mmc0: cmd 55 response timeout error
<3>[ 1.801773] c1 mmc0: PERM_WRITE_PROTECT was set.
<6>[ 1.801805] c1 mmc0: VTU00M: 15010056545530304df1dd821ee57fd9
<7>[ 1.848333] c0 Registered led device: mmc1::
<6>[ 1.848801] c0 mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.2] using ADMA
<6>[ 1.849085] c0 mmc1: card inserted.
<6>[ 1.849225] c0 s3c-sdhci s3c-sdhci.3: clock source 2: sclk_mmc (8888888 Hz)
<3>[ 1.849340] c0 mmc2: no vmmc regulator found
<7>[ 1.849600] c0 Registered led device: mmc2::
<6>[ 1.849898] c0 mmc2: SDHCI controller on samsung-hsmmc [s3c-sdhci.3] using ADMA
<3>[ 1.883922] c0 mmc0: cmd 13 response timeout error
<6>[ 1.885069] c0 mmc0 : disable PON feature : ffffff92 : 00(0e) : 00000000
<3>[ 1.885909] c0 mmc0: cmd 6 response timeout error
<3>[ 1.887775] c0 mmc0: cmd 6 response timeout error
<3>[ 1.889637] c0 mmc0: cmd 6 response timeout error
<3>[ 1.891500] c0 mmc0: cmd 6 response timeout error
<3>[ 1.892612] c0 mmc0: error -110 whilst initialising MMC card
<6>[ 1.920360] c0 mmc1: cmd 52 command timeout error
<6>[ 1.920726] c0 mmc1: cmd 52 command timeout error
<6>[ 1.924597] c0 mmc1: cmd 5 command timeout error
<6>[ 1.924932] c0 mmc1: cmd 5 command timeout error
<6>[ 1.925265] c0 mmc1: cmd 5 command timeout error
<6>[ 1.925601] c0 mmc1: cmd 5 command timeout error
<6>[ 2.149524] c0 mmc1: new high speed SDHC card at address aaaa
<6>[ 2.150146] c0 mmcblk0: mmc1:aaaa SU32G 29.7 GiB
<6>[ 2.151639] c0 mmcblk0: p1
* note that there are errors for both internal and external cards, but if I remove/readd the external card while booted:
Code:
<6>[ 554.482789] c0 mmc1: card removed.
<6>[ 554.483031] c0 mmc1: card inserted.
<6>[ 554.484051] c0 mmc1: card inserted.
<6>[ 554.484199] c0 mmc1: card removed.
<6>[ 554.484371] c0 mmc1: card removed.
<6>[ 554.484487] c0 mmc1: card removed.
<6>[ 554.680618] c0 mmc1: card aaaa removed
<6>[ 554.701931] c0 sdhci_set_ios : MMC Card OFF samsung-hsmmc
<6>[ 555.482722] c0 mmc1: card inserted.
<6>[ 555.482883] c0 mmc1: card removed.
<6>[ 555.483037] c0 mmc1: card inserted.
<6>[ 555.483154] c0 mmc1: card removed.
<6>[ 555.483279] c0 mmc1: card inserted.
<6>[ 555.483414] c0 mmc1: card removed.
<6>[ 555.483529] c0 mmc1: card inserted.
<6>[ 555.483649] c0 mmc1: card inserted.
<6>[ 555.483772] c0 mmc1: card removed.
<6>[ 555.483891] c0 mmc1: card inserted.
<6>[ 555.485434] c0 mmc1: card removed.
<6>[ 555.485614] c0 mmc1: card inserted.
<6>[ 555.486618] c0 mmc1: card inserted.
<6>[ 555.486961] c0 mmc1: card inserted.
<6>[ 555.487101] c0 mmc1: card inserted.
<6>[ 555.681309] c0 sdhci_set_ios : MMC Card ON samsung-hsmmc
<6>[ 555.710511] c0 mmc1: cmd 52 command timeout error
<6>[ 555.711030] c0 mmc1: cmd 52 command timeout error
<6>[ 555.715224] c0 mmc1: cmd 5 command timeout error
<6>[ 555.715679] c0 mmc1: cmd 5 command timeout error
<6>[ 555.716136] c0 mmc1: cmd 5 command timeout error
<6>[ 555.716587] c0 mmc1: cmd 5 command timeout error
<6>[ 555.915431] c3 mmc1: new high speed SDHC card at address aaaa
<6>[ 555.918560] c3 mmcblk0: mmc1:aaaa SU32G 29.7 GiB
<6>[ 555.923272] c3 mmcblk0: p1
<7>[ 557.842034] c3 SELinux: initialized (dev mmcblk0p1, type vfat), uses genfs_contexts
~ # df -k
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 425992 136 425856 0% /dev
tmpfs 425992 8 425984 0% /tmp
tmpfs 425992 0 425992 0% /storage
tmpfs 425992 0 425992 0% /mnt/secure
tmpfs 425992 0 425992 0% /mnt/fuse
/dev/block/vold/179:1
31154688 29870720 1283968 96% /storage/sdcard1
What are my options ?
* I've seen some people using JTAG software tools and soldering to reset the eMMC. E.g. http://forum.gsmhosting.com/vbb/f60...n7100-without-removing-emmc-pictures-1945278/ Are there a combination of these operations that might allow me to read without destroying the data ? I also read http://forum.xda-developers.com/galaxy-note-2/help/to-recover-data-corrupted-emmc-t3292290/page2 but was not 100% sure of how to use that.
* are there some soft solutions I should try before I do this ? Maybe reflashing recovery software? Some magic combinations I don't know ?
The phone has
* CWR v6.0.4.6
* BlissPop 3.6 (if I recall long time since I set it up it.)
Thanks anyone for their help.
Yes you can get the data from it, if it's hardware-dead then no, your best bet is JTAG, I'm sure it won't be too expensive
Sent from my HTC 10 using Tapatalk

eMMC problem?

I can see the following quite often in dmesg
<3>[ 2695.992006] mmc0: CMD52: Command CRC error
<3>[ 2695.992024] mmc0: SDCC PWR is ON
<3>[ 2695.992033] mmc0: SDCC clks are ON, MCLK rate=100000000
<3>[ 2695.992043] mmc0: SDCC irq is enabled
<3>[ 2695.992166] mmc0: MCI_TEST_INPUT = 0x0000003e
<3>[ 2695.992259] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=10000
<3>[ 2695.992274] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0
<3>[ 2695.992285] mmc0: RPM: runtime_status=0, usage_count=2, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0
Does that mean that eMMC is having hardware issues?

Categories

Resources