Nell17 / openeve

Automatically exported from code.google.com/p/openeve
0 stars 0 forks source link

ARM crash upon SD card insertion #210

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start the phone without SD card
2. Insert SD card after boot is complete and phone is working

What is the expected output? What do you see instead?

the card should be mounted and the phone should work with SD installed apps

What version of the product are you using?
1. gapps-gb-0828
2. system-gb-20111011-snapshot.zip 
3. boot-gb237-111025-224mb-r193.zip     
4. ...

I'm fed up with the phone crashes every few hours and the problems with SD 
card. I have to let the phone boot without SD card to avoid restart loops and 
the I insert the SD card but most of the time I get ARM11 crash as soon as I 
enter the SD card after boot. I think it has something to do with a new SD card 
reader driver in newer boot images 

Original issue reported on code.google.com by zoza...@gmail.com on 9 Nov 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Please help me...the phone hangs when booted with card inserted and I have to 
remove the battery and plug it in to reboot...I can't use my phone with my SD 
card connected

Original comment by zoza...@gmail.com on 10 Nov 2011 at 4:21

Attachments:

GoogleCodeExporter commented 8 years ago
try to clear dalvik cache via CWM
if problem stills, try to disable "Jit" in cyanogenmod settings

Original comment by justsad.eng@gmail.com on 10 Nov 2011 at 4:32

GoogleCodeExporter commented 8 years ago
I tried both solutions but it didn't work...is there anyway I can use old boot 
with new system because when I do i get stuck in boot animation

Original comment by zoza...@gmail.com on 10 Nov 2011 at 7:02

GoogleCodeExporter commented 8 years ago
you must wipe
you have many sqlite problems, in album gallery and etc
fastboot erase data
fastboot erase cache
>>>>>>>>>>>>>>>>
or clear all via CWM
then re-flash the bootxxxx.zip

Original comment by justsad.eng@gmail.com on 10 Nov 2011 at 7:39

