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 05-31-2015, 05:30 PM   #1
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
[PW1] stuck on U-boot / USB Download Mode / unbrick attempt

I got a bricked PW 1 (only amber light - never reaches green - NS blank CODEX on USB)

after reading a in the forum I started to try my luck in unbricking it - but to be honest I did not get the idea why the K5-Touch and K5-Paperwhite1 stories are mixed together in the forum and I did not find a good explanation .. from my understanding the hardware and board layout is different – so maybe the bootloader too?!?
I figured out that my PW1 is in USB download mode (it displays “NS blank CODEX” in the device Manager in Windows).
I opened the PW1 and attached a 1v8 TTL USB converter to the serial port to see if there was some output over the console -> long story short: no, nothing.

Next step was to try MFGTool to upload U-Boot into RAM directly - this seems to work up to a point :
1st MFG detects the kindle -> that’s OK
2nd MFG is able to upload U-Boot according to profile into RAM -> that’s OK
3rd I do get a serial output on the Console: -> that’s OK
Code:
U-Boot 2009.08-lab126 (Feb 19 2012 - 05:01:38)

CPU:   Freescale i.MX50 family 1.1V at 800 MHz
mx50 pll1: 800MHz
mx50 pll2: 400MHz
mx50 pll3: 216MHz
ipg clock     : 50000000Hz
ipg per clock : 50000000Hz
uart clock    : 24000000Hz
ahb clock     : 100000000Hz
axi_a clock   : 400000000Hz
axi_b clock   : 200000000Hz
weim_clock    : 100000000Hz
ddr clock     : 800000000Hz
esdhc1 clock  : 80000000Hz
esdhc2 clock  : 80000000Hz
esdhc3 clock  : 80000000Hz
esdhc4 clock  : 80000000Hz
MMC:  FSL_ESDHC: 0, FSL_ESDHC: 1
Timeout waiting for DAT0 to go high!
mmc switch failed: -19
### ERROR ### Please RESET the board ###
4th after ‘MMC: FSL_ESDHC: 0, FSL_ESDHC: 1’ there is a long wait period -> that’s might be OK, I do not have a comparison.
5th the ‘timeout message appears’ and after this the PW1 reboots. -> that’s is most likely NOT OK

To confirm my approach I have the following questions:
- Is the logged behavior expected? – I think the answer is ‘no’
- Is the logged timeout triggered because of a wrong u-boot version (that was compiled for the K5-Touch and not for the K5-PW1) and do I only need a correct U-Boot for the PW1?
- Do I have a hardware fault on the PW1 board – maybe an EMMC hardware fault?


To find out about an error situation, a valid approach might be to upload a U-Boot with debugging enabled so that the output on the serial console is a little more verbose – does anybody know of a pre-compiled U-Boot version for the PW1 out there in the Internet that I could upload into my PW1?



In Addition to the scenario described above where I used U-Boot included in this forums pre-tailored MFGTool distribution I uploaded u-Boot with the fastboot server included by eureka into my PW1 – but the outcome was not different I had the same error message as in the other version on the serial console.
u-boot serial log with embedded fastboot by eureka on my PW1:
Code:
U-Boot 2009.08-lab126 (Dec 14 2013 - 16:51:54)

MMC:  FSL_ESDHC: 0, FSL_ESDHC: 1
Timeout waiting for DAT0 to go high!
mmc switch failed: -19
### ERROR ### Please RESET the board ###
So guys, can you provide a hint if I can stop trying to unbrick my PW1 or if I should try to connect to the EMMC directly to try to read / or restore the content.


Thanks for your help....


BTW. Which shielding on the PW1-Board contains the emmc chip? The one with the engraved 1, 2, 3 or 4?

Last edited by chefchens; 06-01-2015 at 09:14 AM. Reason: better storyline and lots of corrections
chefchens is offline   Reply With Quote
Old 06-02-2015, 03:36 PM   #2
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
Hi Guys

can you please give me a hint if i posed a dumb or a hard question.

...and yes I know that a PW1 is a hard one to work on...
chefchens is offline   Reply With Quote
Old 06-02-2015, 06:26 PM   #3
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,679
Karma: 6909922
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by chefchens View Post
- - - -
So guys, can you provide a hint if I can stop trying to unbrick my PW1 or if I should try to connect to the EMMC directly to try to read / or restore the content.


Thanks for your help....


BTW. Which shielding on the PW1-Board contains the emmc chip? The one with the engraved 1, 2, 3 or 4?
The last two in reverse order:

Check with the teardown links listed in the master wiki index.
There should be ones with good board photos.

Directly connect to the eMMC chip ????
That will be a real good trick if you pull it off (no pun intended), it is a BGA package.
And even if you could (or can), it will not do any good, you need to replace it.
knc1 is offline   Reply With Quote
Old 06-02-2015, 06:38 PM   #4
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
Thanks for your answer

