Difference between revisions of "Using IGEP WLAN to communicate"

From IGEP - ISEE Wiki

Jump to: navigation, search
(Created page with 'If your IGEP processor board has wifi interface you can connect to it and access your board, for example, via SSH. Download boot partition and rootfs partition packages from he…')
 
Line 1: Line 1:
 
If your IGEP processor board has wifi interface you can connect to it and access your board, for example, via SSH.  
 
If your IGEP processor board has wifi interface you can connect to it and access your board, for example, via SSH.  
  
Download boot partition and rootfs partition packages from here:  
+
<br>
 +
 
 +
== Download Boot and Rootfs  ==
 +
 
 +
You can download the boot partition and the rootfs partition packages from here:  
  
*Boot: http://downloads.igep.es/files/IGEP_Mod_linaro/boot-linaro_minimal.10.10.tar.bz2  
+
*[http://downloads.igep.es/files/IGEP_Mod_linaro/boot-linaro_minimal.10.10.tar.bz2| Boot Partition]
*Root file system: http://downloads.igep.es/files/IGEP_Mod_linaro/rootfs-linaro_minimal.10.10.tar.bz2
+
*[http://downloads.igep.es/files/IGEP_Mod_linaro/rootfs-linaro_minimal.10.10.tar.bz2| Root File System]<br>
  
Now you must create a boot-MicroSD card using these two packages. Follow this [[How to boot from MicroSD Card|HowTo]]
+
<br>
  
Just follow the point 2 “Preparing the MicroSD Card” for creating the two partitions needed.
+
== Create a Boot MicroSD Card<br>  ==
  
Uncompress and untar the files boot-linaro_minimal.10.10.tar.bz2 in the '''boot partition''' and rootfs-linaro_minimal.10.10.tar.bz2 in the '''rootfs partition''' you have just created in your MicroSD Card.
+
Now create a Boot MicroSD Card using the two packages above. Follow this HowTo from the IGEP Wiki:
  
<br> Now it is time to configure the wireless network.  
+
*[[How to boot from MicroSD Card|How to boot from MicroSD Card]]. '''Note''': Just follow the 2nd point “Preparing the MicroSD Card” to create the two partitions needed.
  
The rootfs partition in the MicroSD Card should be available in the /media/rootfs directory in your host PC. Go to that directory in the card and edit the file /media/rootfs/etc/network/interfaces  
+
<br>
 +
 
 +
Uncompress and untar the file ''boot-linaro_minimal.10.10.tar.bz2'' in the '''boot partition''' and the file ''rootfs-linaro_minimal.10.10.tar.bz2'' in the '''rootfs partition''' of your MicroSD Card.<br>
 +
 
 +
== Configure the network<br>  ==
 +
 
 +
Now it is time to configure the wireless network in your IGEP&nbsp;board.
 +
 
 +
The rootfs partition in the MicroSD Card should be available in the ''/media/rootfs'' directory in your host PC. There edit the file ''/media/rootfs/etc/network/interfaces''
 
<pre>  interfaces(5) file used by ifup(8) and ifdown(8)
 
<pre>  interfaces(5) file used by ifup(8) and ifdown(8)
  
Line 25: Line 37:
 
   wpa-driver wext
 
   wpa-driver wext
  
   wpa-ssid &lt;'''put here your Access Point SSID'''&gt;
+
   wpa-ssid '''&lt;put here your Access Point SSID&gt;'''
  
 
   wpa-ap-scan 2
 
   wpa-ap-scan 2
Line 37: Line 49:
 
   wpa-key-mgmt WPA-PSK
 
   wpa-key-mgmt WPA-PSK
  
   wpa-psk &lt;'''put here your AP key*'''&gt;
+
   wpa-psk '''&lt;put here your AP key*&gt;'''
  
 
</pre>  
 
</pre>  
 
 
 
<br>  
 
<br>  
  
Now you might want to set your wpa-psk. Follow the next steps.
+
Complete the gaps with the missing information from your network configuration.<br>
  
<br>
+
To set the same wpa-psk from your access point, execute this command in your PC (with wifi):<br>  
 
+
<pre>wpa_passphrase "Access Point Name" "WPA2 Pass Phrase"  
Execute in your PC (with wifi) this command:  
+
</pre>  
 
+
This command gives you the '''wpa-psk key''' and you can replace it at the space from the file mentioned above: ''wpa-psk &lt;put here your AP key*&gt; ''<br>
<br>
 
<pre>
 
 
 
wpa_passphrase "Access Point Name" "WPA2 Pass Phrase"  
 
 
 
</pre>
 
<br>
 
 
 
The Output for this command shows you the wpa-psk, you must copy the psk key and put it in the space above: wpa-psk &lt;put here your AP key&gt;  
 
  
 
<br>  
 
<br>  
  
This configuration enable the wifi and get the IP from dhcp, if you wish use a static IP then you should change in interfaces file:
+
This configuration enables the wifi and automatically '''gets the IP from DHCP by default'''.<br>
 
 
----
 
  
/media/rootfs/etc/network$ cat interfaces
+
Therefore, when you boot the IGEP board you might have to get its IP from your Access Point, maybe in its management console or page if provided.
  
----
+
=== Using static IP<br>  ===
  
#interfaces(5) file used by ifup(8) and ifdown(8)
+
If you wish to use a static IP then you should change at the same interfaces file:
 +
<pre>interfaces(5) file used by ifup(8) and ifdown(8)
  
 
auto lo wlan0  
 
auto lo wlan0  
  
 
iface lo inet loopback  
 
iface lo inet loopback  
 
<br>
 
  
 
iface wlan0 inet static  
 
iface wlan0 inet static  
Line 102: Line 100:
 
  gateway 192.168.1.1
 
  gateway 192.168.1.1
  
----
+
</pre>  
 
+
You are now ready to [[Using SSH to communicate|connect to your board via SSH]], for example.
<br>  
 
  
This is the connection details:  
+
Remember that the connection details for this package are:<br>
 +
<pre>Username: root
  
 +
Password: letmein</pre>
 
<br>  
 
<br>  
  
--- SSH ---
+
== See also  ==
  
Username: root
+
[[Using USB ethernet gadget to communicate]]
  
Password: letmein
+
[[Using serial debug port to communicate]]
  
[[Category:Work in progress]]
+
[[Category:Work_in_progress]] [[Category:Communications]]
[[Category:Communications]]
 

Revision as of 10:28, 18 August 2011

If your IGEP processor board has wifi interface you can connect to it and access your board, for example, via SSH.


Download Boot and Rootfs

You can download the boot partition and the rootfs partition packages from here:


Create a Boot MicroSD Card

Now create a Boot MicroSD Card using the two packages above. Follow this HowTo from the IGEP Wiki:


Uncompress and untar the file boot-linaro_minimal.10.10.tar.bz2 in the boot partition and the file rootfs-linaro_minimal.10.10.tar.bz2 in the rootfs partition of your MicroSD Card.

Configure the network

Now it is time to configure the wireless network in your IGEP board.

The rootfs partition in the MicroSD Card should be available in the /media/rootfs directory in your host PC. There edit the file /media/rootfs/etc/network/interfaces

   interfaces(5) file used by ifup(8) and ifdown(8)

   auto lo wlan0

   iface lo inet loopback

   iface wlan0 inet dhcp

   wpa-driver wext

   wpa-ssid '''<put here your Access Point SSID>'''

   wpa-ap-scan 2

   wpa-proto RSN

   wpa-pairwise CCMP

   wpa-group CCMP

   wpa-key-mgmt WPA-PSK

   wpa-psk '''<put here your AP key*>'''


Complete the gaps with the missing information from your network configuration.

To set the same wpa-psk from your access point, execute this command in your PC (with wifi):

wpa_passphrase "Access Point Name" "WPA2 Pass Phrase" 

This command gives you the wpa-psk key and you can replace it at the space from the file mentioned above: wpa-psk <put here your AP key*>


This configuration enables the wifi and automatically gets the IP from DHCP by default.

Therefore, when you boot the IGEP board you might have to get its IP from your Access Point, maybe in its management console or page if provided.

Using static IP

If you wish to use a static IP then you should change at the same interfaces file:

interfaces(5) file used by ifup(8) and ifdown(8)

auto lo wlan0 

iface lo inet loopback 

iface wlan0 inet static 

    wpa-driver wext

    wpa-ssid <put here your AP SSID>

    wpa-ap-scan 2

    wpa-proto RSN

    wpa-pairwise CCMP

    wpa-group CCMP

    wpa-key-mgmt WPA-PSK

    wpa-psk <put here your AP key>

 address 192.168.1.44

 netmask 255.255.255.0

 gateway 192.168.1.1

You are now ready to connect to your board via SSH, for example.

Remember that the connection details for this package are:

Username: root

Password: letmein


See also

Using USB ethernet gadget to communicate

Using serial debug port to communicate