10-03-2010, 12:35 PM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
Kindle 3.0.1 firmware and usbNetwork
Hi
apologies if these are silly questions. I've read this thread: https://www.mobileread.com/forums/showthread.php?t=97745 but I'm left unsure where people are at with this. I'm on firmware 3.0.1, uk 3g version. ~exec ls gives no output. I figure this is because I didn't get a version where the testing wasn't wiped correctly. I'm after getting sshd up and running. Is the only known way to achieve this to install usbnet by spoofing an amazon update? How many people are using this? Anyone successfully run this against uk 3g 3.0.1? Also I'm trying this against windows XP. Prior to any update should I be able to get ethernet working over the USB cable? When I use: ;debugOn ~usbNetwork Then plug back in my usb cable I don't see any additional network adapters etc. I have a linux box running in my loft but I'd rather do this from my windows laptop if I can, but if not I'll get up that ladder.... thanks. |
10-03-2010, 01:21 PM | #2 |
Member
Posts: 21
Karma: 44
Join Date: Sep 2010
Device: Kindle 3
|
You have to install the jailbreak before you can telnet or ssh into your Kindle. ;debugOn works, but ~usbNetwork will do nothing until the jailbreak is run. I can't recall if at that point you can at least telnet in, or if the usbnet install is necessary. But if you're going to install the jailbreak, at that point you might as well run the usbnet update anyway.
|
Advert | |
|
10-03-2010, 02:30 PM | #3 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
hi
ok thanks. I'm working through this thread: http://www.kindleboards.com/index.ph...;topic=33973.0 and thinking that: 1. If I jailbreak it includes an sshd so usbnet isn't required as I can just telnet / ssh straight in 2. lots of people have used this update One more question - if something bad happens - lets say I apply the update then do something silly that causes the boot to fail after a reset - is there a factory default fs image that I can fall back on via a factory reset (which IIRC is 30 second power switch)? Or is it possible to brick this thing? I'm assuming the latter.... Also I'm a bit confused on what this hack relies upon. It seems the --ex switch is no longer used in kindle_update_tool.py so instead it simply overwrites /mnt/us/usbnet/bin/usbnetwork with the custom script in /test/bin/usbnetwork. So the tricky bit is in signing the files and bunde? Forgive me - I'm learning python and although it reads quite well and kindle_update_tool is well commented I may have misinterpreted this. |
10-03-2010, 02:41 PM | #4 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
rather than "overwrites" I should have said symlinks
|
10-03-2010, 05:07 PM | #5 |
Connoisseur
Posts: 79
Karma: 187319
Join Date: Jul 2010
Device: Kindle 2
|
You must first install the jailbreak. This permits you to install packages that aren't signed by Amazon. Then you must install the usbnetwork package. The jailbreak doesn't contain an sshd server, or anything else, to my knowledge.
|
Advert | |
|
10-03-2010, 06:58 PM | #6 |
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
|
Yep, the usbnet (+ sshd & stuff) is a dedicated package, it doesn't have anything to do with the jailbreak (other than needing your device to be jailbroken to install it).
|
10-04-2010, 03:04 AM | #7 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
Ok got it. Hadn't found this link to the jailbreak:
http://www.kindleminds.net/2010/09/1...now-available/ Now I see how the symlink is used to place the key. Ah - this package is signed. Was this obtained by someone physically hacking the device or from the person who had the test pack still installed? This is all interesting stuff btw. Many thanks for this. ps I like your shell scripting style. Very readable! |
10-04-2010, 12:52 PM | #8 |
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
|
No, the jailbreak package isn't really signed . [The K3 one isn't signed at all, and the one for FW 2.x is half-signed, using an untouched bundle file & install script from a minor official update].
The custom packages are signed, with the key provided in the python packer. And thanks . I think I might approach the critical point where there's more comment than actual 'code', but still . |
10-04-2010, 03:56 PM | #9 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
Ok - so if it's not signed how come just dropping it into the root directory and clicking update is accepted? Did they just not put any security checks on the update functionality? Or is it that an update run from this directory is only applied to a filesystem and the tar symlink breaks out to root?
Is it really just a case of marking the files as executable sees them run with access all areas? Hope you don't mind me asking I'm just curious about this because, well - it's interesting :-) |
10-04-2010, 04:47 PM | #10 |
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
|
Check the few threads where we discussed this, but basically, it's a pretty nice flaw in the update process, which was actually fixed in a K2 firmware update .
Because otherwise, it is indeed a bit more robust than that . Last edited by NiLuJe; 10-04-2010 at 04:49 PM. |
10-04-2010, 05:30 PM | #11 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
Hi - ok I will scratch around again. I'm surprised nobody has documented this with a full explanation on a static web page. Most of the posts here are incomplete and so are the blogs I've found off this site. It would be a shame for this data to remain unseen by many who might use it to make further inroads into the kindle, given all the good work you and others have put in.
Please don't take this as a snipe because as I say the work done is great and also your code is well documented. |
10-16-2010, 03:26 PM | #12 |
Enthusiast
Posts: 45
Karma: 14412
Join Date: Oct 2010
Location: Spain
Device: Kindle 3 - 3G
|
K3 exec
|
10-16-2010, 04:55 PM | #13 | |
Guru
Posts: 987
Karma: 8641
Join Date: Aug 2010
Device: Kindle 3G+WiFi
|
Quote:
Once you've installed the jailbreak then you can install any other package you want. No need to reinvent the wheel by making your own variant of the same jailbreak. |
|
10-16-2010, 04:58 PM | #14 | |
Guru
Posts: 987
Karma: 8641
Join Date: Aug 2010
Device: Kindle 3G+WiFi
|
Quote:
|
|
10-18-2010, 06:10 PM | #15 |
Enthusiast
Posts: 45
Karma: 14412
Join Date: Oct 2010
Location: Spain
Device: Kindle 3 - 3G
|
I got ~exec working using the test tools from https://www.mobileread.com/forums/sho...1&postcount=62.
Copied the /test/ebook folder to the Kindles's /test folder and then copied over the missing files from /test/bin and restarted Kindle. |
Tags |
kindle usb network |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Usbnetwork/ssh on kindle 3? | yifanlu | Kindle Developer's Corner | 58 | 10-18-2010 05:39 PM |
Hacks Kindle 2 - Firmware 2.5.4 - usbNetwork | Zaidi | Amazon Kindle | 8 | 10-06-2010 08:23 AM |
usbNetwork on 2.5.3? | Gnewt | Kindle Developer's Corner | 2 | 07-12-2010 01:32 PM |
How do I mount Kindle DX rootfs on a Mac - usbNetwork needed? | software.enginee | Kindle Developer's Corner | 14 | 06-08-2010 03:20 PM |
Does the old version (V11) of USBNetwork can be used in Firmware 2.5? | renkan13 | Amazon Kindle | 0 | 05-14-2010 09:41 AM |