Title: Message
Never mind, I figured it out. (had to use mtd devices instead of mtdblock)...


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of kzafeiropoul
Sent: Tuesday, November 07, 2006 10:29 AM
To: [email protected]
Subject: RE: Using the MTD utilities

Hi Paul,
 
By compiling the drivers as modules, and loading them manually after boot procedure, I managed to copy a file from CF (IDE driver) to a mounted NOR flash JFFS2 partition (MTD driver). I rebooted the board and verified that there was no data loss/corruption.
 
Has anyone managed to use successfully these utilities :  flash_erase , flashcp, flash_lock, ftl_format ?
 
Thanks,
Kostas
 
 


From: Paul Bartholomew [mailto:[EMAIL PROTECTED]
Sent: Monday, November 06, 2006 5:28 PM
To: kzafeiropoul; [email protected]
Subject: RE: Using the MTD utilities

Are you trying to access NOR flash while the hard drive is enabled?  I *think* you can only use one or the other (at least I seem to remember reading that).
 
uboot works woth NOR because it hasn't enabled/doesn't use the IDE.
 
- Paul
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, November 06, 2006 8:18 PM
To: [email protected]
Subject: Using the MTD utilities



Hi all,

I am trying to change the NOR flash contents from the target Linux environment using the utilities : flash_erase , flashcp, flash_lock, ftl_format etc that are provided in the hard disk…

My kernel properly recognizes the NOR flash and makes all the necessary partitions. I can write jffs2 images to flash using uboot and mount them successfully to Linux kernel. The problem is that when I am trying to use the MTD utilities in Linux (in order to write a new image to flash) I get errors like:

       
        ./flash_erase  /dev/mtd4
        MTD Erase failure: Input/output error

        ./ftl_format  /dev/mtd8
        block erase failed: Input/output error

        ./ftl_check /dev/mtd8
        Memory region info:
          Region size = 5 mb  Erase block size = 64 kb
        No valid erase unit headers!


Has anyone ever managed to use these utilities? Any idea of what is going wrong?

Any help will be appreciated.

Thanks,
Kostas

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to