Howto write to flash from user space (II)
Josh Boyer
jdub at us.ibm.com
Thu Oct 21 14:11:01 EDT 2004
On Thu, 2004-10-21 at 11:24, bodhi at despammed.com wrote:
> I already read http://www.linux-mtd.infradead.org/
> but I found no useful informations
There's all kinds of useful information on there... for MTD developers
;).
> How can I write directly into flash from an user space application ?
Using either /dev/mtdblock (CONFIG_MTD_BLOCK) or /dev/mtd
(CONFIG_MTD_CHAR).
You might also want to look into JFFS2 if you haven't already.
> I am using a SA1110 with 16MB StrataFlash.
> I tried using /dev/mem but I can only read and not write to flash.
That's for DRAM only.
> I do not have any /dev/mtd* device in my /dev , why ?
You need to configure MTD into your kernel, and create the /dev nodes if
you aren't using devfs or udev. The MAKEDEV script in the utils
directory helps with that.
> Do I need to develop a driver ?
No, StrataFlash is handled by the cfi_cmdset_0001 driver
(CONFIG_MTD_CFI_INTELEXT).
Also, the more information you give us, the more help we can provide.
The board and flash chip types are a great start. If you are still
having trouble, let us know what version of the kernel, what MTD
snapshot, etc.
josh
More information about the linux-mtd
mailing list