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 07-21-2013, 03:43 AM   #1
tyto alba
Junior Member
tyto alba began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
usbnetwork problems

Moderator notice: these posts have originally been posted in the Kubrick thread, but were moved into an own thread because the discussion is off-topic there.
--ixtab


Thaks a lot for all the work you put into it. I just used it to debrick my kindle 4 nt. Worked great!

Except ... after debricking I can no longer ssh into the kindle - "connection refused" (used to work fine without any modifications before I bricked it).

In diags - usbnet mode the Kindle registeres on lsusb as
Bus 001 Device 019: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget

And here is what I belive to be the problem:
Nmap scan report for 192.168.15.244
Host is up (0.00017s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds

I tried the usbNetwork hack from this site but this didnt change anything (visible?). Any sugestions on how to enable ssh/open the port?

Thanks

ta

Last edited by ixtab; 07-21-2013 at 08:24 AM.
tyto alba is offline   Reply With Quote
Old 07-21-2013, 05:01 AM   #2
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
First off, welcome to the forum... And - a reminder that you are posting in the wrong thread. You're having a problem with usbnetwork, not with Kubrick. So if you keep having trouble, please post in the usbnetwork thread instead. Anyway...

Quote:
Originally Posted by tyto alba View Post
Thaks a lot for all the work you put into it. I just used it to debrick my kindle 4 nt. Worked great!

Except ... after debricking I can no longer ssh into the kindle - "connection refused" (used to work fine without any modifications before I bricked it).

In diags - usbnet mode the Kindle registeres on lsusb as
Bus 001 Device 019: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
Correct so far.

Quote:
And here is what I belive to be the problem:
Nmap scan report for 192.168.15.244
Host is up (0.00017s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
That is NOT a Kindle. It's a Windows machine (or possibly a Linux host with only Samba enabled). Chances are that you configured your network incorrectly. The recommended settings (in usbnet/etc/config) are HOST_IP=192.168.15.201, KINDLE_IP=192.168.15.244.

Quote:
I tried the usbNetwork hack from this site but this didnt change anything (visible?). Any sugestions on how to enable ssh/open the port?

Thanks

ta
Make sure that you are using the latest version of usbNetwork for the K4, and make sure to configure it correctly, and to start it. In other words: READ the instructions that come with usbnetwork. Double-check usbnet/etc/config after installation, and enable it by typing ~usbNetwork. To be extra-careful, make sure that you booted the Kindle with the USB cable DISCONNECTED. (on some Kindles, having the cable connected during startup will cause funky failures when trying to enable usbNetwork, though I'm quite sure that this only affects the K5).
ixtab is offline   Reply With Quote
Old 07-21-2013, 08:01 AM   #3
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,224
Karma: 5830430
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by tyto alba View Post
In diags - usbnet mode the Kindle registeres on lsusb as
Bus 001 Device 019: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
OK - So your host machine is running Linux.

Quote:
Originally Posted by tyto alba View Post
And here is what I belive to be the problem:
Nmap scan report for 192.168.15.244
Host is up (0.00017s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
139/tcp open netbios-ssn
445/tcp open microsoft-ds
And that address is (in the Kindle world) used by the K5-Paperwhite, not the K4.

Quote:
Originally Posted by tyto alba View Post
I tried the usbNetwork hack from this site but this didnt change anything (visible?). Any sugestions on how to enable ssh/open the port?

Thanks

ta
So, by copying my own quote in the "HowTo" threads, with address pair added from the K4 README file:
Note: This presumes that you have KUAL installed along with the USBnetwork control button.)
Quote:
This order should work on all firmware versions.
Early firmwares, v-2 and v-3 may also work with the cable attached.
  • un-plug cable (if still plugged in)
  • toggle USBnetwork ON in the KUAL launcher
  • plug the cable
  • kill any automation (or configure yours to do: )
  • sudo ip link set up dev usb0 (It may already be up, no harm in upping it twice)
  • [for Kpw]sudo ip address add 192.168.15.201 peer 192.168.15.244 dev usb0
  • [for K4] sudo ip address add 192.168.2.1 peer 192.168.2.2 dev usb0
  • use the networking until your done (telnet or ssh to the 'peer' address)
  • un-plug cable
  • toggle USBnetwork OFF in the KUAL launcher
Note 1: You can assign **both** point-to-point link addresses to usb0 - the network stack can deal with that and the "ip" utility will take care of updating the routing tables for you.

Note 2: If you are running devices on a 192.168.x.y network which use the general routing rules, these ptp rules will be tested first. I.E: If your (something) is already using 192.168.2.2 on your local network, the packets for that address will now go to the Kindle. (that address seems popular with router and modem manufacturers)

Last edited by knc1; 07-21-2013 at 08:08 AM.
knc1 is offline   Reply With Quote
Old 07-21-2013, 08:10 AM   #4
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by knc1 View Post
And that address is (in the Kindle world) used by the K5-Paperwhite, not the K4.
No. The 192.168.2.x addresses are the default configuration shipped with usbnetwork for the K4, which was, and remains, a poor choice IMO. It's the first thing that I correct whenever I install usbnet on a K4.

Why? Not only are the chances of clashing with an existing home network on that subnet MUCH higher than for the 192.168.15.x one, but it also results in requiring different host configurations depending on whether the Kindle is in main or in diags mode: in diags, the Kindle ALWAYS uses 192.168.15.244 - why should that be different in main?
ixtab is offline   Reply With Quote
Old 07-21-2013, 08:15 AM   #5
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,224
Karma: 5830430
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by ixtab View Post
No. The 192.168.2.x addresses are the default configuration shipped with usbnetwork for the K4, which was, and remains, a poor choice IMO. It's the first thing that I correct whenever I install usbnet on a K4.

Why? Not only are the chances of clashing with an existing home network on that subnet MUCH higher than for the 192.168.15.x one, but it also results in the K4 requiring different network configurations in main and diags mode: in diags, it uses 15.244 - why should that be different in main?
Ah, but here we are replying to someone who did not know that USBnetworking has to be "turned on" - - PLUS I added note 2, probably while you where also posting.

Not somebody who has probably read the readme or already changed the configuration file defaults.

My post will "make it work" with the config file defaults as shipped. Which is the reason why I describe using Point-to-Point links rather than trying to route a sub-net.

Once the O.P. learns about the advanced topic of "turn it on, turn it off" -
then we can teach them to pick a better address pair. (192.168.2.x is a REALLY BAD CHOICE - I agree).

PS: Why not move these posts to a new thread?

Last edited by knc1; 07-21-2013 at 08:27 AM.
knc1 is offline   Reply With Quote
Old 07-21-2013, 08:26 AM   #6
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by knc1 View Post
PS: Why not move these posts to a new thread?
Done
ixtab is offline   Reply With Quote
Old 07-21-2013, 08:54 AM   #7
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,224
Karma: 5830430
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by ixtab View Post
Done
Super!

Nowhere in my USB/SSH "HowTo" posts did I describe how to change the configured address defaults.

I guess I should tackle that topic also.
Phooey! And I thought I was done writing about the USB/SSH/TelNet subject.

Hmm...
**My opinion** is that networked **devices** should be in the 169.254.0.0 (link local) reserved area.
(But then we might still run into HP networked printers.)

Will on this topic some more.
Maybe a KUAL button that re-writes the USBnetworking configuration files?
knc1 is offline   Reply With Quote
Old 07-21-2013, 09:54 AM   #8
tyto alba
Junior Member
tyto alba began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Quote:
Originally Posted by knc1 View Post
Ah, but here we are replying to someone who did not know that USBnetworking has to be "turned on"
Ouch! Stupid me. Once I "turned it on" I got some results .... so far only a "Connection timed out" but at least something I can work on ...

Cheers
ta
tyto alba is offline   Reply With Quote
Old 07-22-2013, 12:34 PM   #9
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: 4,651
Karma: 4440239
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Unfortunately, the K4 is using the same code tree as the K2/K3, so it inherited the same defaults we've been using for over four years... FWIW, since that's what I'm used to, I do the exact opposite on my K5/PW: I switch to 'old' default .

That said, I completely agree that on devices with a working USBNet in diags, it's stupid and confusing to use a different default in main. In fact, when I first read this, I though 'wait, I switched the default, didn't I?' But nope, that was on the K5 ˆˆ. There are already a couple of tweaks to the default config made during the install process specifically for the K4, so I could probably switch the default for new installs, it'll just make the doc potentially a bit more confusing.
NiLuJe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
usbNetwork or terminal damaru Kindle Developer's Corner 1 02-22-2012 07:57 PM
usbnetwork Aerus Amazon Kindle 2 06-18-2011 08:34 PM
Need help on usbNetwork for K3G everyday_kindle Kindle Developer's Corner 2 05-06-2011 09:00 AM
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 04:00 AM.


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