All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Flint Cowden" <Flint.Cowden@sanmina-sci.com>
To: <linux-mtd@lists.infradead.org>
Subject: making jffs2 writes permanent
Date: Wed, 03 Mar 2004 16:48:26 -0600	[thread overview]
Message-ID: <s0460c6e.082@gwise1.sanmina-sci.com> (raw)

I was able to do the following:

eraseall /dev/mtd/0

This produced a long long list of ioctl messages, ending in the entire
64M block erased. The following session ensued:


# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 04000000 00010000 "Physically mapped flash"
mtd1: 04000000 00010000 "my_jffs2"
mtd2: 00400000 00020000 "mtdram test device"


# mkdir /mnt
# mkdir /mnt/mydev
# mount -t jffs2 /dev/mtdblock/1 /mnt/mydev
mtdblock_open
ok

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    3990      3608       382  90% /
/dev/root                 3990      3608       382  90% /
/dev/mtdblock/1          65536       332     65204   1% /mnt/mydev

cd /
find > files.txt

# mv files.txt /mnt/mydev
Node totlen on flash (0xffffffff) != totlen in node ref (0x00000044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00000044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00000044)
#
# cd /mnt/mydev
# ls
files.txt


#date > /dev/mtd/1
MTD_open
MTD_ioctl
Invalid ioctl 402c7413 (MEMGETINFO = 40204d01)
MTD_write
MTD_close

# xxd /dev/mtd/1 | more
MTD_open
MTD_ioctl
Invalid ioctl 402c7413 (MEMGETINFO = 40204d01)
MTD_read
0000MTD_read
000:MTD_read
 ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000010: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000020: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
0000050: ffff ffff ffff ffff ffff ffff ffff ffff  ................

--------------------------------------

Upon rebooting the system, the /mnt directory no longer exists. I can
recreate it and remount the jffs2 device, but of course the directory is
empty and the file files.txt that I copied in is now gone. I see no
indication that the flash is seeing any physical writes at all. What am
I missing?

Flint

                 reply	other threads:[~2004-03-03 22:49 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=s0460c6e.082@gwise1.sanmina-sci.com \
    --to=flint.cowden@sanmina-sci.com \
    --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.