[Q] Mounting 2nd SD Card Partition - Atrix 4G Q&A, Help & Troubleshooting

So I have a 32gb SD card and formatted it into a primary 5gb FAT partition that will be used for usb mass storage mode, and a second ext4 partition which I intend to store google music caches onto aswell as the camera DCIM folder (through mounts/symlinks), however I can't get the ext4 partition to mount in a writable state. Using the latest version of Neutrino ROM, so I don't think ext4 is the problem (haven't tested with ext3 yet).
tried:
mount -w /dev/block/mmcblk1p2 /sdcard/sd-ext4
and it mounts (can see the lost+found dir), but it is only readable.
however, when I do
mount -w /dev/block/mmcblk1p1 /sdcard/sd-ext4
it mounts the first partition on the SD card in read/write mode just fine.
Anyone know what I'm doing wrong?

Don't use -w, try -orw instead. Also check the output of dmesg right after you mount or maybe right after you try a write operation, there might be something useful there.

ravilov said:
Don't use -w, try -orw instead. Also check the output of dmesg right after you mount or maybe right after you try a write operation, there might be something useful there.
Click to expand...
Click to collapse
Tried that, still no luck. Nothing blatently obvious to point to a problem (that I can see), asides from a couple buffer overflows.
This is console output of dmesg before and after mounting
Code:
$ export PATH=/data/local/bin:$PATH
$ su
# busybox dmesg | tail -f
<6>[ 136.137609] usb_ether_get_stats
<6>[ 138.597649] usb_ether_get_stats
<6>[ 138.598851] usb_ether_get_stats
<4>[ 138.851818]
<4>[ 138.851822] nvmap_open: pid=3998
<4>[ 140.687584] nvmap_open: pid=1949
<3>[ 144.027654] init: untracked pid 4246 exited
<3>[ 145.635534] evdev: event6-1787: buffer overflow
<6>[ 169.390446] kxtf9_irq_work_func: status=0x4
<3>[ 176.685803] evdev: event6-1787: buffer overflow
# mount -orw /dev/block/mmcblk1p2 /sdcard/sd-ext4
# busybox dmesg | tail -f
<4>[ 140.687584] nvmap_open: pid=1949
<3>[ 144.027654] init: untracked pid 4246 exited
<3>[ 145.635534] evdev: event6-1787: buffer overflow
<6>[ 169.390446] kxtf9_irq_work_func: status=0x4
<3>[ 176.685803] evdev: event6-1787: buffer overflow
<6>[ 198.451536] usb_ether_get_stats
<3>[ 214.295793] evdev: event6-1787: buffer overflow
<4>[ 252.753904]
<4>[ 252.753908] nvmap_open: pid=2750
<6>[ 258.848399] usb_ether_get_stats
And this was after trying to create a file
Code:
# busybox dmesg | tail -20
<6>[ 138.597649] usb_ether_get_stats
<6>[ 138.598851] usb_ether_get_stats
<4>[ 138.851818]
<4>[ 138.851822] nvmap_open: pid=3998
<4>[ 140.687584] nvmap_open: pid=1949
<3>[ 144.027654] init: untracked pid 4246 exited
<3>[ 145.635534] evdev: event6-1787: buffer overflow
<6>[ 169.390446] kxtf9_irq_work_func: status=0x4
<3>[ 176.685803] evdev: event6-1787: buffer overflow
<6>[ 198.451536] usb_ether_get_stats
<3>[ 214.295793] evdev: event6-1787: buffer overflow
<4>[ 252.753904]
<4>[ 252.753908] nvmap_open: pid=2750
<6>[ 258.848399] usb_ether_get_stats
<3>[ 264.185782] evdev: event6-1787: buffer overflow
<6>[ 286.976907] lm3532_button_brightness_set: button-backlight, 0x3f (63)
<6>[ 286.978071] lm3532_brightness_set: lcd-backlight, 0x3c(60), webtop=0
<6>[ 286.995619] lm3532_brightness_set: lcd-backlight, 0x39(57), webtop=0
<6>[ 287.015674] lm3532_brightness_set: lcd-backlight, 0x36(54), webtop=0
<6>[ 287.035543] lm3532_brightness_set: lcd-backlight, 0x33(51), webtop=0
Edit: I had done a clean boot before I tried all that too, here is the dmesg output from boot up to just past that point (I don't have 10 posts yet so can't hotlink) pastebin com/5PbQ6UBf

Solved the problem by changing permissions on the folder

Related

[Q] wifi not turning on in samssung galaxy s2 I9100

Suddenly after taking my phone out on a rainy day, my wifi stopped working. I am sure water never went it. I have tried multiple things to make it work like factory reset, changing the ROM to jelly bean and currently running the kernel 3.0.31-siyah-s2-v5.0, model GT-I9100 android version 4.1.2
Kindly Help.I am seeing the dmesg terminal logs as attached and snippet below.
<4>[ 104.060063] ## wifi_probe
<4>[ 104.060090] wifi_set_power = 1
<6>[ 104.060111] ------------------------------------------------
<6>[ 104.060145] ------------------------------------------------
<6>[ 104.060188] brcm_wlan_power Enter: power on
<6>[ 104.060215] gpio_table = [2]
<7>[ 104.060442] WLAN: GPIO_WLAN_EN = 1
<6>[ 104.094096] mif: link_pm_irq_handler: gpio [HWK] get [0]
<6>[ 104.120714] mif: link_pm_irq_handler: gpio [HWK] get [1]
<6>[ 104.170090] mif: usb_port_resume: 1283, 4
<6>[ 104.249999] EXT4-fs (mmcblk0p9): re-mounted. Opts: (null)
<4>[ 104.265090] wifi_set_carddetect = 1
<6>[ 104.265114] gpio_table = [6]
<6>[ 104.265343] Test logs pdev : c0ccd110 s3c_device_hsmmc3 c0ccd110
<6>[ 104.265378] Test logs notify_func = hsmmc3_notify_func: c083e75c
<6>[ 104.265416] mmc2: card inserted.
<6>[ 104.495446] mmc2: cmd 52 command timeout error
<6>[ 104.495936] mmc2: cmd 52 command timeout error
<6>[ 104.499846] mmc2: cmd 8 command timeout error
<4>[ 104.511333] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
<4>[ 104.513886] mmc2: queuing unknown CIS tuple 0x80 (6 bytes)
<6>[ 104.573970] mmc2: new high speed SDIO card at address 0001
<4>[ 104.785592] alloc static buf at e3a00000!
<4>[ 104.786022] dhdsdio_probe : no mutex held. set lock
<6>[ 105.007466] set_gps_uart_op: off
<6>[ 105.433663] EXT4-fs (mmcblk0p9): re-mounted. Opts: (null)
<6>[ 106.011099] mif: link_pm_irq_handler: gpio [HWK] get [0]
<6>[ 106.040827] mif: link_pm_irq_handler: gpio [HWK] get [1]
<6>[ 106.090112] mif: usb_port_resume: 1283, 4
<3>[ 106.158197] binder: release proc 13734, transaction 52072, not freed
<3>[ 106.158236] binder: release proc 13734, transaction 52103, not freed
<3>[ 106.296134] mmc2: cmd 53 data timeout error
<4>[ 106.296964] bcmsdh_sdmmc: Failed to Read word, Err: 0xffffff92F1 signature read
@0x18000000=0xffffffff
<3>[ 107.808869] mmc2: cmd 53 data timeout error
<4>[ 107.809040] bcmsdh_sdmmc: Failed to Read word, Err: 0xffffff92dhdsdio_probe_attach: si_attach
failed!
<4>[ 107.809193] dhdsdio_probe: dhdsdio_probe_attach failed
<4>[ 107.809284] dhdsdio_probe : the lock is released.
<4>[ 107.816772] dhd_module_init: sdio_register_driver fail
<4>[ 107.816919] bcmsdh_sdmmc: bcmsdh_sdmmc_remove Enter
<4>[ 107.824497] ## wifi_remove
<4>[ 107.824549] wifi_set_power = 0
<6>[ 107.824599] ------------------------------------------------
<6>[ 107.824676] ------------------------------------------------
<6>[ 107.824761] brcm_wlan_power Enter: power off
<6>[ 107.824828] gpio_table = [2]
<7>[ 107.824887] WLAN: GPIO_WLAN_EN = 0
<4>[ 107.925157] wifi_set_carddetect = 0
<6>[ 107.925225] gpio_table = [6]
<6>[ 107.925503] Test logs pdev : c0ccd110 s3c_device_hsmmc3 c0ccd110
<6>[ 107.925589] Test logs notify_func = hsmmc3_notify_func: c083e75c
<6>[ 107.925678] mmc2: card inserted.
<6>[ 107.965872] mif: link_pm_irq_handler: gpio [HWK] get [0]
<6>[ 107.995841] mif: link_pm_irq_handler: gpio [HWK] get [1]
<6>[ 108.045163] mif: usb_port_resume: 1283, 4
<6>[ 108.125196] mmc2: cmd 7 command timeout error
<6>[ 108.125256] mmc2: cmd 7 command timeout error
<6>[ 108.125307] mmc2: cmd 7 command timeout error
<6>[ 108.125356] mmc2: cmd 7 command timeout error
<6>[ 108.136243] mmc2: card 0001 removed
<6>[ 108.170596] mmc2: cmd 52 command timeout error
<6>[ 108.171186] mmc2: cmd 52 command timeout error
<6>[ 108.174766] mmc2: cmd 8 command timeout error
<6>[ 108.175114] mmc2: cmd 5 command timeout error
<6>[ 108.175443] mmc2: cmd 5 command timeout error
<6>[ 108.175773] mmc2: cmd 5 command timeout error
<6>[ 108.176101] mmc2: cmd 5 command timeout error
<6>[ 108.176500] mmc2: cmd 55 command timeout error
<6>[ 1

Chinese MSM8916 Device, "Could not mount system partition" Error in TWRP

Could not mount system partition.
Hi All,
I need some help, I'm building my own TWRP for my own device. It's a Chinese custom phone running msm8916, 1GO Ram and 8Go of storage.
My TWRP boots fine, adb shell prompt me a nice root shell, I have no error in dmesg or recovery logs
yet when SuperSu or I try to mount the system partition as RW it doesn't work. It's always mounted as RO (I use plain mount command to check)
I tried a lots of command including
Code:
#mount -o remount,rw -t ext4 /dev/block/bootdevice/by-name/system /system
#mount -o remount,rw /system
Click to expand...
Click to collapse
I don't have the kernel source code and use a prebuilt kernel extracted from the bootimage.
You can find my code here : github com/supercairos/android_device_doro_hero
If you have any idea why this is happening I would be very glad!
Best,
R.
When looking a dmesg it outputs :
<6>[ 14.757619] EXT4-fs (mmcblk0p22): mounted filesystem with ordered data mod
e. Opts: (null)
<7>[ 14.757638] SELinux: initialized (dev mmcblk0p22, type ext4), uses xattr
<3>[ 16.049825] mmc0: sdhci_cmd_irq: AUTO CMD err sts 0x00000002
<3>[ 16.049946] mmcblk0: timed out sending r/w cmd command, card status 0x400d
00
<3>[ 16.049951] mmcblk0: command error, retrying timeout
<3>[ 21.069858] mmc0: sdhci_cmd_irq: AUTO CMD err sts 0x00000002
<3>[ 21.069916] mmcblk0: timed out sending r/w cmd command, card status 0x400d
00
<3>[ 21.069921] mmcblk0: command error, retrying timeout
<3>[ 21.070127] mmc0: cache flush timeout
<3>[ 21.070153] mmc0: mmc_interrupt_hpi() failed (-22)
<3>[ 21.070158] mmcblk0: mmc_blk_issue_flush: restart mmc card
<3>[ 21.097327] mmcblk0: mmc_blk_issue_flush: notify flush error to upper laye
rs<3>[ 21.097337] end_request: I/O error, dev mmcblk0, sector 407568
<3>[ 21.097356] Aborting journal on device mmcblk0p22-8.
<3>[ 21.107997] mmc0: sdhci_cmd_irq: AUTO CMD err sts 0x00000002
<3>[ 21.108062] mmcblk0: timed out sending r/w cmd command, card status 0x400d
00
<3>[ 21.108067] mmcblk0: command error, retrying timeout
<2>[ 21.108167] EXT4-fs error (device mmcblk0p22): __ext4_journal_start_sb:62:
Detected aborted journal
<2>[ 21.108175] EXT4-fs (mmcblk0p22): Remounting filesystem read-only
<3>[ 21.108228] mmc0: sdhci_cmd_irq: AUTO CMD err sts 0x00000002
<3>[ 21.108295] mmcblk0: timed out sending r/w cmd command, card status 0x400d
00
<3>[ 21.108300] mmcblk0: command error, retrying timeout
<3>[ 31.138023] mmc0:cache disable operation timeout
<3>[ 31.138059] mmc0: mmc_interrupt_hpi() failed (-22)
<3>[ 31.138074] mmc0: mmc_host_runtime_suspend: suspend host failed: -110
<3>[ 34.268118] mmc0: sdhci_cmd_irq: AUTO CMD err sts 0x00000002
<3>[ 34.268201] mmcblk0: timed out sending r/w cmd command, card status 0x400d
00
<3>[ 34.268207] mmcblk0: command error, retrying timeout
Click to expand...
Click to collapse

[ROM][WT88047][L][5.1.1] CyanogenMod unofficial builds

CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.1.x (Lollipop), which is designed to increase performance and reliability over stock Android for your device.
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, dead cats,
* thermonuclear war, or you getting fired because the alarm app failed.
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will break it! [emoji14]
* Act accordingly
*/
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
The source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
Important information:
This thread is for CyanogenMod 12.1 opensource builds for Wingtech WT88047, marketed as Redmi 2 by Xiaomi. The following will not be supported in this thread:
- Custom Kernels
- Mods
- Modified system files
- Xposed
Instructions:
Comprehensive installation instructions for CM on Wingtech WT88047 can be found on the CyanogenMod Wiki: http://wiki.cyanogenmod.org/w/Install_CM_for_rendang
Issues?
Experience issues? Please provide the following info:
If the device was hard reboot, please provide the file "/sys/fs/pstore/console-ramoops".
If the device was soft reboot or is "bootlooping", please run a logcat and provide the full output.
Please use Pastebin when possible.
Download Links:
Google Drive: https://goo.gl/zhGZjQ
AFH: https://goo.gl/5sqZGp
EmfoxZhou's build: https://goo.gl/iQNZjC
I would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!
Known Issues:
Both back and front camera not working
Sound out from both speaker and headset
Compass chip Yamaha YAS537 known not supported, Asahi Kasei Microdevices AKM09911 working flawlessly
Use VOL UP + VOL DOWN + POWER button to enter recovery mode
At the start of video or any stereo recording, audio noise in about 5 seconds. Please use a different camera app and set audio format to AMR-NB (mono)
If you experiencing a random freeze, tell me your MMC type. You can check it using "dmesg | grep mmcblk0" command as root. Known chip in Redmi 2 variant:
Redmi 2 8 GB:
H8G2d 7.28 GiB - Hynix - inside my Redmi 2, no freeze
QN1SMB 7.28 GiB - Samsung
P1J95K 7.29 GiB - Numonyx Micron - reported random freeze
Redmi 2 16 GB:
HAG2e 14.6 GiB - Hynix
R1J96N 14.6 GiB - Numonyx Micron
XDA:DevDB Information
[ROM][WT88047][L][5.1.1] CyanogenMod unofficial builds, ROM for Wingtech WT88047 devices (see above for details)
Contributors
ketut.kumajaya, @zwliew
Source Code: https://github.com/kumajaya/android_device_wingtech_wt88047
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.10.x
Based On: CyanogenMod
Version Information
Status: Beta
Created 2015-09-14
Last Updated 2015-12-23
Initial development thread: http://en.miui.com/thread-148731-1-1.html
A great how to: http://forum.xda-developers.com/and.../how-to-convert-qualcomms-dtb-to-dts-t3221223
Xiaomi still refuse to release Redmi 2 kernel source, they continue violate the GPL accompanied by ex. Google Hugo Barra.
I believe more than one hardware revision available out there, luckily this port working smoothly on my own Redmi 2 device. Some facts:
Compass chip Yamaha YAS537 known not supported, Asahi Kasei Microdevices AKM09911 working flawlessly
I'm afraid Wingtech use a different battery charger management chip on selected model, SMB13x chip supported
My device model HM2014817 1GB RAM, board revision S88047E1, R61308 LCD driver with AUO3.5 LCD panel, AKM09911 compass chip
Current manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="kumajaya/android_device_wingtech_wt88047" path="device/wingtech/wt88047" remote="github" revision="cm-12.1" />
<project name="kumajaya/android_kernel_cyanogen_msm8916" path="kernel/cyanogen/msm8916" remote="github" revision="cm-12.1-amss-2.1-wt88047" />
<project name="kumajaya/proprietary_vendor_wingtech" path="vendor/wingtech" remote="github" revision="cm-12.1" />
<project name="kumajaya/android_device_cyanogen_msm8916-common" path="device/cyanogen/msm8916-common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="kumajaya/android_packages_apps_SnapdragonCamera" path="packages/apps/SnapdragonCamera" remote="github" revision="cm-12.1" />
</manifest>
Camera status
Kernel space:
Camera eeprom loaded
Both back and front camera module loaded
All nodes (v4l-subdev*, video0, video1) registered to /dev successfully
User space:
Camera server sub module (imglib) crash, kernel space stopped because of user space problem
Logcat output:
Code:
--------- beginning of crash
F/libc ( 262): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2888 (mct_pipe_start)
I/DEBUG ( 249): property debug.db.uid not set; NOT waiting for gdb.
I/DEBUG ( 249): HINT: adb shell setprop debug.db.uid 100000
I/DEBUG ( 249): HINT: adb forward tcp:5039 tcp:5039
I/DEBUG ( 249): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 249): Build fingerprint: 'Xiaomi/2014811/HM2014811:4.4.4/KTU84P/V6.6.7.0.KHJMICF:user/release-keys'
I/DEBUG ( 249): Revision: '0'
I/DEBUG ( 249): ABI: 'arm'
I/DEBUG ( 249): pid: 262, tid: 2888, name: mct_pipe_start >>> /system/bin/mm-qcamera-daemon <<<
I/DEBUG ( 249): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
I/DEBUG ( 249): r0 b7db57f8 r1 00000001 r2 b7db5860 r3 00000000
I/DEBUG ( 249): r4 b7db57f8 r5 b6ea3db7 r6 b6468d84 r7 00000001
I/DEBUG ( 249): r8 b7db57f8 r9 b7dbb418 sl b6e4f475 fp b6468dd0
I/DEBUG ( 249): ip b6ebbeb8 sp b6468d28 lr b6ea3dc7 pc 00000000 cpsr a0000010
I/DEBUG ( 249):
I/DEBUG ( 249): backtrace:
I/DEBUG ( 249): #00 pc 00000000 <unknown>
I/DEBUG ( 249): #01 pc 00007dc5 /system/vendor/lib/libmmcamera2_imglib_modules.so
I/DEBUG ( 249): #02 pc 00006297 /system/vendor/lib/liboemcamera.so (mct_list_traverse+26)
I/DEBUG ( 249): #03 pc 000062b9 /system/vendor/lib/liboemcamera.so (mct_list_traverse+60)
I/DEBUG ( 249): #04 pc 000062b9 /system/vendor/lib/liboemcamera.so (mct_list_traverse+60)
I/DEBUG ( 249): #05 pc 000084f3 /system/vendor/lib/libmmcamera2_imglib_modules.so
I/DEBUG ( 249): #06 pc 00002699 /system/vendor/lib/liboemcamera.so
I/DEBUG ( 249): #07 pc 00013493 /system/lib/libc.so (__pthread_start(void*)+30)
I/DEBUG ( 249): #08 pc 000113bf /system/lib/libc.so (__start_thread+6)
I/DEBUG ( 249):
I/DEBUG ( 249): Tombstone written to: /data/tombstones/tombstone_05
Solution:
Restore some Smartfren Andromax Q (known built for Lollipop) https://github.com/kumajaya/proprie...mmit/d20417a6a35c9ac52cd8e359b0420aab51313c47
Conclusion:
For KitKat camera blobs, a compatible kernel driver needed because user space system call slightly different to the current kernel. How I did it fairly easy, you can trace my kernel commits on github. The rest, you can trace my proprietary vendor blobs commits.
great !! good luck :good::good:
hope you can fix the remaining bugs soon
PS: Is your ROM completely independent from zwliew's ROM ? since you didnt mention him anywhere....
EDIT
PS 2 : to prevent spam here, it would also be nice if you could include the links to TWRP and Gapps too....
cheers
I think you should have added redmi 2 tag
http://forum.xda-developers.com/t/redmi-2
Great,bro. I'm waiting for your perfect version.
Wow...Back on xda...
Gondya bhau said:
great !! good luck :good::good:
hope you can fix the remaining bugs soon
PS: Is your ROM completely independent from zwliew's ROM ? since you didnt mention him anywhere....
EDIT
PS 2 : to prevent spam here, it would also be nice if you could include the links to TWRP and Gapps too....
cheers
Click to expand...
Click to collapse
You can check the device tree source, my work based on rendang. Of course we help each other, this is an open source project. Thanks for your input :good:
nick37332001 said:
I think you should have added redmi 2 tag
http://forum.xda-developers.com/t/redmi-2
Click to expand...
Click to collapse
Somehow not working here.
Autines said:
Great,bro. I'm waiting for your perfect version.
Click to expand...
Click to collapse
Forever...
mits619 said:
Wow...Back on xda...
Click to expand...
Click to collapse
Your nick look familiar.
@ketut.kumajaya Can you make a build guide for building with your sources? I managed to build cm11.0 once on my old device in 2013 but now in 2015, it is very different with extract-files.sh ... I hope that you can help!
nick37332001 said:
@ketut.kumajaya Can you make a build guide for building with your sources? I managed to build cm11.0 once on my old device in 2013 but now in 2015, it is very different with extract-files.sh ... I hope that you can help!
Click to expand...
Click to collapse
http://wiki.cyanogenmod.org/w/Build_for_rendang
I'll tell you how to build for our device target later. Try build for rendang first
ketut.kumajaya said:
http://wiki.cyanogenmod.org/w/Build_for_rendang
I'll tell you how to build for our device target later. Try build for rendang first
Click to expand...
Click to collapse
OK thanks, can't wait! BTW, your TWRP recovery external sd card not supported and cannot modify system files without giving permissions...
ketut.kumajaya said:
Your nick look familiar.
Click to expand...
Click to collapse
Yeah im the same guy on MIUI forum : mits619
nice to see here.. keep it up..
nick37332001 said:
OK thanks, can't wait! BTW, your TWRP recovery external sd card not supported and cannot modify system files without giving permissions...
Click to expand...
Click to collapse
It's TWRP the result after Cyanogen recovery failed running on our device. Then I found a trick to make Qualcomm framebuffer initialized by old bootloader ready for CyanogenMod. Yes, running current Cyanogen MSM8916 kernel on our device too ambitious but with a good result so far. Later, something in TWRP codes possibility broke my ROM that I build for hours, flashing it failed without any error, then I switched back to Cyanogen recovery. Previously I worked for OnePlus One that doesn't have external card. Still no time to try TWRP after that because my laptop not as fast as my brain
ketut.kumajaya said:
It's TWRP the result after Cyanogen recovery failed running on our device. Then I found a trick to make Qualcomm framebuffer initialized by old bootloader ready for CyanogenMod. Yes, running current Cyanogen MSM8916 kernel on our device too ambitious but with a good result so far. Later, something in TWRP codes possibility broke my ROM that I build for hours, flashing it failed without any error, then I switched back to Cyanogen recovery. Previously I worked for OnePlus One that doesn't have external card. Still no time to try TWRP after that because my laptop not as fast as my brain
Click to expand...
Click to collapse
Anyways I tried using the rendang guide you posted but I was somewhat unsuccessful... I only managed to get the kernel and recovery built and not sure if it even works.
EDIT:WARNING DON'T TRY AS SCREEN FLASHES
EDIT AGAIN: Screen flashing disappears after a while but still not advised to flash
boot.img
nick37332001 said:
Anyways I tried using the rendang guide you posted but I was somewhat unsuccessful... I only managed to get the kernel and recovery built and not sure if it even works.
EDIT:WARNING DON'T TRY AS SCREEN FLASHES
EDIT AGAIN: Screen flashing disappears after a while but still not advised to flash
boot.img
Click to expand...
Click to collapse
Your source tree not ready for wt88047 yet. Open .repo/local_manifests/roomservice.xml, change:
Code:
<project name="CyanogenMod/android_kernel_cyanogen_msm8916" path="kernel/cyanogen/msm8916" remote="github" />
to
Code:
<project name="kumajaya/android_kernel_cyanogen_msm8916" path="kernel/cyanogen/msm8916" remote="github" revision="cm-12.1-amss-1.0.2-wt88047" />
Add:
Code:
<project name="kumajaya/android_device_wingtech_wt88047" path="device/wingtech/wt88047" remote="github" />
<project name="kumajaya/proprietary_vendor_wingtech" path="vendor/wingtech" remote="github" />
Sync and build for wt88047 target:
Code:
repo sync
breakfast wt88047
brunch wt88047
Code:
<6>[ 2934.220129] lineout_status_put: external speaker PA mode: 1
<3>[ 2934.228324] wcd-spmi-core msm8x16_wcd_codec-ee34ec00: Failed to get mbhc impedance -22
<3>[ 2934.260293] send_afe_cal_type cal_block not found!!
<6>[ 2934.347338] msm8x16_ext_spk_delayed_enable: Enable external speaker PAs.
<6>[ 2937.173969] lowmemorykiller: Killing 'dboxed_process1' (32514), adj 1000,
<6>[ 2937.173969] to free 13324kB on behalf of 'kswapd0' (73) because
<6>[ 2937.173969] cache 121960kB is below limit 122880kB for oom_score_adj 1000
<6>[ 2937.173969] Free memory is 15256kB above reserved.
<6>[ 2937.173969] Free CMA is 1620kB
<6>[ 2937.173969] Total reserve is 25012kB
<6>[ 2937.173969] Total free pages is 25068kB
<6>[ 2937.173969] Total file cache is 125968kB
<6>[ 2937.173969] Total anon is 351580kB
<6>[ 2937.173969] Slab Reclaimable is 10356kB
<6>[ 2937.173969] Slab UnReclaimable is 33668kB
<6>[ 2937.173969] Total Slab is 44024kB
<6>[ 2937.173969] GFP mask is 0xd0
<3>[ 2939.946381] mmc0: data txfr (0x00100000) error: -110 after 1521 ms
<6>[ 2939.946399] sdhci: =========== REGISTER DUMP (mmc0)===========
<6>[ 2939.946406] sdhci: Sys addr: 0x000002d8 | Version: 0x00002e02
<6>[ 2939.946414] sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000018
<6>[ 2939.946421] sdhci: Argument: 0x00589788 | Trn mode: 0x0000002b
<6>[ 2939.946428] sdhci: Present: 0x01e80100 | Host ctl: 0x00000035
<6>[ 2939.946435] sdhci: Power: 0x0000000d | Blk gap: 0x00000000
<6>[ 2939.946442] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
<6>[ 2939.946448] sdhci: Timeout: 0x0000000d | Int stat: 0x00000000
<6>[ 2939.946456] sdhci: Int enab: 0x03ff800b | Sig enab: 0x03ff800b
<6>[ 2939.946462] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
<6>[ 2939.946469] sdhci: Caps: 0x222dc8b2 | Caps_1: 0x00008007
<6>[ 2939.946476] sdhci: Cmd: 0x0000193a | Max curr: 0x00000000
<6>[ 2939.946483] sdhci: Resp 1: 0x00000000 | Resp 0: 0x00000900
<6>[ 2939.946491] sdhci: Resp 3: 0x00000900 | Resp 2: 0x00000000
<6>[ 2939.946496] sdhci: Host ctl2: 0x00000003
<6>[ 2939.946504] sdhci: ADMA Err: 0x00000003 | ADMA Ptr: 0xaf0702c8
<6>[ 2939.946510] ----------- VENDOR REGISTER DUMP -----------
<6>[ 2939.946519] Data cnt: 0x00003000 | Fifo cnt: 0x00002800 | Int sts: 0x000c0000
<6>[ 2939.946527] DLL cfg: 0x060d6400 | DLL sts: 0x00000184 | SDCC ver: 0x1000002e
<6>[ 2939.946535] Vndr func: 0x00000a1e | Vndr adma err : addr0: 0x00b16800 addr1: 0x00000000
<6>[ 2939.946543] Vndr func2: 0xfa8018a8
<6>[ 2939.946566] Test bus[0 to 3]: 0x0000c846 0x000000ce 0x00007018 0x01c002fe
<6>[ 2939.946574] Test bus[4 to 7]: 0x00473fd8 0x0005c038 0x00000000 0xff23fffb
<6>[ 2939.946583] Test bus[8 to 11]: 0x6ffc27c4 0x40800002 0x2023e089 0x000014c0
<6>[ 2939.946592] Test bus[12 to 15]: 0x045f0788 0x803d1180 0x0d001c08 0x00000a80
<6>[ 2939.946601] Test bus[16 to 19]: 0x00022000 0x010e808c 0x138f3696 0x00001091
<6>[ 2939.946610] mmc0: clk: 177770000 clk-gated: 0 claimer: mmcqd/0 pwr: 12
<6>[ 2939.946617] mmc0: rpmstatus[pltfm](runtime-suspend:usage_count:disable_depth)(0:0:0)
<6>[ 2939.946623] sdhci: ===========================================
<3>[ 2944.703930] wlan: [3196:E :HDP] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
<3>[ 2949.973884] mmc0: Timeout waiting for hardware interrupt.
<6>[ 2949.973904] sdhci: =========== REGISTER DUMP (mmc0)===========
<6>[ 2949.973912] sdhci: Sys addr: 0x000002d8 | Version: 0x00002e02
<6>[ 2949.973920] sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000000
<6>[ 2949.973927] sdhci: Argument: 0x00000000 | Trn mode: 0x0000002b
<6>[ 2949.973935] sdhci: Present: 0x01e80006 | Host ctl: 0x00000035
<6>[ 2949.973942] sdhci: Power: 0x0000000d | Blk gap: 0x00000000
<6>[ 2949.973949] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
<6>[ 2949.973956] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
<6>[ 2949.973963] sdhci: Int enab: 0x03ff800b | Sig enab: 0x03ff800b
<6>[ 2949.973970] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
<6>[ 2949.973977] sdhci: Caps: 0x222dc8b2 | Caps_1: 0x00008007
<6>[ 2949.973984] sdhci: Cmd: 0x00000c1b | Max curr: 0x00000000
<6>[ 2949.973991] sdhci: Resp 1: 0x00000000 | Resp 0: 0x00000c00
<6>[ 2949.973998] sdhci: Resp 3: 0x00000000 | Resp 2: 0x00000000
<6>[ 2949.974003] sdhci: Host ctl2: 0x00000003
<6>[ 2949.974011] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
<6>[ 2949.974017] ----------- VENDOR REGISTER DUMP -----------
<6>[ 2949.974025] Data cnt: 0x00000000 | Fifo cnt: 0x00000000 | Int sts: 0x000c0000
<6>[ 2949.974034] DLL cfg: 0x060d6400 | DLL sts: 0x00000184 | SDCC ver: 0x1000002e
<6>[ 2949.974042] Vndr func: 0x00000a1e | Vndr adma err : addr0: 0x00000000 addr1: 0x00000000
<6>[ 2949.974048] Vndr func2: 0xfa8018a8
<6>[ 2949.974071] Test bus[0 to 3]: 0x0000c846 0x000000ce 0x00007118 0x01c102fe
<6>[ 2949.974080] Test bus[4 to 7]: 0x4047bfd8 0x2025c038 0x00000000 0xff23fffb
<6>[ 2949.974089] Test bus[8 to 11]: 0x47fc27c4 0x40800002 0x2003e089 0x000014c0
<6>[ 2949.974098] Test bus[12 to 15]: 0x004f0788 0x803d3180 0x0d000000 0x00000a80
<6>[ 2949.974106] Test bus[16 to 19]: 0x000a0000 0x010e80cc 0x138f3696 0x00000091
<6>[ 2949.974116] mmc0: clk: 177770000 clk-gated: 0 claimer: mmcqd/0 pwr: 12
<6>[ 2949.974123] mmc0: rpmstatus[pltfm](runtime-suspend:usage_count:disable_depth)(0:0:0)
<6>[ 2949.974129] sdhci: ===========================================
<3>[ 2949.974222] mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0xe00
<3>[ 2957.844683] wcd_imped_config, invalid imped, greater than 48 Ohm
<3>[ 2957.844683] = 48
<6>[ 2957.908065] lineout_status_put: external speaker PA mode: 0
<3>[ 2979.984018] mmc0: Card stuck in programming state! mmcblk0 mmc_blk_err_check
<3>[ 2981.229562] mmc0: mmc_init_card: mmc_send_op_cond() fails -110
<3>[ 2981.229591] mmc0: mmc_blk_reset: failed to reset -110
<3>[ 2981.229606] end_request: I/O error, dev mmcblk0, sector 5805960
<3>[ 2981.229628] end_request: I/O error, dev mmcblk0, sector 5805968
<3>[ 2981.229645] end_request: I/O error, dev mmcblk0, sector 5805976
<3>[ 2981.229661] end_request: I/O error, dev mmcblk0, sector 5805984
<3>[ 2981.229676] end_request: I/O error, dev mmcblk0, sector 5805992
<3>[ 2981.229692] end_request: I/O error, dev mmcblk0, sector 5806000
<3>[ 2981.229707] end_request: I/O error, dev mmcblk0, sector 5806008
<3>[ 2981.229722] end_request: I/O error, dev mmcblk0, sector 5806016
<3>[ 2981.229738] end_request: I/O error, dev mmcblk0, sector 5806024
<3>[ 2981.229752] end_request: I/O error, dev mmcblk0, sector 5806032
<3>[ 2981.230061] Buffer I/O error on device mmcblk0p30, logical block 266993
<3>[ 2981.230081] Buffer I/O error on device mmcblk0p30, logical block 266994
<3>[ 2981.230093] Buffer I/O error on device mmcblk0p30, logical block 266995
<3>[ 2981.230105] Buffer I/O error on device mmcblk0p30, logical block 266996
<3>[ 2981.230117] Buffer I/O error on device mmcblk0p30, logical block 266997
<3>[ 2981.230128] Buffer I/O error on device mmcblk0p30, logical block 266998
<3>[ 2981.230139] Buffer I/O error on device mmcblk0p30, logical block 266999
<3>[ 2981.230151] Buffer I/O error on device mmcblk0p30, logical block 267000
@ketut.kumajayaa i have been getting this mmc crash after upgrading to 12.1( during high IO, eg installing apps, black screen with backlight on, power button not responding, adb still alive but becomes useless, need to poweroff by removing battery ). this one is from zwliew's rom, but after flashing yours, the same crash happened too while installing apps during the first setup(and i didn't get a dmesg dump because i was slow). thing is, i tried recompiling the kernel with a few patches from sultanqasim's github(moto e 2015)
HTML:
https://github.com/sultanqasim/android_kernel_motorola_msm8916/commits/squid_linux_mr1/drivers/mmc?page=2
Code:
IKSWL-11467: mmc: add firmware-specific quirk support
IKVPREL1L-1355: mmc: health and performance reporting
IKVPREL1L-1355: mmc: support eMMC driver strength configuration
IKVPREL1L-1355: mmc: fix frequency scaling tuning logic for HS400
IKSWL-11467: mmc: disable cache on known-bad Micron eMMCs
IKVPREL1L-1355: mmc: Sandisk eMMC quirks
IKVPREL1L-1355: mmc: improve handling of flaky SD cards
IKVPREL1L-1355: sdhci: improve recovery behavior when SDCC is jammed
IKVPREL1L-1355: mmc: don't blindly retry on timed-out flushes
some of the patches are there because it's needed to compile/apply, but either one of them(or all) have solved my problem, it ran fast and without problems, that is for a while, after a few hours, sometimes after a day, the /data partition would just remount to RO suddenly. i'm suspecting that it's my flash chip.
gingerboy92 said:
Code:
<6>[ 2934.220129] lineout_status_put: external speaker PA mode: 1
<3>[ 2934.228324] wcd-spmi-core msm8x16_wcd_codec-ee34ec00: Failed to get mbhc impedance -22
<3>[ 2934.260293] send_afe_cal_type cal_block not found!!
<6>[ 2934.347338] msm8x16_ext_spk_delayed_enable: Enable external speaker PAs.
<6>[ 2937.173969] lowmemorykiller: Killing 'dboxed_process1' (32514), adj 1000,
<6>[ 2937.173969] to free 13324kB on behalf of 'kswapd0' (73) because
<6>[ 2937.173969] cache 121960kB is below limit 122880kB for oom_score_adj 1000
<6>[ 2937.173969] Free memory is 15256kB above reserved.
<6>[ 2937.173969] Free CMA is 1620kB
<6>[ 2937.173969] Total reserve is 25012kB
<6>[ 2937.173969] Total free pages is 25068kB
<6>[ 2937.173969] Total file cache is 125968kB
<6>[ 2937.173969] Total anon is 351580kB
<6>[ 2937.173969] Slab Reclaimable is 10356kB
<6>[ 2937.173969] Slab UnReclaimable is 33668kB
<6>[ 2937.173969] Total Slab is 44024kB
<6>[ 2937.173969] GFP mask is 0xd0
<3>[ 2939.946381] mmc0: data txfr (0x00100000) error: -110 after 1521 ms
<6>[ 2939.946399] sdhci: =========== REGISTER DUMP (mmc0)===========
<6>[ 2939.946406] sdhci: Sys addr: 0x000002d8 | Version: 0x00002e02
<6>[ 2939.946414] sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000018
<6>[ 2939.946421] sdhci: Argument: 0x00589788 | Trn mode: 0x0000002b
<6>[ 2939.946428] sdhci: Present: 0x01e80100 | Host ctl: 0x00000035
<6>[ 2939.946435] sdhci: Power: 0x0000000d | Blk gap: 0x00000000
<6>[ 2939.946442] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
<6>[ 2939.946448] sdhci: Timeout: 0x0000000d | Int stat: 0x00000000
<6>[ 2939.946456] sdhci: Int enab: 0x03ff800b | Sig enab: 0x03ff800b
<6>[ 2939.946462] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
<6>[ 2939.946469] sdhci: Caps: 0x222dc8b2 | Caps_1: 0x00008007
<6>[ 2939.946476] sdhci: Cmd: 0x0000193a | Max curr: 0x00000000
<6>[ 2939.946483] sdhci: Resp 1: 0x00000000 | Resp 0: 0x00000900
<6>[ 2939.946491] sdhci: Resp 3: 0x00000900 | Resp 2: 0x00000000
<6>[ 2939.946496] sdhci: Host ctl2: 0x00000003
<6>[ 2939.946504] sdhci: ADMA Err: 0x00000003 | ADMA Ptr: 0xaf0702c8
<6>[ 2939.946510] ----------- VENDOR REGISTER DUMP -----------
<6>[ 2939.946519] Data cnt: 0x00003000 | Fifo cnt: 0x00002800 | Int sts: 0x000c0000
<6>[ 2939.946527] DLL cfg: 0x060d6400 | DLL sts: 0x00000184 | SDCC ver: 0x1000002e
<6>[ 2939.946535] Vndr func: 0x00000a1e | Vndr adma err : addr0: 0x00b16800 addr1: 0x00000000
<6>[ 2939.946543] Vndr func2: 0xfa8018a8
<6>[ 2939.946566] Test bus[0 to 3]: 0x0000c846 0x000000ce 0x00007018 0x01c002fe
<6>[ 2939.946574] Test bus[4 to 7]: 0x00473fd8 0x0005c038 0x00000000 0xff23fffb
<6>[ 2939.946583] Test bus[8 to 11]: 0x6ffc27c4 0x40800002 0x2023e089 0x000014c0
<6>[ 2939.946592] Test bus[12 to 15]: 0x045f0788 0x803d1180 0x0d001c08 0x00000a80
<6>[ 2939.946601] Test bus[16 to 19]: 0x00022000 0x010e808c 0x138f3696 0x00001091
<6>[ 2939.946610] mmc0: clk: 177770000 clk-gated: 0 claimer: mmcqd/0 pwr: 12
<6>[ 2939.946617] mmc0: rpmstatus[pltfm](runtime-suspend:usage_count:disable_depth)(0:0:0)
<6>[ 2939.946623] sdhci: ===========================================
<3>[ 2944.703930] wlan: [3196:E :HDP] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
<3>[ 2949.973884] mmc0: Timeout waiting for hardware interrupt.
<6>[ 2949.973904] sdhci: =========== REGISTER DUMP (mmc0)===========
<6>[ 2949.973912] sdhci: Sys addr: 0x000002d8 | Version: 0x00002e02
<6>[ 2949.973920] sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000000
<6>[ 2949.973927] sdhci: Argument: 0x00000000 | Trn mode: 0x0000002b
<6>[ 2949.973935] sdhci: Present: 0x01e80006 | Host ctl: 0x00000035
<6>[ 2949.973942] sdhci: Power: 0x0000000d | Blk gap: 0x00000000
<6>[ 2949.973949] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
<6>[ 2949.973956] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
<6>[ 2949.973963] sdhci: Int enab: 0x03ff800b | Sig enab: 0x03ff800b
<6>[ 2949.973970] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
<6>[ 2949.973977] sdhci: Caps: 0x222dc8b2 | Caps_1: 0x00008007
<6>[ 2949.973984] sdhci: Cmd: 0x00000c1b | Max curr: 0x00000000
<6>[ 2949.973991] sdhci: Resp 1: 0x00000000 | Resp 0: 0x00000c00
<6>[ 2949.973998] sdhci: Resp 3: 0x00000000 | Resp 2: 0x00000000
<6>[ 2949.974003] sdhci: Host ctl2: 0x00000003
<6>[ 2949.974011] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
<6>[ 2949.974017] ----------- VENDOR REGISTER DUMP -----------
<6>[ 2949.974025] Data cnt: 0x00000000 | Fifo cnt: 0x00000000 | Int sts: 0x000c0000
<6>[ 2949.974034] DLL cfg: 0x060d6400 | DLL sts: 0x00000184 | SDCC ver: 0x1000002e
<6>[ 2949.974042] Vndr func: 0x00000a1e | Vndr adma err : addr0: 0x00000000 addr1: 0x00000000
<6>[ 2949.974048] Vndr func2: 0xfa8018a8
<6>[ 2949.974071] Test bus[0 to 3]: 0x0000c846 0x000000ce 0x00007118 0x01c102fe
<6>[ 2949.974080] Test bus[4 to 7]: 0x4047bfd8 0x2025c038 0x00000000 0xff23fffb
<6>[ 2949.974089] Test bus[8 to 11]: 0x47fc27c4 0x40800002 0x2003e089 0x000014c0
<6>[ 2949.974098] Test bus[12 to 15]: 0x004f0788 0x803d3180 0x0d000000 0x00000a80
<6>[ 2949.974106] Test bus[16 to 19]: 0x000a0000 0x010e80cc 0x138f3696 0x00000091
<6>[ 2949.974116] mmc0: clk: 177770000 clk-gated: 0 claimer: mmcqd/0 pwr: 12
<6>[ 2949.974123] mmc0: rpmstatus[pltfm](runtime-suspend:usage_count:disable_depth)(0:0:0)
<6>[ 2949.974129] sdhci: ===========================================
<3>[ 2949.974222] mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0xe00
<3>[ 2957.844683] wcd_imped_config, invalid imped, greater than 48 Ohm
<3>[ 2957.844683] = 48
<6>[ 2957.908065] lineout_status_put: external speaker PA mode: 0
<3>[ 2979.984018] mmc0: Card stuck in programming state! mmcblk0 mmc_blk_err_check
<3>[ 2981.229562] mmc0: mmc_init_card: mmc_send_op_cond() fails -110
<3>[ 2981.229591] mmc0: mmc_blk_reset: failed to reset -110
<3>[ 2981.229606] end_request: I/O error, dev mmcblk0, sector 5805960
<3>[ 2981.229628] end_request: I/O error, dev mmcblk0, sector 5805968
<3>[ 2981.229645] end_request: I/O error, dev mmcblk0, sector 5805976
<3>[ 2981.229661] end_request: I/O error, dev mmcblk0, sector 5805984
<3>[ 2981.229676] end_request: I/O error, dev mmcblk0, sector 5805992
<3>[ 2981.229692] end_request: I/O error, dev mmcblk0, sector 5806000
<3>[ 2981.229707] end_request: I/O error, dev mmcblk0, sector 5806008
<3>[ 2981.229722] end_request: I/O error, dev mmcblk0, sector 5806016
<3>[ 2981.229738] end_request: I/O error, dev mmcblk0, sector 5806024
<3>[ 2981.229752] end_request: I/O error, dev mmcblk0, sector 5806032
<3>[ 2981.230061] Buffer I/O error on device mmcblk0p30, logical block 266993
<3>[ 2981.230081] Buffer I/O error on device mmcblk0p30, logical block 266994
<3>[ 2981.230093] Buffer I/O error on device mmcblk0p30, logical block 266995
<3>[ 2981.230105] Buffer I/O error on device mmcblk0p30, logical block 266996
<3>[ 2981.230117] Buffer I/O error on device mmcblk0p30, logical block 266997
<3>[ 2981.230128] Buffer I/O error on device mmcblk0p30, logical block 266998
<3>[ 2981.230139] Buffer I/O error on device mmcblk0p30, logical block 266999
<3>[ 2981.230151] Buffer I/O error on device mmcblk0p30, logical block 267000
@ketut.kumajayaa i have been getting this mmc crash after upgrading to 12.1( during high IO, eg installing apps, black screen with backlight on, power button not responding, adb still alive but becomes useless, need to poweroff by removing battery ). this one is from zwliew's rom, but after flashing yours, the same crash happened too while installing apps during the first setup(and i didn't get a dmesg dump because i was slow). thing is, i tried recompiling the kernel with a few patches from sultanqasim's github(moto e 2015)
HTML:
https://github.com/sultanqasim/android_kernel_motorola_msm8916/commits/squid_linux_mr1/drivers/mmc?page=2
Code:
IKSWL-11467: mmc: add firmware-specific quirk support
IKVPREL1L-1355: mmc: health and performance reporting
IKVPREL1L-1355: mmc: support eMMC driver strength configuration
IKVPREL1L-1355: mmc: fix frequency scaling tuning logic for HS400
IKSWL-11467: mmc: disable cache on known-bad Micron eMMCs
IKVPREL1L-1355: mmc: Sandisk eMMC quirks
IKVPREL1L-1355: mmc: improve handling of flaky SD cards
IKVPREL1L-1355: sdhci: improve recovery behavior when SDCC is jammed
IKVPREL1L-1355: mmc: don't blindly retry on timed-out flushes
some of the patches are there because it's needed to compile/apply, but either one of them(or all) have solved my problem, it ran fast and without problems, that is for a while, after a few hours, sometimes after a day, the /data partition would just remount to RO suddenly. i'm suspecting that it's my flash chip.
Click to expand...
Click to collapse
Try "e2fsck" your data block device in recovery. May be you need -fv switch to force e2fsck check your device.
ketut.kumajaya said:
Try "e2fsck" your data block device in recovery. May be you need -fv switch to force e2fsck check your device.
Click to expand...
Click to collapse
already did a few times, even did a full format (actually, twice) while switching from zwliew's build to yours.
gingerboy92 said:
already did a few times, even did a full format (actually, twice) while switching from zwliew's build to yours.
Click to expand...
Click to collapse
So, no any error report from e2fsck?

Problem audio tablet intel

Hi i have problem with sound card no detect.
In Windows:
-Realtek is2 audio codec
ACPI\VEN_10EC&DEV_5640
ACPI\10EC5640
*10EC5640
-Intel SST Audio Device (WDM)
ACPI\VEN_8086&DEV_0F28&SUBSYS_80867270
ACPI\80860F28
*80860F28
Dmesg:
<3>[ 10.261439] baytrail-pcm-audio baytrail-pcm-audio: ipc: error DSP boot timeout
<3>[ 10.304390] byt-rt5640 byt-rt5640: ASoC: CPU DAI baytrail-pcm-audio not registered
<3>[ 10.337832] genirq: Flags mismatch irq 8. 00000083 (volume_down) vs. 00000000 (rtc0)
<3>[ 10.337842] gpio-keys gpio-keys.0.auto: Unable to claim irq 8; error -16
<4>[ 10.337867] gpio-keys: probe of gpio-keys.0.auto failed with error -16
<6>[ 10.338046] input: gpio-keys as /devices/platform/gpio-keys.1.auto/input/input6
<3>[ 10.338344] byt-rt5640 byt-rt5640: ASoC: CPU DAI baytrail-pcm-audio not registered

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

Categories

Resources