From: "Kim Moung-Soo" <mskim@impresstek.co.kr>
To: <linux-mtd@lists.infradead.org>
Subject: The romfs corruption problem after writing mtdblock!
Date: Mon, 16 May 2005 10:27:41 +0900 [thread overview]
Message-ID: <04e801c559b6$742e79d0$180aa8c0@mskim> (raw)
I'm using uClinux 2.4.22 on ARM board and have a problem with the romfs.
My machine has 4 partitions on the NOR flash memory like below.
mtdblock 1: boot loader
mtdblock 2: 2nd boot loader
mtdblock 3: kernel and root file system(romfs)
mtdblock 4: user data
Everything works fine until I write area of user data, mtdblock 4.
After I write something on mtdblock4, romfs on mtdblock 3 corrupts
sometimes.
The symptom is that some files have gone in the directory or content of
file is wrong.
Even it happens I think the data in flash memory is okay because after
it reboot every thing is in there.
I use open("/dev/mtdblock/4") and write() to access it directly.
Can I use open(), write() function to access mtdblock 4?
reply other threads:[~2005-05-16 1: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='04e801c559b6$742e79d0$180aa8c0@mskim' \
--to=mskim@impresstek.co.kr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox