![]() |
#16 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
I proudly present working and tested fastboot for Windows.
Tested by rewriting diags partition by zeroes and then rewrote back with proper data. Lack of ability flash main (system) partition correct still persist. Quote:
To use this just run EXE. To compile on 32 bit Windows, run make.bat. To open command line in current directory run cmd.bat Please post feedback. Poetcop: <waiting for device> message has been deleted before, but now it should appear, if first found device is not Kindle in fastboot. UPDATE LOG: updated usb_windows.c - March 12th 2012 Last edited by hostar; 03-20-2016 at 09:06 AM. |
|
![]() |
![]() |
![]() |
#17 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
@hostar: How did you test this on your system? EDIT: Hmm... Now even my linux fastboot that previously worked is stuck at "<waiting for device>", so the problem I am seeing is probably not with your program here... *** Nevermind -- I forgot to do "sudo ./fastboot ...". The linux fastboot still works fine. Last edited by geekmaster; 03-12-2012 at 10:24 AM. |
|
![]() |
![]() |
![]() |
#18 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
I'm running it in DOS prompt. Tested by rewriting and restoring diags partition. I can provide you version with some debug output after about three hours, because now I'm at school.
If you want try to find bug , the info about foud devices and busses are in function find_devices or something like that Last edited by hostar; 03-12-2012 at 10:07 AM. |
![]() |
![]() |
![]() |
#19 | |
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 having a problem with my linux fastboot stuck at "<waiting for device>" too, until I realized that I needed to "sudo" it. Your windows fastboot.exe is still stuck "<waiting for device>" though, even though windows is seeing the kindle fastboot device at 1949:d0d0. Last edited by geekmaster; 03-12-2012 at 10:23 AM. |
|
![]() |
![]() |
![]() |
#20 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
Where do you trying windows fastboot?
On physical computer or virtual computer? When I was developing it, I used virtual computer, Windows XP. It needs to run VirtualBox under root. After your reply I restarted to Windows. In fact, my Windows are somehow partially wrecked. But what I found was this: 0) Note: I have Windows 7 x64 1) Fastboot didn't work at all in Safe Mode in Windows 2) In normal Windows mode fastboot needs installed libusb drivers 3) Fastboot worked after selected "Disable driver signing check" (or something like that, I don't have English Windows) in F8 menu on Windows boot 4) But it works even if I HAVEN'T disabled that checking, but is was in some mode with many services disabled, because I just can't run Windows normally now. 5) Behavior you described I encountered when drivers wasn't installed or fastboot dropped out. Attaching fastboot, that write number of found busses and devices, if they are not zero. Last edited by hostar; 03-15-2012 at 01:31 PM. |
![]() |
![]() |
![]() |
#21 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I tried it in 32-bit WinXP in a VirtualBox VM, running on a 64-bit Linux Mint (Ubuntu-based debian distro).
That environment works for MfgTool, so should also work for fastboot. I have libusb-1.0 drivers installed in Windows. EDIT: I previously tried your fastboot from a few days ago while trying different versions of libusb-win32 installed by different methods, none of which could see my kindle in fastboot mode even when selected in Virtualbox USB devices. I am also having some "missing headers" issues when I try to compile your source code, using MinGW. This debug version reports "busses count: 1" "< waiting for device >". ![]() Last edited by geekmaster; 03-12-2012 at 02:10 PM. |
![]() |
![]() |
![]() |
#22 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
So that's strange.
Post that missing headers please. Also: which Kindle are you trying? Touch or Non-touch? Last edited by hostar; 03-12-2012 at 02:15 PM. |
![]() |
![]() |
![]() |
#23 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I tested it on a Touch. I could try K4 too... Testing... Well... Imagine that! It WORKS on the K4. But not on the Touch. How can that be? The Touch only works (for me) with fastboot compiled for linux. Strange. EDIT: I just tried the Touch again. Same problem. Strange. At least it works for the K4, but what problem could affect only the Touch and only on the windows fastboot? ![]() If we cannot get this working for the Touch, we may need to figure out how to flash the diags partition using a custom MfgTool profile. For now, users must deal with changing from windows to linux, with the problem of fastboot mode dropping out if the USB connection is disconnected or reset (such as by rebooting). ![]() Last edited by geekmaster; 03-12-2012 at 03:02 PM. |
|
![]() |
![]() |
![]() |
#24 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
Don't give up yet.
The usb_find_devices() should return devices with libusb driver, so problem might be there. As you wrote, you cannot see "devices count: 1", which should appear. In this phase of program, everything is in libusb0.dll "hands" ![]() Did you try to make drivers for K4 and Touch separately? One driver for each? Also this driver you have to generate when Kindle is in fastboot. I have updated usb_windows.h , there was some fragments of code, which is no longer needed. For example adb_api.h is not needed and everything what has something in common with Adb library is not needed too. Unfortunately I can't test the Touch, because I have not one and even don't know anyone who has it. Last edited by hostar; 03-12-2012 at 03:43 PM. |
![]() |
![]() |
![]() |
#25 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Screenshot showing Device Manager with my K4 and Touch in fastboot mode, with serial numbers partially blacked-out: ![]() And here is my custom Kindle-Fastboot.inf that file I used to install them: PHP Code:
When in fastboot mode, the "serial number" reported in Device Manager (and used by the "fastboot -s" option) is actually the "pcbsn" idme var, not the "normal" kindle serial number reported in the main settings menu. I hope you can figure it out from here... @hostar: Thanks much. Now we need to get this into a simple step-by-step wiki page that includes the information provided above. ![]() Last edited by geekmaster; 03-12-2012 at 04:54 PM. |
|
![]() |
![]() |
![]() |
#26 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
So it works even for Touch?
About that INF file, I understand what you did, but it is not necessary to me if I haven't Touch, if I got your point correctly. But of course it is useful to community. Quote:
Last edited by hostar; 03-12-2012 at 04:08 PM. |
|
![]() |
![]() |
![]() |
#27 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I used that .inf file for both the K4 and the Touch. Without it, it was just listed as a "Kindle" in "Unknown Devices" (with an exclamation mark), and fastboot could not see it. I tried uninstalling my "Kindle-Fastboot" driver for both devices, and then fastboot could not see either of them. After reinstalling my driver, fastboot could see both of them in windows. I did not try flashing an image yet. I could flash my touch diags partition with an image with no SSH, then after testing that SSH is missing, I could flash the image with SSH, and test that it works again. But later... EDIT: The K4 also needed to be installed using my Kindle-Fastboot.inf file, when installed using the methods that I used. It looks like you did exactly the same as I did to create your own version of this file (see post #6 and post #20). Last edited by geekmaster; 03-13-2012 at 12:45 PM. |
|
![]() |
![]() |
![]() |
#28 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
So, fastboot MODE (not the fastboot program) has a maximum size limit that is smaller than the main system partition (mmcblk0p1), and it incorrectly reports "success" even though it fails for this reason. Fortunately, we can write this partition image using a linux "dd" command, running it either from a RUNME.sh script, or from an SSH command shell (both methods documented elsewhere). |
|
![]() |
![]() |
![]() |
#29 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
The name of this thread has changed from "geekmaster simple request for assistance" to "fastboot for win32" to show that it has evolved into a kindle debricking solution that uses a new kindle fastboot for windows tool.
See the first post for details: https://www.mobileread.com/forums/sho....php?p=1995421 Let's thank yifanlu for porting the android fastboot tool to the kindle, and hostar for porting yifanlu's kindle fastboot tool to a native win32 environment so you can run it at a windows command prompt, and PoetCop for providing a working example of using it to debrick a kindle. ![]() P.S. Don't forget to install the libusb-win32 drivers for your kindle "fastboot" devices, or the fastboot program will be forever "< waiting for device >" even when your kindle is detected by windows as a "VID/PID 1949:d0d0" kindle fastboot device... ![]() Last edited by geekmaster; 03-13-2012 at 12:28 PM. |
![]() |
![]() |
![]() |
#30 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
|
geekmaster: first post -> second link is broken
https://www.mobileread.com/forums/sho....php?p=2001621 instead of https://www.mobileread.com/forums/showpost.php?p=2001621 OT: You have some moderator rights, that you can change name of thread? Because I tried to change name of my own created thread and nothing happen. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fastboot GUI | hostar | Kindle Developer's Corner | 53 | 07-31-2017 09:52 AM |
Fastboot not working | aditya3098 | Kindle Developer's Corner | 10 | 05-12-2012 01:44 PM |
a new win32 mobi2html tool | james khan | Kindle Formats | 7 | 04-12-2012 03:01 PM |
Fastboot Manifesto | geekmaster | Kindle Developer's Corner | 102 | 03-12-2012 04:30 PM |
calibre-parallel process uses large amount of Win32 Handles | CheriePie | Calibre | 5 | 03-03-2009 01:03 AM |