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-24-2009, 04:32 AM   #106
jyavenard
Zealot
jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.
 
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
Thank you all !

Hi

Great stuff guys.

Got my Kindle 2 to share my macbook connection ; allowing my to browse the Amazon store and access some neat features reserved to the lucky US resident otherwise.

For those not willing to read the whole thread, here is how I did it, hoping it will be useful to others.

Get the binary file to re-enable usb networking there:
http://www.mobileread.com/forums/sho...1&postcount=14

Copied the file update_usbnetwork-k2.bin to the root of the Kindle mounted disk.

Then:
Home -> Menu -> Settings
Menu -> Update your Kindle

After the reboot, I edited the file usbnet/usbnetwork uncommenting the line:
Code:
route add default gw ${HOST_IP}
(remove the # in front of it).

Eject the kindle, and unplug the USB cable.

Put the Kindle in debug mode:
Home.
Type any letter on the keyboard to start the Search mode.
Press DEL to blank the line.
type:
;debugOn
(you get the ; character in the SYM menu).

Type any letter on the keyboard to start the Search mode.
Press DEL to blank the line.
type:
`usbNetwork
(you get the ` character in the SYM menu, 2nd last character on the 3rd line).

Plug the USB cable.

I'm on a Mac, using 10.6 (snow Leopard)
The interface wasn't added automatically, so I went into the System Preferences -> Network

I press the + button just above the lock
Selected the Interface "RNDIS/Ethernet Gadget" , I named it "Kindle"

I set the interface as follow:
Configure IPv4: Manually
IP Address: 192.168.2.1
Subnet mask: 255.255.255.0
Click Apply.

Then I went in Network Preferences -> Sharing
Configured the Internet Sharing
To share my Airport connection to "RNDIS/Ethernet Gadget" (I had two listed there, for me the first one worked)

Then I opened a Terminal (use in the Finder Command-Shift-U to get to the utility folder)
telnet 192.168.2.2
I was welcomed by the friendly prompt:
[root@kindle root]#

Remount the root partition in read-write mode:
# mntroot rw

I configured the default DNS to use the OpenDNS servers:
# vi /etc/resolv.d/resolv.conf.default
Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
(to enter edit mode in vi, press 'i', to save and quit: ':wq!')

# vi /opt/amazon/ebook/config/framework.mario.conf
change the line:
Code:
USE_WAN : true
into:
Code:
USE_WAN : false
create the file /etc/init.d/usbnet with:
Code:
#!/bin/sh

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

US_ENABLE=/mnt/us/usbnet/AUTO

case "$1" in

        start)
                if [ -f ${US_ENABLE} ]; then
                        /mnt/us/usbnet/usbnetwork
                else
                        msg "not usbnet" I
                fi
        ;;

        stop)
                ;;
        *)
                msg "Usage: $0 {start|stop}" W >&2
                exit 1
                ;;
esac

