opkg update broke kernel / booting

Russell Sears sears at cs.berkeley.edu
Sun Jul 27 11:09:34 CEST 2008

I did an opkg update today.  The new kernel package erased the old 
kernel, but the copy to flash must have failed.  uBoot said "wrong image 
format for bootm command", and failed to load the kernel.

I had to use my laptop rebuild a uImage from the ipk file.  Once I got 
the phone to boot, doing a "opkg --force-reinstall install kernel-image" 
failed with "error 2"

Am I the only one seeing this?  Any idea why I'm getting that error?


ps: In case I'm not the only one this bug bit, here's how to fix the 
phone without losing the contents of "/".

I used compiled versions of utilities already present in my MokoMakefile 
tree, and built dfu-util from svn.  I used dpkg that was already on my 
laptop, since I'm running ubunutu.  I did the following (though you'd 
need to read:


to reproduce the fix from what I have here...).  Most commands don't fit 
on one line; blank lines separate commands.


dpkg -X 

cd boot

arm-angstrom-linux-gnueabi-objcopy -O binary -R .note -R .comment -S 
vmlinux-2.6.24 linux.bin

gzip -9 linux.bin

moko/build/tmp/staging/x86_64-linux/usr/bin/uboot-mkimage -A arm -O 
linux -T kernel -C gzip -a 30008000 -e 30008000 -n "Kernel Image QT2410" 
-d linux.bin.gz uImage

dfu-util -a kernel -R -D uImage

More information about the support mailing list