01-21-2012, 08:45 PM | #16 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Please do not touch fastboot if you do not know enough about it. I don't even know enough about it, therefore I haven't messed with it. Last time I heard, Kindle's fastboot is implemented incorrectly and none of the options work. However, I have not confirmed it for myself because I have a working Kindle that I don't want to destroy.
|
01-21-2012, 08:53 PM | #17 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I do not understand it well yet either.
I think fastboot mode is different from USB/HID mode. I downloaded a Windows command-line tool from freescale that lets me push code from host PC into kindle RAM when it is in USB/HID mode, and execute that code. Their example shows using uboot.bin. fastboot is more for flashing new firmware without needed signed update packages. AFAIK. yifanlu is welcome to correct me here. |
Advert | |
|
01-22-2012, 02:03 PM | #18 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Hi all! I can confirm the binary I shared is for 64 bit installs. As I said I didn't test that though cos I don't have a new Kindle. So I can't help, sorry...
|
01-22-2012, 04:19 PM | #19 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2012
Location: Scotland
Device: Kindle 4 NT
|
OK, let me give some feedback on this. I was using a 32-bit Ubuntu 11.10 which gave the error above. Thank you to geekmaster for telling me I needed a 64 bit version. I made a cd for ubuntu-10.04.3-desktop-amd64.iso got it running, from the cd, on my son's Dinopc Gallant AMD 955 with CPU: AMD Phenom II X4 955 Black Edition with Motherboard: Asus M4A87TD USB3. The Kindle was connected to the computer with the cable supplied with the Kindle. I extracted fastboot to the Ubuntu folder, since I couldn't copy it into the home folder. I opened up a terminal and the dialogue was as follows:-
ubuntu@ubuntu:~$ sudo ./fastboot setvar bootmode main setting 'bootmode' to 'main'... bootmode main: finished. total time: 0.013s ubuntu@ubunt:~$ The screen on the Kindle then changed to the low battery warning screen. I disconnected the kindle from the computer and put it on charge at the mains. A few minutes later and the screensaver showed up and I was able to use it again. It's exactly as it was before I enabled fastboot. giorgio130, thank you, your program works. This should help a lot of bricked Kindles come back to life. Would it be possible to compile it to work on 32-bit machines? Last edited by B164D; 01-22-2012 at 04:32 PM. |
01-22-2012, 05:05 PM | #20 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
How do I get fastboot to see my kindle?
When I plug it in and turn it on, VirtualBox sees it as "Freescale...Blank CODEX [0001]", and 64-bit Ubuntu sees it as "/dev/bus/usb/001/005x" (the x is increments each time I power on the kindle". I am trying to use the fastboot from giorgio130 above. fastboot just sits "<waiting for device>". I want to write the idme vars that got trashed by a diags glitch. What should I do here? |
Advert | |
|
01-22-2012, 05:38 PM | #21 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2012
Location: Scotland
Device: Kindle 4 NT
|
Although I could "see" the Kindle in Puppy's HardInfo and Win7's Device Manager showed it as faulty I couldn't see it as a usb drive. I didn't need to do anything to help giorgio130's fastboot program "see" the Kindle. It just worked. After connecting the Kindle to the computer the led on the Kindle had come on a steady amber. I pressed the on/off button until it went out then released the button - the led immediately came back on. I don't know if that's important but I opened up a terminal after doing that. I also wonder if this would have worked if the Kindle's battery had been completely discharged.
|
01-22-2012, 06:10 PM | #22 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I wonder if this is another Ubuntu issue. I got this "<waiting for device>" message on a working kindle with yifanlu's fastboot for kindle also.
My ubuntu 64 (linux mint 11) hardinfo does not show the kindle. virtualbox sees it, and xp in a vm sees it as a USB/HID device. I am curious just how fastboot knows which USB device to use -- or is this some kind of HID device like in Windows? Do I need to install a HID driver or something, like I did in Windows? Here are compiled fastboot programs for 32-bit linux, osx 10, and Windows: http://koushikdutta.blurryfox.com/G1/ At least Windows sees it as a proper usb/hid device... EDIT: I had to install a bunch of crap from the android sdk just to get a missing dll. Now that the windows fastboot is running, the kindle USB/HID device disappears about 1 second after a reboot. Must be a dead battery. Will this thing take a charge in this mode? The new kindles do not seem to charge in usbnet or usbd drive mode, so perhaps usb hid mode also does not charge. It was plugged in overnight and the LED did not go green. Last edited by geekmaster; 01-22-2012 at 07:13 PM. |
01-22-2012, 06:32 PM | #23 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
It's not "my" fastboot program, I just compiled yifanlu's code and shared the binary if someone wants to make a 32 bit version I also shared the compile command some posts ago! geekmaster I'd try and see if something changes using a liveCD (or liveUSB for what matters) instead of Virtualbox... Glad it worked for B164D!
|
01-22-2012, 06:48 PM | #24 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
01-22-2012, 07:19 PM | #25 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I do not understand the difference between fastboot and usb hid mode. How are they activated, and how can I tell the difference?
This is one of those things I am kinda "noobish" at. I got the AdbWinApi.dll "driver" from the android sdk. The cooglecode fastboot.exe works now, but my kindle battery seems to be mostly dead now. It does not seem to be charging in this mode. I had it plugged into an adapter overnight. TIA. Last edited by geekmaster; 01-22-2012 at 07:23 PM. |
01-22-2012, 07:58 PM | #26 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
01-22-2012, 10:24 PM | #27 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
It is in USB/HID mode. I suppose that the only realistic way to recover this is by using the JTAG interface (4 small pads near the CPU).
The serial port is an unpopulated printed connector outline at the board edge, near the bottom. The GND pad at the top looks different from the others. RxD is the center pad. TxD is the bottom pad. It looks like that connector for the Touch would fit here. The pin spacing was identical to the wire spacing on an old 4-pin IDE cable. I peeled off a strip of 3 wires, and without separating them, I stripped and solder-tinned the ends, then clipped them to about 1 mm of wire showing. I added a little extra solder to the serial pads on the board, then touched the 3 wires to the pads and touched them with my hot soldering iron to bond the wires to the pads. I also used my 2-resistor and 3-diode level shifter circuit to make my usb serial adapter work with my k4nt. It allowed me to see the error message about serial number = "1" and board ID = "1" and u-boot "bailed!" because it cannot init ram on an unknown board type. Some day when I want to learn more about JTAG, the 4 pads near the CPU will need to be investigated. Last edited by geekmaster; 01-25-2012 at 02:43 AM. |
01-24-2012, 12:49 PM | #28 |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Just to revive this interesting thread, could anyone finally run fastboot to change idme?
|
02-08-2012, 05:23 AM | #29 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
On my k4nt, I no longer have working serial RxD, so I cannot type any commands in uboot or bist. Instead, I force commands using custom u-boot images, that I run in USB Recovery mode (USB HID).
In particular, I have a u-boot that sets fastboot mode. When I reboot into fastboot mode, I can change idme vars, flash partitions, etc. From fastboot, I successfully flashed a linux kernel and then was able to boot to diags mode, where I can get SSH. Unfortunately, some bug in diags or in my hardware occasionally (4 times so far) makes the next boot think it "found" a packet of idme vars that needs to be flashed. After flashing, all the idme vars are "1" again, and it cannot boot. On this k4, diags mode is not stable. But, I was able to boot into diags mode more than once after fixing the bad idme vars. So now I know enough about USB (HID) Recovery and fastboot to at least use both of them to get into Diags mode and get SSH, even when this k4 is pretty horribly bricked (bad idme vars AND bad linux kernel AND no serial RxD). So, it is yielding to my will (due mostly to extreme effort). But I am learning... I still have to find out where the dastardly "malformed idme var flash packet" is hiding and kill it, so it stops killing my idme vars. Last edited by geekmaster; 02-08-2012 at 05:25 AM. |
02-10-2012, 05:07 AM | #30 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I am working on a tool to automate and simplify this repair procedure. Read more here: https://www.mobileread.com/forums/sho...48&postcount=4 Last edited by geekmaster; 02-10-2012 at 05:10 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 4 nontouch hard reset by buttons ? | enkor | Kindle Developer's Corner | 1 | 12-30-2011 08:09 AM |
My kindle 4 nontouch special offer $79 wastes batteries if online. | nonentity | Amazon Kindle | 6 | 11-13-2011 09:04 AM |
Font hacks for the Kindle 2, Kindle International and Kindle DX | edge777 | Kindle Developer's Corner | 17 | 04-30-2010 04:11 PM |
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 | Xia | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 11-07-2009 10:06 AM |