From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: NOR flash writing
Date: Mon, 28 Jul 2014 18:28:14 +0400 [thread overview]
Message-ID: <20140728182814.d80c510749ed1851aaddafb8@gmail.com> (raw)
Hi All!
I have barebox running on a board with SPI flash chip.
I can write to the SPI flash chip using /dev/nor0 interface.
Before writing data to the /dev/nor0 device I have to erase it explicitly with 'erase /dev/nor0' command.
How I can write to /dev/nor0 in a more transparent way. E.g. if I want to update only several bytes
on /dev/nor0 then I use 'mw -d /dev/nor0 ...' command and barebox automatically reads appropriate
flash sector into RAM, modify it, erase NOR flash device sector and write new sector content into NOR flash device.
--
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2014-07-28 14:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 14:28 Antony Pavlov [this message]
2014-07-29 6:21 ` Sascha Hauer
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=20140728182814.d80c510749ed1851aaddafb8@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@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