Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

What can I do with IGEPv2

75 bytes removed, 19:08, 23 April 2012
m
no edit summary
{| cellspacing="0" cellpadding="5" border="1" align="center" width="100%" style="text-align: left;"
|-
| bgcolor="#cccccc" |'''What can I do with IGEP0020'''IGEPv2 - Part 2/3''''''
|-
| If It is recommended that you have '''successfully completed follow the [[Getting Started with IGEP0020 board{{#lst:Template:Links|IGEPv2_Community_Guides_1}}|first chapter of this guideprevious chapters]]''', you can continue of this guide before continuing with this tutorial guide about IGEP0020.
|}
{| cellspacing="0" cellpadding="5" border="1" align="center" style="text-align: left;"
|-
| bgcolor="#cccccc" colspan="3" | '''OverviewIGEP Technology Devices Guides - Part 2/3 - Summary'''
|-
| [[Image:Igep0020.jpg{{#lst:Template:Links|IGEPv2_Image}}|250px|center|link=Category{{#lst:IGEP0020Template:Links|IGEPv2_Community_MainPage}}]]
|-
|'''1) [[What can I do with IGEP0020#Booting and setting up|Booting up IGEP0020IGEPv2]]'''
|-
|'''2) [[What can I do with IGEP0020#Updating the pre-installed software|Updating the pre-installed software]]'''
|-
|'''3) [[What can I do with IGEP0020#Flashing the software image|Flashing the latest firmware to the IGEP0020 IGEPv2 flash memory]]'''
|-
|'''4) [[What can I do with IGEP0020#Connect to IGEP0020 IGEPv2 via network interfaces|Connect to IGEP0020 IGEPv2 via network interfaces]]'''
|-
|'''5) [[What can I do with IGEP0020#Basic instructions|Basic instructions]]'''
|-
|'''6) [[What can I do with IGEP0020#Send a file between a PC and IGEP0020IGEPv2|Send a file between a PC and IGEP0020IGEPv2]]'''
|-
|'''7) [[What can I do with IGEP0020#How to handle the gpio-LED's|Handle IGEP0020 LEDIGEPv2's]]'''
|-
|'''8) [[What can I do with IGEP0020#Mount a MicroSD card|Mount a MicroSD card]]'''
|-
|}
This distribution consists on a '''minimal Linux-based distribution''' with a lite X Window System and GNOME Mobile based applications created with '''Poky Platform Builder'''.
In the previous chapter of this tutorial, we have booted IGEP0020 IGEPv2 with its pre-installed software.
Once the board has booted up, it asks for a login in the serial debug port. You can log in into IGEP0020 IGEPv2 via the serial interface.
'''Boot priority'''
In fact, IGEP0020 IGEPv2 can boot from many other devices (listed by priority):
# from USB
As we haven't set any other boot device rather than the oneNAND (the IGEP0020 IGEPv2 flash memory) the system boots from it.
But, as '''the MicroSD card has an upper priority than the flash''', if you plug a MicroSD card (with the right configuration on it) to the MicroSD card reader, IGEP0020 IGEPv2 will boot from it and won't boot from the flash memory.
3) '''Create a MicroSD card''' in your external computer.
4) '''Plug the MicroSD card''' to IGEP0020 IGEPv2 and boot from it.
|}
Now you have downloaded a compressed file with the latest official firmware into the current directory (.tar.gz).
Next, we will use the application 'tar' to untar (uncompress) the donwloaded downloaded file. In the same Terminal session, type:
tar xzf poky-firmware-3.3.1-10.tar.gz
4) '''Plug the MicroSD card'''
Therefore, you are ready to try it. '''Plug the MicroSD card into IGEP0020IGEPv2''' and '''power up your board'''.
=== Flashing the software image ===
----
Now your IGEP0020 IGEPv2 has the latest firmware '''running from MicroSD card'''.
But you might want to write the firmware to the flash memory, so '''you won't need the MicroSD card when booting''' the board. So let's do it.
''Note: The following process is assuming that your host PC is connected to IGEP0020 IGEPv2 via the Serial Debug port. If not, read the Serial Port instructions in the [[Getting Started with IGEP0020 IGEPv2 board|previous chapter of this tutorial]].''
Enter to IGEP0020 IGEPv2 using:
* root as login name
* an empty password
The software provided by ISEE has a script that flashes the content of your MicroSD Card to the flash memory in your IGEP0020IGEPv2.
You have to run this script, that is located at /opt/firmware directory. Open a Terminal and run:
./flash.sh
This will last a few minutes. When it is ready, unplug the SD card from IGEP0020 IGEPv2 and reboot the board:
reboot
=== Connect to IGEP0020 IGEPv2 via network interfaces ===
----
| bgcolor="#cccccc" |'''Overview'''
|-
| 1) '''Plug an ethernet cable to IGEP0020IGEPv2
2) '''Connect via ethernet network''', SSH: root@192.168.x.x
|}
You can log into IGEP0020 IGEPv2 via many '''interfaces with network connectivity''', such ethernet, wifi, usb-ethernet gadget, etc.
In this tutorial we are going to connect via an ethernet cable. To to that, you need to set an IP in IGEP0020 IGEPv2 (host) and start a SSH session in your PC (client). Let's do it.
First of all, you will need:
Log into IGEP0020 IGEPv2 via the '''serial cable to the serial debug port in IGEP0020IGEPv2''', as you have done in the previous chapter of this tutorial guide.
Once you are logged in, run the following command:
ifconfig
This will '''list all the enabled network interfaces''' in your IGEP0020IGEPv2.
We are going to '''focus on 'eth0''''. This is the ethernet interface in your IGEP0020IGEPv2, which is the interface we will '''connect to from our host PC'''.
Connect the ethernet cable between your host PC and IGEP0020 IGEPv2 (or through any wired network such switch).
Now, let's '''set an static IP''' to this interface in IGEP0020IGEPv2, so we will be able to reach the target from the PC.
Type the following command in your serial console:
# Select the '''SSH''' at connection type.
# Next insert the '''IP address of the target'''. In this case, the IGEP0020 IGEPv2 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.
If everything goes right, you will be able to access to an IGEP0020 IGEPv2 console from your PC via ethernet.
=== Basic instructions ===
|}
IGEP0020 IGEPv2 is '''compatible with many Linux distributions'''. In this tutorial we are using Poky Linux, which is the pre-installed software from ISEE.
In case you are not familiar with Bash instructions, here comes some basic instructions to help you startup with the board.
First of all, '''log in to IGEP0020IGEPv2''' with a console from your host PC (via serial port or via SSH), as shown previous sections in this article. Remember the default settings:
login: root
password: (none: press return)
Once you are logged in IGEP0020IGEPv2, run the following commands:
cd /
./example.sh
You can edit this file (example.sh) with 'vi', the pre-installed text editor in IGEP0020IGEPv2.
vi example.sh
=== Send a file between a PC and IGEP0020 IGEPv2 ===
----
In a Linux host PC, you can use SCP (secure copy) via SSH to transfer files between IGEP0020 IGEPv2 and your host PC.
First of all, set an static IP to your Linux Host (for example, 192.168.6.3) and another IP within the subnet for IGEP0020 IGEPv2 (for example, 192.168.6.2).
First of all, you check the connectivity (From IGEP0020 IGEPv2 console):
ping 192.168.6.3
Press CTRL-C to stop the command.
Now let's transfer a file called original.file in your host PC to IGEP0020 IGEPv2 in /home/root/
In your Host PC open Terminal and type:
scp -r original.file root@192.168.6.2:/home/root/destination.file
You can repeat the process from the IGEP0020 IGEPv2 console, and transfer a file from IGEP0020 IGEPv2 to your Host PC.
=== How to handle the gpio-LED's ===
| bgcolor="#cccccc" |'''Overview'''
|-
| Using IGEP0020 IGEPv2 LED's with the associated platform device at /sys/devices/platform/leds-gpio/leds/
|}
IGEP0020 IGEPv2 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 the most simple feature in the board, but sometimes you may want LED's to be 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 IGEPv2 (via serial port or via SSH, as shown before), and run the following commands to turn LED's on:
<pre>echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/brightness
| bgcolor="#cccccc" |'''Overview'''
|-
| Follow the link to the extensive article: [[How_to_use_RS485_on_IGEP0020_board|How to use RS-485 on IGEP0020 IGEPv2 board]]
|}
When ever you think you want to stop recording just press CTRL+C
{{Navigation/IGEP Technology Devices Guides/What can I do/EndingNext Step|Name={{#lst:Template:Links|IGEPv2_Name}}|Community_MainPage={{#lst:Template:Links|IGEPv2_Community_MainPage}}|deviceNext_Step=IGEP0020[[Start developing under IGEP Technology]]}}
[[Category:IGEP Technology Devices Guides]]
[[Category:IGEP0020]]
[[Category:Work in progress]]
0
edits