Skip to contentSkip to conversation

How to configure MTD so that JFFS2 work on 7312 NandFlash?

DISCUSSION Jason Chan 3 participants 6 messages Jun 18, 2002 – Jun 20, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Jason Chan

author
#0 lore raw

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.
#1 lore raw
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
author
#2 lore raw

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.
#3 lore raw
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
author
#4 lore raw

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.
#5 lore raw
In reply to Jason Chan
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]