Hi dear uClinux Experts,

I am working on a custom board where the flash device is a Spansion
S29GL-256N and the CPU is a NiosII on Altera Cyclone III.
I've read the Greg's article on the subject
<http://www.ucdot.org/article.pl?sid=02/09/20/041251>, and planned to create
3 partitions to store my R/W filesystem (mtd0), the kernel (mtd1) and some
configuration data (mtd2).
I would want to manage in particular the R/W filesystem thanks to JFFS2.

Using Altera tool "nios2-flash-programmer", I have no problem to erase and
flash my device, and so I have been able to store the kernel, allowing the
board to automatically boot at power up.

However, I can do working the MTD driver from uClinux :

        /> dd if=/etc/hosts of=/dev/mtd0
        MTD_open
        MTD_write
        MTD do_write_buffer(): WRITE 0x00300000(0x00000023)
        MTD do_write_buffer(): software timeout
        dd: writing '/dev/mtd0': Input/output error
        0+1 records in
        0+0 records out
        MTD_close

Of course, I cannot make JFFS2 working in that situation...

I didn't got any trouble with a dev board that uses a similar device
(AM29LV128 or S29GL128M), excepted that it is a 8 bits devices instead of
16. 

Is there a special configuration to set for this device ?

TIA,
--
                        Frederic

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to