ROM File System Building

 

Warning: Building ROM FS is for experienced users only. Improper operation will make your system unusable.

 

ROM disk file system is the image of ¡¥romdisk¡¦ directory. Normally, user programs should be placed in /flash/bin directory which has much larger free space and is easier to update. There¡¦s no need for users to rebuild the ROM file system.

 

We don't recommend users to do it. However, for some reasons, if one really wants to build his own ROM FS, here it is:

 

Manage Files in "romdisk"

 

Directories in romdisk

bin/

dev/

etc/

flash/

proc/

sd/

swap/

tmp/

usb/

usr/

var/

Root file system of the target device.

 

File structure in this directory will be converted into a single image 'romfs.zip' which can be stored in flash ROM. The space limit of this ROM disk is 1 MB (before compression).

 

 

Convert "romdisk" to romfs.zip

 

*         Change working directory to "image".

*         Build it by ¡§make¡¨

 

The building process generate "romfs.img", and further compress it into "romfs.zip".

 

[john@linux image]$ make

genromfs -d ../romdisk -f romfs.img

zip romfs.zip romfs.img

updating: romfs.img (deflated 45%)

ls -l romfs.*

-rw-r--r--    1 john users      816128 Mar 27 04:28 romfs.img

-rw-r--r--    1 john users      446324 Mar 27 04:28 romfs.zip

rm romfs.img

[john@linux image]$

 

Contents of directory "image"

 

linux.zip

Linux system compressed binary

romfs.zip

ROM file system compressed binary

rom.bin

saved ROM image

bootloader.bin

boot loader

Makefile

script for generating ROM

 

 

Update ROM FS with eUpg90 Utility

 

Use ¡§eUpg90 ¡Vromfs¡¨ command to download ¡§romfs.zip¡¨ to the device. See eUpg90 section.