Changes

Using Ethernet to communicate

1,955 bytes removed, 12:30, 29 August 2012
m
Linux
==== Linux ====
 
'''NOTE:''' You should have the usbnet module available for your Linux kernel. On most distributions, this is the case by default. If this is not the case for your distribution, you will need to enable USB networking support in the kernel. If you build your own kernel then you want 'CDC Ethernet support' in USB Network adaptors. IGEP SDK Virtual Machine has this module enabled.
<section begin=USB_linux />
*In the file /etc/network/interfaces, you should add:
<pre>iface usb0 inet dhcp</pre>
*Plug an USB Type-A to USB Type-A mini cable between your host PC and the USB OTG from IGEP device. Use a powered USB Hub if you use IGEP COM MODULE or PROTON Board.
*If you use IGEP&nbsp;SDK&nbsp;VM you need to attach the [http://labs.isee.biz/index.php/IGEP_SDK_Virtual_Machine#Attach_removable_devices_to_Virtual_Machine removable device] RNDIS driver.
*Type in a terminal:
<pre>sudo ifup usb0</pre>
*Revise that:
<pre>jdoe@ubuntu ~ $ ifconfig
...
usb0 Link encap:Ethernet HWaddr 66:cc:f2:be:51:b6
inet addr:192.168.7.10 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::64cc:f2ff:febe:51b6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2496 (2.4 KB) TX bytes:8794 (8.7 KB)
...</pre>
*Connect to IGEP device
 
jdoe@ubuntu ~ $ ssh root@192.168.7.1
The authenticity of host '192.168.7.1 (192.168.7.1)' can't be established.
ECDSA key fingerprint is 80:be:2d:b6:fe:b1:09:c3:3b:ac:0f:1d:f2:43:f2:20.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.7.1' (ECDSA) to the list of known hosts.
root@igep00x0:~# uname -a
Linux igep00x0 2.6.37 #1 Thu Jul 19 09:07:47 CEST 2012 armv7l GNU/Linux
root@igep00x0:~#
<section end=USB_linux />
==== Troubleshooting ====
4,199
edits