Flashing Kernel Image

479 views
Skip to first unread message

perumal316

unread,
Feb 13, 2010, 5:11:18 AM2/13/10
to Android Linux Kernel Development
Hi,

I have downloaded the Android source and followed instructions from
http://source.android.com/ to get the necessary images to flash the
Android Developer phone. But is it possible to just change the kernel
only.

For example, I have downloaded the kernel source and build it and the
output is the zImage. Now how to I flash this image into the developer
phone so that this new kernel can be used?

Or must I follow the instructions from http://source.android.com/ to
obtain the necessary images to flash?

If that's the case how to I modify the kernel from there, I can't find
any kernel source after 'repo sync' as mentioned.

Thanks In Advance,
Perumal

Deva R

unread,
Feb 15, 2010, 1:01:32 PM2/15/10
to android...@googlegroups.com

it should work, but any interface break will require rebuilding filesystem components and some changes.
also, make sure you build for your phone config..
$ cd $MYDROID/kernel/android-2.6.29
$ make CROSS_COMPILE=arm-none-linux-gnueabi- distclean
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- <<board-default-config>>
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

Regards,
Deva


Chew Esmero

unread,
Feb 16, 2010, 9:18:55 PM2/16/10
to Android Linux Kernel Development
what I did to speed up development was, instead of building the source
everytime (1.5 hrs in my pc), I'll just make another boot.img with my
compiled kernel. boot.img contains the boot header, kernel image,
ramdisk, and other stuff. To make the new boot.img, issue the
"mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel
<zImage> --ramdisk <ramdisk.img in the out/target/product/dream_open> -
o boot.img" command. mkbootimg is located in out/host/linux-x86/bin.
To flash boot.img to phone, "fastboot flash boot.img. Or you can
overwrite the old boot.img with your new image so you can flash
everything with "fastboot -w flashall".

Hope this can help.

On Feb 13, 6:11 pm, perumal316 <perumal...@gmail.com> wrote:
> Hi,
>

> I have downloaded the Android source and followed instructions fromhttp://source.android.com/to get the necessary images to flash the

Message has been deleted

perumal316

unread,
Feb 17, 2010, 10:41:09 PM2/17/10
to Android Linux Kernel Development
Hi,

Thanks for the tips, will try them out! The reason why I want to
modify the kernel is to enable modules loading/unloading in Android
Developer Phone.

Is there any way to load/unload modules in the Android Developer
Phone?
In emulator it can be done through the adb shell. But suppose I have a
module for Android, how can I <insmod> this module in the developer
phone?

Thanks In Advance,
Perumal

On Feb 17, 10:18 am, Chew Esmero <chew.esm...@gmail.com> wrote:
> what I did to speed up development was, instead of building the source
> everytime (1.5 hrs in my pc), I'll just make another boot.img with my
> compiled kernel. boot.img contains the boot header, kernel image,
> ramdisk, and other stuff. To make the new boot.img, issue the
> "mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel
> <zImage> --ramdisk <ramdisk.img in the out/target/product/dream_open> -
> o boot.img" command. mkbootimg is located in out/host/linux-x86/bin.
> To flash boot.img to phone, "fastboot flash boot.img. Or you can
> overwrite the old boot.img with your new image so you can flash
> everything with "fastboot -w flashall".
>
> Hope this can help.
>
> On Feb 13, 6:11 pm, perumal316 <perumal...@gmail.com> wrote:
>
>
>
> > Hi,
>

> > I have downloaded the Android source and followed instructions fromhttp://source.android.com/toget the necessary images to flash the


> > Android Developer phone. But is it possible to just change the kernel
> > only.
>
> > For example, I have downloaded the kernel source and build it and the
> > output is the zImage. Now how to I flash this image into the developer
> > phone so that this new kernel can be used?
>
> >  Or must I follow the instructions fromhttp://source.android.com/to
> > obtain the necessary images to flash?
>
> > If that's the case how to I modify the kernel from there, I can't find
> > any kernel source after 'repo sync' as mentioned.
>
> > Thanks In Advance,

> > Perumal- Hide quoted text -
>
> - Show quoted text -

Chew Esmero

unread,
Feb 18, 2010, 8:07:11 PM2/18/10
to Android Linux Kernel Development
You can still use the adb shell.

> > > I have downloaded the Android source and followed instructions fromhttp://source.android.com/togetthe necessary images to flash the

perumal316

unread,
Feb 22, 2010, 1:20:27 AM2/22/10
to Android Linux Kernel Development

Yes, I just need to plug in the phone to the PC and do adb shell.
Thanks for the tip!

> > > > I have downloaded the Android source and followed instructions fromhttp://source.android.com/togetthenecessary images to flash the

Tirtha Kanti Ghosh

unread,
Feb 22, 2010, 2:05:55 AM2/22/10
to android...@googlegroups.com
you can try installing busybox on your Android FS and run all those commands(insmod, rmmod and many more) that are not provided in Android shell.

to install busybox follow these steps mentioned in http://omappedia.org/wiki/Android_Getting_Started#Installing_Busybox_Command_Line_Tools_.28Optional.29

regards,
Tirtha

Reply all
Reply to author
Forward
0 new messages