[PATCH 1/3] NOR Flash Support (kernel + config)

Andy Green andy at openmoko.com
Thu Dec 27 21:16:30 CET 2007


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

Somebody in the thread at some point said:
> Andy Green wrote:
>> Add support for NEO1973 NOR flash to MTD
> 
> Thanks ! I've tested the patch and added it as gta02-nor.patch to
> svn.openmoko.org/trunk/src/target/kernel/patches/

Great, thanks.

> On my GTA02v3, I can't write, but that may be a configuration issue.
> (See below.) On a GTA01Bv4, the NOR partition does not show up, so
> there is no compatibility problem. It would be good if someone could
> test is on a GTA02v2 or older, to see if the "absent" option does
> the trick.

I don't really know why it should not be accepted by MTD_ROM even on
GTA01 -- I tested it with giving the wrong start address in the platform
stuff on a GTA-02 A4 here and it still had the logical physmap partition
created.

> Regarding the configuration, I think the patch sets more options that
> we actually eed. So I'm now trying to find the minimum set that works.
> With the changes below, I can read from the NOR, but I can't write
> (this might be hardware), and it appears as having a single erase
> block. Once I've figured out these bits, I'll commit the updated
> defconfig.

Yes I threshed around for a while at the beginning and there can easily
be more config set than needs to be.  But surely you will need at least

CONFIG_MTD_CFI=y

and maybe some other ones around that.

On the can't write thing, maybe you might not have the Flash paged in at
all somehow and are getting a hit on MTD_ROM?  Normally I see this in dmesg

physmap platform flash device: 00200000 at 18000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0039
 Intel/Sharp Extended Query Table at 0x0039
 Intel/Sharp Extended Query Table at 0x0039
 Intel/Sharp Extended Query Table at 0x0039
 Intel/Sharp Extended Query Table at 0x0039
cfi_cmdset_0001: Erase suspend on write enabled

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHdAgeOjLpvpq7dMoRAu6fAJwPJc4YGVAAxmJvNk2QB4fZBLwG9wCeNj/2
AmVVTWG0YLZ69gy8QsnOeE0=
=ZSio
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list