![]() |
#91 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 116628
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
|
DXG - power cycle, but no usb loader mode
Quote:
I tried holding volume down and volume up, and I seem to get power-cycle every 15 seconds (or 1-2 seconds longer) but no device appear on USB bus. @geekmaster how did you found that holding volume down brings Kindle 3 in usb loader mode? To be sure that everything works, I tested K3G which works. Last edited by dpavlin; 08-27-2012 at 01:20 PM. Reason: replace attribution for finding download mode keypresses |
|
![]() |
![]() |
![]() |
#92 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() I tried both the DX and DXG too, but I did not find it. I think I gave up before trying ALL buttons on both devices, but I tried the obvious ones at least. I later learned that headphone insertion and removal generate keycodes too (as far as "waitforkey" is concerned), but it seems odd that rebooting with headphones in should boot to USB Downloader mode... It is worth a try though, if somebody wants to try it... Or try all the letter keys? EDIT: You can speed up the process by leaving the USB cable connected so the power LED is on, then hold the power button (backed off just enough to see the LED at its edge) until the LED turns off, then press the "potential magic key", then release power, then release the tested magic key. Look for a new USB VID/PID detected at the host PC. EDIT2: It is possible (but unlikely) that we need a combination of keys. It is also possible that the DX or DXG uses an internal connection or jumper to boot to USB Downloader mode, instead of a magic key. Last edited by geekmaster; 08-27-2012 at 12:59 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#93 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 116628
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
|
Quote:
After reading ATK documentation for board config, it seems that i.MX35 TO2 3-Stack Board needs two sets of switches flipped when turning into download mode. My assumption is that DXG is i.MX31 3-Stack Board based on Revision from /proc/cpuinfo: Code:
Hardware : Mario Platform Revision : 31020 Code:
Hardware : Amazon MX35 Luigi Board Revision : 35020 |
|
![]() |
![]() |
![]() |
#94 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
There are high res pictures of the DX board on the net, I think I indexed them under DX/Teardown
|
![]() |
![]() |
![]() |
#95 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 116628
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
|
Quote:
OOH, if my assumption about MX31 is correct ATK documentation doesn't give us much hope: Code:
The MX31 T01 chip does not support connecting the COM port using a USB UART cable. This is because the UART is set to use Odd parity with two stop bits, which is not supported when using the USB UART cable in ROM codes. Update: Bluetooth connection, while very useful for wireless access to DXG is useless for boot console and messages because it disconnects on reset. Last edited by dpavlin; 08-27-2012 at 05:59 PM. Reason: bluetooth fail for boot messages |
|
![]() |
![]() |
Advert | |
|
![]() |
#96 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The K3Flasher utility can have the mx31 support added and that limitation (of the ATK) taken into account.
Freescale has another release of the ATK in the works (to take care of some license issues) - they may also fix this limitation. - - - - The one you found may be one of those in the set linked to in the first index entry: https://wiki.mobileread.com/wiki/DX%2...ndex#Teardowns Which has a few additional detail images in the image gallery. I will dig around in my browser history, see if I can find the images I had in mind. It was only last week that I was looking at them (a set of 53 detailed images if I recall correctly). And I obviously forgot to index them once I found them, my bad. |
![]() |
![]() |
![]() |
#97 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#98 |
Official Lurker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
I'm getting an error, could just be my Kindle though...
Code:
[root@frankenboxen k3flasher]# sudo ./k3-backup.sh This will backup your K3. After starting this, bring your K3 into USB downloader mode. The whole backup procedure will take about 1 hour. W: cannot find device (is it in USB loader mode? are you root?) - waiting for it.................... I: success. I: found suitable device E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes. I: above error can be ignored, it's due to the device being in ROM kernel mode I: RAM kernel should be running now. Trying to re-open device: . I: got it. I: read info E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes. E: aborting. It is suggested you power-cycle the device. |
![]() |
![]() |
![]() |
#99 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
That should indicate that the iROM kernel was unable to load the "RAM kernel" into ram. Perhaps because it could not start the DDR2 ram. Try the other "RAM kernel" - Hawhill is about 8 time zones away, probably asleep at this time, so we have to struggle along without him. |
|
![]() |
![]() |
![]() |
#100 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
That script worked for me. I do not remember where I downloaded the RAM kernel, but I do have a copy if you need it.
UPDATE: After installing ATK, the RAM kernel was here: C:\Program Files\freescale\AdvancedToolKit-STD\image\mx35to2_mmc.bin Last edited by geekmaster; 09-12-2012 at 02:02 PM. |
![]() |
![]() |
![]() |
#101 | |
Official Lurker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
Quote:
Got it to work now, but this could be a bad sign: Code:
[root@frankenboxen k3flasher]# sudo ./k3flasher mx35to2_mmc.bin info I: found suitable device E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes. I: above error can be ignored, it's due to the device being in ROM kernel mode I: RAM kernel should be running now. Trying to re-open device: . I: got it. I: read info <long pause> E: reading data from device: LIBUSB_ERROR_NO_DEVICE E: aborting. It is suggested you power-cycle the device. |
|
![]() |
![]() |
![]() |
#102 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Great - the eDDR ram is running now and the "RAM kernel" was loaded and started.
But now it looks like something else failed, under the same conditions where Hawhill said he was starting to investigate the problem. There is a hardware watchdog that has to be serviced by the "RAM kernel" and this is starting to look as if it is not being serviced in time to prevent it from re-setting the SoC. We really need to wait at this point for a post by Hawhill since he is working on this exact situation. |
![]() |
![]() |
![]() |
#103 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Does the ATK utility manage the watchdog timer? Can that method be used to recover this borked K3?
|
![]() |
![]() |
![]() |
#104 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
But there are some setup values poked into register locations, and I am not sure if some of those might not change the watchdog time period. There is a pair of conditions mentioned in the documentation that might be in conflict - - * The watchdog timer is described as if it is a clock cycle counter (not a time base period). Freescale does not say that, but the relationship between the timer period in seconds varies with the clock speed used by the various SoC chips and I am guessing it is a counter. * For programming eMMC, the "RAM kernel" is using the bit-serial port **AND** setting the SoC clock speed to that of the eMMC clock speed to simplify synchronous transfers. ? ? A watchdog cycle counter that runs from a changing speed clock ? ? Now how fragile can that be. - - - - One thing that can be tried right away - if qlob is willing ... Load the **other** eMMC "RAM kernel" (I put both on his /Kloud). Another thing, for which my drugged up mind is not up to at the moment - - - Re-build the "RAM kernel" with modified watchdog settings if it is, indeed, hard coded in the code. The "client" programs (RAM kernels) are cygwin, linux, build system. It should be possible to do that part of the build on Linux with the "bare metal" cross-compiler. Maybe someone here with build experience can look into that - my mind is not up to it now. |
|
![]() |
![]() |
![]() |
#105 | |
Official Lurker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 10:21 PM |
USB Host Mode (Master Mode) on K3 | ericepe | Kindle Developer's Corner | 1 | 01-24-2012 04:59 AM |
USB Drive Mode | copyrite | Amazon Kindle | 7 | 02-08-2011 10:47 AM |
USB Drive Mode on K3 | Paulinafrica | Amazon Kindle | 5 | 12-17-2010 12:43 AM |
Where did the USB transfer mode go? | codo coderson | HanLin eBook | 2 | 11-28-2010 07:04 AM |