From: "stiger" <bhe@jadechip.com>
To: <linux-mtd@lists.infradead.org>
Subject: flash unlock on VPB
Date: Sat, 05 Feb 2005 02:20:14 -0000 [thread overview]
Message-ID: <001501c3eb8f$1e9cf780$33050a0a@jadechip.net> (raw)
hello,
i'm using VPB + kernel 2.6.9
but i found the flash cannot write, it should be unlocked first.
if not use root filesystem in flash, I can use flash_unlock to unlock the
flash.
but if burn root filesystem into flash, i have to change the kernel code.
i add these code at driver/mtd/mtdpart.c->add_mtd_partitions()
if((slave->mtd.flags & MTD_WRITEABLE) && slave->mtd.unlock ){
slave->mtd.unlock(&(slave->mtd), 0, slave->mtd.size );
}
now, it works.
but i think it's a stupid way to do this.
is there any other way to do this ?
next reply other threads:[~2005-02-05 2:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-05 2:20 stiger [this message]
2005-02-05 2:39 ` flash unlock on VPB Nicolas Pitre
2005-02-05 3:14 ` stiger
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='001501c3eb8f$1e9cf780$33050a0a@jadechip.net' \
--to=bhe@jadechip.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox