[PATCH 2/3 Try#2] NOR Flash Support (U-Boot env)

Andy Green andy at openmoko.com
Wed Dec 26 18:47:23 CET 2007


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

Somebody in the thread at some point said:

>>> I can see this playing havoc with the upgrade kernel by ipkg stuff.
>> Is that really beyond us?
>>
>> $ cat /proc/mtd | grep kernel | cut -d':' -f1 | sed \
>> s/mtd/\\/dev\\/mtdblock/g
>> /dev/mtdblock3
>> $ cat /proc/mtd | grep rootfs | cut -d':' -f1 | sed \
>> s/mtd/\\/dev\\/mtdblock/g
>> /dev/mtdblock5
>>
> No, but what if its the wrong kernel version, ie you flash the one
> without NOR in a nor u-boot, or the one with NOR in the non nor
> u-boot.

Well you can tell about the U-Boot you booted from:

$ cat /proc/cmdline | grep physmap

will give ! -z result for the "nor U-Boot"

What happens at the time you upgrade the U-Boot and Kernel packages can
be handled by a "requires" in the "nor kernel" for the "nor U-Boot"
package, and vice versa, so they have to go in together.

If the nor-less GTA-01 just never sees any of this stuff because it is
on its own branch (as, if I understood Werner, is already the case for
U-Boot) and GTA-02 goes out with a kernel-gta02 package for example that
won't be compatible with whatever the GTA-01 kernel package is called,
that sounds good to me too.

If someone can figure out a way to get the NOR probed last (meddle with
the kernel Makefile order?) that will also solve it -- and need another
round of patches.

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

iD8DBQFHcpOrOjLpvpq7dMoRArGYAJ9RHiIu52eBcXluo/pB2e8n3XTRHgCfTWcq
LXrQojFVuZt9xewXOxKDHqY=
=ZVtH
-----END PGP SIGNATURE-----



More information about the openmoko-uboot mailing list