I have done the same thing a few month ago, and faced the same
problem. But I have solved them now. The following is my solution.
Hope it helps.
As far as I know, the boot image you flash to the phone is consist of
kernel image and file system. So the zImage you got now from
recompiling the kernel is just kernel image. So you will get some
error if you flash it to the phone directly. Maybe you can try to edit
the binary file to composite the file system and the kernel together
to form the whole boot image. But I didn't try that. What I have done
is as follows:
5. How to Android platform with the new kernel
(1). Move the zImage to replace ~/mydroid/vendor/htc/sapphire-open/
kernel
(2). copy recovery image (signed-google-ion-ota-14721.zip) to mydroid
(3). Go to mydroid/vendor/htc/sapphire-open/, run "unzip-files.sh"
(4). Go to mydroid, run ". build/envsetup.sh"
(5). run "lunch aosp_sapphire_us-eng"
(6). make -j4
(7). After build, the images will be in mydroid/out/target/product/
sapphire-open

if you use dream, you can change sapphire to dream.
Actually, I just use the new image to replace the zimage in the older
platform, and then rebuild the platform. Specifically, the zimage in
the platform is in /myandroid/vendor/htc/sapphire-open/  and the file
name is kernel (not zimage), so replace it and change the name to
"kernel". then rebuild the whole platform, the new boot image will be
find in /myandroid/out/target/product/sapphire-open. In many cases, if
you zImage is not corresponding to your current platform, you cannot
boot your phone successfully with that new boot image, I have face the
problem many times at that time. Good luck!


On Jun 4, 8:10 am, Idoya Olalde <[email protected]> wrote:
> Hi,
>
> I post all the ways I have tried to flash the kernel and the problems I
> found:
>
> *
> *
> *fastboot flash kernel zImage *
>
> sending 'kernel' (2207 KB)... OKAY
> writing 'kernel'... INFOsignature checking...
> FAILED (remote: signature verify fail)
>
> *fastboot flash:raw kernel zImage *
>
> creating boot image...
> creating boot image - 2263040 bytes
> sending 'kernel' (2210 KB)... OKAY
> writing 'kernel'... INFOsignature checking...
> FAILED (remote: signature verify fail)
>
> Does it mean that the kernel is corrupted?
>
> If I tried *fastboot flash:raw boot zImage *the mobile doesn't turn on after
> rebooting.
>
> I have also tried to create a boot.img following these 
> instructionshttp://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_...
> I obtained the same result (unable to turn on after rebooting)
>
> Thanks so much
>
> 2010/6/4 Idoya Olalde <[email protected]>
>
>
>
> > Hi sanjeev,
>
> > I have the zImage, but how can I create the root.img?
>
> > thanks
>
> > 2010/6/3 Idoya Olalde <[email protected]>
>
> > Hi,
>
> >> I tried with:
>
> >> fastboot flash:raw boot zImage
>
> >> No errors appear, but when I rebooted the device, it doesn't turn on.
>
> >> 2010/6/3 sanjeev sharma <[email protected]>
>
> >>> I am flashing like that
>
> >>> fastboot flash boot boot.img...
>
> >>> boot.img=zimage+root.img
>
> >>> sanjeev
>
> >>> On Wed, Jun 2, 2010 at 4:50 PM, mjrgens <[email protected]> wrote:
>
> >>>> Hi,
>
> >>>> you have to flash it: "fastboot flash:raw boot <kernel> <ramdisk>".
>
> >>>> mjrgens
>
> >>>> On 1 Jun., 15:25, Idoia Olalde <[email protected]> wrote:
> >>>> > Hi,
>
> >>>> > I need to use a specific image of the kernel, so I use "fastboot boot
> >>>> > zImage" to install it on the phone, but everytime I turn off the
> >>>> > phone, I lose it and I have to install it again. Is any way to not
> >>>> > reinstall the kernel every time the phone is rebooted?
>
> >>>> > Thanks,
>
> >>>> --
> >>>> unsubscribe: 
> >>>> [email protected]<android-kernel%2bunsubscr...@go­oglegroups.com>
> >>>> website:http://groups.google.com/group/android-kernel
>
> >>>  --
> >>> unsubscribe: 
> >>> [email protected]<android-kernel%2bunsubscr...@go­oglegroups.com>
> >>> website:http://groups.google.com/group/android-kernel- Hide quoted text -
>
> - Show quoted text -

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to