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 09-06-2012, 07:38 AM   #1
stangri
Addict
stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.
 
stangri's Avatar
 
Posts: 238
Karma: 26940
Join Date: Jun 2007
Location: YVR/BWS/PUJ
Device: nook
[K3]+[DXG] Un-demo information

So I've had a chance to un-demo both K3 (Kindle Keyboard) and DXG earlier today and just wanted to share my experience.

The K3 was easy as the K3 Noob Debrick thru ATK worked wonders: http://wiki.mobileread.com/wiki/K3noobdebrickatk It took a while for the K3 to reboot afterwards and I was afraid it didn't work, but once it rebooted (I say let it sit plugged in for an hour after the programming is done and if that doesn't work -- hold the power switch for a while) it booted into normal K3 software and after Factory reset and jailbreak I was good to go.

The DXG is a bit different in a number of ways. First of all, the DXG demo is just a bunch of rotating pages/images, while the K3 lets you sort of exit the demo mode to play around Kindle with some menus in Settings disabled. I also could not get the ATK to recognize the Demo DXG thru the Power/Home combination (as per wiki article before). I was able however to get into recovery, but I couldn't get the update_restore-os.bin to work -- it gave me errors during update.

I first ran the Sir Alex's KindleDiagnosticTool.exe and got the root password for my Demo DXG. I then copied the retail DXG kernel and rootfs.img to the Kindle thru USB/Mass Storage and unmounted the Kindle.

I then popped the plastic cover, got the USB/RS232 TTL adaptor plugged into my Mac and I could get into the login prompt once connected to Demo DXG.

In the serial console I logged in with the login root and the password from the KindleDiagnosticTool.exe and ran the following command:
PHP Code:
dd if=/mnt/us/mmcblk0_7688.dmp of=/dev/mmcblk0 bs=512 count=7688
dd 
if=/mnt/us/rootfs.img of=/dev/mmcblk0p1 
At the end it started throwing errors like "Buffer I/O error on device mmcblk0p1, logical block nnnnnnnnnnnnn" -- as I'm guessing when it could no longer load next page/image.

After reboot with the hardware power slide I've got the working Kindle DXG with the 2.5.8 firmware.

A few photos which might help now..

The plastic cover snaps location:

So you could see where to press on the cover to disengage snaps.


Wires on the serial board:

Green to RXD, Yellow to TXD and Red to GRD. WARNING!!! On the photo the black wire connects to 5V output on serial board, as per knc1 suggestion it's better not to use the black wire at all! I have tried it and it works without black wire.


Wires connecting to Kindle DXG:

Black on P1 and red on P4. I've carefully stripped the plugs of the plastic and wrapped everything with tape so I could just touch the contacts on DXG instead of soldering.

On Mac I've done the following to connect to the serial port:
PHP Code:
sudo cu -/dev/tty.usbserial -s 115200 
With Windows you should try to use putty and if you're on Linux you probably won't need my help on that.

Once you're connected you can either dd from the user mount partition (as briefly explained above) or expose the Kindle to the USB host and dd over the USB cable.

Last edited by stangri; 08-01-2013 at 06:48 AM.
stangri is offline   Reply With Quote
Old 09-06-2012, 09:35 AM   #2
knc1
Embedded Cheerleader
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: 6,341
Karma: 5840124
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by stangri View Post
PS. If mods can assign both K3 and DXG prefixes, please do so.
We have an index system that handles many-to-one relationships.

You can just enter the link to this thread in the index pages yourself.
Probably: K3, DX(G) and HowTo would be likely places a person would look for a link to this information.
knc1 is offline   Reply With Quote
 
Enthusiast
Old 09-06-2012, 10:31 AM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
FOR THOSE OF YOU WHO WANDERED HERE TO DEBRICK YOUR DX

Done. All three. no charge

EDIT: Here is a quote from a future thread: It pertains the fact that you MUST HAVE BOTH DEVICES WORKING TO DEBRICK A DX. It is not really relevant to this thread and when the debricking thread is created I will update this info again.

So to reiterate... The following info is for debricking a dx and you can find this info on : INSERT THREAD HERE. Thanks...

(not knc1 he was bang on topic)
Quote:
Originally Posted by knc1 View Post

Unless you use external software to dump the DX memory image to an external file.
Since that only requires that the iROM (SoC internal ROM), iRAM (SoC internal RAM) and first UART port are working.
System image may be bricked, blanked, non-existent, it does not matter.

For which, you need to find the "magic key" to put the DX into the iROM code.
It should be easier to find the "magic key" using activity on the serial port line than on the USB cable (the iROM code monitors both, then uses the first one on which it detects activity).

The "stock" ATK can not "talk" to the i.MX31 in the DX over the serial link, but the K3Flasher can with modification by the addition of the i.MX31 constants.

All of the above assumes you have access to a Linux machine (other than the Kindle).
But using a "send/expect" script on the serial port while you diddle the key combinations should find the key combination in a hurry.
So. You will need a working DX. please refer to the DX debricking thread for this info. INSERT THREAD AGAIN HERE.

Last edited by twobob; 09-07-2012 at 03:48 PM. Reason: OFF TOPIC
twobob is offline   Reply With Quote
Old 09-06-2012, 10:58 PM   #4
cavorite
looped
cavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the end
 
cavorite's Avatar
 
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: PRS-500, K3, DXG, various iDevices
Thanks, you've confirmed the procedure I will use as soon as my low volt serial converter gets here. Not as easy as ABC, er ATK, but eminently doable.

With the DX becoming a dinosaur, I doubt there will be much effort towards finding the "magic key" for ATK.
cavorite is offline   Reply With Quote
Old 09-07-2012, 04:48 AM   #5
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
As you've nearly tried all buttons available, I'd suggest looking inside the case. It could be something that can't be accessed from outside, maybe not even there in the units that get shipped (I mean some pads with nothing on them). I found in a Kindle 3 of mine there's a "reset to factory" button inside (I found out its purpose just pushing it); in the other ones in that place there are only the metallic pads. It could be something like that.
giorgio130 is offline   Reply With Quote
Old 09-07-2012, 07:07 AM   #6
Begemot
Connoisseur
Begemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic something
 
Posts: 65
Karma: 18638
Join Date: Dec 2009
Device: Aluratek Libre, iRiver Story HD, Kindle DX Demo -> DXG
New to Kindle world question here, how do you create rootfs.img ?

I have gotten yifanlu's custom kernel and updater but if I understand correctly, I would have to copy the create updater .bin first to kindle dx?

PS. this is assuming I only have Demo DX not a regular one

Last edited by Begemot; 09-07-2012 at 07:09 AM.
Begemot is offline   Reply With Quote
Old 09-07-2012, 09:06 AM   #7
cavorite
looped
cavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the end
 
cavorite's Avatar
 
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: PRS-500, K3, DXG, various iDevices
Quote:
Originally Posted by knc1 View Post
Since finding it on the serial should be easier - let us know if you want to go looking for it once you get your adapter cable made up.
I can give you some tips that may help finding the key.

And both the Freescale software (such as: ATK) and Mobileread software (such as: K3Flasher) rely on this "burned-in" mode.
Not to get the cart before the horse, but once I am unbricked I will sure give it a try. As a follow on to this, is there some bit of code or otherwise I can do through the hardwire internal connection that will let me access console or get out of user area without having to open the case once more?
cavorite is offline   Reply With Quote
Old 09-07-2012, 10:28 AM   #8
cavorite
looped
cavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the end
 
cavorite's Avatar
 
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: PRS-500, K3, DXG, various iDevices
Yes, must keep the physical port separate from the multiple roles it may take on.

I'm planning to use the 3.0.2 image from the pastebin. Gitbrew is still not acessable, so the 3.3 image ~dasmoover uploaded is not available, or at least I can't find it anywhere.
cavorite is offline   Reply With Quote
Old 09-07-2012, 10:36 AM   #9
cavorite
looped
cavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the end
 
cavorite's Avatar
 
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: PRS-500, K3, DXG, various iDevices
Yes, a DXG specifically. Did I goof in assuming that the DX can use K3 images?
cavorite is offline   Reply With Quote
Old 09-07-2012, 10:56 AM   #10
Begemot
Connoisseur
Begemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic somethingBegemot has a certain pleonastic something
 
Posts: 65
Karma: 18638
Join Date: Dec 2009
Device: Aluratek Libre, iRiver Story HD, Kindle DX Demo -> DXG
Quote:
Originally Posted by twobob View Post
hi begemot - I havent done it myself but possibly some sort of dd command

does the documentation not say how? Which docs are you reading? (location)

Thanks
I was just reading OPs (stangri) instructions, which mention having made a rootfs.img made by a script but it seemed unclear where you would make one (another DX?).

I should just be patient, and wait for my USB to TTL adapter to arrive and also my Demo Kindle DX.
Begemot is offline   Reply With Quote
Old 09-07-2012, 11:02 AM   #11
cavorite
looped
cavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the end
 
cavorite's Avatar
 
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: PRS-500, K3, DXG, various iDevices
Hmm... I see that I may have made a faulty assumption based on yifanlu's thread on using 3.1 with the K2 and DX. (http://www.mobileread.com/forums/sho...d.php?t=127969) I do have a working K3, but with more thorough reading, I see that the DX must generate the update file, which is processed on the K3. And with a bricked DX that is not going to fly...
cavorite is offline   Reply With Quote
Old 09-07-2012, 11:30 AM   #12
cavorite
looped
cavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the endcavorite knows the complete value of PI to the end
 
cavorite's Avatar
 
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: PRS-500, K3, DXG, various iDevices
I will be thrilled to have a functional DX, whatever software version it may be. Beyond that, after a thorough backup, I _may_ attempt an upgrade.
cavorite is offline   Reply With Quote
Old 09-11-2012, 12:01 AM   #13
stangri
Addict
stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.
 
stangri's Avatar
 
Posts: 238
Karma: 26940
Join Date: Jun 2007
Location: YVR/BWS/PUJ
Device: nook
Sorry, I was away for a while.

