LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2009, 09:54 PM   #1
shashi_b
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Exclamation flash_eraseall command for mtd device reports error


Hi ,

I am writing drivers for dataflash device and so far i have been able to create a single partition on flash as desired ,register the device with kernel and thereby able to load the flash driver module on boot.The flash partition does show up with "cat /proc/mtd".

However when i try to erase the flash using flash_eraseall before trying to mount the device i get the following error

command tried:
flash_eraseall -j /dev/mtd3

where mtd3 corresponds to my flash device node and is also present in /dev directory.

Output:

flash_eraseall : /dev/mtd3 : No such device or address

Looks like i am almost on the verge of getting it work but not without getting over this hurdle.

Any suggestions would be of great help.

Thanks in advance

Shashi
 
Old 08-26-2009, 05:21 AM   #2
electro323
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Exclamation Writing directly into a flash nand

Hello,
I saw that u were working on flash nand.
Actually i am a student in engenneering and i am workin on Flash Nand.
The aim of my project is to write directly into the flash nand without using the File System's as JFFS2,YAFFS,etc..
I dont know if it is really possible to do it and how to proceed.
Hope i can get a response from you.
Thanks for your response
Wassim
 
Old 12-29-2009, 07:27 AM   #3
jimux
LQ Newbie
 
Registered: Mar 2007
Posts: 11

Rep: Reputation: 1
Shashi B, There is a serious lack of documentation available on nand management tools and I am also trying to clean a nand flash that shows 98% bad blocks. I am sure that the problem is a software corruption rather than true hardware cell failure. The following may help.

Flash_eraseall does not attempt to release blocks marked as bad. Using the -j parameter simply adds another clean marker in those empty blocks so jffs does not do unnecessary erases

'nand scrub' 'nand erase clean' and 'nand erase' would appear to be the tools you need, but as far as I know they are only available under Uboot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logwatch reports with no crontab command davidmc57 Linux - Security 5 09-11-2006 05:08 PM
insmod reports app.o init module: no such device rockets Linux - Software 2 08-01-2006 08:48 PM
whats the command that reports program success? slinky2004 Linux - Newbie 2 07-10-2006 02:07 PM
Information on 2.6.1 error reports. (ERROR inside) vexer Linux - General 3 01-23-2004 08:19 PM
ftp client reports error saavik Linux - Networking 0 05-22-2002 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration