Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

confusions

Altera_Forum
Honored Contributor II
1,094 Views

1. Here is log outport by uclinux  

... 

0x00200000-0x00d00000 : "romfs/jffs2" 

 

0x00000000-0x00200000 : "loader/kernel" 

 

0x00d00000-0x00e00000 : "User1 configuration" 

 

0x00e00000-0x00f00000 : "User0 configuration" 

 

0x00f00000-0x01000000 : "safe configuration" 

... 

 

romfs/jffs2: is it romfs or jiffs2? Or romfs formated by jiffs2 ? 

 

2.  

<drivers>/mtd/maps/altera.c 

 

 .name =  "safe configuration",  .size =  0x200000,  .offset =    0x600000,  .mask_flags =    MTD_WRITEABLE,  /* force read-only */ 

 

why mtd_writeable but /* force read-only */ ?  

 

 

Hehe, I am newbie so the problems confused me.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
420 Views

Hi mountain8848, 

 

> romfs/jffs2: is it romfs or jiffs2? Or romfs formated by jiffs2 ? 

 

"romfs/jffs2" is just a name for the partition, nothing more ... it&#39;s there only for human consumption ... so 

the name has absolutely no bearing on what you can or can&#39;t put in the partition. Although, it&#39;s generally a 

good idea for the name to describe the _purpose_ of the partion. The author of the mtd map driver is 

just saying that the partition is _intended_ for use by a "romfs" or "jffs2" filesystem. Perhaps a more 

generic name would be "filesystem". You can take a look at the code in drivers/mtd/maps for examples. 

 

> why MTD_WRITEABLE but /* force read-only */ ?  

 

MTD_WRITEABLE is a _mask_, not an enable -- it&#39;s a flag indicating what is to be _removed_. To be 

honest, I never really liked this. Anyway, see: 

 

include/linux/mtd/partitions.h and include/mtd/mtd-abi.h 

 

Regards, 

--Scott
0 Kudos
Reply