Difference between revisions of "Getting started with IGEPv2"

From IGEP - ISEE Wiki

Jump to: navigation, search
m (Log into IGEPv2 via Ethernet interface)
m (Log into IGEPv2 via Ethernet interface)
Line 125: Line 125:
  
 
== Log into IGEPv2 via Ethernet interface ==
 
== Log into IGEPv2 via Ethernet interface ==
 +
{{Message/Information Message|title=|message=In non-Linux operating system, use [http://labs.isee.biz/index.php/IGEP_SDK_Virtual_Machine IGEP SDK Virtual Machine] to connect to IGEP COM MODULE via USB or read article [http://labs.isee.biz/index.php/Using_USB_ethernet_gadget_to_communicate "Using USB ethernet gadget to communicate"]}}
  
'''Configure'''
+
Open a Terminal session and set the IP of the Ethernet interface in which IGEP is connected (for example eth0):
  
You can log into IGEP via many interfaces, such Serial, Wifi, USB-Ethernet Gadget, etc.
+
*In the file /etc/network/interfaces, you should add:
 +
<pre>iface eth0 inet dhcp
 +
iface eth0:0 inet static
 +
address 192.168.5.10
 +
netmask 255.255.255.0</pre>
 +
*Type in a terminal:
 +
<pre>sudo ifup eth0:0</pre>
 +
*Revise that:
 +
<pre>jdoe@ubuntu ~ $ ifconfig
 +
...
 +
eth0:0    Link encap:Ethernet HWaddr 08:00:27:ad:0c:ad 
 +
          inet addr:192.168.5.10  Bcast:0.0.0.0  Mask:255.255.255.0
 +
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 +
...</pre>
 +
*Connect to IGEP device
  
In this tutorial we are going to connect to the board via its Ethernet interface.
+
jdoe@ubuntu ~ $ ssh root@192.168.5.1
  
By default, all IGEP Processor boards have a '''static IP in their Ethernet interface which is 192.168.5.1'''
 
 
First of all, adjust the IP of your PC in order to be in the right subnet of IGEP, for example: 192.168.5.10
 
 
'' Linux: ''
 
 
'''NOTE:''' You don't need to configure anything if you use [http://labs.isee.biz/index.php/IGEP_SDK_Virtual_Machine IGEP SDK Virtual Machine]
 
 
If you are running Linux in your PC, open a Terminal session and set the IP of the Ethernet interface in which IGEP is connected (for example eth0):
 
 
Run the following commands:
 
 
sudo ifconfig eth0 down
 
sudo ifconfig eth0 192.168.5.10 up
 
 
'' Windows: ''
 
 
If you are running Windows in your PC, depending of your OS version and your configuration the steps might be slightly different:
 
 
# Click the '''Start button''' and select the '''Control Panel'''
 
# Go to '''Network configuration'''
 
# Right click the interface where IGEP is connected (for example: Local Network) and select '''Propierties'''
 
# Select the '''TCP/IP Internet Protocol''' configuration and click the '''Propierties button'''
 
# Set a static IP (192.168.5.10) and 255.255.255.0 as network submask
 
# Close all the dialogs
 
 
 
'''Connect'''
 
 
Now you are ready to log into IGEP via its Ethernet interface. You just need a program with a SSH client.
 
 
In this tutorial we are going to use Putty, as it is a multi-platform program.
 
 
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]]
 
 
Follow these steps to connect to IGEP:
 
 
# Select the '''SSH''' at connection type.
 
# Insert the '''IP address of the target''' (IGEP default IP: 192.168.5.1)
 
# Ensure that the port is set to '''22''', the default for SSH communications.
 
# Finally, press the '''Open button''' to start the SSH session.
 
 
If everything goes right, you will be able to access to an IGEP console from your PC via Ethernet.
 
 
To login IGEP use:
 
 
user:root
 
password: (no password for this user: press return)
 
 
 
''' Know more '''
 
 
In the pre-installed software, the default configuration for all the network interfaces is:
 
 
*eth0 - 192.168.5.1
 
*eth0:0 - via dhcp
 
*wlan0 - 192.168.6.1
 
*usb0 - 192.168.7.1
 
 
 
By default, the IP of the Ethernet interface is 192.168.5.1
 
 
Once you are logged in, you can see which interfaces are up in IGEP.
 
 
In the SSH console, run:
 
 
ifconfig
 
 
It will list all the active network interfaces.
 
 
If you want to change, for example, ''eth0'' you can use the following commands (if you do it now, it will close the SSH session, as it will change the Ethernet IP):
 
 
ifconfig eth0 < new IP >
 
 
In order to make permanent changes (save the configuration upon next start), you will have to edit the /etc/network/interfaces file in your IGEP.
 
 
{{Navigation/IGEP Technology Guides/Getting Started/Ending
 
{{Navigation/IGEP Technology Guides/Getting Started/Ending
 
|Next_Step={{#lst:Template:Links|IGEPv2_Community_Guides_2}}
 
|Next_Step={{#lst:Template:Links|IGEPv2_Community_Guides_2}}

Revision as of 13:34, 29 August 2012



Overview

This is the 1/3 chapter of IGEPv2 Tutorial Guide.

In this first chapter, we will learn how to connect some peripherals, how to boot IGEPv2 and how to log into IGEPv2 via Ethernet.

Requirements

In this tutorial we are going to use the following peripherals:

  • IGEPv2 with its power supply
  • A monitor compatible with DVI-D
  • A network cable.
  • An USB keyboard and a mouse
  • A PC

Getting started


Connect a DVI monitor

Basic

IGEPv2 has a HDMI connector with a DVI-D interface

Connect IGEPv2 to a DVI-D compatible monitor.


Know more

The Digital Visual Interface (DVI) is a video standard interface designed to provide very high visual quality on digital display devices such as flat panel LCD computer displays and digital projectors. It is partially compatible with the High-Definition Multimedia Interface (HDMI) standard in digital mode (DVI-D), and VGA in analog mode (DVI-A).

Note that your monitor should be able to support 1024 x 768 @ 60 Hz, which is the default resolution in the preinstalled software.


Connect an Ethernet Network cable

Basic

Plug an Ethernet cable between IGEPv2 and your client machine (or any other network device with ethernet connectivity).


Know more

IGEPv2 comes with one 10/100BASE-TX Ethernet ports.

In the following chapters we will use ethernet to access IGEPv2 with IP configuration, send files, etc.


Connect USB devices (keyboard and mouse)

Basic

Connect a USB hub to the USB type-A connector (USB Host) in IGEPv2.

Then plug a USB keyboard and USB mouse to the USB hub.


Know more

Only USB 2.0 devices will work in IGEPv2, so if you connect any USB mouse 1.0 into the USB host connector without using a USB hub 2.0, it will not work.


Power up IGEPv2 (5V DC)

Basic

Once you have connected the peripherals you can apply power to your IGEPv2 (5V DCC).


Know more

Led's sequence:

When you power up your board, you will also see how two red LED's light up while the system boots (the sequence will be different based on software version). After a few seconds, there is a fixed green led on.


Boot priority:

IGEPv2 can boot from many other devices (listed by priority):

  1. from USB
  2. from UART3
  3. from a MMC/MicroSD card
  4. from OneNAND memory

As we haven't set any other boot device rather than the oneNAND (the IGEPv2 flash memory) the system boots from it.

But, for example, if as the MicroSD card has an upper priority than the flash, if you plug a MicroSD card into IGEPv2 (with the right configuration on it), it will boot from the MicroSD card.

Test the Demo software distribution

Basic

When IGEPv2 powers up, the desktop of the preinstalled software will appear on the screen.

You can use the mouse and the keyboard to test the demo applications.

Screenshot of the Desktop of the pre-installed software


Know more

All IGEP Processor Boards, including IGEPv2, have a pre-installed software in its flash memory which consists of a minimal Linux-based distribution with a lite X Window System and GNOME Mobile based applications created with Poky Platform Builder.

In the next chapter of this tutorial guide, we will learn how to update the pre-installed software of your board.

Log into IGEPv2 via Ethernet interface

Information.jpg In non-Linux operating system, use IGEP SDK Virtual Machine to connect to IGEP COM MODULE via USB or read article "Using USB ethernet gadget to communicate"

Open a Terminal session and set the IP of the Ethernet interface in which IGEP is connected (for example eth0):

  • In the file /etc/network/interfaces, you should add:
iface eth0 inet dhcp 
iface eth0:0 inet static
address 192.168.5.10
netmask 255.255.255.0
  • Type in a terminal:
sudo ifup eth0:0
  • Revise that:
jdoe@ubuntu ~ $ ifconfig
...
eth0:0    Link encap:Ethernet  HWaddr 08:00:27:ad:0c:ad  
          inet addr:192.168.5.10  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
...
  • Connect to IGEP device
jdoe@ubuntu ~ $ ssh root@192.168.5.1


You have successfully completed this chapter of the guide.


Continue this tutorial guide: [[What can I do with IGEPv2|2/3 - What can I do with IGEPv2]]
Igep forum.png If you have any question, don't ask to ask at the IGEP Community Forum or the IGEP Community Chat Irc.png