All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Parusel <rparusel@xnet2000.de>
To: linux-mtd@lists.infradead.org
Subject: how can I mkfs.jffs2 on AT45DB321
Date: Mon, 12 Oct 2009 14:34:41 +0200	[thread overview]
Message-ID: <4AD32261.70209@xnet2000.de> (raw)

Hi,

can someone give me a hint how to use a AT45DB321 dataflash on avr32 linux.

I've added
*Code:*

        {
                .modalias = "mtd_dataflash",
                .controller_data = ( void * ) GPIO_PIN_PB ( 2 ),
                .max_speed_hz = 1000000,
                .bus_num = 1,
                .chip_select = 0,
        },


in the board setup code
and while booting the kernel i can see:
*Code:*

mtd_dataflash spi1.0: AT45DB321x (4224 KBytes) pagesize 528 bytes, OTP


The next step was
*Code:*

flash_eraseall -j /dev/mtd3

than
*Code:*

mkfs.jffs2 -r /tmp/emptyfs -o /tmp/temp.jffs2 -s528 -e528 -p4325376 -b
-v -n


I've copied the file /tmp/temp.jffs2 with flashcp to the device
*Code:*

flashcp /tmp/temp.jffs2 /dev/mtd3


An than, while, mounting the dataflash, i see a lot of
*Code:*

.
CLEANMARKER node found at 0x00254310 has totlen 0xc != normal 0x0
Empty flash at 0x0025431c ends at 0x00254520
.
Newly-erased block contained word 0x19852003 at offset 0x0038d900

lines.

So it seems that the hardware is ok, but my commands,
to make a jffs filesystem on it, must be wrong.

Can someone help me please?

--

Kind regards
robert

                 reply	other threads:[~2009-10-12 12:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4AD32261.70209@xnet2000.de \
    --to=rparusel@xnet2000.de \
    --cc=linux-mtd@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.