How to program FLASH memory on board with ARM9 EP9302 PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Dominik   
Sunday, 30 January 2011 21:58

The article presents the method for modification of the filesystem on the Olimex EP9302 board. You should have working tftp server and rs232 cable.

1. Unzip ramdisk.gz (you can find it on CD given by producer):

    bash> gunzip -v ramdisk.gz

2. mount image on /mnt/tmp:

bash> sudo mount -o loop ramdisk /mnt/tmp

3. Modify your filesystem (/mnt/tmp).

4. Umount /mnt/tmp:

bash> sudo umount /mnt/tmp

5. Compress ramdisk:

bash> gzip -v9 ramdisk

6. Connect rs232 cable and run RedBoot (ctrl+C before the Linux starts)

7. Set appropriate network address (-l for board address, -h for your computer ip):

RedBoot> ip_address -l 150.254.46.59 -h 150.254.46.58

8. You can check if everything is correct:

RedBoot> ping -n 5 -h 150.254.46.58

If you can see:

PING - received 5 of 5 expected

everything is correct.

9. List your FLASH memory:

RedBoot> fis list

You can see something which is similar to:

Name
FLASH addr Mem addr
Length
Entry point
RedBoot 0x60000000 0x60000000 0x00040000 0x00000000
RedBoot config 0x60FC0000 0x60FC0000 0x00001000 0x00000000
FIS directory 0x60FE0000 0x60FE0000 0x00020000 0x00000000
netbsd 0x60040000 0x00200000 0x00500000 0x00200000
netbsd_install 0x60540000 0x00200000 0x00500000 0x00200000
ramdisk.gz 0x60A40000 0x00800000 0x00300000 0x00800000
zImage 0x60D40000 0x00080000 0x000E0000 0x00080000

The most interesting row is "ramdisk.gz"

10. download image (you should have working tftp server):

RedBoot> load -v -r -m tftp -h 150.254.46.58 ramdisk.gz -b 0x00800000

11. Program FLASH memory (address and data length you can find in memory table -  'fis list'):

RedBoot> fis create -b 0x00800000 -l 0x00300000 ramdisk.gz

Done!

 
Polish (Poland)English (United Kingdom)

Users online

We have 6 guests online
walkingrobots, Powered by Joomla!