MTD on intel 28F320B3 flash memory
Hi,
Is this type of flash memory supported ? It seems to use the standard intel/sharp command set (command set #3), although it's not fully CFI compliant.
Thanks,
Peter.
To unsubscribe, send "unsubscribe mtd" to [email protected]
Your From address is broken.
Quoted 3 lines · Peter De Schrijver
Is this type of flash memory supported ? It seems to use the standard intel/sharp command set (command set #3), although it's not fully CFI compliant.
We only explicitly support the Intel 'Extended' command set. But IIRC the 'Standard' command set is almost identical, apart from some operations which we don't support yet anyway.
Try making it use the cfi_cmdset_0001 code and see what happens.
Signature · 6 lines
dwmw2 To unsubscribe, send "unsubscribe mtd" to [email protected]
Are you sure it's not CFI complaint?
I've been working with 28F640 which is CFI complaint and is detected and operated by the existing code fairly well. I believe the only difference between 28F640 and 28F320 is that the latter is smaller. They are even described in a single datasheet.
Nick
Quoted 11 lines · Peter De Schrijver
Hi,
Is this type of flash memory supported ? It seems to use the standard intel/sharp command set (command set #3), although it's not fully CFI compliant.
Thanks,
Peter.
To unsubscribe, send "unsubscribe mtd" to [email protected]
To unsubscribe, send "unsubscribe mtd" to [email protected]
The CFI code will not work with this chip without modification.
The 28F320B3 is a BOOT BLOCK flash part. It contains Eight 8K regions and 63 64K regions. The CFI code assumes that all regions are of the same size. I am currently using this part in a design. To get around this problem, I changed the CFI code to treat the 8K regions as a single 64K region.
-Mike
----- Original Message -----
From: "Nick Ivanter" <[email protected]>
To: "Peter De Schrijver" <[email protected]>
Cc: <[email protected]>
Sent: Friday, November 17, 2000 3:44 AM
Subject: Re: MTD on intel 28F320B3 flash memory
Quoted 19 lines
Are you sure it's not CFI complaint?
I've been working with 28F640 which is CFI complaint and is detected and operated by the existing code fairly well. I believe the only difference between 28F640 and 28F320 is that the latter is smaller. They are even described in a single datasheet.Nick
Quoted 8 lines · Peter De Schrijver
Hi,
Is this type of flash memory supported ? It seems to use the standard intel/sharp command set (command set #3), although it's not fully CFI compliant.
Thanks,
Quoted 7 lines
Quoted 3 lines
Peter.
To unsubscribe, send "unsubscribe mtd" to [email protected]
To unsubscribe, send "unsubscribe mtd" to [email protected]
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 5 lines · [email protected] said:
The 28F320B3 is a BOOT BLOCK flash part. It contains Eight 8K
regions and 63 64K regions. The CFI code assumes that all regions are of the same size. I am currently using this part in a design. To get around this problem, I changed the CFI code to treat the 8K regions as a single 64K region.
I think that's the correct way do do things. I don't think the MTD layer needs to handle variable erase sizes within a single MTD partition. Either your CFI driver registers a single device with 64K erasesize, or it registers two devices, one with 8K erasesize and the remainder with 64K erasesize.
I can't think of any situation in which you'd want to _use_ the multiple erasesize without actually using the boot blocks for a separate purpose to the remainder of the flash, in which case they should be in different MTD devices anyway, as far as the MTD layer is concerned.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 8 lines · David Woodhouse
Quoted 5 lines · [email protected] said:
The 28F320B3 is a BOOT BLOCK flash part. It contains Eight 8K
regions and 63 64K regions. The CFI code assumes that all regions are of the same size. I am currently using this part in a design. To get around this problem, I changed the CFI code to treat the 8K regions as a single 64K region.
Quoted 5 lines
I think that's the correct way do do things. I don't think the MTD layer needs to handle variable erase sizes within a single MTD partition. Either your CFI driver registers a single device with 64K erasesize, or it registers two devices, one with 8K erasesize and the remainder with 64K erasesize.
But then you have problem with concurent access to the chip... unless the code is tweaked so both mtd devices share the same spinlock and wq.
Nicolas
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 3 lines · [email protected] said:
But then you have problem with concurent access to the chip... unless
the code is tweaked so both mtd devices share the same spinlock and wq.
Yep. That's not difficult. Actually, I think that's why the struct flchip contains both a spin_lock_t *mutex and the spinlock itself - so that you can point to a spinlock elsewhere if you want to.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 3 lines · [email protected] said:
But then you have problem with concurent access to the chip... unless
the code is tweaked so both mtd devices share the same spinlock and wq.
Upon further consideration...
They can just be different 'partitions' of the same underlying device - they only appear as two separate devices to the upper layers - just like normal MTD partitioning.
All we have to do is make the erase routine aware of the nature of the chip, and make sure it correctly erases the correct amount of data, according to the length passed in as part of the erase request. We have to do that anyway, even in the case where we want to pretend it's all 64KiB.
Then it doesn't matter if the registered MTD partitions actually have different erase sizes.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]