Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

1,537 views
Skip to first unread message

Alex

unread,
Oct 30, 2015, 1:13:55 PM10/30/15
to BeagleBoard
Hi,

I am using ubuntu 14.04 (from Robert Nelson) with a custom 3.15.10-bone8 kernel on Beaglebone Black. HDMI is disabled. 
When I plug the board to a PC, Beaglebone powers up but the PC does not recognize that a USB device is connected to it. I have installed the drivers for network-over-USB which is recommended on Beagleboard.org/getting-started too. Moreover, I cannot ssh into it using 192.168.7.2 eventhough I have set up my /etc/network/interfaces. 
ubuntu@arm $ ifconfig usb0
usb0      Link encap:Ethernet  HWaddr d2:56:2f:23:1d:e2
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Is there some modules that I need to run or compile to Kernel to bring the client USB up? How should I configure the linux to be seen by PC when connected from mini USB?
Thanks for any help. 

Davide Picchi

unread,
Dec 3, 2015, 4:40:46 PM12/3/15
to BeagleBoard
I have the same issue too.
Did you fix that problem?

hllpc

unread,
Dec 6, 2015, 12:44:07 PM12/6/15
to BeagleBoard
Same Issue here.

Mehmet Kurnaz

unread,
Dec 7, 2015, 2:42:36 AM12/7/15
to beagl...@googlegroups.com
You need g_ether.ko module. You can check it is loaded.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Kridner

unread,
Dec 7, 2015, 7:36:55 AM12/7/15
to beagl...@googlegroups.com
Find the modprobe here:
https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh

You've got to have it serve up an IP address if you don't want to
manually configure:
https://github.com/RobertCNelson/boot-scripts/blob/master/boot/autoconfigure_usb0.sh

roj...@gmail.com

unread,
Dec 7, 2015, 11:43:36 AM12/7/15
to BeagleBoard
I have the same too. I echieved to work on Eclipse for work in Java. But next day, when I turn on the laptop, I have tried to connect with psftp or putty (open 192.168.7.2 ) neither Eclipse, and I don't have achieved it. I have failed. What can I do? Thanks. Note: The connection by browser works well. (Mozilla Firefox 192.168.7.2 and 192.168.7.2:3000 0K).
Message has been deleted
Message has been deleted

hllpc

unread,
Dec 8, 2015, 6:36:59 AM12/8/15
to BeagleBoard

Hi Jason!
uname -r
v4.1.12-ti-r29,
right now I-m able to ssh to my beaglebone, I can ping 8.8.8.8 but not google.com or any other website, I tried with the modprobe and I got


root@beaglebone:/opt/scripts/boot# ./am335x_evm.sh
SIOCSIFADDR
: Invalid argument
Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details.



typing journalctl -xe


root@beaglebone:/opt/scripts/boot# journalctl -xe
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnsmasq.service has failed.
--
-- The result is failed.
Nov 12 22:04:18 beaglebone systemd[1]: Dependency failed for Host and Network Name Lookups.
-- Subject: Unit nss-lookup.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nss-lookup.target has failed.
--
-- The result is dependency.
Nov 12 22:04:18 beaglebone systemd[1]: Unit dnsmasq.service entered failed state.
Nov 12 22:17:01 beaglebone CRON[641]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 12 22:17:01 beaglebone CRON[642]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Nov 12 22:17:01 beaglebone CRON[641]: pam_unix(cron:session): session closed for user root
Nov 12 22:22:21 beaglebone dnsmasq[707]: dnsmasq: syntax check OK.
Nov 12 22:22:21 beaglebone dnsmasq[710]: dnsmasq: bad dhcp-range at line 9 of /etc/dnsmasq.d/usb0-dhcp
Nov 12 22:22:21 beaglebone dnsmasq[710]: bad dhcp-range at line 9 of /etc/dnsmasq.d/usb0-dhcp
Nov 12 22:22:21 beaglebone dnsmasq[710]: FAILED to start up
Nov 12 22:22:21 beaglebone systemd[1]: dnsmasq.service: control process exited, code=exited status=1
Nov 12 22:22:21 beaglebone systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
-- Subject: Unit dnsmasq.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnsmasq.service has failed.
--
-- The result is failed.
Nov 12 22:22:21 beaglebone systemd[1]: Dependency failed for Host and Network Name Lookups.
-- Subject: Unit nss-lookup.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nss-lookup.target has failed.
--
-- The result is dependency.
Nov 12 22:22:21 beaglebone systemd[1]: Unit dnsmasq.service entered failed state.
lines
597-635/635 (END)



This is  systemctl status dnsmasq.service output:
root@beaglebone:/opt/scripts/boot#  systemctl status dnsmasq.service
dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
   
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
 
Drop-In: /run/systemd/generator/dnsmasq.service.d
           
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
   
Active: failed (Result: exit-code) since Thu 2015-11-12 22:22:21 UTC; 8min ago
 
Process: 404 ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf (code=exited, status=0/SUCCESS)
 
Process: 289 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
 
Process: 710 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=1/FAILURE)
 
Process: 707 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
 
Main PID: 279 (code=exited, status=0/SUCCESS)

Nov 12 22:22:21 beaglebone dnsmasq[707]: dnsmasq: syntax check OK.
Nov 12 22:22:21 beaglebone dnsmasq[710]: dnsmasq: bad dhcp-range at line 9 of /etc/dnsmasq.d/usb0-dhcp
Nov 12 22:22:21 beaglebone dnsmasq[710]: bad dhcp-range at line 9 of /etc/dnsmasq.d/usb0-dhcp
Nov 12 22:22:21 beaglebone systemd[1]: dnsmasq.service: control process exited, code=exited status=1
Nov 12 22:22:21 beaglebone systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Nov 12 22:22:21 beaglebone systemd[1]: Unit dnsmasq.service entered failed state.

And this is usb0-dhcp:

more usb0-dhcp

port=0
interface=usb0
#one address range
dhcp
-range=192.168.7.1
192.168.7.1,192.168.7.1
192.168.7.1
dhcp
-option=3
except-interface=lo
except-interface=eth0
listen
-address=192.168.7.2
192.168.7.2



Cheers
Valeria


Reply all
Reply to author
Forward
0 new messages