GoogleCodeExporter commented 8 years ago
I have lots of settings modified and apps installed to reinstall all these will 
take forever...note:the phone functions perfectly (except for apps that are 
installed on the SD card) without the SD card...It only freezes or crashes when 
I insert the SD card...do you still think that the only solution is to wipe? :(

Original comment by zoza...@gmail.com on 10 Nov 2011 at 7:47

GoogleCodeExporter commented 8 years ago
i'm not the developer of openeve, but i can decide "from your logcat" the 
error,related to sqlite and albums and many files in SD-card

Original comment by justsad.eng@gmail.com on 10 Nov 2011 at 8:00

GoogleCodeExporter commented 8 years ago
did you really installed the latest boot-*.zip ?

and you have to check
 1. turn off swap related app.
 2. turn off the compcache settting. (I have found it sometime crash will be replace with newest compcache(zram) soon)

or try to remove your SD card installed app first.

you can also attach your crash log. without crash log this issue is nothing for 
me

Original comment by wkp...@gmail.com on 10 Nov 2011 at 8:11

GoogleCodeExporter commented 8 years ago
Thanks for your replies...I tried disabling the compcache then:

I turned the phone completely off then inserted the SD card and connected the 
USB to get logcat and I started the phone

It finished starting but it didn't recognize that the SD card is in place...I 
went to the memory menu to make sure it read the card but it didn't...I 
physically removed the card then inserted it again and I immediately got [Blue 
Error Handel] ARM11 crashed

attached is my logcat

Original comment by zoza...@gmail.com on 10 Nov 2011 at 8:40

Attachments:

GoogleCodeExporter commented 8 years ago
this is a kernel issue so we need a kernel log.
you can attach your kernel crash log after warm boot (not cold boot) by "adb 
pull /proc/last_kmsg" cmd.
or from /data/kernel_crash_dump/ dir.

Original comment by wkp...@gmail.com on 11 Nov 2011 at 2:43

GoogleCodeExporter commented 8 years ago
Ok I wasn't able to make cold boot because the phone freezes and I have to 
remove the battery and put it again and I got two kernel log one while the 
phone is freezed and another after booting with SD card in place after a crash

(please tell me if there is something like a reset keycombination so that I 
won't have to remove the battery every time)

Original comment by zoza...@gmail.com on 11 Nov 2011 at 4:28

Attachments:

GoogleCodeExporter commented 8 years ago
attached dmesgs have no crash errors. (I think you mean "warm boot". removing 
phone battery is cold boot.)

after got "[Blue Error handler]..." you could warm boot by press volume down 
button.
you can also write down "[Blue Error handle...] more precisely like as

------------
[Blue Error Handler] Arm11 is Crashed!!
[Press Volume up key] To get Ramdump!!
[Press Volume down key] Reboot&savelog!!
-----------
Linux Kernel Panic
Process akmd2 (pid: 1252)
-----------
PC : yaffs_rename+0xec/0x168
LR : _spin_unlock_irqrestore+0x30/0x50
...
------<Call Stack>-------
[<c0152268>] yaffs_rename+0x0/0x168
[<c00e0024>] vfs_rename+0x0/0x378
...

Original comment by wkp...@gmail.com on 11 Nov 2011 at 6:10

GoogleCodeExporter commented 8 years ago
I'm sorry it is taking so long but my phone can't work with SD card anymore. 
Maybe I should be more specific. Usually one of two scenarios happen:

1. I normally start the phone while the card is inserted and then one of the 
following happens:
             a. The phone won't recognize that the card is inserted.
             b. The phone freezes after two minutes and I can only reboot via adb or removing and plugging the battery in.
             c. the phone goes into infinite reboot cycle.

2. I start the phone WITHOUT the SD card and then insert it later and one of 
the following happens:
             a. The phone gives one line only (not full screen) "[Blue Error Handler] ARM11 crashed" and then it automatically restarts.
             b. The phone freezes after two minutes and I can only reboot via adb or removing and plugging the battery in.

The logs I attached earlier are for scenarios 1.b and and 2.b...now I attach 
the kernel log after scenario 2.a 

I tried all the above solutions plus formatting the card and reinserting it but 
it didn't help

Notes:

-The phone functions perfectly without the SD card.
-The SD card is working normally on my laptop with no errors if I scan it

Original comment by zoza...@gmail.com on 11 Nov 2011 at 8:44

Attachments:

GoogleCodeExporter commented 8 years ago
and here is the logcat while the phone is freezed in standby mode and wont wake 
up or do any action or even receive calls

Original comment by zoza...@gmail.com on 11 Nov 2011 at 8:53

Attachments:

GoogleCodeExporter commented 8 years ago
ok...I think I got the kernel log now...I used the command

"adb shell dmesg >dmesg.txt" while the phone is frozen in standby mode and I 
removed the card...it has some fails at the end

Original comment by zoza...@gmail.com on 11 Nov 2011 at 9:05

Attachments:

GoogleCodeExporter commented 8 years ago
....
<3>[ 1661.671611] FAT: Directory bread(block 32770) failed
<3>[ 1661.672229] FAT: Directory bread(block 32771) failed
<3>[ 1661.673454] FAT: Directory bread(block 32772) failed
<3>[ 1661.674252] FAT: Directory bread(block 32773) failed
<3>[ 1661.675269] FAT: Directory bread(block 32774) failed
<3>[ 1661.675899] FAT: Directory bread(block 32775) failed
<3>[ 1670.944261] FAT: FAT read failed (blocknr 3056)
.....

your kernel log says FAT partition is broken !!! (and your last_kmsg says 
nothing about any of your kernel panic)

backup your SD card first then fix your SD card problem. (format etc...)

Original comment by wkp...@gmail.com on 15 Nov 2011 at 3:44

GoogleCodeExporter commented 8 years ago
Ok I did that but it didn't work so I bought a new SD card and tried but the 
same thing happens.

I just have one question:

What does it mean to have a phone that won't wake up from stand by mode by any 
key or phone call BUT it is completely responsive via adb...I can reboot, get 
logcat  and do other things while the phone is in this dead standby mode.

can a phone be frozen but responsive via adb?

Original comment by zoza...@gmail.com on 20 Nov 2011 at 8:08

GoogleCodeExporter commented 8 years ago
I guess there must be something wrong App exist and it break your SD card.

> can a phone be frozen but responsive via adb?
yes. I think you have to try clean/wipe your phone after backup.

Original comment by wkp...@gmail.com on 21 Nov 2011 at 12:51

GoogleCodeExporter commented 8 years ago
I took your advice and it seems to be working now. I moved all the programs 
that has root access and the ones that automatically start when the phone 
starts from the SD card to the phone memory and the phone is much better now.

I guess you shouldn't put programs that are tightly integrated with the system 
on SD card (root and autorun programs)

Original comment by zoza...@gmail.com on 27 Nov 2011 at 10:56

GoogleCodeExporter commented 8 years ago

Original comment by wkp...@gmail.com on 29 Nov 2011 at 12:24