Intel NOR flash(P30) query
Hi All,
Iam a newbie to mtd. We have a MPC8272 custom board with INTEL TE28F640P30B85 (P30-CFI compilant)NOR boot Flash and NAND flash with JFFS2 filesystem running linux-2.4.20-8.
The NOR Flash need not have any partition/filesystem. My requirement is to have an application to copy an image from the NAND Flash to the NOR Flash.
My current understanding is
Under RAM/ROM/Flash chip drivers on selecting,
Detect flash chips by Common Flash Interface (CFI) probe :
cfi_probe_init() will register with the mtd_chip_driver.
Support for Intel/Sharp flash chips:
cfi_cmdset_0001.c contains the list of commands supported by Intel.
1) I need to understand how the application views the NOR flash once it is registered as a mtd device.
2) Once i register as mtd_chip_driver how can i call the read/write commands of the flash from the application?
3) What is do_map_probe for and how is it different from cfi_probe?
-Thanks
Manju
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
I'm not an MTD guru, but...
Quoted 13 lines · Manjula D
Hi All,
Iam a newbie to mtd. We have a MPC8272 custom board with INTEL
TE28F640P30B85 (P30-CFI compilant)NOR boot Flash and NAND flash
with JFFS2 filesystem running linux-2.4.20-8.
The NOR Flash need not have any partition/filesystem.
My requirement is to have an application to copy an image from
the NAND Flash to the NOR Flash.
My current understanding is Under RAM/ROM/Flash chip drivers on selecting, Detect flash chips by Common Flash Interface (CFI) probe :
cfi_probe_init()will register with themtd_chip_driver.
Support for Intel/Sharp flash chips:
cfi_cmdset_0001.ccontains the list of commands supported by
Intel.
Quoted 2 lines
1) I need to understand how the application views the NOR flash once it is registered as a mtd device.
The answer is trivial - as mtd device. You can enable support for mtd as character or block devices - thus you will have say /dev/mtdchar1 to work from your application.
Quoted 2 lines
2) Once i register as
mtd_chip_driverhow can i call the read/write commands of the flash from the application?
see upper. It can be treated as an ordinary character device.
Quoted 2 lines
3) What is
do_map_probefor and how is it different fromcfi_probe?
If the flash is used for firmware storage as well, you need to "partition" it with independent accesss to each part, keeping some of them write-protected. do_map_probe will apply the map, and will probably call cfi_probe for certain flash region - refer to google for details.
Quoted 14 lines
-Thanks
Manju________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Signature · 2 lines
Sincerely, Vitaly
Quoted 2 lines · Vitaly Bordug
I'm not an MTD guru, but...
No shame in that.
Quoted 16 lines
Quoted 15 lines · Manjula D
Hi All,
Iam a newbie to mtd. We have a MPC8272 custom board with INTEL TE28F640P30B85 (P30-CFI compilant)NOR boot Flash and NAND flash with JFFS2 filesystem running linux-2.4.20-8.
The NOR Flash need not have any partition/filesystem. My requirement is to have an application to copy an image from the NAND Flash to the NOR Flash.
My current understanding is
Under RAM/ROM/Flash chip drivers on selecting,
Detect flash chips by Common Flash Interface (CFI) probe :
cfi_probe_init()will register with themtd_chip_driver.
Support for Intel/Sharp flash chips:
cfi_cmdset_0001.ccontains the list of commands supported by Intel.
Quoted 5 lines
Quoted 2 lines
1) I need to understand how the application views the NOR flash once it is registered as a mtd device.
The answer is trivial - as mtd device. You can enable support for mtd as character or block devices - thus you will have say
/dev/mtdchar1to work from your application.
Almost correct. See:
http://www.linux-mtd.infradead.org/faq/general.html
Jörn
Signature · 4 lines
Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming. -- Rob Pike
By the way, if anybody has mtd working on the new P30 chips it would be good to know; I haven't seen a system with these chips yet. They are CFI 1.4, and some changes for 1.4 were added by Nicolas recently to support M18 "Sibley" chips, but not sure if those changes are required for P-series chips. Thankis,
Signature · 1 line
Todd
Quoted 1 line · Todd Poynor
By the way, if anybody has mtd working on the new P30 chips it would be good to know; I haven't seen a system with these chips yet. They are CFI 1.4, and some changes for 1.4 were added by Nicolas recently to support M18 "Sibley" chips, but not sure if those changes are required for P-series chips. Thankis,
Are these changes merged into mainline kernel, or only in MTD CVS? I may be in a position to test this soon-ish, as we are looking for a replacement for the now obsoleted J/K strataflash parts and seem to be headed towards the P30's...
-Ralph
Quoted 6 lines · Ralph Siemsen
Quoted 1 line · Todd Poynor
By the way, if anybody has mtd working on the new P30 chips it would be good to know; I haven't seen a system with these chips yet. They are CFI 1.4, and some changes for 1.4 were added by Nicolas recently to support M18 "Sibley" chips, but not sure if those changes are required for P-series chips. Thankis,
Are these changes merged into mainline kernel, or only in MTD CVS? I may be in a position to test this soon-ish, as we are looking for a replacement for the now obsoleted J/K strataflash parts and seem to be headed towards the P30's...
Pretty sure linux-mtd-only, these came in during the settle down period for 2.6.13 rc's. The CFI 1.3-based code probably works after a quick adjustment of a revision level check (to ignore new fields at end of vendor-specific extended query table), if you want to try kernel.org, but testing linux-mtd is always better for us here. Thanks,
Signature · 1 line
Todd
Quoted 15 lines · Todd Poynor
Quoted 9 lines · Ralph Siemsen
Quoted 5 lines · Todd Poynor
By the way, if anybody has mtd working on the new P30 chips it would be good to know; I haven't seen a system with these chips yet. They are CFI 1.4, and some changes for 1.4 were added by Nicolas recently to support M18 "Sibley" chips, but not sure if those changes are required for P-series chips. Thankis,
Quoted 4 lines
Are these changes merged into mainline kernel, or only in MTD CVS? I may be in a position to test this soon-ish, as we are looking for a replacement for the now obsoleted J/K strataflash parts and seem to be headed towards the P30's...
Quoted 5 lines
Pretty sure linux-mtd-only, these came in during the settle down period for 2.6.13 rc's. The CFI 1.3-based code probably works after a quick adjustment of a revision level check (to ignore new fields at end of vendor-specific extended query table), if you want to try kernel.org, but testing linux-mtd is always better for us here. Thanks,
For what it's worth, I just changed the checks for version 3 of the query table to allow a version 4 in the cfi_cmdset_0001.c driver and it seemed to be working. I haven't had a chance to test out Nicolas' changes, but it should work just fine.
josh