Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-22-2015, 10:57 PM   #1
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Thumbs up KPW2 - 5.6.1.0.6 - Rooting/Jailbreaking

Hello, everyone!

I'm in the process of performing a hardware mod on the latest KPW2, purchased last week. I plan on rooting and jailbreak it, and I wanted to detail my progress here.

There has been a decent amount of information available, particularly from knc1, who I admire greatly for his or her hard work. I've been reading about the threads located here as well as here and definitely here and here too.

FYI, I will be using a MicroFTX RS232 to MicroUSB breakout available from http://jim.sh/ftx, ordered in configuration #3, which will allow 1.8v, unlike other boards which go ~3.3v.

Progress will be posted shortly.

Last edited by raz572; 03-22-2015 at 11:17 PM.
raz572 is offline   Reply With Quote
Old 03-22-2015, 11:10 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Welcome!
eschwartz is offline   Reply With Quote
Advert
Old 03-22-2015, 11:12 PM   #3
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 1
Here is the proposed plan. If there are any criticisms, please let me know, because I won't get the USB board until Tuesday.



(Original picture, with more detail, is here)

Last edited by raz572; 03-26-2015 at 10:18 PM.
raz572 is offline   Reply With Quote
Old 03-23-2015, 03:06 AM   #4
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Nit:
Rotate the picture 180 degrees, so bottom edge of main board is on the bottom rather than the top.

- - - -

But a nice start, you might want to add a link to the post with the picture to the "hardware" prefix index, serial port section.

That setup will work with all Kindle models since (and including) the K4.
Only the pad location changes with each board.

Last edited by knc1; 03-23-2015 at 03:18 AM.
knc1 is offline   Reply With Quote
Old 03-23-2015, 08:49 PM   #5
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Pictures have been updated and picture posted to hardware prefix index/serial port section.

Last edited by raz572; 03-23-2015 at 08:58 PM.
raz572 is offline   Reply With Quote
Advert
Old 03-26-2015, 10:16 PM   #6
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 2

Preparations are well underway! I purchased three colors of wirewrap (no particular reason), the USB board is already here, and we'll be soldering soon. I get home from work when it's fairly dark, unfortunately.

Before that, I've been thinking how to make this more permanent. So, here's my solution:



(Original picture located here)

Last edited by raz572; 03-26-2015 at 10:19 PM.
raz572 is offline   Reply With Quote
Old 03-27-2015, 11:22 AM   #7
loco
Connoisseur
loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.loco solves Fermat’s last theorem while doing the crossword.
 
Posts: 97
Karma: 28606
Join Date: Feb 2015
Location: India
Device: PW2
applause for your efforts man

two thumbs up
loco is offline   Reply With Quote
Old 03-28-2015, 08:02 PM   #8
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 3

Okay. We're soldered and ready to go!

The first thing I did was grab the PW2's Serial Number (top right - device info). Hopefully that will work. Then, I went to https://www.sven.de/kindle/# and entered my PW2's Serial Number and got a few root passwords.

I then went to install the FTDI drivers for W8.1 x64. Then, I went to device manager and set COM3 (the USB Serial Adapter) to 115000, 8 Bits, 2 Stop Bits, No Parity or Flow Control. I did the same thing with Putty, saved it as a preset, then opened a connection and booted it up.

I should be able to reboot now, stop the boot, and try to see if one of the root passwords worked.
raz572 is offline   Reply With Quote
Old 03-28-2015, 10:18 PM   #9
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Use a KindleTool snapshot for the passwords, the web tool doesn't handle Wario devices (i.e, >= PW2).

Alternatively, I'm fairly sure someone posted a Python snippet in one of the serial JB thread.
NiLuJe is offline   Reply With Quote
Old 03-28-2015, 10:36 PM   #10
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 4

Thanks to NiluJe, I have identified the easiest way to get a root password. The web script linked does not work, however this does:

1) Download Python 2.7
2) Navigate there with a command prompt
3) Run Python
4) Type the following:

import hashlib

then:

