Mercurial > ecos-v3_0-branch
comparison packages/fs/rom/current/doc/mk_romfs.txt @ 2524:8db3f8136a70
* doc/mk_romfs.txt (Usage): Remove documentation about obsolete
CYGNUM_FS_ROM_BASE_ADDRESS option, and replace with better
usage description.
| author | jlarmour |
|---|---|
| date | Thu, 14 Aug 2008 20:10:52 +0000 |
| parents | b939e9cada46 |
| children |
comparison
equal
deleted
inserted
replaced
| 2523:41caa79fe76e | 2524:8db3f8136a70 |
|---|---|
| 86 FIS directory 0x503E0000 0x503E0000 0x020000 0x00000000 | 86 FIS directory 0x503E0000 0x503E0000 0x020000 0x00000000 |
| 87 RomFs 0x50040000 0x01000000 0x000940 0x00000000 | 87 RomFs 0x50040000 0x01000000 0x000940 0x00000000 |
| 88 RedBoot> | 88 RedBoot> |
| 89 | 89 |
| 90 6. MAKE A NOTE OF THE ADDRESS IN FLASH THAT THE IMAGE IS LOADED AT. | 90 6. MAKE A NOTE OF THE ADDRESS IN FLASH THAT THE IMAGE IS LOADED AT. |
| 91 The ROMFS option 'CYGNUM_FS_ROM_BASE_ADDRESS' needs to be set to this | |
| 92 value in order to access the filesystem. | |
| 93 | |
| 94 | 91 |
| 92 This address can then be used in your program in order to mount the | |
| 93 filesystem. | |
| 94 | |
| 95 For example, to automatically mount the new romfs created above at | |
| 96 /rom, you can use the following macro in your application: | |
| 97 | |
| 98 MTAB_ENTRY( romfs_mte1, | |
| 99 "/rom", | |
| 100 "romfs", | |
| 101 "", | |
| 102 (CYG_ADDRWORD) 0x50040000 ); | |
| 103 | |
| 104 See the File I/O package documentation in the eCos Reference Manual | |
| 105 ("Writing a New Filesystem") for more information about the MTAB_ENTRY | |
| 106 macro. | |
| 107 | |
| 108 Alternatively, the filesystem can be dynamically mounted with a call | |
| 109 to mount() such as the following: | |
| 110 | |
| 111 err = mount( "0x50040000", "/rom", "romfs" ); |
