[ECOS] Re: create a /dev/flash1 entry
Gary Thomas
gary@mlbassoc.com
Thu Jan 27 15:14:00 GMT 2005
Note: this was sent to the eCos development list (which is more
about development than user questions). I have redirected it to
the appropriate user discussion list.
On Thu, 2005-01-27 at 06:01 -0800, Raghu wrote:
> Hi,
>
> I have added CYGPKG_FS_JFFS2 package and its dependant
> packages. And trying to execute "fseek1.c" test app.
> But with no results, how do we create the
> "/dev/flash1" entry i.e.
> CYGDAT_IO_FLASH_BLOCK_DEVICE_NAME_1
You need to do some configuration in the FLASH driver for this.
I like to have JFFS2 discover the partition info using RedBoot's
FIS. Thus, I create a FIS image 'JFFS2' and then enable it using
the attached .ecm file.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
-------------- next part --------------
cdl_configuration eCos {
package CYGPKG_FS_JFFS2 current ;
package CYGPKG_IO_FLASH current ;
package CYGPKG_LINUX_COMPAT current ;
package CYGPKG_COMPRESS_ZLIB current ;
package CYGPKG_CRC current ;
};
cdl_component CYGNUM_IO_FLASH_BLOCK_CFG_FIS_1 {
user_value 1
};
cdl_component CYGDAT_IO_FLASH_BLOCK_FIS_NAME_1 {
user_value "\"JFFS2\""
};
cdl_option CYGOPT_FS_JFFS2_DEBUG {
user_value 0
};
-------------- next part --------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list