I've had a few sources of the image files for the DXG:
1. The backup image made on my other (regular) DXG with the "2.5.8 to 3.x update" script by Yifan Lu.
2. The 3.2.1 image from the torrent on, well, you know where. The file in that torrent is the result of the Yifan's script.
3. The per-partition backup of my DXG on the 3.2.1 firmware by the script written by xms here who also helped me alot answering my questions.

Here's the script from #3 if you just want to backup your own Kindle DXG to later write its files onto the Demo DXG:

PHP Code:
#!/bin/sh

# diff OTA patch script 

_FUNCTIONS=/etc/rc.d/functions
[ -${_FUNCTIONS} ] && . ${_FUNCTIONS}


MSG_SLLVL_D="debug"
MSG_SLLVL_I="info"
MSG_SLLVL_W="warn"
MSG_SLLVL_E="err"
MSG_SLLVL_C="crit"
MSG_SLNUM_D=0
MSG_SLNUM_I
=1
MSG_SLNUM_W
=2
MSG_SLNUM_E
=3
MSG_SLNUM_C
=4
MSG_CUR_LVL
=/var/local/system/syslog_level

logmsg
()
{
    
local _NVPAIRS
    local _FREETEXT
    local _MSG_SLLVL
    local _MSG_SLNUM

    _MSG_LEVEL
=$1
    _MSG_COMP
=$2

    
{ [ $# -ge 4 ] && _NVPAIRS=$3 && shift ; }

    
_FREETEXT=$3

    
eval _MSG_SLLVL=\${MSG_SLLVL_$_MSG_LEVEL}
    eval 
_MSG_SLNUM=\${MSG_SLNUM_$_MSG_LEVEL}

    
local _CURLVL

    
{ [ -f $MSG_CUR_LVL ] && _CURLVL=`cat $MSG_CUR_LVL` ; } || _CURLVL=1

    
if [ $_MSG_SLNUM -ge $_CURLVL ]; then
        
/usr/bin/logger -p local4.$_MSG_SLLVL -"ota_install" "$_MSG_LEVEL def:$_MSG_COMP:$_NVPAIRS:$_FREETEXT"
    
fi

    
"$_MSG_LEVEL!= "D" ] && echo "ota_install: $_MSG_LEVEL def:$_MSG_COMP:$_NVPAIRS:$_FREETEXT"
}

if [ -
"${_PERCENT_COMPLETE}]; then
    export _PERCENT_COMPLETE
=0
fi

update_percent_complete
()
{
    
_PERCENT_COMPLETE=$((${_PERCENT_COMPLETE} + $1))
    
update_progressbar ${_PERCENT_COMPLETE}
}

update_percent_complete 10

dd 
if=/dev/mmcblk0 of=/mnt/us/mmcblk0_7688.dmp bs=512 count=7688
update_percent_complete 20
dd 
if=/dev/mmcblk0p1 of=/mnt/us/mmcblk0p1.dmp
update_percent_complete 70
dd 
if=/dev/mmcblk0p2 of=/mnt/us/mmcblk0p2.dmp
update_percent_complete 90
dd 
if=/dev/mmcblk0p3 of=/mnt/us/mmcblk0p3.dmp
update_progressbar 100

return 

xms was nice enough to build the .bin-file you can run on your jailbroken kindle dxg to back it up, which I'm also attaching below. To restore those on the Demo DXG you need to get root and then swap if/of in the lines above. I only did it for the first two dd commands (kernel and root partition).
Attached Files
File Type: bin updatedxG.bin (1.2 KB, 170 views)

Last edited by stangri; 09-11-2012 at 12:03 AM.
stangri is offline   Reply With Quote
Old 09-11-2012, 12:05 AM   #14
stangri
Addict
stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.stangri is not intimidated by interfenestral monkeys.
 
stangri's Avatar
 
Posts: 238
Karma: 26940
Join Date: Jun 2007
Location: YVR/BWS/PUJ
Device: nook
Oh, from my trial and error, as soon as you overwrite the rootfs with an image from another device, your root password (as reported by Sir Alex's KindleDiags) will no longer work. The root password of the device which you made image from should work tho.
stangri is offline   Reply With Quote
Old 09-11-2012, 03:32 AM   #15
knc1
Embedded Cheerleader
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: 6,341
Karma: 5840124
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by stangri View Post
Oh, from my trial and error, as soon as you overwrite the rootfs with an image from another device, your root password (as reported by Sir Alex's KindleDiags) will no longer work. The root password of the device which you made image from should work tho.
Which you can correct by coping the "root" line from the old /etc/shadow to the new /etc/shadow file.
knc1 is offline   Reply With Quote
Reply

Tags
debricking

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Got a Demo Kindle (k5) from work, need to remove demo software. Stea1th Kindle Developer's Corner 69 09-25-2012 03:58 PM
I demo'd a K4 Fbone Amazon Kindle 26 11-01-2011 07:11 PM
Demo: Jetbook mini official demo bookwarm Ectaco jetBook 36 09-21-2010 12:18 PM
Help - I need a demo! tlighty Which one should I buy? 1 11-05-2007 02:43 PM


All times are GMT -4. The time now is 08:25 PM.


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