Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2012, 06:33 AM   #1
umbertone
Junior Member
umbertone began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2012
Device: Kindle 3, Kindle 4NT
Unhappy [K4NT, Help needed] Bricked, but visible as USB HID

Hi, folks!

I've applied jailbreak to my Kindle 4 NT as described in this post: http://www.mobileread.com/forums/sho...&postcount=240, I also installed localized firmware update.

The device has been working for a few days with no problems. Then at some point it didn't turn on. After trying and leaving it for a while, it turned on again. After couple days the problem returned. Now it cannot turn on, I also don't see it as USB host. Nevertheless, it appears as USB HID in the Windows Device Manager.

I've read that it's possible to connect to Kindle using such mode, but have no idea how to do it and how to restore the firmware or whatever's needed to bring it back to life.

I will appreciate any help. Thanks!
umbertone is offline   Reply With Quote
Old 01-21-2012, 12:10 AM   #2
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
I have this problem now too. It happened when I pressed the 5-way left key at "to continue - FW LEFT" message in the "Disable Diagnostics" menu of the K4NT diagnostics mode. Now even the power LED will not come on except while plugged into a usb power source. If connected to a computer is shows up as USB HID.
geekmaster is offline   Reply With Quote
Old 01-21-2012, 05:16 AM   #3
hostar
Zealot
hostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of light
 
Posts: 137
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
Ok, this is for Touch model, but maybe it could work.
http://wiki.mobileread.com/wiki/Kind...ownloader_mode
hostar is offline   Reply With Quote
Old 01-21-2012, 11:15 AM   #4
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by hostar View Post
Ok, this is for Touch model, but maybe it could work.
http://wiki.mobileread.com/wiki/Kind...ownloader_mode
I tried that last night. It says it successfully downloads code to the k4nt successfully executes it. After doing the exec, the USB port resets and I have to reattach it to my windows VM in Virtualbox. It makes sense that the usb would reset because the "random" code I sent to the kindle was just a copy of the freescale tool (wrong cpu). The tool docs show sending a file called uboot.bin.

I think that my k4nt "brick" problem was caused by a bug in the k4nt diagnostics mode "disable diagnostics" menu code. It normally erases /mnt/us/ENABLE_DIAGS and then it calls "idme" to change boot mode from diag to main. But idme can ALSO change the serial number and the board ID, with different parameters. I think that when the bad code failed to erase the missing ENABLE_DIAGS, it called idme with bad parameters that made it change my serial number and board ID to "1". And uboot does not know how to initialize RAM for a device with board ID "1".

I should have exited diags with a restart instead of disable diags.

Is there any recovery from a corrupted board ID? I do not know memory layout or device port mapping, so USB/HID mode is not much use to me at this time unless I compile my own uboot.The only thing I can think is to run a modified uboot in RAM that treats board ID 1 as a k4nt. Where do I find the k4nt uboot source code?

Does anybody have other ideas?

Last edited by geekmaster; 01-21-2012 at 11:41 AM.
geekmaster is offline   Reply With Quote
Old 01-21-2012, 11:23 AM   #5
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2314258
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
Where do I find the k4nt uboot source code?
I guess, you should look at Kindle source code provided by Amazon. I don't know if there is u-boot source code for Kindle in appropriate source code tarball, but it is so for Kindle Touch.
eureka is offline   Reply With Quote
Old 01-21-2012, 11:45 AM   #6
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
More info (including serial port output) here:
http://www.mobileread.com/forums/sho...3&postcount=45
geekmaster is offline   Reply With Quote
Old 01-21-2012, 12:00 PM   #7
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Actually, diags has a different menu item for changing board id and serial number. Perhaps when the code broke from a missing ENABLE_DIAGS file, it jumped into the code that changes the board id and serial number, without requesting user input.

I really wish that uboot was a little smarter and if bad board id, it would give you a serial port option to enter a board id, or choose which board type to initialize from a menu. Of course, the uboot INSTALLED on a k4nt should DEFAULT to initializing it as a k4nt. IMHO...

Even better if diags did not shoot itself in the head when it gets confused...

EDIT: No time to deal with this now. It has the serial port brought out through a slightly lifted spot under the flexible back cover. Later, I will try patched uboot that defaults to hardware init for "k4nt" board type. I did notice that the gpl download .tar.gz files for 4.0 and 4.0.1 have different file names, but both have same size and same md5sum. I just ordered another k4nt so I can continue testing my code instead of wasting time trying to debrick this one. Anybody want to buy a bricked k4nt (serial number and board id both "1"), with serial port?

Last edited by geekmaster; 01-21-2012 at 12:59 PM.
geekmaster is offline   Reply With Quote
Old 01-21-2012, 02:35 PM   #8
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Well... I learned one thing at least:

If you export the USB drive from diagnostics mode, or access it with SSH in diagnostics mode, you should not delete /mnt/us/ENABLE_DIAGS and then select "Disable Diagnostics" from the exit menu.

It appears that this can corrupt your serial number and board ID information so that the generic u-boot logic cannot decide how to initialize the hardware. This is what you might call "bricking your kindle".

EDIT: I am now loading and running custom u-boot boot loader code in my bricked k4nt RAM using USB HID mode, thanks to the efforts of yifanlu. Now I need to patch the boot loader to force a valid board ID, so it can continue the boot process.

Last edited by geekmaster; 01-30-2012 at 10:38 PM.
geekmaster is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kindle Touch] Boot over USB HID serial / "USB downloader" mode eureka Kindle Developer's Corner 16 02-25-2012 11:21 PM
K4NT: Special USB Cable? Robmonster Amazon Kindle 7 12-21-2011 12:05 AM
USB to Fire mini USB Cable needed swiftness Kindle Fire 6 12-06-2011 02:37 PM
Firmware Update Kindle DXi Bricked - Help Needed! lasteresitas Amazon Kindle 17 06-19-2010 01:24 PM
Building USB HID modules for 2.4.19-rmk7 hudson iRex 38 12-05-2009 04:05 AM


All times are GMT -4. The time now is 12:31 AM.


MobileRead.com is a privately owned, operated and funded community.