Code:
print("fiona%s"%hashlib.md5("YOURSERIALNOSPACES\n".encode('utf-8')).hexdigest()[13:16])
(if you see spaces above, take them out... I think it's the forum adding them in when I do a \n)

What you want to do next is restart the PW2, stop uboot by spamming keys, then going into diagnostics mode by typing bootm 0xE41000

Once you're there, look for Exit, Reboot or Disable Diags (D). If I recall, you'll want to exit to login screen. Finally, enter 'root' and your password from above, which will start with fiona. You have root now!

The next steps will be manipulating the filesystem and preparing the PW2 for jailbreaking.

Last edited by eschwartz; 03-29-2015 at 02:07 AM. Reason: added [CODE] tags
raz572 is offline   Reply With Quote
Old 03-28-2015, 11:01 PM   #11
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 5

Here's what I did after logging in:

mount /dev/mmcblk0p1 /mnt/mmc
cd /mnt/mmc

echo 'raz572::0:0:raz572:/tmp/root:/bin/sh' >>etc/passwd
echo 'raz572:*:15826:0:99999:7:::' >>etc/shadow
echo 'raz572:*:15826:0:99999:7:::' >>etc/shadow-

cat etc/passwd
cat etc/shadow
cat etc/shadow-

Then, I restarted (power button on the bottom). Once booting finished, I did a whoami. It shows me as root. I did an 'exit' and logged in as raz572. I'm root again, in standard mode.

Success! It looks like I'm root in standard mode, so I think we're good to go for jailbreaking.
raz572 is offline   Reply With Quote
Old 03-28-2015, 11:19 PM   #12
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 6

Jailbreak achieved! This is pretty easy:

1) Go to https://www.mobileread.com/forums/sho...d.php?t=186645, download, and unpack on computer
2) Plug PW2 into computer and move all files from zip in #1 to root directory. Unplug PW2.
3) Login as the user in Update 5 in regular mode
4) Navigate to /mnt/us and run sh jb.sh. You should see JAILBREAK on the bottom of your screen!
5) Reboot PW2. You should have jailbreak now!
raz572 is offline   Reply With Quote
Old 03-28-2015, 11:35 PM   #13
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 7
Now for some packages... but first,
IMPORTANT NOTES
From this point forward, you can get packages of two types: bin files, and KUAL files.

Bin files will go into the MRPackages folder (as indicated below). Load these one at a time. Otherwise, KUAL files will go into extensions as a separate folder.

Remember to pay attention to which is which!

Packages BEGIN

1) KUAL - Drop into Documents through USB
2) KUALHelper - Drop into root
3) MRInstaller from http://www.mobileread.mobi/forums/sh...d.php?t=251143 - Drop into root
4) Run the JB through MRInstaller by dropping the JB bin into MRPackages, just in case
5) USBNetwork - Drop into MRPackages and install

That's all I've gotten for now. Looking for more cool stuff now.

Last edited by raz572; 03-29-2015 at 12:05 AM.
raz572 is offline   Reply With Quote
Old 03-28-2015, 11:54 PM   #14
raz572
Member
raz572 is on a distinguished road
 
Posts: 12
Karma: 58
Join Date: Mar 2015
Device: Kindle Paperwhite 2
Update 8

More cool packages:

1) Collections Manager
2) Calibre/Kindle Collections
3) BackdoorLock
4) K5 Rescue
5) PW2 Coward's Rescue Pack
6) Duokan 2014 Nope. Not working. Can't get this one to install no matter what I do.

and the final, probably my favorite one

7) KO Reader

Last edited by raz572; 03-29-2015 at 12:30 AM.
raz572 is offline   Reply With Quote
Old 03-29-2015, 01:55 AM   #15
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Note:
1) - It will not work on 5.6.x series firmware until someone updates it for that series.
See the Librarian/LibrarianSync thread instead.

6) - Don't even try.
Duokan will not install with **our** jailbreak present - and they haven't stolen and update one of ours for manual installation of the Duokan JB.

It is also unlikely to run unless they specifically state they have a release for 5.6.x series firmware.
It might not run even if they claim it will.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I buy new KPW2 with 5.6.1.0.6?? rabe3ab Kindle Developer's Corner 6 03-23-2015 07:07 AM
KPW2 Demo leedjc Kindle Developer's Corner 22 10-14-2014 12:33 AM
5.4.4.1 5.4.3.1 For KPW/KPW2 JHarry Amazon Kindle 7 04-21-2014 08:12 PM
KPW2 5.4.2.1 available! JHarry Kindle Developer's Corner 55 02-24-2014 01:43 PM
My KPW2 cannot 'truly' disconnect for my PC Linux_x189 Amazon Kindle 3 12-28-2013 01:47 PM


All times are GMT -4. The time now is 11:55 AM.


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