Originally Posted by geekmaster
Actually, you CANNOT
flash a main kernel image with fastboot. Although fastboot falsely reports success, it actually only flashes a small PART of the kernel image. You can see this if you watch the serial port messages while you try that command. The main kernel image is too large for fastboot.
You MUST use the dd command after booting from diags, to successfully write a main partition image. If you write main while booted from main, it often does not work correctly because the main partition sometimes writes to its filesystem. Writing to a filesystem and to its raw partition at the same time will damage it to some extent (perhaps too much to repair).You need to reset the boot counter stored in the /var/local partition, or erase the /var/local partition that contains it (mmcblk0p3). You can reset the boot counter with this command at an SSH prompt:
echo 0 > /var/local/upstart/lab126_gui.restarts
There are RUNME.sh scripts posted that can do that for you. You can also erase the boot counter file instead of resetting it to zero.