View Single Post
Old 04-12-2012, 05:33 PM   #156
TCCPhreak
Member
TCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of lightTCCPhreak is a glorious beacon of light
 
Posts: 14
Karma: 12366
Join Date: Mar 2012
Device: Kindle 4GNT
Quote:
Originally Posted by geekmaster View Post
You cannot trust the LED color to indicate battery condition on a bricked kindle. The firmware controls the battery charging, so on erased mmc or other serious bricking situation, it may have charging difficulties.
I saw the LED as a sign that voltage arrives at the Kindle and it has the option to charge if it wants to. I'm pretty certain that there's something wrong with the part of the firmware controlling the charging.

I can even imagine that this was the part that lead to the original bricking... Freeze due to low battery, then reboot as the charger was detected.. then next freeze.

Quote:
Originally Posted by geekmaster View Post
That is why I recommend in other threads to use a wall charger just to get it charged enough so you can use fastboot mode and charge from there. Just because your serial port shows that it WANTS to boot to fastboot mode (the "override") does not mean that it CAN boot to fastboot mode if the firmware in mmc does not contain the fastboot code.
I know that I brickflashed the main kernel and the diags kernel. This shouldn't have damaged the fastboot "kernel", right..

Quote:
Originally Posted by geekmaster View Post
The only way to fix it using tools available here and now is by using the serial port, until somebody figures out how to flash the mmc using MfgTool.
I can access u-boot from serial (at least until it freezes) but I'm not sure what command will help me flash something.. or boot into a reliable u-boot. none of the commands listed in "help" sounds anything like uploading files.

Regards,

TCC

Update:
I don't know what just happened but *something* just happened.. I told uboot to reset, it then decided to halt.. And somehow this fixed the decreasing-voltage-problem. The voltage number is rising at the moment and I even had access to a prompt names "bist >" and having some commands with "ymodem"... Guess, it's time to prepare the kernel backups for upload..

Later Update:
aaaand... after bist allowed my to change to fastboot and suddenly this fastboot worked, I was able to flash kernel and diags kernel and even boot into diags again. Flashing the main partition was not yet done as I'm back to my "freeze" problem after some seconds.

But this time I can read a message over the serial:
mxc_rtc: saved=0x0 boot=0xca
boot: C def:bcut:batterycut=1,version=000000:

after some time:
BUG: soft lockup - CPU#0 stuck for 61s!
and something that looks like a kernel panic or gdb-bt. PC is stuck in mxc_rtc_set_time+0x60

Spoiler:

Modules linked in: tequila_keypad fiveway mxc_keyb ehci_hcd usbcore mwan ppp_async ppp_generic slhc crc_ccitt fuse g_file_storage arcotg_udc mxc_epdc_fb eink_fb_waveform

