|
|
#691 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,023
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
It was able to boot up that way, even though it did not write to mmc. The K4 needs to know the serial number AND pcbsn to decide how to init DRAM.
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() |
|
|
|
|
|
#692 | |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15
Karma: 8888
Join Date: Oct 2012
Device: Kindle touch KT
|
Quote:
|
|
|
|
|
|
Enthusiast
|
|
|
|
#693 | |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,111
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
|
Quote:
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
|
|
#694 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,023
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
The serial output shows that u-boot reported "Invalid board id! Can't determine system type for RAM init.. bailing!", which is what I got on my K4. It reports that message when deciding how to init DRAM, based on the pcbsn idme var. Right after the code reads that var (using idme_find_var?) I changed the return value to my original pcbsn. I also did that for the other known idme vars. Then it booted, and I used "idme -d" from SSH to write those to mmc.
But I was able to use MfgTool to run my custom u-boot. EDIT: If you cannot build your own, it may be possible to patch my u-boot binary, replacing my idme vars with your own.
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() Last edited by geekmaster; 10-16-2012 at 11:13 AM. |
|
|
|
|
|
#695 | |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,023
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
Quote:
EDIT: In the diags Settings menu, the pcbsn idme var is called "PCBA ID". The only idme vars I need to patch are serial and pcbsn. EDIT2: I just tested this. It boots to whatever mode the bootmode idme var and/or ENABLE_DIAGS file selected, just like a normal bootup. WARNING: It actually wrote the idme vars. My demo kindle serial and pcbsn changed to the forced values from my other kindle. I have a backup though, so I will change them back...
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() Last edited by geekmaster; 10-16-2012 at 12:31 PM. |
|
|
|
|
|
|
#696 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,023
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
I just patched the serial and pcbsn in my custom u-boot binary, replacing some of my hex characters with ascii zeroes. It does not boot. They must contain a check-digit or something. And of course it WROTE the idme vars, so it is bricked until I patch some real values in my u-boot and let if write those to mmc...
Fun, huh? Anyway, it works right when you patch in REAL serial and pcbsn (even if from a different kindle).
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() |
|
|
|
|
|
#697 |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,111
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
|
Does the u-boot have access to its environment before it initializes ddr ram?
If so, put the desired values in the environment and pull them from there. Then people would not have to re-build the u-boot binary, just hex-edit the saved environment strings (hmm... we could probably even script that number edit).
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
|
#698 | |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,294
Karma: 4929663
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
Quote:
|
|
|
|
|
|
|
#699 | |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,023
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
Quote:
It only needs serial and pcbsn to boot. It "permanently" changed those values on my demo K4 (which I used to test it because that u-boot has K4 values in it). Now I have a pair of K4s with the same serial and pcbsn. I should change it back before they "phone home". ![]() @knc1: The u-boot running on the kindle does not have access to environment variables on the host PC, where MfgTool was running when it pushed the hacked u-boot to the kindle. I was planning to try appending a text config file to the u-boot image file though (and adjusting the flash header length to compensate, so it all gets sent over USB). I hope the CRC check does not use the flash header length...
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() Last edited by geekmaster; 10-16-2012 at 01:12 PM. |
|
|
|
|
|
|
#700 | |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,111
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
|
Quote:
The **U-Boot Environment Variables** in the **U-Boot** build! As in: Code:
#define CONFIG_EXTRA_ENV_SETTINGS \
CFG_BOOTFILE \
CFG_ROOTPATH \
"netdev=eth0\0" \
"nfsargs=setenv bootargs root=/dev/nfs rw " \
"nfsroot=${serverip}:${rootpath}\0" \
"ramargs=setenv bootargs root=/dev/ram rw\0" \
"addip=setenv bootargs ${bootargs} " \
"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
":${hostname}:${netdev}:off panic=1\0" \
"addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\
"flash_nfs=run nfsargs addip addtty;" \
"bootm ${kernel_addr}\0" \
"flash_self=run ramargs addip addtty;" \
"bootm ${kernel_addr} ${ramdisk_addr}\0" \
"net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;" \
"bootm\0" \
- - - -
Which is how they get away with bspatching the u-boot and uImage files and still be able to load them. If you use the various mkimage tools, you will find that the patched images fail the checksum tests but load and run anyway.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
|
|
#701 | |
|
discoverer of principles
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 1758576
Join Date: Dec 2011
Location: bath
Device: Kindle Touch
|
Quote:
Recent versions of kernel can access eMMC boot parition, but this functionality isn't present in KT's kernel/modules. |
|
|
|
|
|
|
#702 | |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 5516
Join Date: Oct 2012
Device: Kindle Keyboard 3G, Kindle ($69 Black)
|
Quote:
Since it took me hours to find, here's a bit more information should someone find themselves in the same situation. Model: Kindle 4.1 Problem: Repair Needed screen comes up after restart screen stops halfway on the progress bar. No USB drive detected. Bricked Reason: Main kernel not corrupted, just entered wrong framework start path Solution: http://www.mobileread.com/forums/sho...sh#post1979349 (geekmaster's) MfgTool.exe+data.tar.gz+RUNME.sh Lesson: Never try to hack your Kindle when you're sleepy and don't give up!! |
|
|
|
|
|
|
#703 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,134
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
|
Hacking tired Kills (kindles)! Take A Break!
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
#704 |
|
total noob
![]() Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Kindle Touch
|
Totally locked out.
Hello World,
I am, as of last week, the proud owner of a brick. My delightfully bricked brick sometimes also goes by the name of KT: 5.1.2. Also included in my enviable Brick Technology are the following modifications:
Some time ago I bricked up my kindle--black screen of death--which I was able to correct with MFG tool, flashing diags +ssh, and reinstalling main partition (re: simple debricking thread). then, after I got it unbricked, and Sometime during the modifications listed above, I no longer had access to 3G At work the other day, I very much wanted to look some stuff up on Wikipedia, so, stupidly and without thinking, I did a 'reset device' to see if maybe that would get me 3G. har har har, of course this did not help anything at all. The kindle was acting flakey after that, claiming I did not have the developer flag anymore, though I did according to the settings > device info. I figured it would be easier to start over on the whole shebang from scratch, then to try and diagnose what had blown the thing's mind so drastically, as it seemed to be totally knackered. (by totally knackered, I just mean that it was starting to chug, seeming generally flaky) I tried to enable USBnetworking, but it no longer worked on the main system, so I booted into diags, but it no longer worked there. I had intended on reinstalling the main partition from a back up, but, ho-hum, diags froze up. I couldn't hard reset, I couldn't SSH, I couldn't do jack. It stayed frozen in diags until the charge battery screen came on. I am assuming that the diags log was deleted in the system reset, so that might be *part* of what caused the flakiness, but it is now at a point where I am truly 100% bricked out, or so it seems. I have since scoured the forums for some kind of insight, but what I've seen is "charge it in the wall" and "charge it in fastboot mode" First I tried keeping it plugged into the wall for a good 9 hours. The orange light came on when it was plugged in, and then it would go off after about an hour of charging. I kept it plugged in. After that, I attempted to reboot it into its regular boot mode via MFG, but it failed, (I don't remember the error). Then I tried to boot it into fastboot, with the intention of trying to charge it in fastboot, but MFG tool, however, errored out (again, I don't remember what the error was that caused it to fail) and failed to get anywhere. BTW, seems obvious, but worth note, when I plug it into my computer, it does not show up at all as a removable device. the computer just acts like it doesn't exist. I will run it through those steps again when I get a moment and post the errors that MFG tool spews at me when I try to use it. Those are really all that I have to go on unless I try to get at the serial port, but even then, I don't know what that would accomplish without any power. I am at a loss. I don't know how to even begin to diagnose this thing if I cant even get it to a point where it will hold a charge enough to provide any sort of means to get in. I really would like to own a functioning kindle. really, like, a lot. Traditionally I like to maintain my status as a lurker until I have something to contribute to a community, and I like to be fairly self-sufficient until I get a feel for things, but at this rate I've been trying for days and am about ready to give up. figured it was time to throw in the towel and just ask. Noob here. Any thoughts or advice? I'm out of ideas.
Last edited by Speaker_unclear; 10-18-2012 at 07:59 AM. |
|
|
|
|
|
#705 |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,111
Karma: 3854695
Join Date: Feb 2012
Device: Intel 4004
|
Step one: Re-charge the battery.
Yes: I can see in your post that you have already read about that, but now your situation may well be different. Either (or both) of two things has happened: The battery has been over-discharged enough that it can no longer hold enough charge, OR The battery has been discharged to the point that the internal battery management can no longer re-charge it. Remove battery from Kindle, recharge it with an "Amazon Approved" re-charger. That is the "official" company line. ![]() For DIY situation - you can use any general purpose Li-Ion charger, OR You can "fake it" - Use a constant current, voltage limited, charging source; Recharge at 30% of the listed (on the battery) one-hour rate for two hours. Do not exceed a terminal voltage of 4.2 volts under charge; Do not let the temperature of the battery raise enough to damage it. That **might** (if not suffering from lack of charge holding capacity) get the battery back to a condition where you can get the Kindle into the "fastboot" re-charge mode.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
![]() |
| Tags |
| debricking |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| K5 [Kindle touch]help, debricking , can't enter diags mode | zklcy | Kindle Developer's Corner | 26 | 10-24-2012 09:47 AM |
| Help to Unbrick KT with simple debrick Method. | Loko_bielsa | Kindle Developer's Corner | 2 | 07-16-2012 07:26 AM |
| I have some questions about K4 touch debricking | drjonvargas | Kindle Developer's Corner | 4 | 04-22-2012 03:46 PM |
| kindle touch simple debricking for help | non_fox | Amazon Kindle | 4 | 04-18-2012 08:32 PM |
| Troubleshooting simple kindle touch (and k4nt) debricking method | geekmaster | Amazon Kindle | 0 | 03-02-2012 10:31 PM |