Hi,

For the NOR device, I built the JFFS2 image via the following command:
    
    mkfs.jffs2 -d [root_folder] -o rootfs_image.jffs2 -e 0x10000

The last part (-e 0x10000) is the erase sector size of the flash device.

You can get  mkfs.jffs2 utility from MTD utils at 
http://www.linux-mtd.infradead.org/index.html. 
Download the utils and build it on your host to create the mkfs.jffs2 utility.  
The mkfs.jffs2 utility is
already on the DVEVM target so you can also upload your root_folder to the 
target
and execute the JFFS2 command above.


The JFFS2 image I built was for the NOR flash so I doubt if it works
for the NAND device.  I believe JFFS2 can be built for the NAND device, just 
search
around in this forum for help.  For the NOR flash, I wasn't able to get it 
working
with the Montavista kernel but I was able to get it working with Kevin's GIT 
kernel.
You need to download it and configure it with MTD, JFFS2, and RAM/ROM/Flash
chip drivers; also, you need to disable IDE support.  Under MTD, you need to 
select 
"Mapping drivers for chip access" and then choose CFI Flash device in physical 
memory map:
     0x02000000  - physical start
     0x0                - physical length (driver will autodetect)
     2                    - bank width

Here's a snippet of my .config for the GIT kernel that includes JFFS2 NOR flash 
support:

CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
# CONFIG_MTD_CONCAT is not set
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y
# CONFIG_MTD_AFS_PARTS is not set

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x02000000
CONFIG_MTD_PHYSMAP_LEN=0x0
CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_ARM_INTEGRATOR is not set
# CONFIG_MTD_PLATRAM is not set


Good luck.

Regards,
Andy


----- Original Message ---
From: Sz Lian Yu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, March 11, 2007 10:40:27 PM
Subject: About ... "Instructions to set up a NOR JFFS2 filesystem."


Dear Sir:

I just saw your document in davinci linux forum.,it's
quite helpful.
But now I am wondering how to make jffs2 filesystem in
NOR flash without the NOR flash device driver...
My davinci linux environment is only with NAND flash
device driver.
Could it go without the flash device driver?
If no , could you please send me the NOR flash device
driver files for me?

B.R.
diego


___________________________________________________ 
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
http://messenger.yahoo.com.tw/
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to