03-08-2012, 12:21 AM | #1 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
fastboot for win32
UPDATE: The name of this thread has changed to show that it has evolved into a kindle debricking solution that uses a new kindle fastboot for windows tool. This thread started as a search for a solution to the problem of a kindle dropping out of fastboot mode when you change the host PC from windows (for MfgTool) to linux (for fastboot). Using this new tool, you can now stay in windows for both steps, with no risk of your kindle dropping out of fastboot mode.
You can download fastboot for windows (thanks to hostar) here: https://www.mobileread.com/forums/sho....php?p=2000997 Each kindle needs its own set of libusb-win32 device drivers installed, to work with fastboot for windows. There are multiple ways to do this, and multiple versions of libusb drivers for windows. You can read some details about how *I* installed them for my K4 and Touch here: https://www.mobileread.com/forums/sho....php?p=2001621 And you can read step-by-step details about how PoetCop debricked his Kindle Touch using fastboot for windows here: https://www.mobileread.com/forums/sho....php?p=2002101 ORIGINAL FIRST POST: Spoiler:
Last edited by geekmaster; 03-13-2012 at 03:37 PM. |
03-08-2012, 12:40 AM | #2 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Bummer!
I just realized that one of my LCD displays has a built-in USB hub that I have never used before. When a kindle is plugged into a USB port on the LCD display, and the display USB is plugged into a host PC, I set fastboot mode from windows with MfgTool. I have a serial terminal open while monitoring serial output from the kindle. As soon as I disconnect the host PC from the LCD USB hub, the serial display immediately shows that fastboot dropped out and the kindle is sitting at a u-boot bist> prompt, just like when no USB hub is used. Oh well... it was worth trying, but another dead end... EDIT: For now, the only way to use MfgTool and fastboot is to run either linux or windows in a Virtual Machine (emulator), or to get fastboot working in cygwin on windows. *** Has anybody gotten the cygwin version of yifanlu's kindle fastboot tool working correctly? Last edited by geekmaster; 03-08-2012 at 12:45 AM. |
Advert | |
|
03-08-2012, 05:17 AM | #3 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
We should try to emulate MfgTool with libusb, I think to recall you said there's a reference implementation from RockBox... I was thinking about adding support to MfgTool for the kindle 3, instead of using a different tool, and then move everything to a linux native tool... time permitting
|
03-08-2012, 05:20 AM | #4 | |
Zealot
Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
Quote:
libusb-win32 and I think it's worth to try to rewrite the code to make fastboot.exe work with this library. I've already start to rewriting this, but it's quite much work to do and I don't have experience with hardware controlling. |
|
03-08-2012, 09:15 AM | #5 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I was trying to build a native win32 fastboot using MinGW/msys instead of cygwin. |
|
Advert | |
|
03-08-2012, 07:04 PM | #6 |
Zealot
Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
OK, announcing some progress.
Now I'm able to see Kindle in fastboot in Windows with libusb-win32 library. There is needed to install custom driver by this steps: 1) In libusb-win32 directory in bin is file called "inf-wizard.exe" 2) Put Kindle to fastboot, run inf-wizard.exe 3) Click Next, Kindle should appear in list, select it 4) Click several Next, make new directory and save there Kindle.inf 5) Click "Install now..." and wait 6) Now libusb-win32 should see Kindle and in Windows Device Manager should be Kindle under "libusb-win32 devices" without any driver error (without yellow exclamation mark) I was trying to run by this way original yifanlu's fastboot with android drivers, I even tried change drivers a little, but with no luck. But now I really believe, that with libusb will fastboot work in Windows. |
03-09-2012, 12:11 AM | #7 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I also have libusb-win32 installed in my WinXP VM and talking to my kindle. I had to run its inf installer and tell it to use VID/PID 1949/D0D0. I have a screenshot of its testlibusb-win.exe output that uses this driver: As you can see, windows programs CAN talk to the kindle in fastboot mode, as the output from testlibusb-win.exe shows above. The Manufacturer and Product (Amazon Kindle) and the serial number are requested from the kindle over USB by the libusb-win32 device driver, and are displayed above. I redacted (blacked-out) part of my pcbsn (the device serial number reported in fastboot mode). Now, the obvious next step is to integrate this with the Kindle fastboot source code, to make a fully win32 version that does not need cygwin, and while we are at it, we should make a GUI wrapper for it too. The short-term goal here is to have a fastboot version that runs in the same windows environment as MfgTool, so there is no need to unplug the kindle USB port which terminates fastboot mode. Currently, you really need linux and windows to coexist on one computer (one running in a VM in VirtualBox, or side-by-side using coLinux). Last edited by geekmaster; 03-09-2012 at 12:29 AM. |
|
03-09-2012, 09:04 AM | #8 | |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Quote:
|
|
03-09-2012, 11:05 AM | #9 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Here is the original:
And here is a copy that I modified a bit to report kindles it detects in various modes: PHP Code:
PHP Code:
EDIT: My simple modifications to this sbloader.c program are not yet complete. It is one of my many "in-progress" projects. It needs more work to upload files to the kindle. And the makefile is for a version or fastboot that has similar changes. I plan to merge them to support both usb downloader and fastboot in one program, to simplify the "simple debricking" process. And I want to add a GUI wrapper too. EDIT: Notice in the Makefile that you need to install libusb-1.0 to compile this. Last edited by geekmaster; 03-09-2012 at 11:22 AM. |
03-11-2012, 06:38 PM | #10 |
Zealot
Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
geekmaster: I just want to ask, if I should continue in developing Windows fastboot.
So far, now I'm able to get and set variable and reboot device over fastboot. I haven't tested writing raw data yet. (because I'm little scared from bricking ) Last edited by hostar; 03-11-2012 at 06:57 PM. |
03-11-2012, 07:33 PM | #11 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I would like to try your code. I have a serial connection on mine so I am less afraid. Last edited by geekmaster; 03-11-2012 at 08:23 PM. |
|
03-11-2012, 08:26 PM | #13 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
P.S. Your karma just jumped to 2600. |
|
03-12-2012, 01:40 AM | #14 | |
Connoisseur
Posts: 55
Karma: 46
Join Date: Feb 2012
Device: Kindle
|
Quote:
|
|
03-12-2012, 02:32 AM | #15 |
Connoisseur
Posts: 55
Karma: 46
Join Date: Feb 2012
Device: Kindle
|
Ok, that was dumb - I should take a minute to learn about concepts I don't understand! The proper way to get libusb0.dll is to go here
http://sourceforge.net/apps/trac/libusb-win32/wiki and follow the instructions, which will include booting the Kindle into fastboot mode. There is no actual libusb0.dll file involved, it's installed automatically by the tool they provided. I can post more details if anyone on my beginner level is trying to retrace my steps. But the upshot is that the windows fastboot tool works, at least a little bit, and at last I am talking to my severely bricked Kindle!! Thanks hostar! fastboot getvar bootmode and getvar serial both work. It at least thinks that setvar bootmode works, although I haven't seen much difference so far in my black screen of death when I reboot with either diags, main or factory. Since you mention flashing partitions doesn't work at the moment, I'll hold off on trying any of those commands until those are ready to go. But pleased by the first progress in a couple of weeks! |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fastboot GUI | hostar | Kindle Developer's Corner | 53 | 07-31-2017 10:52 AM |
Fastboot not working | aditya3098 | Kindle Developer's Corner | 10 | 05-12-2012 02:44 PM |
a new win32 mobi2html tool | james khan | Kindle Formats | 7 | 04-12-2012 04:01 PM |
Fastboot Manifesto | geekmaster | Kindle Developer's Corner | 102 | 03-12-2012 05:30 PM |
calibre-parallel process uses large amount of Win32 Handles | CheriePie | Calibre | 5 | 03-03-2009 02:03 AM |