mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* NOR flash writing
@ 2014-07-28 14:28 Antony Pavlov
  2014-07-29  6:21 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2014-07-28 14:28 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-29  6:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-28 14:28 NOR flash writing Antony Pavlov
2014-07-29  6:21 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox