![]() |
#31 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
|
I think that the correct steps after my unlucky MMC0 erase were:
Code:
- attach serial cable - boot - during boot enter recovery menu - there select "I. Initialize Partition Table (fdisk) and format FAT" - reboot - immediately after restart enter any key to stop autoboot - enter "bist" and then "fastboot" - via fastboot tool flash diags and data partitions using backed-up data - reboot - immediately after restart enter any key to stop autoboot - boot into diags (run bootargs_diags ; bootm 0xE41000) - in system diags menu export USB storage (menu "U) USB device mode") - mount USB storage, copy system partition backup file to it and correctly unmount - quit USB storage mode (menu "Q ~ to continue") - get login prompy (menu "D) Exit, Reboot or Disable Diags" and then "L) Exit to login prompt") - login as root (default password can be calculated but you may as well update your backup to alter it prior fastboot flash) - flash system partition (dd if=/mnt/base-us/mmcblk0p1.bin of=/dev/mmcblk0p1 bs=16384) - reboot |
![]() |
![]() |
![]() |
#32 | ||
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Quote:
![]() We have now graduated from kindle touch brick recovery using the internal serial port, to debricking with the tar bug, to fastboot recovery. It is excellent to have multiple debricking options. I think we can call that serious progress. ![]() I am looking forward to seeing this in the wiki. ![]() Last edited by geekmaster; 01-11-2012 at 12:29 PM. |
||
![]() |
![]() |
![]() |
#33 | |
Kindle Dissector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#34 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
|
Quote:
Code:
uboot > ? ? - alias for 'help' bist - start Built In Self Test boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootm - boot application image from memory go - start application at address 'addr' help - print online help idme - idme - Set nv ram variables log - manipulate logbuffer printenv- print environment variables reset - Perform RESET of the CPU run - run commands in an environment variable setenv - set environment variables version - print monitor version Code:
bist > help ? - alias for 'help' autoscr - DEPRECATED - use "source" command instead base - print or set address offset boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootm - boot application image from memory check - perform MMC CRC32 check cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation diag - perform board diagnostics echo - echo args to console fail - fail blink fail pattern on LED fastboot- Fastboot fstor - File Storage go - start application at address 'addr' halt - halt board help - print online help i2c - I2C sub-system idme - idme - Set nv ram variables iminfo - print header information for application image itest - return true/false on integer compare loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range loopw - infinite write loop on address range md - memory display mm - memory modify (auto-incrementing address) mmc - MMC sub system mmcinfo - mmcinfo <dev num>-- display MMC info mtest - simple RAM read/write test mw - memory write (fill) nm - memory modify (constant address) ocotp - OCOTP sub system panic - panic halt pass - pass blink pass pattern on LED pmic - pmic - PMIC utility commands printenv- print environment variables reset - Perform RESET of the CPU run - run commands in an environment variable setenv - set environment variables sleep - delay execution for some time source - run script from memory sspi - SPI utility commands version - print monitor version |
|
![]() |
![]() |
![]() |
#35 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I thought my kindle touch was bricked, when really the battery went totally dead with the green LED still on while connected to usbnet. After unplugging, it would not start, and would not show up as usbnet or usbdrive. It had to charge for hours before the led would even flicker when trying to turn it on. It took 14 hours to reach full charge. That cannot be good for the battery. I can leave my other kindles attached to usbnet for weeks at a time while they remain accessible. Discharging a lithium battery that far can severely shorten its lifespan. The usbnet code must be modified to activate the battery charge, or it will cause destroyed batteries. Last edited by geekmaster; 01-12-2012 at 03:59 AM. |
|
![]() |
![]() |
![]() |
#36 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
@rastik Sorry for hijacking thread, but I'm wondering what is showed on serial console while booting in "USB download" mode (booting with pressed Home button). And you has a serial cable right under hand, right?
![]() |
![]() |
![]() |
![]() |
#37 | |
Kindle Dissector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#38 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
|
Quote:
I've already made a backup of first 32M of /dev/mmcblk0. It's good to have two kernels there so when your main is not working you can boot diags kernel and rewrite everything back. Last edited by rastik; 01-12-2012 at 08:45 AM. |
|
![]() |
![]() |
![]() |
#39 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
|
Quote:
Thinking of it that makes sense. This mode is wired in the i.MX50 chip and the chip is not aware of the console. Only apps are. |
|
![]() |
![]() |
![]() |
#40 |
Kindle Dissector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Yes. I love how the device is physically brick proof. Well, brick proof from software.
|
![]() |
![]() |
![]() |
#41 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Yes, mode is wired in chip but it can initiated either by hardware (with setting of "boot mode" pins), or by software (with calling into USB downloader code from running program). I was unsure, which method is used in KT, but now it seems that Home button is connected to "boot mode" pin(s) and USB downloader mode is initiated by hardware even before U-Boot loading. |
|
![]() |
![]() |
![]() |
#42 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#43 |
Kindle Dissector
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Uboot is on the mmc along with the kernel, serial/Mac address, and root partition. They can all be flashed from within Uboot and USB download mode.
|
![]() |
![]() |
![]() |
#44 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Of course you probably actually read the uboot source code from amazon. I was just going by how other uboot devices operate. |
|
![]() |
![]() |
![]() |
#45 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Unlike your touch, my K4NT sends this out the serial port: Code:
U-Boot 2009.08-lab126 (Sep 02 2011 - 22:45:17) 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: Unknown Boot Reason: [POR] Boot Device: MMC Board Id: 1 S/N: 1 Invalid board id! Can't determine system type for RAM init.. bailing! DRAM: 0 kB Using default environment Using the freescale tool, I tried sending "random" code (the sb_loader.exe renamed to default filename firmware.sb, actually). Here is what I did and the results: Code:
D:\freescale\sb_loader.v1.1-g63b47f0>sb_loader -trans Succeeded to download to the device. D:\freescale\sb_loader.v1.1-g63b47f0>sb_loader -exec Jump to RAM successfully. D:\freescale\sb_loader.v1.1-g63b47f0>sb_loader -tss Failed to run plugin to the device. What I really want to do is get out of HID mode. P.S. I posted this here even though not touch because relevant to rastik's post quoted above. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Abusing the internal USB-port of a kindle touch WiFi | Crackpot | Kindle Developer's Corner | 17 | 12-01-2016 02:09 AM |
[Kindle Touch] Boot over USB HID serial / "USB downloader" mode | eureka | Kindle Developer's Corner | 16 | 02-25-2012 10:21 PM |
Kindle Touch bricked? | LittleLui | Kindle Developer's Corner | 4 | 12-30-2011 03:18 PM |
Kindle apps...iPod touch...can I use usb to download to an iPod touch? | aznativegirl | Amazon Kindle | 1 | 09-20-2009 11:21 AM |
completely bricked, tried all the tricks, but still have USB access | Magnum6 | Sony Reader | 3 | 08-08-2007 03:03 PM |