Difference between revisions of "Update the PRE-INSTALLED software image to a current release"

From IGEP - ISEE Wiki

Jump to: navigation, search
(update article for downloading latest firmware.)
Line 1: Line 1:
 +
<span style="color: rgb(255, 0, 0);">
 +
'''Important NOTE:''' This software is distributed in the hope that it will be useful, but '''WITHOUT ANY WARRANTY'''; without even the implied warranty of '''MERCHANTABILITY''' or '''FITNESS FOR A PARTICULAR PURPOSE'''.
 +
</span>
 +
 +
* The default firmware provided is a minimal Linux-based distribution with a lite X Window System and GNOME Mobile based applications created with Poky Platform Builder.
 +
* This How-To is meant to be a starting point for people to learn create a SD card with latest firmware available and if the user want write to the flash memory for any IGEP devices as quickly and easily as possible.
 +
* Note that this How-To was tested with an Ubuntu 10.04 host machine, but most of the contents are valid also for other GNU/Linux distributions. We do not issue any guarantee that this will work on other distributions.
 +
* This How-To will start out by creating a bootable SD card with latest firmware image.
 +
* Next, we will cover how to write the firmware image to the flash memory from the SD card.
 +
 
= How to create a SD-card with latest software image =
 
= How to create a SD-card with latest software image =
  
= How to flash the latest software image =
+
The first thing you'll do is download latest firwmare
 +
 
 +
wget http://downloads.igep.es/binaries/firmware/poky-firmware-3.3.1-6.tar.gz
 +
 
 +
Next, untar the firmware and enter to the directory
 +
 
 +
tar xzf poky-firmware-3.3.1-6.tar.gz
 +
cd poky-firmware-3.3.1-6/
 +
 
 +
Insert your SD card into the host machine (the machine you downloaded the firmware), and run following command
 +
 
 +
./poky-media-create --mmc [device] --binary poky-image-sato-igep00x0-20110803124250.tar.gz --machine [machine]
 +
 
 +
where:
 +
* [device] is the SD card device name
 +
* [machine] is the machine name, options are
 +
** igep0020
 +
** igep0030
  
(obsolete)
+
Finally plug the SD card into IGEP device and power up your board.
  
With this kernel the partitions looks like,
+
= How to flash the latest software image =
  
<pre>
+
Now you have a booted board with latest firmware running from SD card, you can write the firmware to the flash memory.
# cat /proc/mtd
 
dev:    size  erasesize  name
 
mtd0: 00080000 00040000 "X-Loader"
 
mtd1: 00180000 00040000 "U-Boot"
 
mtd2: 00080000 00040000 "U-Boot Env"
 
mtd3: 00300000 00040000 "Kernel"
 
mtd4: 1fa80000 00040000 "File System"
 
</pre>
 
To flash files to mtd partitions just use the nandwrite program. For example, to flash the firmware factory v3.2.1-0 download from
 
  
*http://www.igep.es/downloads/01-ISEE_Products/IGEPv2/SW_Releases/binaries/firmware/firmware-poky-image-sato-igep0020-3.2.1-0.tar.gz
+
Enter to the IGEP device using root as login name and an empty password, enter to the /opt/firmware an run the ./flash script
  
and copy to target directory /home/root in your board, then follow next steps
+
cd /opt/firmware
 +
./flash
  
<pre>
+
When finish, unplug the SD card and reboot the board, enjoy the new firmware running from flash memory.
# cd /home/root/firmware-factory-igep0020-3.2.1-0
 
# for i in 0 1 2 3 4; do flash_eraseall /dev/mtd${i}; done
 
# nandwrite -p /dev/mtd0 x-load-ddp-1.4.2-2.igep0020-flash.bin.ift
 
# nandwrite -p /dev/mtd1 u-boot-arm-2009.11-1.igep0020.bin
 
# nandwrite -p /dev/mtd2 u-boot-environment.bin
 
# nandwrite -p /dev/mtd3 uImage-2.6.28-r4-igep0020-20100321091933.bin
 
# nandwrite -p /dev/mtd4 poky-image-sato-igep0020-20100321084218.rootfs.jffs2
 
</pre>
 
Restart your board and enjoy your new firmware. That's all folks.
 
  
 
[[Category:Software]]
 
[[Category:Software]]

Revision as of 18:16, 3 August 2011

Important NOTE: This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • The default firmware provided is a minimal Linux-based distribution with a lite X Window System and GNOME Mobile based applications created with Poky Platform Builder.
  • This How-To is meant to be a starting point for people to learn create a SD card with latest firmware available and if the user want write to the flash memory for any IGEP devices as quickly and easily as possible.
  • Note that this How-To was tested with an Ubuntu 10.04 host machine, but most of the contents are valid also for other GNU/Linux distributions. We do not issue any guarantee that this will work on other distributions.
  • This How-To will start out by creating a bootable SD card with latest firmware image.
  • Next, we will cover how to write the firmware image to the flash memory from the SD card.

How to create a SD-card with latest software image

The first thing you'll do is download latest firwmare

wget http://downloads.igep.es/binaries/firmware/poky-firmware-3.3.1-6.tar.gz

Next, untar the firmware and enter to the directory

tar xzf poky-firmware-3.3.1-6.tar.gz
cd poky-firmware-3.3.1-6/

Insert your SD card into the host machine (the machine you downloaded the firmware), and run following command

./poky-media-create --mmc [device] --binary poky-image-sato-igep00x0-20110803124250.tar.gz --machine [machine]

where:

  • [device] is the SD card device name
  • [machine] is the machine name, options are
    • igep0020
    • igep0030

Finally plug the SD card into IGEP device and power up your board.

How to flash the latest software image

Now you have a booted board with latest firmware running from SD card, you can write the firmware to the flash memory.

Enter to the IGEP device using root as login name and an empty password, enter to the /opt/firmware an run the ./flash script

cd /opt/firmware
./flash

When finish, unplug the SD card and reboot the board, enjoy the new firmware running from flash memory.