Flashing the Neo FreeRunner

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Step 2. Flashing the Kernel: Make it a bit clearer how to get the unit in flah mode.)
(Added instructions for a Windows host.)
Line 8: Line 8:
 
===Step 1. Download the DFU-util===
 
===Step 1. Download the DFU-util===
  
You can download the flashing tool from:  
+
==== GNU/Linux ====
 +
 
 +
You can download the flashing tool for a GNU/Linux host from:  
 
http://downloads.openmoko.org/releases/Freerunner/dfu-util
 
http://downloads.openmoko.org/releases/Freerunner/dfu-util
  
Line 16: Line 18:
 
Afterwards you have to change the rights on the file:
 
Afterwards you have to change the rights on the file:
 
  chmod a+x dfu-util
 
  chmod a+x dfu-util
 +
 +
==== Windows ====
 +
 +
You can download the flashing tool for a Windows host from: https://projects.openmoko.org/frs/?group_id=166 (see installation instructions at [[Dfu-util-windows]])
  
 
===Step 2. Flashing the Kernel===
 
===Step 2. Flashing the Kernel===
Line 26: Line 32:
 
The Neo FreeRunner needs to be at the NOR uBoot menu for flashing. For more information on booting, see [[Booting the Neo FreeRunner| booting the Neo Freerunner]]. Log into the NOR uBoot menu and select Set console to USB. Now you will be able to flash, make backups of your Freerunner or query the Freerunner with dfu-util.
 
The Neo FreeRunner needs to be at the NOR uBoot menu for flashing. For more information on booting, see [[Booting the Neo FreeRunner| booting the Neo Freerunner]]. Log into the NOR uBoot menu and select Set console to USB. Now you will be able to flash, make backups of your Freerunner or query the Freerunner with dfu-util.
  
'''Then''', connect your Neo to the GNU/Linux host via USB cable.
+
'''Then''', connect your Neo to the GNU/Linux or Windows host via USB cable.
  
 
You can download the kernel from  
 
You can download the kernel from  
 
http://downloads.openmoko.org/releases/Freerunner/
 
http://downloads.openmoko.org/releases/Freerunner/
 +
 +
----
 +
==== GNU/Linux ====
  
 
Type in the following command in the terminal on a GNU/Linux host. On some systems you need to be root before this will work and on Ubuntu you must preface the command with "sudo" or you will get the following error: "Cannot claim interface: could not claim interface 2: Operation not permitted"
 
Type in the following command in the terminal on a GNU/Linux host. On some systems you need to be root before this will work and on Ubuntu you must preface the command with "sudo" or you will get the following error: "Cannot claim interface: could not claim interface 2: Operation not permitted"
Line 35: Line 44:
 
  ./dfu-util -a (partion name) -R -D (download image file name)
 
  ./dfu-util -a (partion name) -R -D (download image file name)
  
ex:
+
or:
  
 
  sudo ./dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin
 
  sudo ./dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin
 +
 +
==== Windows ====
 +
 +
Type in the following command in the console on a Windows host:
 +
 +
dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin
 +
 +
----
  
 
Press Enter to execute the command.
 
Press Enter to execute the command.
Line 57: Line 74:
 
You can download the root filesystem from:
 
You can download the root filesystem from:
 
http://downloads.openmoko.org/releases/Freerunner/
 
http://downloads.openmoko.org/releases/Freerunner/
 +
 +
----
 +
 +
==== GNU/Linux ====
  
 
Type the following command in the terminal of a GNU/Linux host. On some systems you will need to be root.
 
Type the following command in the terminal of a GNU/Linux host. On some systems you will need to be root.
  
 
  ./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2
 
  ./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2
 +
 +
==== Windows ====
 +
 +
Type the following command in the console of a Windows host.
 +
 +
dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2
 +
 +
----
  
 
When flashing succeeds the following will be shown:
 
When flashing succeeds the following will be shown:

Revision as of 20:27, 25 July 2008

As Openmoko development continues, Openmoko regularly releases updated versions of the Openmoko root filesystem, the kernel, and the U-Boot. These may be programmed into the Flash memory of Neo FreeRunner. You can use the USB cable and Openmoko provided tool to flash Neo FreeRunner.

NOTE: The Openmoko software team builds images daily. If you want to use the latest images, you can download the image from the daily build, but we recommend you download the most stable image from http://downloads.openmoko.org/releases/Freerunner/. Images here have been tested by the test team.

See Latest Images for more information about the different images available.


NOTE: If you have a working image that you're happy with but want to try something different, you should probably do a Pre-Flash Backup, although it looks like the method on that page may not entirely work.


Contents

Step 1. Download the DFU-util

GNU/Linux

You can download the flashing tool for a GNU/Linux host from: http://downloads.openmoko.org/releases/Freerunner/dfu-util

On the GNU/Linux host you can use the following command to download the dfu-util:

wget http://downloads.openmoko.org/releases/Freerunner/dfu-util

Afterwards you have to change the rights on the file:

chmod a+x dfu-util

Windows

You can download the flashing tool for a Windows host from: https://projects.openmoko.org/frs/?group_id=166 (see installation instructions at Dfu-util-windows)

Step 2. Flashing the Kernel

Log into U-Boot in NOR Flash, connect your Neo with Linux Host via USB cable

The Neo FreeRunner needs to be at the NOR uBoot menu for flashing. For more information on booting, see booting the Neo Freerunner. Log into the NOR uBoot menu and select Set console to USB. Now you will be able to flash, make backups of your Freerunner or query the Freerunner with dfu-util.

Then, connect your Neo to the GNU/Linux or Windows host via USB cable.

You can download the kernel from http://downloads.openmoko.org/releases/Freerunner/


GNU/Linux

Type in the following command in the terminal on a GNU/Linux host. On some systems you need to be root before this will work and on Ubuntu you must preface the command with "sudo" or you will get the following error: "Cannot claim interface: could not claim interface 2: Operation not permitted"

./dfu-util -a (partion name) -R -D (download image file name)

or:

sudo ./dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin

Windows

Type in the following command in the console on a Windows host:

dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin

Press Enter to execute the command.

When flashing succeeds the following will be shown:

status(0) = No error condition is present
Done!
NOTE: The meaning of the parameters you specified:

-a --alt alt Specify the altsetting of the DFU interface by name or by number
-R --reset Issue USB Reset signalling once we're finished
-D --download file Write firmware from<file> into device


Step 3. Flashing the Root Filesystem

You can download the root filesystem from: http://downloads.openmoko.org/releases/Freerunner/


GNU/Linux

Type the following command in the terminal of a GNU/Linux host. On some systems you will need to be root.

./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2

Windows

Type the following command in the console of a Windows host.

dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2

When flashing succeeds the following will be shown:

status(0) = No error condition is present
Done!
Personal tools

As Openmoko development continues, Openmoko regularly releases updated versions of the Openmoko root filesystem, the kernel, and the U-Boot. These may be programmed into the Flash memory of Neo FreeRunner. You can use the USB cable and Openmoko provided tool to flash Neo FreeRunner.

NOTE: The Openmoko software team builds images daily. If you want to use the latest images, you can download the image from the daily build, but we recommend you download the most stable image from http://downloads.openmoko.org/releases/Freerunner/. Images here have been tested by the test team.

See Latest Images for more information about the different images available.


NOTE: If you have a working image that you're happy with but want to try something different, you should probably do a Pre-Flash Backup, although it looks like the method on that page may not entirely work.


Step 1. Download the DFU-util

GNU/Linux

You can download the flashing tool for a GNU/Linux host from: http://downloads.openmoko.org/releases/Freerunner/dfu-util

On the GNU/Linux host you can use the following command to download the dfu-util:

wget http://downloads.openmoko.org/releases/Freerunner/dfu-util

Afterwards you have to change the rights on the file:

chmod a+x dfu-util

Windows

You can download the flashing tool for a Windows host from: https://projects.openmoko.org/frs/?group_id=166 (see installation instructions at Dfu-util-windows)

Step 2. Flashing the Kernel

Log into U-Boot in NOR Flash, connect your Neo with Linux Host via USB cable

The Neo FreeRunner needs to be at the NOR uBoot menu for flashing. For more information on booting, see booting the Neo Freerunner. Log into the NOR uBoot menu and select Set console to USB. Now you will be able to flash, make backups of your Freerunner or query the Freerunner with dfu-util.

Then, connect your Neo to the GNU/Linux or Windows host via USB cable.

You can download the kernel from http://downloads.openmoko.org/releases/Freerunner/


GNU/Linux

Type in the following command in the terminal on a GNU/Linux host. On some systems you need to be root before this will work and on Ubuntu you must preface the command with "sudo" or you will get the following error: "Cannot claim interface: could not claim interface 2: Operation not permitted"

./dfu-util -a (partion name) -R -D (download image file name)

or:

sudo ./dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin

Windows

Type in the following command in the console on a Windows host:

dfu-util -a kernel -R -D uImage-2.6.24+git20080424-om-gta02.bin

Press Enter to execute the command.

When flashing succeeds the following will be shown:

status(0) = No error condition is present
Done!
NOTE: The meaning of the parameters you specified:

-a --alt alt Specify the altsetting of the DFU interface by name or by number
-R --reset Issue USB Reset signalling once we're finished
-D --download file Write firmware from<file> into device


Step 3. Flashing the Root Filesystem

You can download the root filesystem from: http://downloads.openmoko.org/releases/Freerunner/


GNU/Linux

Type the following command in the terminal of a GNU/Linux host. On some systems you will need to be root.

./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2

Windows

Type the following command in the console of a Windows host.

dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2

When flashing succeeds the following will be shown:

status(0) = No error condition is present
Done!