Bad Magic Number
john_lee at openmoko.com
Thu Feb 14 15:05:21 CET 2008
On Thu, Feb 14, 2008 at 09:01:54AM +0000, Andy Green wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Somebody in the thread at some point said:
> > rootfs, and we must not turn off the neo while it's first booting.
> Yeah, but why?
> - -Andy
Hmm actually I'm not accurate enough. The first time booting will
only touch /etc/default/flashkernel so nothing will happen normally.
After that any kernel ipkg update will cause the kernel mtd partition
be overwritten after reboot.
However, my case is that we got two different versions of
kernel-image, e.g. 18.104.22.168 and 2.6.24 in rootfs. So, two similiar
scripts together caused this "Bad Magic Number" syndrome: the first
one touched /etc/default/flashkernel, then the second one tried to
flash new kernel, only to find the uImage it required wasn't there
under /boot. That caused a flash_eraseall to mtd kernel partition.
More information about the openmoko-kernel