01-27-2010, 03:16 AM | #1 |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
What am I doing wrong with usbNetwork
I follow these steps
-Download usbNetwork -Install it and look at log to confirm success. -Set ip information for host and kindle on the usbNetwork script. -restart the kindle -turn on debug mode and confirm with `help -run`usbnetwork -plug in kindle -run modprobe g_ether -then ifconfig usb0 192.168.0.102 -I then confirm with lsusb | grep RNDIS - I then ping the kindle and always have success. - I try to ssh to the kindle as root ssh root@192.168.0.102 and I am prompted for a password which I then press enter. I then get asked again and again. -I try to log in as framework and get the same problem. -I try to telnet and get a connection refused, So does anybody have any clue in what I am doing wrong. |
01-27-2010, 07:11 AM | #2 | ||
Enthusiast
Posts: 43
Karma: 10
Join Date: Jan 2010
Location: Germany
Device: Kindle DXi
|
My friend, you miss ONE critical point:
Quote:
Quote:
The IP of the kindle is assigned to the one written in the "usbnetwork" script and should be 192.168.2.2 in the latest versions. So you should assign 192.168.2.1 to your usb0 interface. Now try "telnet 192.168.2.2". Last edited by jft; 01-27-2010 at 09:13 AM. |
||
01-27-2010, 11:59 AM | #3 | |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
Quote:
The script of my kindle has the Host ip as 192.168.0.101 and Kindle is 192.168.0.102. I thought the kindle had to be on the same ip class as the host computer. I will go back and try again, Thanks for responding. |
|
01-28-2010, 01:53 AM | #4 | |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
Here is my config
Quote:
|
|
01-28-2010, 04:24 AM | #5 | ||
Enthusiast
Posts: 43
Karma: 10
Join Date: Jan 2010
Location: Germany
Device: Kindle DXi
|
Nope. You misunderstood me. The IPs were just an example. The default values in the script were 192.168.2.1 and 192.168.2.2 and as you said the subnet has to be the same.
Now I assume you have the following configuration: Quote:
Code:
;DebugOn 'usbNetwork Now you have to assign an IP to your pc usb interface (just think about it as an ethernet card). On your PC: Quote:
Code:
telnet 192.168.0.102 As I said in the above post you tried to telnet to your pc and not to the kindle, so you got a password prompt (root user of YOUR pc and not of the Kindle). Last edited by jft; 01-28-2010 at 04:28 AM. |
||
01-28-2010, 11:23 AM | #6 |
Zealot
Posts: 141
Karma: 383
Join Date: Sep 2009
Device: Kindle 2
|
|
01-28-2010, 04:34 PM | #7 |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
Ive read practically everything, maybe theres documentation Im not aware of. Ive even gone deep into gumstix documentation and it simply wont work
Last edited by Zorz; 01-28-2010 at 06:22 PM. |
01-28-2010, 05:02 PM | #8 | |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
Quote:
Trying 192.168.0.102... telnet: Unable to connect to remote host: No route to host I also tried to change route with this route add -host 192.168.0.101 usb0 Last edited by Zorz; 01-28-2010 at 05:29 PM. |
|
01-29-2010, 03:18 AM | #9 | |
Enthusiast
Posts: 43
Karma: 10
Join Date: Jan 2010
Location: Germany
Device: Kindle DXi
|
Quote:
What would make sense: route add -host 192.168.0.102 usb0 What is the subnet of your home network? Most likely it is 192.168.0.0/24. That is the reason most of us use another subnet (192.168.2.0/24). Just use another subnet or add the right route. You have to admit: you don't know what you are doing. Why try to access the shell? You will inevitable brick your device if you just toy with the file system. Last edited by jft; 01-29-2010 at 03:36 AM. |
|
01-29-2010, 05:34 AM | #10 | |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
well you can claim I dont know what I am doing all you want, but obviously something else is going wrong, if I follow the exact steps provided and it still doesn't work.
I changed my subnet, now my ip is 192.168.2.1 and I set everything up and still get the following > telnet 192.168.2.2 Trying 192.168.2.2... telnet: Unable to connect to remote host: No route to host Il take the chance at briking the unit, if I do il just buy another one. But thank you for you help and I hope you reply. Here is my ifconfig maybe that can ched some light Quote:
|
|
01-29-2010, 05:56 AM | #11 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Jan 2010
Location: Germany
Device: Kindle DXi
|
Just change the ip of your usb0 interface!! Now both your ethernet card eth0 and your usb interface usb0 have the same ip. That's not what I said.
These two interfaces should reside in different networks. Your eth0 is connected to your home network, your usb0 ist connected to your "Kindle-Network". You have to assign a home network ip to your eth0 interface and a "Kindle-Network" ip to your usb0 interface. Edit: And most likely you have an dhcp server that assigns an ip address to your eth0 interface - just don't touch that interface. We ware always talking about usb0 and nothing else! And also make sure you restarted your kindle after you edited the usbnetwork file (change of ip address). The result should look like this: Code:
ifconfig eth0 Link encap:Ethernet HWaddr 00:50:8d:b6:e0:e3 inet addr:192.168.0.41 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::250:8dff:feb6:e0e3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1688406 errors:0 dropped:0 overruns:0 frame:0 TX packets:981107 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2311261506 (2.3 GB) TX bytes:87544035 (87.5 MB) Interrupt:23 Base address:0x4000 usb0 Link encap:Ethernet HWaddr ee:0a:96:97:21:91 inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::ec0a:96ff:fe97:2191/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:209 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1780 (1.7 KB) TX bytes:22736 (22.7 KB) Last edited by jft; 01-29-2010 at 06:08 AM. |
01-29-2010, 06:17 AM | #12 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Jan 2010
Location: Germany
Device: Kindle DXi
|
Just noticed something wired and important:
You checked the subnet of your eth0 interface? It is 255.255.0.0. . That means your computer thinks the ip range 192.168.0.0 - 192.168.255.255 is behind your eth0 interface. Now I would recommend using ip address like 10.0.0.* for your "Kindle" Network. So change the addresses in the usbnetwork file to 10.0.0.1 and 10.0.0.2 and assign your usb0 interface the address 10.0.0.1. Now try to telnet to 10.0.0.2. |
01-29-2010, 04:02 PM | #13 | |||
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
Quote:
well the subnet was like that because I thought the HOST had to be 192.168.2.1. In sure you can see my confusion in the documentation and posts on this forum saying HOST should be 192.168.2.x. Why they call it a host i dont know, but its not proper terminology. The host is my computer and if the kindle's config says to enter the name of the Host, I assume it means my computers ip address. I reverted the subnet back to 255.255.255.0 and tried your suggested method, though I still a no route to host when I try to telnet in to 192.168.2.2. Quote:
Quote:
|
|||
01-30-2010, 02:49 AM | #14 |
Zealot
Posts: 134
Karma: 36
Join Date: Nov 2009
Device: Kindle 2i
|
software.engineer suggested I run `help after 'usbNetwork and now it works fine. Thanks all for the continued help, I truly appreciate it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle 3.0.1 firmware and usbNetwork | bmf | Kindle Developer's Corner | 15 | 10-18-2010 07:12 PM |
jailbreak and usbnetwork on 2.5.6? | pgf | Kindle Developer's Corner | 4 | 07-23-2010 02:07 PM |
usbNetwork on 2.5.3? | Gnewt | Kindle Developer's Corner | 2 | 07-12-2010 02:32 PM |
Hacks I want usbnetwork for 2.5.2 | al3bsi | Amazon Kindle | 4 | 06-18-2010 01:55 PM |
Firmware Update USBNetwork and 2.3 Update? | ChinaLamb | Amazon Kindle | 4 | 12-04-2009 07:13 AM |