JFFS2 as rootfs on DataFlash

Mangesh Edake m_edake at yahoo.com
Tue Feb 26 02:18:38 EST 2008


Hello Michel,

> No,
> using in linux flash_eraseall to clean your
> partition. Maybe start from 
> a ramdisk.
In this case flash_eraseall will demand for write_oob
which is absent in my dataflash kernel driver. 

> It is the only partinion? If no, you must remember
> to align it at a 
> block size.
> Example my partionin start from 0x131400
My partition starts at 0x14a000, which is a multiple
of block size 0x2100.

> 
> setenv bootargs console=ttyS0,115200 mem=8M
> rootfstype=jffs2 
> root=/dev/mtdblock1
> rw
>
mtdparts=spi0.1-AT45DB321x:1221k(ARMboot)ro,- at 1221k(root)
I'm already creating mtd partitons statically in my
driver and would not prefer to create through
commandline.

> For the creation use:
> mkfs.jffs2 -d romfs -l -p -e 0x2100 -v -n -o
> images/ramdisk.img > log.txt
> 
Doing same!

Please tell me for my dataflash, does the behaviour of
creating image, writing image and reading-writing to
flash should look like exactly as nand-flash or so..?
Incase of Nandflash, data and oob is treated
separately, means normal read-write functions are for
512 bytes and oob functions for 16-byte oob. Even I
think, image creation for nand is mostly done with
eraseblock size in multiples of 512 (0x200) bytes.
e.g mkfs.jffs2 -e 0x4000 etc   
So should I do the same?

--
Thanks and Regards,
Mangesh Edake.



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping



More information about the linux-mtd mailing list