How To Install
From GeoSharing
Line 13: | Line 13: | ||
An important thing to notice is that the USB connectivity is considered as an ethernet connection by both the Neo FreeRunner and the computer. This implies the use of IP addresses to identify both ends of the connection. By default, the Neo FreeRunner has a static IP address: '''192.168.0.202''' and nothing must be done to change that. The goal is then to configure the computer to have an IP address in the same sub-network than the Neo FreeRunner to be able to communicate with it. | An important thing to notice is that the USB connectivity is considered as an ethernet connection by both the Neo FreeRunner and the computer. This implies the use of IP addresses to identify both ends of the connection. By default, the Neo FreeRunner has a static IP address: '''192.168.0.202''' and nothing must be done to change that. The goal is then to configure the computer to have an IP address in the same sub-network than the Neo FreeRunner to be able to communicate with it. | ||
- | + | 1) The first thing to do on the computer is to create an alias for the IP address of the Neo FreeRunner. Edit the file '''/etc/hosts''' by adding the line: | |
192.168.0.202 openmoko | 192.168.0.202 openmoko | ||
- | + | 2) There exists two possible methods to set up an ethernet connection between both devices via the USB cable. On the computer, it is possible to choose: | |
- | + | ==== Via the network manager ==== | |
- | + | The easiest way to set up the connection with the Openmoko is to create a new connection (called Openmoko here) in the wired networks tab of the computer network manager. For this new connection, choose a static (manual) IP address: '''192.168.0.200'''. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | [[File:Screenshot-Editing Openmoko.png|350px]] | |
- | + | ||
- | + | ||
- | + | ==== Without the network manager ==== | |
- | + | - On the computer, open the file located at the following location: '''/etc/network/interfaces''' and add the following lines at the end of the file: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | # The Openmoko network interface | |
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.0.200 | ||
+ | netmask 255.255.255.0 | ||
- | + | - On the computer, restart the network service by running the following command as root: | |
- | + | # /etc/init.d/networking restart | |
- | + | 3) If an operational OS is running a SSH daemon on the Neo FreeRunner, it is possible to establish an SSH connection from the computer to the root session of the Neo FreeRunner. | |
- | + | $ ssh root@openmoko | |
- | + | root@om-gta02 ~ # | |
- | \ | + | If it is not the case (i.e. there is no SSH d\ae mon or no operating system at all), the Neo FreeRunner can be flashed with, for example, the operating system used in the scope of the GeoSharing project: SHR. |
- | + | ||
- | + | ||
- | + | === Flashing the SHR operating system on the Neo FreeRunner === | |
+ | The easiest way to flash the Neo FreeRunner is to use '''neoTool''' on the computer. It is mandatory to install '''dfu-utils''' via the Synaptic Package Manager of the computer before running '''neoTool'''. The version of neoTool that have been used to realise this manual is the version 1.3. | ||
- | + | Before going any further, the Neo FreeRunner must be connected to the computer with the USB cable, the IP address of each device must have been previously configured and the Neo FreeRunner must be booted on the NOR memory (POWER + AUX buttons). | |
- | + | ||
- | + | ||
- | + | 1) The first step is to copy the bash script that can be found at http://users.on.net/~antisol/neotool into an empty file on the computer. Rename this file '''neoTool''' and give it the execution rights. | |
- | + | ||
- | + | ||
- | + | $ chmod u+x neoTool | |
- | + | 2) The second step is to run neoTool on the computer with root privileges. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | $ sudo ./neoTool | |
- | + | ||
- | + | 3) The application is now running and the interface looks like: | |
- | + | ||
- | + | [[File:Neotool-1.png|150px]] | |
+ | |||
+ | 4) On the computer, download the latest version of the SHR operating system. The version of SHR used to realise this manual is the version SHR-testing 2.6.29-oe11. Images of the SHR operating system can be found at http://build.shr-project.org/shr-testing/images/om-gta02/. Two files are required: | ||
+ | * lite-om-gta02.jffs2 | ||
+ | * uImage-*.bin | ||
- | + | 5) In neoTool (which is running on the computer), select the second item '''Flash your Neo''' and click '''OK'''. The interface looks like: | |
+ | |||
+ | [[File:Neotool-2.png|150px]] | ||
+ | |||
+ | On the next screen, don't change anything and click `OK'. | ||
- | + | 6) The path to the *.jffs2 and the *.bin files are respectively asked. | |
- | + | 7) Click on the OK button of neoTool to launch the flashing process. | |
- | + | 8) When the process is done, the Neo FreeRunner restarts automatically and the new operating system is ready to be used. | |
- | + | ||
- | |||
- | |||
- | |||
- | + | === Internet connectivity === | |
When the operating system is installed and running, the configuration steps required in order to share the internet connectivity of the computer with the Neo FreeRunner via the USB cable are the followings. These steps must be done on the computer connected to the Neo FreeRunner. | When the operating system is installed and running, the configuration steps required in order to share the internet connectivity of the computer with the Neo FreeRunner via the USB cable are the followings. These steps must be done on the computer connected to the Neo FreeRunner. | ||