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

Graeme Gregory graeme at openmoko.org
Wed Dec 26 18:30:02 CET 2007


On Wed, 26 Dec 2007 17:12:46 +0000
Andy Green <andy at openmoko.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Somebody in the thread at some point said:
> > On Mon, 24 Dec 2007 15:32:42 +0100
> > Harald Welte <laforge at openmoko.org> wrote:
> > 
> >> On Mon, Dec 24, 2007 at 10:11:28AM +0000, Andy Green wrote:
> >>  
> >>> If the kernel that devirginator drops in the device on GTA-01 also
> >>> has the NOR patch, it will create a (useless, but logically
> >>> present) MTD device representing the (IIRC, on GTA-01 nonexistent)
> >>> NOR device's footprint and make the partitions match up.  The MTD
> >>> ROM support should accept it despite the Flash probe would fail,
> >>> so it is one way to get a unified behaviour.
> >> this is not good.  Since GTA01 is already deployed, I think it will
> >> generate a nightmare for updating and compatibility.  GTA01
> >> partition tables have to be as-is.
> >>
> > 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.

Graeme



More information about the openmoko-uboot mailing list