Changes

What can I do with IGEP0020

1,706 bytes added, 20:59, 6 March 2012
no edit summary
|-
|4) '''Connect to IGEP0020 from network interfaces'''
|-
|5) '''Handle IGEP0020 LED's'''
|-
|n) '''Installing other distributions to IGEP0020'''
ifconfig
This will '''list all the enabled network interfaces ''' in your IGEP0020. We are going to '''focus on 'eth0''''. This is the ethernet interface in your IGEP0020, which is the interface we will '''connect to from our host PC'''.
We are going to focus on 'eth0'. This is Connect the ethernet interface in cable between your IGEP0020, which is the interface we want to connect to from our host PCand IGEP0020 (or through any wired network such switch).
Now, let's '''set an static IP ''' to this interface in IGEP0020, for example: 192.168.6so we will be able to reach the target from the PC.2
Type the following command in your serial console:
ifconfig eth0 192.168.6.12  Next, set an '''IP within the subnet''' in your host PC, for example: 192.168.6.3 Then, run a '''SSH client''' such '''Putty''' and start a SSH session to the target from your host PC. You can download it from its official page at: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Install and run Putty. It will look like this:
[[Image:Putty ssh.png|center]]
# Select the '''SSH''' at connection type.# Next, set an insert the '''IP within address of the subnet in your host PCtarget'''. In this case, for example: the IGEP0020 IP you have already set (192.168.6.3).# Ensure that the port is set to '''22''', the default for SSH communications.# Finally, push the '''Open button''' to start the SSH session.
Then, run a SSH client such Putty and connect to the target
Read this articleIf everything goes right, where there is a complete explanation about [[Using SSH you will be able to communicate|how access to login an IGEP0020 console from your host PC via Ethernet]]ethernet.
= How to handle the gpio-LED's<br> == Basic instructions in Linux ===(Work in progress article. Coming soon!)
This === How to handle the gpio-LED's ===---- {| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"|-| bgcolor="#cccccc" |'''Overview'''|-| Use of IGEP0020 LED's using the associated platform device at /sys/devices/platform/leds-gpio/leds/|} IGEP0020 has many devices that can be controlled using '''simple instructions'''. In this tutorial, we are going to use the '''4 LED's available in the board''', which probably is probably the most simple feature in the board, but sometimes you may want LED's may to be the only a way of checking the status of some of your applications.  You can easily '''turn LED's on and off''' using the 'echo' instruction. Log into IGEP0020 (via serial port or via SSH, as shown before), and run the following commands to turn LED's on:
IGEP0020 has 4 LED's which you can control, for example, using 'echo'. Here is an example of turning LED's On:
<pre>echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/brightness
echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:red/brightness
echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d440\:red/brightness
</pre>
 
You can turn them down using the same command and write '0' instead of '1'.
 
'''Other functionalities'''
If you want to trigger the leds you can enable this mode and select the trigger source (none by default) to: mmc0, mmc1, timer, heartbeat and default-on.<br>
To enable any of this modes you just have to change a parameter in the directory of the led you want to control. You can see all the possibilities using the instruction 'cat':<br>  
<pre>$ cat /sys/devices/platform/leds-gpio/leds/d240\:green/trigger
[none] mmc0 mmc1 timer heartbeat default-on
</pre>
 
In the example above, we have checked the status of the trigger in led D240:green. Mode 'none' is selected.
To change it, for example, to the timer mode you can use 'echo':<br>  
<pre>echo timer &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/trigger
</pre>
 In this case, we have set the trigger to the 'timer' mode. Now you can set the time for what the led is ON and the time it is OFF using:<br>  
<pre>echo 250 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_on
echo 750 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_off
</pre>
 
Now the selected led is configured with a timer consisting of 250 miliseconds ON and 750 miliseconds OFF.
=== Transfer a file to the board via network ===(Work in progress article. Coming soon!) === Mounting the MicroSD Card ===(Work in progress article. Coming soon!) === How to use RS-485 ===---- {| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"|-| bgcolor="#cccccc" |'''Overview'''|-| Follow the link to the extensive article: [[How_to_use_RS485_on_IGEP0020_board|How to use RS-485 on IGEP0020 board]]|}
Follow the link to the extensive article: [[How_to_use_RS485_on_IGEP0020_board|=== How to use RSget sound out (audio out) ===----485 on IGEP0020 board]]
{| cellspacing= How to get sound out (audio out) "0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"|-| bgcolor="#cccccc" |'''Overview'''|-| Use: aplay sample.wav|}
The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with
aplay sample.wav
=== How to get sound in (audio in) === {| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"|-| bgcolor="#cccccc" |'''Overview'''|-| Use: arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav|}
You can record audio in with
When ever you think you want to stop just press CONTRL+C
 
 
'''Linux distributions'''
 
In this tutorial, we are going to use the pre-installed software in your IGEP0020, that is the Poky Linux.
 
But if you wish, you can always update with a new or a different distribution.
 
If you are familiar with Linux Kernel and distributions, you can check out the '''[[:Category:Software distributions|Software distributions]]''' category at the IGEP Community Wiki to get many other distributions for your IGEP0020.
 
Otherwise, we are now going to introduce the main components of the preinstalled software of your IGEP0020:
 
* Bootloaders:
* Kernel:
* Root File System:
* Kernel Modules:
 
 
 
= Developing under IGEP Technology =
Visit the following link and '''start [[Start developing under IGEP Technology|developing under IGEP Technology]]'''
 
* Cross compiling (hello world program)
* SDK tools
* Linux distributions
* Mux configuration
* Kernel modules
* Run at startup applications
* The main components of the preinstalled software of your IGEP0020:
** Bootloaders
** Kernel
** Root File System
** Kernel Modules
[[Category:IGEP0020]]
[[Category:Tutorials]]
0
edits