Hello,

I've got an AT91RM9200, running 2.6.20.  I'd like to be able to do
something like:

                  % dd if=myfile.dat of=/dev/mtdblock/2

which is an Atmel dataflash on SPI.  I get 'operation not permitted'.
The device file is marked as writable, and I removed the mask bit that
says the device isn't writable.  But I still get operation not
permitted.  at91_dataflash_write is linked into the kernel, but
something is preventing the write().  I'm going to delve down into the
kernel to see what I can discover, but I'm wondering if anyone can
tell me now if this isn't going to work at all.

Thank you in advance,

Regards,

Matt Gessner

P.S. I recently found the place in the kernel that checks to see if
the starting address is aligned with the erase size of the part.
Well, it's not.  However, u-boot doesn't have that particular
restriction, and I'm wondering if I can get around what the kernel's
drivers are doing.  I have a one-time operation I have to do with
something (rewrite the u-boot environment from linux) and if I didn't
have to rewrite all of u-boot, that'd be great too.

Thanks in advance,

Matt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to