I was thinking of a similar approach as it was used over here https://www.exploitee.rs/index.php/Amazon_FireTV where they had a comparable problem to interface a emmc chip.
since the board will most likely die during this operation I would prefer to upload a correct first stage bootloader (the initial u-boot) via MFGtool into ram.

can you give me a hint where I could find one of those - or should the ones includes in the MFGTool from this forum be working?

I found a K4 and a Touch Teardown with shields removed.... i keep looking

Thanks

Last edited by chefchens; 06-02-2015 at 06:55 PM.
chefchens is offline   Reply With Quote
Old 06-02-2015, 07:26 PM   #5
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,679
Karma: 6909922
Join Date: Feb 2012
Device: Too many.
http://wiki.mobileread.com/wiki/K5_Index
knc1 is offline   Reply With Quote
Old 06-03-2015, 10:01 AM   #6
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,286
Karma: 2154869
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I think not many people fiddled with the device in this mode. Most likely, the eMMC does indeed have a hardware failure.
hawhill is offline   Reply With Quote
Old 06-03-2015, 11:20 AM   #7
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
Ok I got the point

After a little further reading I saw that a flat battery might force the PW1 into a secure low power mode without auxiliary like eMMC.
To prevent low power mode I added (in parallel to the battery) a fixed voltage source - which did not change the behaviour of the PW1-board.
Next step from my side will be to build an u-boot from source and try to enable debugging (if I remember this correctly there were some disabled switches in the code) to see if I get more information from U-Boot on the serial console before it is halting the board and to find out more about MMC switch: -19

cheers
chefchens is offline   Reply With Quote
Old 06-03-2015, 11:22 AM   #8
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,679
Karma: 6909922
Join Date: Feb 2012
Device: Too many.
Either repair the hardware or stop wasting your time.
knc1 is offline   Reply With Quote
Old 06-03-2015, 11:49 AM   #9
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
@knc1: it is just for phun.
I have two working K4 and a PW2 for reading – so I am fine on that side.
I have, as a sure thing, a PW2 with a cracked screen - with replacement parts for the screen arriving from china every day – so this one is going to work again.

My current project is the PW1 Board I am playing around with, with the screen working…..
…and a K4 Board without a screen with a “Frankenstein Battery” - where I connected a LiIo Cell savaged from an old blackberry battery to the electronics of a broken K4 Battery – which works fine.
... as I said. It’s for the sake of it.... and it would be a nice thing if I found out more about the PW1…
chefchens is offline   Reply With Quote
Old 06-06-2015, 10:21 AM   #10
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: 734
Karma: 2342272
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by chefchens View Post
To confirm my approach I have the following questions:
- Is the logged behavior expected? – I think the answer is ‘no’
- Is the logged timeout triggered because of a wrong u-boot version (that was compiled for the K5-Touch and not for the K5-PW1) and do I only need a correct U-Boot for the PW1?
- Do I have a hardware fault on the PW1 board – maybe an EMMC hardware fault?
Take my words with a grain of salt, I'm not an expert, just did some grepping/reading of sources and googling.

Your error happened in phase of internal storage initialization. CPU sent command to storage and polled DAT0 line of storage's interface to wait when "busy" (busy with command execution) signal ends. And after 25 seconds timeout, waiting was stopped with timeout error (number -19 is defined in source as TIMEOUT).

Here PW1 owner got at least after storage initialization stage by using precompiled U-Boot from this forum, so the problem is not in wrong U-Boot, I think.
eureka is offline   Reply With Quote
Old 06-06-2015, 01:52 PM   #11
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
Quote:
Originally Posted by eureka View Post
Take my words with a grain of salt, I'm not an expert, just did some grepping/reading of sources and googling.

Your error happened in phase of internal storage initialization. CPU sent command to storage and polled DAT0 line of storage's interface to wait when "busy" (busy with command execution) signal ends. And after 25 seconds timeout, waiting was stopped with timeout error (number -19 is defined in source as TIMEOUT).

Here PW1 owner got at least after storage initialization stage by using precompiled U-Boot from this forum, so the problem is not in wrong U-Boot, I think.
Thanks for that.. I have seen the timeout error in the sources too.
And I even read the message you linked to...but in the quoted log that the kindle the message was generated on was identified as a "KindleTouch" so I was not sure if it really was a PW1 and not a Kindle Touch.

I think I will let the PW1 board RIP



Maybe I will give it a try desoldering of the shields and try to find out how to interface the emmc....

Thanks for your help...

Last edited by chefchens; 06-06-2015 at 02:13 PM.
chefchens is offline   Reply With Quote
Old 06-07-2015, 06:36 PM   #12
chefchens
Junior Member
chefchens began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2015
Device: none
more or less just out of curiosity I build a yoshime u-boot with a debug switch turned on in mmc.c

it does seem that the my mmc chip answers to u-boot quite a bit
i will try to make sense out of the log in the next days.
maybe somebody else wants to jump in

this is the log:
Code:
U-Boot 2009.08-lab126 (Jun 07 2015 - 23:58:45)

CPU:   Freescale i.MX50 family 1.1V at 800 MHz
mx50 pll1: 800MHz
mx50 pll2: 400MHz
mx50 pll3: 216MHz
ipg clock     : 50000000Hz
ipg per clock : 50000000Hz
uart clock    : 24000000Hz
ahb clock     : 100000000Hz
axi_a clock   : 400000000Hz
axi_b clock   : 200000000Hz
weim_clock    : 100000000Hz
ddr clock     : 800000000Hz
esdhc1 clock  : 80000000Hz
esdhc2 clock  : 80000000Hz
esdhc3 clock  : 80000000Hz
esdhc4 clock  : 80000000Hz
MMC:  FSL_ESDHC: 0, FSL_ESDHC: 1
mmc_init begin
esdhc_init begin: base_addr=0x50020000
 wait for restart
set_sysctl: begin
set_sysctl: setting clock
set_sysctl: exit
  wait for init
esdhc_init complete
esdhc_set_ios: set clock to 0
set_sysctl: begin
set_sysctl: setting clock
set_sysctl: exit
esdhc_set_ios: set bus_width to 1
esdhc_set_ios: set clock to 400000
set_sysctl: begin
set_sysctl: setting clock
set_sysctl: exit
esdhc_set_ios: set bus_width to 1
Sending CMD0
 cmd status=0x1
  success
Detecting SD card..
Sending CMD8
 cmd status=0x10001
Sending CMD55
 cmd status=0x10001
SD init cmds timeout.  Trying MMC
Sending CMD1
 cmd status=0x1
  success
mmc_send_op_cond: ocr=0x80ff8080 hc=0
Sending CMD2
 cmd status=0x1
  success
Sending CMD3
 cmd status=0x1
  success
Sending CMD9
 cmd status=0x1
  success
rd blklen = 1024 wr blklen = 512
Sending CMD7
 cmd status=0x1
  success
card=0x0 host=0xf11
Sending CMD6
 cmd status=0x1
Timeout waiting for DAT0 to go high!
mmc switch failed: -19
### ERROR ### Please RESET the board ###

Last edited by chefchens; 06-08-2015 at 10:16 AM.
chefchens is offline   Reply With Quote
Old 06-07-2015, 08:40 PM   #13
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,679
Karma: 6909922
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by chefchens View Post
more or less just out of curiosity I build a yoshime u-boot with a debug switch turned on in mmc.c

it does seem that the my mmc chip answers to u-boot quite a bit
i will try to make sense out of the log in the next days.
maybe somebody else wants to jump in

this is the log:
Code:
- - - - - -
card=0x0 host=0xf11
Sending CMD6
Sending CMD6
 cmd status=0x1
Timeout waiting for DAT0 to go high!
mmc switch failed: -19
### ERROR ### Please RESET the board ###
The micro-controller in your eMMC is beyond recovery.
Please see:
http://www.mobileread.com/forums/sho...49&postcount=3
knc1 is offline   Reply With Quote
Old 06-09-2015, 08:43 AM   #14
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: 734
Karma: 2342272
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by chefchens View Post
more or less just out of curiosity I build a yoshime u-boot with a debug switch turned on in mmc.c

it does seem that the my mmc chip answers to u-boot quite a bit
i will try to make sense out of the log in the next days.
maybe somebody else wants to jump in
From my reading of sources, it looks like card works fine from the start, but it can't switch to wider data bus width (I read mmc_startup function in drivers/mmc/mmc.c of U-Boot). Maybe if mmc->card_caps |= (MMC_MODE_4BIT | MMC_MODE_8BIT); line will be commented, device will boot.
eureka is offline   Reply With Quote
Old 06-10-2015, 11:09 AM   #15
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,679
Karma: 6909922
Join Date: Feb 2012
Device: Too many.
It seems to me that we have had other posters who lost the 8bit wide mode and found out (the hard way) that 4bit mode will not work with the Kindle SoC.

I might be wrong, the posts where a year or two ago.
knc1 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
K5 Undemo/Unbrick PW1 3G: Can't write to flash? JackPack Kindle Developer's Corner 3 03-08-2015 09:20 PM
K5 Kindle PW1 restarts on USB Drive Mode Nicolay77 Kindle Developer's Corner 7 04-04-2014 10:03 PM
[Kindle Touch] Boot over USB HID serial / "USB downloader" mode eureka Kindle Developer's Corner 16 02-25-2012 10:21 PM
Classic Stuck in USB Drive Mode, and worse... varelov Barnes & Noble NOOK 5 06-10-2011 10:42 PM
Troubleshooting Did I get my kindle stuck in USB Drive Mode? peacedog Amazon Kindle 6 02-04-2011 12:11 PM


All times are GMT -4. The time now is 08:51 AM.


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