exit 0
Make the file executable
Code:
# chmod +x /etc/init.d/usbnet
Create the link to active the init script
Code:
# ln -s /etc/init.d/usbnet /etc/rcS.d/S72usbnet
Now create the file AUTO in the usbnet folder:
Code:
# touch /mnt/us/usbnet/AUTO
reboot your Kindle (either using the reboot command, or by doing Menu -> Settings -> Restart.

That's it...
Now whenever I plug my Kindle to my mac, I enjoy all the internet goodness.

Edit: To revert the changes and make the Kindle seen as a USB storage device once again do the following:
telnet 192.168.2.2
Code:
rm /mnt/us/usbnet/AUTO
reboot.

To activate it again, simply create a file AUTO in the usbnet folder. The file system is case insensitive. So AUTO or auto for the name of the file doesn't matter.
Then either reboot ; or enter debug mode (see above); and start `usbNetwork again

Last edited by jyavenard; 09-25-2009 at 02:16 AM. Reason: Add how to unable/disabled following the installation
jyavenard is offline   Reply With Quote
Old 09-24-2009, 12:50 PM   #107
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
jyavenard:

Thanks for organizing the concise writeup, it's very helpful.
Once this has been done, what's involved in having the Kindle be visible as a USB device again? When I plug it in, it's no longer recognized.
GRiker is offline   Reply With Quote
Old 09-25-2009, 02:14 AM   #108
jyavenard
Zealot
jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.
 
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
Quote:
Originally Posted by GRiker View Post
jyavenard:

Thanks for organizing the concise writeup, it's very helpful.
Once this has been done, what's involved in having the Kindle be visible as a USB device again? When I plug it in, it's no longer recognized.
I've edited my previous post with instructions on how to disable the mode, and activate it again ...
jyavenard is offline   Reply With Quote
Old 09-25-2009, 02:00 PM   #109
Mr.X
Junior Member
Mr.X began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2009
Device: Kindle
That's a great step-by-step for Mac users.

Would anyone that was successful in making it work under Windows Vista be willing to create a similar step-by-step? I'm still unable to get this to work.
Mr.X is offline   Reply With Quote
Old 09-27-2009, 06:36 AM   #110
jyavenard
Zealot
jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.
 
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
Vista/7 guide

Getting it to work under Vista is very similar to getting it to work on the mac... though a tad more complicated.

My machine (Windows 7 beta) didn't come with RNDIS driver.
The easiest way to get those is installing the Windows Mobile drivers found here:
http://www.microsoft.com/windowsmobi...-download.mspx
(if using XP, download ActiveSync 4.5)

For the Kindle.
Get the binary file to re-enable usb networking there:
http://www.mobileread.com/forums/sho...1&postcount=14

Copied the file update_usbnetwork-k2.bin to the root of the Kindle mounted disk.

Then:
Home -> Menu -> Settings
Menu -> Update your Kindle

After the reboot, I edited the file usbnet/usbnetwork uncommenting the line:
Code:
route add default gw ${HOST_IP}
(remove the # in front of it).

Eject the kindle, and unplug the USB cable.

Put the Kindle in debug mode:
Home.
Type any letter on the keyboard to start the Search mode.
Press DEL to blank the line.
type:
;debugOn
(you get the ; character in the SYM menu).

Type any letter on the keyboard to start the Search mode.
Press DEL to blank the line.
type:
`usbNetwork
(you get the ` character in the SYM menu, 2nd last character on the 3rd line).

Plug the USB cable.

Let Windows install the drivers for the newly found peripheral.

On my machine, the new ethernet connection was created as "Local Area Connection 3" and shows up as "DIRECTV HDPC20". YMMV

Go into Start -> Control Panel -> Network & Sharing Center.
Click on "Change Adapter Settings"

Do a right click on your main network adapter, click on the "Sharing" tab
Check the "Allow other network users to connect through this computer's Internet Connection"

Click "OK"
You will get prompted that the adapter interface will be changed to "192.168.0.1". That's okay, confirm.

Now go and edit the other network adapter "DIRECTV HDPC20" (or whatever it's called on your machine)
Click on the "Internet Protocol Version 4" and "Properties"
change the IP address from 192.168.0.1 to 192.168.2.1 , subnet mask 255.255.255.0.

Validate with OK.
---

Open a command line (windows + R, cmd)
(Note Telnet isn't activated by default in Vista / Windows 7, go into the Control Panel and select "Programs and Features", click "Turn Windows Features on or Off" and check "Telnet Client").
Another alternative is HyperTerminal from Hilgraeve...

telnet 192.168.2.2
[root@kindle root]#

Remount the root partition in read-write mode:
# mntroot rw

I configured the default DNS to use the OpenDNS servers:
# vi /etc/resolv.d/resolv.conf.default
Code:
nameserver 208.67.222.222
nameserver 208.67.220.220
(to enter edit mode in vi, press 'i', to save and quit: ':wq!')

# vi /opt/amazon/ebook/config/framework.mario.conf
change the line:
Code:
USE_WAN : true
into:
Code:
USE_WAN : false
create the file /etc/init.d/usbnet with:
Code:
#!/bin/sh

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

US_ENABLE=/mnt/us/usbnet/AUTO

case "$1" in

        start)
                if [ -f ${US_ENABLE} ]; then
                        /mnt/us/usbnet/usbnetwork
                else
                        msg "not usbnet" I
                fi
        ;;

        stop)
                ;;
        *)
                msg "Usage: $0 {start|stop}" W >&2
                exit 1
                ;;
esac

exit 0
Make the file executable
Code:
# chmod +x /etc/init.d/usbnet
Create the link to active the init script
Code:
# ln -s /etc/init.d/usbnet /etc/rcS.d/S72usbnet
Now create the file AUTO in the usbnet folder:
Code:
# touch /mnt/us/usbnet/AUTO
reboot your Kindle (either using the reboot command, or by doing Menu -> Settings -> Restart.

That's it...

To revert the changes and make the Kindle seen as a USB storage device once again do the following:
telnet 192.168.2.2
Code:
rm /mnt/us/usbnet/AUTO
reboot.

To activate it again, simply create a file AUTO in the usbnet folder. The file system is case insensitive. So AUTO or auto for the name of the file doesn't matter.
Then either reboot ; or enter debug mode (see above); and start `usbNetwork again

That's it
jyavenard is offline   Reply With Quote
Old 10-03-2009, 10:59 AM   #111
hippocratesnoah
Enthusiast
hippocratesnoah began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Jul 2009
Device: Kindle DX
Quote:
Originally Posted by jyavenard View Post

create the file /etc/init.d/usbnet with:
Code:
#!/bin/sh

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

US_ENABLE=/mnt/us/usbnet/AUTO

case "$1" in

        start)
                if [ -f ${US_ENABLE} ]; then
                        /mnt/us/usbnet/usbnetwork
                else
                        msg "not usbnet" I
                fi
        ;;

        stop)
                ;;
        *)
                msg "Usage: $0 {start|stop}" W >&2
                exit 1
                ;;
