Skip to contentSkip to conversation

Finding ERASE_INFO from a Flash datasheet

DISCUSSION Florian Fainelli 2 participants 3 messages Apr 28, 2007 – May 6, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello all,

I am using a box which has a SST 39VF6402B flash [1] driven by jedec. This flash is not yet referenced in the Linux kernel, and once I got the right erase informations, I will submit a patch to add it.

For the moment, I have defined 4 strictly identical erase informations :
ERASE_INFO(0x2000, 256), which makes me avoid this message "Sum of regions (400000) != total size of set of interleaved chips (800000)". I am pretty sure these informations are completely wrong.

If anyone has some clues about this, I will be glad finishing my patch ;)

Thank you very much in advance.

[1] : http://www.sst.com/downloads/datasheet/S71288.pdf

Signature · 2 lines
Cordialement, Florian Fainelli
---------------------------------------------
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 10 lines · Florian Fainelli

Hello all,

I am using a box which has a SST 39VF6402B flash [1] driven by jedec. This flash is not yet referenced in the Linux kernel, and once I got the right erase informations, I will submit a patch to add it.

For the moment, I have defined 4 strictly identical erase informations :
ERASE_INFO(0x2000, 256), which makes me avoid this message "Sum of regions (400000) != total size of set of interleaved chips (800000)". I am pretty sure these informations are completely wrong.

I'm using 6401B devices, but configured for both. I have 8 regions
configured as ERASE_INFO(0x1000, 256).

It should be noted that the SST part has two erase modes: 4k and
64k blocks. If you want to use the small block erase mode, you will need to change the erase command from an 0x50 to 0x30.

I can provide a patch for the 2.4.27 kernel if you are interested.

Quoted 6 lines

If anyone has some clues about this, I will be glad finishing my patch ;)

Thank you very much in advance.

[1] : http://www.sst.com/downloads/datasheet/S71288.pdf

- --
Glenn Henshaw Logical Outcome Ltd.
e: [email protected] w: www.logicaloutcome.ca

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGNerqCf55IxAEBfkRAshYAJ49ZJYUVK+sEIoiSJeCTMrX4/TkRQCgnhj/ fQ3yQAjcr7vvRT8ZIgw7LGg=
=jpzm
-----END PGP SIGNATURE-----

#2 lore raw

Hello Glenn,

Thank you very much for those informations. I think I had a try at putting 8 erase regions of 4k but I did not change the erase command. Also, I am not sure linux-2.6 accepts 8 ERASEINFO, last I tried it generated a warning.

Anyway, if you can send me patch I could have a try and resend an updated version to linux-mtd.

Thanks.

Le lundi 30 avril 2007, Glenn Henshaw a écrit :

Quoted 32 lines · Florian Fainelli
Quoted 8 lines

Hello all,

I am using a box which has a SST 39VF6402B flash [1] driven by jedec. This
flash is not yet referenced in the Linux kernel, and once I got the right
erase informations, I will submit a patch to add it.

Quoted 7 lines

For the moment, I have defined 4 strictly identical erase informations :
ERASE_INFO(0x2000, 256), which makes me avoid this message "Sum of regions
(400000) != total size of set of interleaved chips (800000)". I am pretty
sure these informations are completely wrong.

I'm using 6401B devices, but configured for both. I have 8 regions
configured as ERASE_INFO(0x1000, 256).

It should be noted that the SST part has two erase modes: 4k and
64k blocks. If you want to use the small block erase mode, you will need to change the erase command from an 0x50 to 0x30.

I can provide a patch for the 2.4.27 kernel if you are interested.

Quoted 6 lines

If anyone has some clues about this, I will be glad finishing my patch ;)

Thank you very much in advance.

[1] : http://www.sst.com/downloads/datasheet/S71288.pdf

Signature · 2 lines
Cordialement, Florian Fainelli
---------------------------------------------