[beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-03 Thread Davide Picchi
I have the same issue too.
Did you fix that problem?

Am Freitag, 30. Oktober 2015 18:13:55 UTC+1 schrieb Alex:
>
> 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. 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-06 Thread hllpc
Same Issue here. 

Il giorno venerdì 30 ottobre 2015 18:13:55 UTC+1, Alex ha scritto:
>
> 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. 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-07 Thread rojjaas
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).

El viernes, 30 de octubre de 2015, 12:13:55 (UTC-5), Alex escribió:
>
> 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. 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-06 Thread Mehmet Kurnaz
You need g_ether.ko module. You can check it is loaded.

On Sun, Dec 6, 2015 at 7:44 PM, hllpc  wrote:

> Same Issue here.
>
> Il giorno venerdì 30 ottobre 2015 18:13:55 UTC+1, Alex ha scritto:
>>
>> 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.
>>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-07 Thread Jason Kridner
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

On Mon, Dec 7, 2015 at 2:42 AM, Mehmet Kurnaz  wrote:
> You need g_ether.ko module. You can check it is loaded.
>
> On Sun, Dec 6, 2015 at 7:44 PM, hllpc  wrote:
>>
>> Same Issue here.
>>
>> Il giorno venerdì 30 ottobre 2015 18:13:55 UTC+1, Alex ha scritto:
>>>
>>> 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.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-08 Thread hllpc

Hi Jason, I tried with the modprobe

./am335x_evm.sh

but I got

SIOCSIFADDR: Invalid argument
Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 
'journalctl 
-xn' for details

This is  systemctl status dnsmasq.service output: 
● 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; 
7min 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.



typing 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.



Il giorno lunedì 7 dicembre 2015 13:36:55 UTC+1, Jason Kridner ha scritto:
>
> 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
>  
>
> On Mon, Dec 7, 2015 at 2:42 AM, Mehmet Kurnaz  > wrote: 
> > You need g_ether.ko module. You can check it is loaded. 
> > 
> > On Sun, Dec 6, 2015 at 7:44 PM, hllpc  > wrote: 
> >> 
> >> Same Issue here. 
> >> 
> >> Il giorno venerdì 30 ottobre 2015 18:13:55 UTC+1, Alex ha scritto: 
> >>> 
> >>> 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 

Re: [beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-08 Thread hllpc
And this is usb0-dhcp:

# disable DNS by setting port to 0
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




-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Configure Beaglebone to access usb0 from host PC. (Cannot ssh to beaglebone through USB)

2015-12-08 Thread hllpc


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


-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.