JFFS2 as rootfs on DataFlash
m_edake at yahoo.com
Tue Feb 26 02:18:38 EST 2008
> 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
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
> For the creation use:
> mkfs.jffs2 -d romfs -l -p -e 0x2100 -v -n -o
> images/ramdisk.img > log.txt
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,
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