public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Mangesh Edake <m_edake@yahoo.com>
To: michael <trimarchi@gandalf.sssup.it>
Cc: linux-mtd@lists.infradead.org
Subject: Re: JFFS2 as rootfs on DataFlash
Date: Mon, 25 Feb 2008 23:18:38 -0800 (PST)	[thread overview]
Message-ID: <813562.16599.qm@web50809.mail.re2.yahoo.com> (raw)
In-Reply-To: <47BDC7EF.5060603@gandalf.sssup.it>

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,-@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

  reply	other threads:[~2008-02-26  7:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19 15:04 JFFS2 as rootfs on DataFlash Mangesh Edake
2008-02-19 15:38 ` trimarchi
2008-02-21 10:10   ` michael
2008-02-21 16:01     ` Mangesh Edake
2008-02-21 18:50       ` michael
2008-02-26  7:18         ` Mangesh Edake [this message]
2008-02-22 12:15       ` Ricard Wanderlof
     [not found] <47C3C90B.9070605@gandalf.sssup.it>
2008-03-24  6:59 ` Mangesh Edake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=813562.16599.qm@web50809.mail.re2.yahoo.com \
    --to=m_edake@yahoo.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=trimarchi@gandalf.sssup.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox