11-22-2012, 03:35 PM | #256 | |||
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Ahh... lots of questions
Quote:
The kindle is actually a dual-boot system. Much like you can boot your PC into Windows or Linux, a Kindle can boot into diags and main (=normal mode). These two systems are "strictly" separated, so (most importantly), even if you completely destroy your main partition and/or kernel, diags still remains functional.* Just actually boot into diags mode to see what its "normal" purpose is. It's really a "diagnostics" mode, where you can test all kinds of hardware and system functionality. What "we" use it for is mostly as a "life insurance". If the diags partition can boot and enable SSH access, then we have full access to the device. And even if the main partition and/or kernel were completely FUBAR, we could still fix it. In the simplest case, that's just overwriting the main kernel and partition with working ones, but you can also just mount the main partition and selectively edit a file to fix a mistake, etc. You have all the power of a full Linux (well ok, busybox) system at hands. (*) The restriction on the Paperwhite is that there is currently no known way to directly boot into diags, without requiring a functional main partition ("rescue pack" way) or at least u-boot ("serial connection" way). Quote:
What SSH really does is give you access to the OS of the device. And specifically, on the Kindles, it gives you full administrative access to the device. If you have a root shell on a Kindle, you can do *anything*. You can monitor what the device does, you can start your own applications, you can join a botnet, you can even have it display Mickey Mouse's face every minute, if you so desire. You can do *anything*. To get this a bit more down-to-earth: where do you think all the modifications for the K3/K4/KT come from? They're not just "invented" in thin air and then magically work. Everything - starting from the jailbreak itself, and through to - to stay with an example that you know - Collections Manager, has been executed hundreds of times, while being logged in via SSH and watching the system behavior, and monitoring various log files. In other words: there is a reason why usbNetwork is listed as the most important, and as the very first modification, right after the jailbreak: because *it is* the most important, and the most potent. The entire point is about remotely (USB) telling the device what to do (root). From there on, everything is easy... Quote:
Concerning 5.2.0 or 5.3.0: yes, provided that you do have a working diags partition with SSH (and that your main partition, be it 5.3.0 or 5.2.0, will actually let you boot to that partition [cf "rescue pack"]), you can always freely switch between versions. |
|||
11-22-2012, 04:46 PM | #257 |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
That's really great! Thank you for the detailed answer, very much appreciated, really. I already installed the Jailbreak + Bridge and managed to connect with my local Cygwin configuration via SSH and the NDIS bridge to the Kindle and have access to the root account. So there it is, "basically" my safety net. Now I wanted to backup my partition 1 and 2 but have slight problems.
I assumed that my host IP address relative to the Kindle would be 192.168.15.1 because that's how the SSH connection is established, but when directing the dd output to that address / port the whole thing just freezes and does nothing -- out of desperation and creeping suspicions that I don't understand networking at all I also tried the local IPV4 address within the home network (192.168.0.17) which is unreachable. If this gets too offtopic, I understand, I'll take it somewhere else -- I just thought if it's something glaringly obvious, even if you guys aren't running Windows you might be able to tip me off. I guess I could just backup the partitions to the user storage on the device but... meh. Anyways, thank you so much! Last edited by cryzed; 11-22-2012 at 05:08 PM. |
Advert | |
|
11-22-2012, 05:20 PM | #258 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
meh. that nc command seems to get everyone.
If you can handle the wait just dd it locally and scp it off. |
11-22-2012, 05:25 PM | #259 |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
Thanks, will do!
|
11-22-2012, 05:27 PM | #260 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
|
Advert | |
|
11-22-2012, 05:29 PM | #261 |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
I noticed...
EDIT: Success, thanks everyone! EDIT2: I forgot to backup the kernel image for 5.2.0 -- does it actually change during the update from 5.2.0 -> 5.3.0? If not, that's no problem, it would just be nice to have it. If someone actually did backup the 5.2.0 kernel and it differs from the 5.3.0 I would be very thankful if you could provide me with links here or via PM! EDIT3: Nevermind, ixtab has it covered EDIT4: I just compared the md5sum from my "mmcblk0p1.bin" with ixtab's "pw_5.2.0-mmcblk0p1.img" -- shouldn't the md5sums match? (because they don't). I also have a Kindle Paperwhite WLAN 5.2.0 image. Last edited by cryzed; 11-22-2012 at 07:18 PM. |
11-22-2012, 07:55 PM | #262 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@ixtab: I personally try to stay as far away from diags as possible (probably because I'm used to the more clunky setup of the K2/3), so I'm personally quite content with USBNet @auto, but, yeah, nothing against at least linking to your rescue pack in the doc .
Poke me again in a few days if I forget . @cryzed: Yep, at the very least, the passwd file will be different (the default root password is computed from the SN), and the guid too => md5 mismatch . |
11-22-2012, 08:04 PM | #263 |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
Ah! Thank you, this indeed explains it. Wouldn't restoring ixtab's Paperwhite system partition potentially create problems though? As in with the device registration etc.?
Last edited by cryzed; 11-22-2012 at 08:08 PM. |
11-22-2012, 08:11 PM | #264 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@cryzed: Besides a different root password, it doesn't seem to have caused much problems so far, unless you mess with lower-level stuff than a simple rootfs. I'd kill the /etc/guid file and let the boot process re-create it, but that's it.
|
11-22-2012, 08:17 PM | #265 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Each network interface uses a different IP subnet. 192.169.0.x is your wifi. 192.168.15.x is your RNDIS interface, but the host PC does not get assigned anything automatically because the kindle is not running a DHCP server. You need to manually assign an IP address (192.168.15.201 recommended) to the host PC side of the RNDIS interface. This stuff is all documented in the wikis and this forum... |
|
11-22-2012, 08:20 PM | #266 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@geekmaster: USBNet handles the iptables trickery all by itself if you ask it nicely . (There's a config switch ).
|
11-22-2012, 08:24 PM | #267 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
11-22-2012, 08:30 PM | #268 | |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
Quote:
(I am running Windows 7) |
|
11-22-2012, 08:58 PM | #269 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
Hmm Widows 7. Okay well I did it on a vista machine the other day.
Ndis driver required thingy popped up. it searched and found driver... Installs and brings up a new connection (that uses dhcp by default IIRC) Open networking info for connection, shove in non-dhcp hardcoded address on same subnet as one in config on device like 192.168.2.1 (kindle) and 192.168.2.2 (PC) slap in 255.255.255.0 mask no gateway - save. (echo these and other sensible setting in usbnet config) That was all it took. Vista even found the right ndis driver which was a shocker HTH And I just use Nilujes USBnetworking to handle the iptables details. note: it prefers to be "unplugged" while switching Glad you got the majority of it squared away. Last edited by twobob; 11-22-2012 at 09:00 PM. Reason: dhcp |
11-22-2012, 09:21 PM | #270 | |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
I did that, I think, I am just not sure how to specify a hardcoded address for my PC. It currently looks like that and I connect to the Kindle via ssh root@192.168.15.244. Regarding the netcat stuff (which I have since solved another way) I still wouldn't know which IP to enter to write the dd-read output to a running dd instance on my PC via netcat -- or rather I do know but apparently it's wrong. I had to install the NDIS stuff manually but it works now. This is how my current setup looks, excuse the german.
USBnet itself isn't even installed yet -- I think you guys might be already talking about configuring the WiFi aspect of the hack while I was still talking about the netcat stuff mostly which should be possibly without the WiFi aspect and just with the USBNet hack integrated into the diag partition. So for the WiFi part I basically change the address that I have currently entered (192.168.15.1) to one which lies on the same subnet as my network PC address (192.168.0.17) so e.g. 192.168.0.18 and change the usbnet config accordingly. I'm not sure what you mean by Quote:
|
|
Tags |
5.1.0, 5.2.0, jailbreak, kindle touch hacks, paperwhite, touch |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch 5.0 Jailbreak | yifanlu | Kindle Developer's Corner | 246 | 01-03-2013 04:57 PM |
Is a Kindle Touch for a PaperWhite a good trade? | route66 | Amazon Kindle | 7 | 09-29-2012 03:21 PM |
Kindle Touch with 'Paperwhite' backlit display | JoHunt | Amazon Kindle | 2 | 08-31-2012 04:33 AM |
[Kindle Touch] Firmware 5.1.0 and jailbreak | ixtab | Kindle Developer's Corner | 85 | 06-28-2012 04:43 AM |
How to Kindle touch - jailbreak, screensaver | morgun | Kindle Developer's Corner | 3 | 05-21-2012 06:39 PM |