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-29-2023, 08:44 PM   #1
mrfakename
Developer
mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.mrfakename is as sexy as a twisted cruller doughtnut.
 
mrfakename's Avatar
 
Posts: 30
Karma: 15056
Join Date: Mar 2023
Device: Kindle Paperwhite 3W
How to use USBNetwork on macOS?

Hello,
I'm trying to SSH into my Kindle 3G to install some developer keystores. I would like to use USBNetwork over a USB cable from my Mac to my Kindle.
- I found the following thread and tried the instructions mentioned below:
Quote:
Originally Posted by jforner View Post
Hey all,

So I desperately needed help figuring out how to gain root access on my Paperwhite to replace some screensavers. I asked a lot of people, but they seemed to direct me back to the readme files which were -- in honesty -- confusing. So, I decided just to go ahead and try it my own way. Luckily, it all worked out. For those confused by the whole process, hopefully this helps you. I was using a Mac, and a Paperwhite on 5.3.1 firmware.

Spoiler:
1. First, you'll need to jailbreak your Paperwhite. You can grab the jailbreak, and the instructions for it, right here. Follow it through.

2. Next we have to install USBnetwork. Get it here. Plug your Kindle into your Mac, and drag and drop "update_usbnet_0.6.N_install.bin" to the root directory. Now on your Kindle go to [Menu] -> Settings -> [Menu] -> Update Your Kindle. Once done, eject and unplug your Paperwhite.

3. Now we need to test if it's installed correctly. On your Paperwhite, tap the search icon at the top. Type in ";un" without the quotations. It'll go back to the home screen thereafter. Now plug your Kindle into your Mac. If it doesn't show up as a device like it normally does, it's worked!

4. What it is now is a network device of sorts. Head to System Preferences, and you should see it listed as a RNDIS/Ethernet Gadget. Now, on this click on advanced > Configure IPv4 > Manually. In "IPv4 Address", use: 192.168.15.1. Leave everything else as it is. Click ok, and then apply.

5. Now we should make sure your Mac can "see" your Kindle. I advise at this point to turn off the Kindle's WiFi. Go to Terminal, and type ping 192.168.15.244. If you start seeing numbers with ms after them, it's all good. Nearly there. Close Terminal.

6. Now it's finally time to gain root access. For this, you'll need an FTP client. Transmit is a good one, and it has a free trial. Grab it here. Once opened, click SFTP at the top. Now the following: Server = 192.168.15.244 Username = root Password = *leave blank* Initial Path = /

7. Click connect, and you should be in!


- I have already installed USBNetwork
- I have enabled USBNetwork from the KUAL menu
- When plugging in my Kindle, it does not switch to USB drive mode (showing that USBNetwork has successfully been installed)
- I have set the IP address in System Settings
- Here is my "config" file in "usbnet/etc/config":
Code:
HOST_IP=<My local IP address>
KINDLE_IP=192.168.15.244
K3_WIFI="false"
K3_WIFI_SSHD_ONLY="false"
USE_OPENSSH="false"
USE_VOLUMD="false"
QUIET_DROPBEAR="false"
TWEAK_MAC_ADDRESS="false"
- When I try to run ping "192.168.15.244", I get:
Code:
PING 192.168.15.1 (192.168.15.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
ping: sendto: No route to host
Request timeout for icmp_seq 4
ping: sendto: Host is down
Request timeout for icmp_seq 5
(more)
My macOS specifications:
- macOS 13.3
- M1 chip
Does anyone have any suggestions?
Thanks in advance!
mrfakename is offline   Reply With Quote
Old 03-30-2023, 12:26 PM   #2
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by mrfakename View Post
- I have set the IP address in System Settings
Screenshot, please.

c.f., https://www.mobileread.com/forums/sh...6&postcount=13 for an example of how it *might* look (at least in ye olde '14 macoS version ;p). Do keep the warning about the IPs in mind, though.

Quote:
Originally Posted by mrfakename View Post
- Here is my "config" file in "usbnet/etc/config":
Scrap it (delete the file, otherwise its preserved by the install script) and reinstall USBNet, then reboot the device. You should only ever attempt to tweak it *after* you've successfully achieved SSH access with the default, known-good, config.

(FWIW, you most likely botched the HOST_IP, because that's not actually your host's IP, it's the IP of the host's end of the USB link [i.e., what you set in macOS's network manager], it needs to be in the same subnet as the Kindle's end).

Last edited by NiLuJe; 03-30-2023 at 03:04 PM.
NiLuJe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW2 usbnetwork? merith.tk Kindle Developer's Corner 1 09-14-2021 10:11 PM
USBNetwork help gett Kindle Developer's Corner 5 02-07-2016 08:07 AM
usbnetwork Aerus Amazon Kindle 2 06-18-2011 08:34 PM
usbNetwork on 2.5.3? Gnewt Kindle Developer's Corner 2 07-12-2010 01:32 PM
Hacks I want usbnetwork for 2.5.2 al3bsi Amazon Kindle 4 06-18-2010 12:55 PM


All times are GMT -4. The time now is 10:56 PM.


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