esac

exit 0
Hi,

please forgive my lacking knowledge of using the terminal. But this command doesn't work for me. Do I need to leave vi mode or stay in vi mode when executing this command?. Or create the file with the code and execute it?

By simply copy/paste the complete code lines no file is created.

Thanks
-noah
hippocratesnoah is offline   Reply With Quote
Old 10-03-2009, 02:46 PM   #112
hippocratesnoah
Enthusiast
hippocratesnoah began at the beginning.
 
Posts: 25
Karma: 16
Join Date: Jul 2009
Device: Kindle DX
Do I need to be registered for this hack to work

Hi,

My kindle is unregistered (I'm in Europe.) I tried to register, but get a message "can't connect at this time".

So won't I be able to browse the store etc now?

-Noah
hippocratesnoah is offline   Reply With Quote
Old 10-06-2009, 12:56 AM   #113
jyavenard
Zealot
jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.
 
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
Quote:
Originally Posted by hippocratesnoah View Post
Hi,

please forgive my lacking knowledge of using the terminal. But this command doesn't work for me. Do I need to leave vi mode or stay in vi mode when executing this command?. Or create the file with the code and execute it?

By simply copy/paste the complete code lines no file is created.

Thanks
-noah
there are several ways you can create that file....

One is to create the file on your PC (make sure you use LF line-ending, and not Windows CR/LF one). Copy it at the root of the Kindle via USB

Then activate the networking mode, telnet to the device and do :
cp /mnt/us/usbnet /etc/init.d/usbnet
Make it executable with:
chmod +x /etc/init.d/usbnet

Another possibility, is telnet to the device
type:
cat > /etc/init.d/usbnet
then paste the whole content
Press Ctrl-D twice to close the file
chmod +x /etc/init.d/usbnet

etc...

Ideally, the easiest would be for the author of the update_usbnetwork.bin file to have that file directly into the archive...

I'll see if I can update the file myself later today and automatically create all those files.. Would be much easier that way
jyavenard is offline   Reply With Quote
Old 10-06-2009, 09:27 AM   #114
jyavenard
Zealot
jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.
 
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
New version, a bit easier to set up...

Hi

Was easier than I thought to create the image.

So here is a new version, much easier to setup. No need to edit any files on the device now.

To install:
-----
Copy update_usbnetwork-k2.bin (for Kindle K2) or update_usbnetwork-dx.bin (for Kindle DX) to the root of the Kindle drive.

Menu -> Settings
Menu -> Update your Kindle

Warning: Do not reboot, if you do, you'll need to put the Kindle in recovery mode as explained here :
http://blogkindle.com/2009/03/kindle-2-recovery-mode/
------

To enable USB tethering, two possibilities.
1- Create a file AUTO on the Kindle drive in the usbnet directory.
Reboot the device (Menu -> Settings then Menu -> Reboot)

2- using ;DebugOn ; `usbNetwork. Unplug/Replug USB device

Once either of those option is done, telnet to the device (default IP is 192.168.2.2)
then type:
# /mnt/us/usbnet/bin/usbnet-enable

This command will set the DNS ot use OpenDNS, disable WAN access for browsing the Amazon Store
You'll need to reboot to be able to use the Kindle Store...

-----

To disable USB tethering, and revert to USB disk mode.
telnet to the device
# rm /mnt/us/usbnet/AUTO
# reboot

-----
To re-enable 3G access while keeping USB tethering:
telnet to the device
# /mnt/us/usbnet/bin/usbnet-disable
# reboot

-----
To re-enable 3G access and restore USB disk mode:
telnet to the device
# /mnt/us/usbnet/bin/usbnet-disable
# rm /mnt/us/usbnet/AUTO
# reboot


that's it....
Attached Files
File Type: gz usbnetwork-0.06.tar.gz (323.6 KB, 696 views)
jyavenard is offline   Reply With Quote
Old 10-06-2009, 01:01 PM   #115
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,497
Karma: 424627
Join Date: Mar 2009
Device: iPad
Nice, thanks for the update.

G
GRiker is offline   Reply With Quote
Old 10-07-2009, 07:03 AM   #116
jyavenard
Zealot
jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.jyavenard has a complete set of Star Wars action figures.
 
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
Great, a new Kindle working outside the US is available.
Just in time so I can return mine now !

Well, at least that was fun...
jyavenard is offline   Reply With Quote
Old 10-15-2009, 08:46 AM   #117
Sassapphras
A Jane of All Trades
Sassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipseSassapphras can illuminate an eclipse
 
Sassapphras's Avatar
 
Posts: 18
Karma: 8438
Join Date: Dec 2008
Location: Okinawa, Japan
Device: Kindle Touch
Quote:
Originally Posted by jyavenard View Post
Great, a new Kindle working outside the US is available.
Just in time so I can return mine now !

Well, at least that was fun...
No worries. You're still helping out the folks who don't have an international Kindle!
Sassapphras is offline   Reply With Quote
Old 10-15-2009, 10:28 AM   #118
dpowell7299
Junior Member
dpowell7299 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2009
Device: Kindle 2
Has anyone had any luck with RNDIS for XP? I've loaded ActiveSunc 4.5 but it still will not load the drivers so that I can telnet into my Kindle2.

The annoying part is that now my K2 can't do usbnetwork or disk (

I'm assuming I could reset to factory defaults to fix this but I'm more hoping there is a fix to be able to telnet into the K2 so I can just remove the file to allow disk access again.

Don
dpowell7299 is offline   Reply With Quote
Old 10-15-2009, 03:15 PM   #119
dpowell7299
Junior Member
dpowell7299 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2009
Device: Kindle 2
I got it to work on XP.

I ended up using the description from here:

http://embedded.seattle.intel-resear...ting_up_USBnet

To do the "Install RNDIS Driver" section and the .inf file they linked to worked like a champ.

Don
dpowell7299 is offline   Reply With Quote
Old 10-16-2009, 01:51 AM   #120
Mr.X
Junior Member
Mr.X began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2009
Device: Kindle
Still not available in Canada, and who knows if/when it ever will be, so this is still important information.
Mr.X is offline   Reply With Quote
Reply

Tags
kindle usb network

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Networking on Mac OS? DairyKnight Kindle Developer's Corner 19 07-02-2012 05:19 PM
Hacks Kindle 3 USB Networking n10 Amazon Kindle 2 10-11-2010 10:29 PM
Firmware Update USB networking for 2.5? dd_engi Amazon Kindle 9 05-09-2010 07:45 AM
Is there any way to remove USB networking hack? aghazi Kindle Developer's Corner 4 11-27-2009 08:35 PM


All times are GMT -4. The time now is 06:18 AM.


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