Skip to contentSkip to conversation

cfi probe for two different flash devices

DISCUSSION J.Murali 3 participants 3 messages Oct 6, 2003 Memory technology devices (MTD)

lore
Share & tools
lore

J.Murali

author
#0 lore raw

hi all,

i am working on a custom board(Redwood6) using IBM ppc 405. I am using the Montavista's kernel 2.4.17. We have one AMD flash of 4 MB and one Intel flash of 16 MB on our board. There are 4 mtd partitions are in AMD and Intel flash is used as storage space of 5 mtd partition.

AMD partitions
-----------------
1. Bootparams
2. Bootldr
3. kernel
4. Filesystem1

Intel partition
--------------
5. Filesystem2

In the CFI probe, the kernel detects only one flash either AMD or INTEL (Which address we specify as window address). What i have to to do for cfi to detect both flash devices.

Any suggestions are appreciated

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 18 lines · J.Murali

hi all,

i am working on a custom board(Redwood6) using IBM ppc 405. I am using the Montavista's kernel 2.4.17. We have one AMD flash of 4 MB and one Intel flash of 16 MB on our board. There are 4 mtd partitions are in AMD and Intel flash is used as storage space of 5 mtd partition.

AMD partitions
-----------------
1. Bootparams
2. Bootldr
3. kernel
4. Filesystem1

Intel partition
--------------
5. Filesystem2

Quoted 6 lines

In the CFI probe, the kernel detects only one flash either AMD or INTEL (Which address we specify as window address). What i have to to do for cfi to detect both flash devices.

Any suggestions are appreciated

This question would be best asked of the MTD folks (cc'd), but I think you'll need a customized "map" function that recognizes these two FLASH device types and creates the appropriate MTD sub-devices appropriately.

--
Gary Thomas <[email protected]>
MLB Associates

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 3 lines · Gary Thomas

This question would be best asked of the MTD folks (cc'd), but I think you'll need a customized "map" function that recognizes these two FLASH device types and creates the appropriate MTD sub-devices appropriately.

What Gary said.

If you poke around in drivers/mtd/maps you'll find useful examples of such, including how to concatenate them together into one logical MTD device and have a file system spanning them both, etc.

Signature · 1 line
dwmw2