View Single Post
Old 06-26-2021, 07:16 AM   #1
CubeBag
Junior Member
CubeBag began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Kindle 4 NT
Question Problem with Kindle 4 UsbNetwork on Raspberry Pi Zero

Hi! I was able to connect my Kindle 4 to my Mac over usbnetwork with the provided instructions (using host IP 192.168.15.201 and kindle IP 192.168.15.244) pretty easily, but when I attempt to do the same thing on my Raspberry Pi Zero on Linux, I'm running into "No route to host" while attempting to ssh.

This is the full output when I run relevant commands:

Code:
pi@raspberrypi:~ $ sudo ifconfig usb0 192.168.15.201
pi@raspberrypi:~ $ sudo ifconfig usb0
usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.15.201  netmask 255.255.255.0  broadcast 192.168.15.255
        ether a2:da:5f:04:7f:64  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
pi@raspberrypi:~ $ ssh root@192.168.15.244
ssh: connect to host 192.168.15.244 port 22: No route to host
pi@raspberrypi:~ $ ping 192.168.15.244
PING 192.168.15.244 (192.168.15.244) 56(84) bytes of data.
From 192.168.15.201 icmp_seq=1 Destination Host Unreachable
From 192.168.15.201 icmp_seq=2 Destination Host Unreachable
From 192.168.15.201 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.15.244 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 134ms
pipe 4
pi@raspberrypi:~ $ lsusb
Bus 001 Device 002: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Originally I had an issue where usb0 did not show up in ifconfig at all. It appears I solved the issue by editing config.txt and cmdline.txt as detailed in this Adafruit article.

I found a much earlier thread in MobileRead's forums that seems to cover a very similar problem: https://www.mobileread.com/forums/sh...d.php?t=222133
I used it as a reference while troubleshooting. However, I don't have network-manager installed, and my "ip route show" output looks a little different:

Code:
default via 10.0.1.1 dev wlan0 proto dhcp src 10.0.1.208 metric 304 
10.0.1.0/24 dev wlan0 proto dhcp scope link src 10.0.1.208 metric 304 
169.254.0.0/16 dev usb1 scope link src 169.254.96.198 metric 205 
192.168.15.0/24 dev usb0 proto kernel scope link src 192.168.15.201 linkdown
I think the difference that stands out the most is the "linkdown" at the end of the final line, but I'm not sure. Also, there is both a usb0 and a usb1 even though the Pi Zero only has one usb port. I'm not too sure why.

How should I proceed with the problem?
CubeBag is offline   Reply With Quote