Pid: 15, comm: events/0
CPU: 0 Not tainted (2.6.31-rt11-lab126 #1)
PC is at mxc_rtc_set_time+0x60/0xcc
LR is at 0x0
pc : [<c02d6478>] lr : [<00000000>] psr: 60000013
sp : ce053ef8 ip : d0900004 fp : ce053f2c
r10: 00000000 r9 : 00000000 r8 : 00000000
r7 : c0507c30 r6 : 000000ca r5 : 000000ca r4 : d0900000
r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 7e978019 DAC: 00000017
[<c0117364>] (show_regs+0x0/0x50) from [<c0167960>] (softlockup_tick+0x110/0x154)
r4:ce053eb0 r3:c04c48b0
[<c0167850>] (softlockup_tick+0x0/0x154) from [<c01488a0>] (run_local_timers+0x1c/0x20)
r8:2faf0800 r7:ce053eb0 r6:c04c67d0 r5:00000000 r4:ce050cc0
[<c0148884>] (run_local_timers+0x0/0x20) from [<c01488d8>] (update_process_times+0x34/0x5c)
[<c01488a4>] (update_process_times+0x0/0x5c) from [<c015da24>] (tick_sched_timer+0x8c/0xc0)
r5:0000005f r4:2faf282b
[<c015d998>] (tick_sched_timer+0x0/0xc0) from [<c0155424>] (__run_hrtimer+0x4c/0xe8)
r7:2faf1dea r6:00000001 r5:c04c6238 r4:c04c67d0
[<c01553d8>] (__run_hrtimer+0x0/0xe8) from [<c0155d6c>] (hrtimer_interrupt+0x174/0x1ec)
r6:00000001 r5:3b9ac9ff r4:c04c6238 r3:0000005f
[<c0155bf8>] (hrtimer_interrupt+0x0/0x1ec) from [<c012af34>] (mxc_timer_interrupt+0x28/0x38)
[<c012af0c>] (mxc_timer_interrupt+0x0/0x38) from [<c0168194>] (handle_irq_action+0x5c/0x64)
[<c0168138>] (handle_irq_action+0x0/0x64) from [<c01681c4>] (handle_IRQ_event+0x28/0xe4)
[<c016819c>] (handle_IRQ_event+0x0/0xe4) from [<c01699e8>] (handle_level_irq+0x90/0xf4)
r7:c0507c30 r6:00000001 r5:00000027 r4:c04c7694
[<c0169958>] (handle_level_irq+0x0/0xf4) from [<c011506c>] (_text+0x6c/0x88)
r5:00000000 r4:00000027
[<c0115000>] (_text+0x0/0x88) from [<c0115a38>] (__irq_svc+0x38/0xa0)
Exception stack(0xce053eb0 to 0xce053ef8)
3ea0: 00000000 00000000 00000000 00000000
3ec0: d0900000 000000ca 000000ca c0507c30 00000000 00000000 00000000 ce053f2c
3ee0: d0900004 ce053ef8 00000000 c02d6478 60000013 ffffffff
r5:d0800000 r4:ffffffff
[<c02d6418>] (mxc_rtc_set_time+0x0/0xcc) from [<c02d6728>] (do_rtc_work+0x244/0x2c8)
[<c02d64e4>] (do_rtc_work+0x0/0x2c8) from [<c014ec0c>] (worker_thread+0x158/0x1cc)
r7:00000000 r6:c02d64e4 r5:ce052000 r4:ce001b20
[<c014eab4>] (worker_thread+0x0/0x1cc) from [<c01523a0>] (kthread+0x88/0x90)
r6:ce001b20 r5:c014eab4 r4:ce021f28
[<c0152318>] (kthread+0x0/0x90) from [<c0141c30>] (do_exit+0x0/0x5c4)
r6:00000000 r5:00000000 r4:00000000


and - again after some time - the reboot:
Spoiler:

U-Boot 2009.08-lab126 (Sep 22 2011 - 21:33:57)

CPU: Freescale i.MX50 family 1.1V at 800 MHz
mx50 pll1: 800MHz
mx50 pll2: 400MHz
mx50 pll3: 216MHz
ipg clock : 50000000Hz
ipg per clock : 50000000Hz
uart clock : 24000000Hz
ahb clock : 100000000Hz
axi_a clock : 400000000Hz
axi_b clock : 200000000Hz
weim_clock : 100000000Hz
ddr clock : 800000000Hz
esdhc1 clock : 80000000Hz
esdhc2 clock : 80000000Hz
esdhc3 clock : 80000000Hz
esdhc4 clock : 80000000Hz
MMC: FSL_ESDHC: 0, FSL_ESDHC: 1
Board: Tequila
Boot Reason: [POR]
Boot Device: MMC
Board Id: 0YLL3TT0NDLU0HS1
S/N: 0N01T4MR0FN151HT
Initing MDDR memory
ZQ calibration complete: 0x128=0x05090010 0x12C=0x00000408
DRAM: 256 MB
Using default environment

In: serial
Out: logbuff
Err: logbuff
Quick Memory Test 0x70000000, 0x10000000
POST done in 13 ms
BOOTMODE OVERRIDE: DIAGS
Hit any key to stop autoboot: 3  2  1  0
## Booting kernel from Legacy Image at 70800000 ...
Image Name: Linux-2.6.31-rt11-lab126
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5122432 Bytes = 4.9 MB
Load Address: 70008000
Entry Point: 70008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
mxc_spi mxc_spi.0: can't setup spi1.0, status -22
mxc_spi mxc_spi.2: chipselect 0 already in use
i2c-adapter i2c-1: E mxc_i2c_wait_for_tc:tx_success_fail::ACK not received
wm8962 1-001a: i2c_transfer() returned -121
wm8962 1-001a: Device is not a WM8962, ID 0 != 6243
i2c-adapter i2c-1: E mxc_i2c_wait_for_tc:tx_success_fail::ACK not received
wm8962 1-001a: i2c_transfer() returned -121
i2c-adapter i2c-1: E mxc_i2c_wait_for_tc:tx_success_fail::ACK not received
wm8962 1-001a: Failed to issue reset
2.6.31-rt11-lab126 #1 Fri Sep 2 19:00:58 PDT 2011 armv7l
INFO:Loaded module /lib/modules/eink_fb_waveform.ko (35504 bytes)
INFO:Loaded module /lib/modules/mxc_epdc_fb.ko default_panel_hw_init=1 default_update_mode=1 (43336 bytes)
INFO:eink initialized... (486400 bytes)
INFOIAGS MODE
Press [ENTER] for recovery menu... 0 /INFO:*** Partition table verified for /dev/mmcblk0 ***
INFO:Checking for updates... (auto-pilot mode)
/dev/mmcblk0p4:
CHS=4/16/44480 size=1457520640 bytes
flag type first last lba first lba size
Partition p1:
0x00 0x0b 16 <large> 16 2846704
CHS: 0/1/1 - <large>
Partition p2:
Partition p3:
Partition p4:
INFO:Setup loop device /dev/loop0 for /dev/mmcblk0p4 + 8192
INFO:No update*.bin found; no update needed.
INFO:no updates found.
INFO:Couldn't find localized image at /mnt/wfm/images/splash.png.gz
BOOTING DEFAULT.
argc == 11
argv[0]: "kinit"
argv[1]: "consoleblank=0"
argv[2]: "rootwait"
argv[3]: "ro"
argv[4]: "ip=off"
argv[5]: "root=/dev/mmcblk0p2"
argv[6]: "quiet"
argv[7]: "user_debug=31"
argv[8]: "eink=fslepdc"
argv[9]: "video=mxcepdcfb:E60,bpp=8,x_mem=2M"
argv[10]: "console=ttymxc0,115200"
argc == 4
argv[0]: "IP-Config"
argv[1]: "-i"
argv[2]: "Linux kinit"
argv[3]: "ip=off"
IP-Config: no devices to configure
kinit: do_mounts
kinit: name_to_dev_t(/dev/mmcblk0p2) = dev(179,2)
kinit: root_dev = dev(179,2)
kinit: /dev/root appears to be a ext3 filesystem
kinit: trying to mount /dev/root on /root with type ext3
kinit: Mounted root (ext3 filesystem) readonly.
init started: BusyBox v1.17.1 (2011-09-02 18:46:34 PDT)
starting pid 427, tty '': '/etc/init.d/rcS'
/etc/init.d/rcS: line 85: boot_milestone: not found
system: I rcS:def:starting /etc/rcS.d/S50diags
USER=root
prevlevel=N
HOME=/
runlevel=S
eink=fslepdc
TERM=vt102
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/sh
PWD=/
VERBOSE=no
READ_AHEAD=4
USER=root
prevlevel=N
HOME=/
runlevel=S
eink=fslepdc
TERM=vt102
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/sh
PWD=/
VERBOSE=no
IO_SCHED=anticipatory
USER=root
prevlevel=N
HOME=/
runlevel=S
eink=fslepdc
TERM=vt102
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/sh
PWD=/
VERBOSE=no
TMP_SIZE=32M
info firsttime:mount_rw:time=4010:Mounting root RW for first boot
ln: /usr/share/fonts/X11/misc/cursor.pcf: No such file or directory
info firsttime:mount_ro:time=4040:Mounting root RO
elevator: type not found
info system:start:time=4110:
/etc/rcS.d/S50diags: line 466: f_proto: not found
info system:configlatform=yoshi,board=tequila,rev=21, proto=N,wifi=Y,wan=N:
info system:done:time=4380:
FATAL: Error inserting zforce (/lib/modules/2.6.31-rt11-lab126/kernel/drivers/input/touchscreen/zforce.ko): No such device
/etc/rcS.d/S50diags: line 466: iptables-restore: not found
/opt/ar6k/include/dbglog.h.save: No such file or directory
info userstore:run:time=5080,action=start:
info userstore:found_bootup_flag::Found BOOTUP flag file
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
There are differences between boot sector and its backup.
Differences: (offsetriginal/backup)
65:01/00
Not automatically fixing this.
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
8192 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
711168 bytes per FAT (= 1389 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1438720 (sector 2810)
177743 data clusters (1456070656 bytes)
32 sectors/track, 64 heads
0 hidden sectors
2846704 sectors total
A new long file name starts within an old one.
Not auto-correcting this.
Checking for unused clusters.
Checking free cluster summary.
/dev/loop/0: 110 files, 6312/177743 clusters
mounting waveform filesystem
umounting waveform filesystem
info display:started:time=5710:
/etc/upstart/battery-diags: line 91: f_proto: not found
info battery:charged:cap=91,mV=4127,mAH=820:
USER=root
prevlevel=N
OLDPWD=/
HOME=/
runlevel=S
eink=fslepdc
TERM=vt102
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/sh
PWD=/dev
VERBOSE=no
LD_LIBRARY_PATH=/usr/lib/tts/speech/components/common/:/usr/lib/tts
alsactl: load_state:1635: Cannot find soundcard '0'...
/etc/rcS.d/S50diags: line 13: audioServer: not found
/etc/rcS.d/S50diags: line 13: kb: not found
diags : /opt/factory/rootfs_md5_list not found.
Sending: mkdir -p /mnt/base-us/diagnostic_logs/
PostMode len = 6 of 16
Ignoring PostMode
GlobalHalImpl: found DeviceType: 16
Sending cmd: modprobe fiveway
input: fiveway as /devices/virtual/input/input0
Sending cmd: modprobe tequila_keypad
input: tequila-keypad as /devices/platform/tequila-keypad/input/input1
Input driver version is 1.0.0
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "fiveway"
Supported events:
Input driver version is 1.0.0
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "tequila-keypad"
Supported events:
failed to open /dev/input/event2
failed to open /dev/input/event3
failed to open /dev/input/event4
failed to open /dev/input/event5
failed to open /dev/input/event6
failed to open /dev/input/event7
Ignoring PostMode
system: I mntroot:def:Making root filesystem writeable
EXT3 FS on mmcblk0p2, internal journal
system: I mntroot:def:Making root filesystem read-only
1000
1000
system_diags[MainTest] 1 INFO : Start test
TEQUILA - System Diags
~~~~~~ 1.0.6.194 ~~~ -1096131704 ~~~~~~~~~~~~
~ S ~ Device Setting
O) Operator test suite
R) Run in Test
G) Gas Gauge
E) 511
T) Power Test
H) Adjust battery
M) MoviNand
N) Misc individual diagnostics
Y) ART 11g factory test
U) USB device mode
D) Exit, Reboot or Disable Diags
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
X) Exit - FW RIGHT to exit


Last edited by TCCPhreak; 04-12-2012 at 08:20 PM.
TCCPhreak is offline   Reply With Quote