This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1000293] mk_romfs documentation mentions obsoleteCYGNUM_FS_ROM_BASE_ADDRESS option
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Thu, 14 Aug 2008 19:51:57 +0100
- Subject: [Bug 1000293] mk_romfs documentation mentions obsoleteCYGNUM_FS_ROM_BASE_ADDRESS option
- References: <bug-1000293-13@http.bugs.ecos.sourceware.org/>
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000293
Andrew Lunn <andrew.lunn@ascom.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrew.lunn@ascom.ch
--- Comment #2 from Andrew Lunn <andrew.lunn@ascom.ch> 2008-08-14 19:51:57 ---
RomFs 0x50040000 0x01000000 0x000940 0x00000000
RedBoot>
6. MAKE A NOTE OF THE ADDRESS IN FLASH THAT THE IMAGE IS LOADED AT.
- The ROMFS option 'CYGNUM_FS_ROM_BASE_ADDRESS' needs to be set to this
- value in order to access the filesystem.
-
+ Use this address in the MTAB_ENTRY macro in your program, e.g. to
+ mount your new romfs as /rom, you can use the following macro.
+ MTAB_ENTRY( romfs_mte1,
+ "/rom",
+ "romfs",
+ "",
+ (CYG_ADDRWORD) 0x01000000 );
This looks wrong. 0x01000000 is where it was in RAM before you copied it to
FLASH and it will no longer be there. You want to mount the copy in ROM, so i
would expect the mount macro to be:
MTAB_ENTRY( romfs_mte1,
"/rom",
"romfs",
"",
(CYG_ADDRWORD) 0x50040000 );
Comments please....
Andrew
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.