How to configure MTD so that JFFS2 work on 7312 NandFlash?
Hi all,
I am trying to configure MTD NandFlash and JFFS2 on EP7312 NandFlash
driver.
However, when I try to access, it output "I/O Error".
But when the kernel bootup, I can see that the kernel successfully find out the nandflash device. So how can I make the JFFS2 and MTD work on 7312?
Signature · 4 lines
Best Regards, Jason Chan Emsoft Ltd.
Quoted 6 lines · Jason Chan
Hi all,
I am trying to configure MTD NandFlash and JFFS2 on EP7312 NandFlash
driver.
However, when I try to access, it output "I/O Error".
But when the kernel bootup, I can see that the kernel successfully find out the nandflash device. So how can I make the JFFS2 and MTD work on 7312?
Are you using the Cogent Evalboard (EP7312 is just the CPU)? Do you use the latest MTD snapshot? It worked quite well over here last time I checked. Unfortunately my EDB7312 is not available at the moment.
Regards
Marius
-----------------------------------------------------------------------------
Marius Groeger SYSGO Real-Time Solutions GmbH [email protected] Software Engineering Embedded and Real-Time Software www.sysgo.de Voice: +49-6136-9948-0 Am Pfaffenstein 14 www.osek.de FAX: +49-6136-9948-10 55270 Klein-Winternheim, Germany www.elinos.com
Hi,
Sorry, for my post. But it works now.
However, the performance is really very slow. When I try to mount the Toshiba 8Mb nandflash. It takes me 3-4 minutes. Why it takes so long.
Quoted 23 lines · Marius Groeger
Quoted 7 lines · Jason Chan
Hi all,
I am trying to configure MTD NandFlash and JFFS2 on EP7312 NandFlash
driver.
However, when I try to access, it output "I/O Error".
But when the kernel bootup, I can see that the kernel successfully find out the nandflash device. So how can I make the JFFS2 and MTD work on 7312?Are you using the Cogent Evalboard (EP7312 is just the CPU)? Do you use the latest MTD snapshot? It worked quite well over here last time I checked. Unfortunately my EDB7312 is not available at the moment.
Regards
Marius-----------------------------------------------------------------------------
Marius Groeger SYSGO Real-Time Solutions GmbH [email protected] Software Engineering Embedded and Real-Time Software www.sysgo.de Voice: +49-6136-9948-0 Am Pfaffenstein 14 www.osek.de FAX: +49-6136-9948-10 55270 Klein-Winternheim, Germany www.elinos.com
Signature · 4 lines
Best Regards, Jason Chan Emsoft Ltd.
Quoted 3 lines · Jason Chan
Sorry, for my post. But it works now.
However, the performance is really very slow. When I try to mount the Toshiba 8Mb nandflash. It takes me 3-4 minutes.
Maybe because it has not been properly erased and formatted?!
Regards,
Marius
-----------------------------------------------------------------------------
Marius Groeger SYSGO Real-Time Solutions GmbH [email protected] Software Engineering Embedded and Real-Time Software www.sysgo.de Voice: +49-6136-9948-0 Am Pfaffenstein 14 www.osek.de FAX: +49-6136-9948-10 55270 Klein-Winternheim, Germany www.elinos.com
I use the "eraseall" routine to erase the nand. The I use "mount /dev/mtdblock3 /mnt -t jffs2" to mount the flash. It takes 3-4 minutes. After I successfully mounted, and copy some file to the flash and then umount. It very slow.
And it takes me 3-4 minutes even i mount that again.
What tools should I use to format and erase the flash properly?
Quoted 18 lines · Marius Groeger
Quoted 4 lines · Jason Chan
Sorry, for my post. But it works now.
However, the performance is really very slow. When I try to mount the Toshiba 8Mb nandflash. It takes me 3-4 minutes.Maybe because it has not been properly erased and formatted?!
Regards,
Marius-----------------------------------------------------------------------------
Marius Groeger SYSGO Real-Time Solutions GmbH [email protected] Software Engineering Embedded and Real-Time Software www.sysgo.de Voice: +49-6136-9948-0 Am Pfaffenstein 14 www.osek.de FAX: +49-6136-9948-10 55270 Klein-Winternheim, Germany www.elinos.com
Signature · 4 lines
Best Regards, Jason Chan Emsoft Ltd.
Quoted 6 lines · Jason Chan
Hi all,
I am trying to configure MTD NandFlash and JFFS2 on EP7312 NandFlash
driver.
However, when I try to access, it output "I/O Error".
But when the kernel bootup, I can see that the kernel successfully find out the nandflash device. So how can I make the JFFS2 and MTD work on 7312?
please read http://www.linux-mtd.infradead.org/tech/nand.html : Config settings
Signature · 4 lines
Thomas ________________________________ Thomas Gleixner - autronix automation http://www.autronix.de [email protected]