Adding Android kernel to manifest

Posted by Frank December - 25 - 2011 - Sunday 1 COMMENT

So say you want to grab the Android linux kernel along with the rest of the project. By default the kernels are not included in the manifest to save bandwidth for the vast majority of developers that don’t need it. I like to add them back for convience and to track new code dumps automatically. There are a few kernel projects listed at the bottom of the AOSP page based on the SoC used. I’ve made a short list for reference:

  • common – Collects changes from each the platform variants
  • goldfish – Emulator
  • msm – Qualcomm
  • omap – Texas Instruments
  • samsung – Samsung
  • tegra – NVidia

So once you know which kernel(s) you want to add to your repo manifest. Here’s how you can do it (Note: $AOSP is the top directory of your Android tree):


$ cd $AOSP/.repo/manifests # Goto manifests directory
$ git checkout -b with_kernel # Make a new branch to add kernel(s)

Then you need to edit the default.xml manifest to add your kernel(s) between the tags:

By default you’ll get the master branch, which is empty. To find the one you really want, sync with repo then list all the branches available:

$ repo sync
$ cd $AOSP/kernel/$KERNEL_NAME
$ git branch -la

Then you need to edit the default.xml manifest again with the correct branch (called revision in manifest):

Now when you sync you’ll get the kernel tree. Since you just did a sync remotely, you can just a do a local sync to avoid going out to the internet to check for changes and speed it up:

$ repo sync -l

If all this works, then you should commit the changes to your default.xml and repo will merge them into new versions for you:

$ git commit -a -m "Added kernels to manifest"

O’Reilly Radar Blog Post

Posted by Frank August - 28 - 2011 - Sunday ADD COMMENTS

I recently did an interview with O’Reilly’s radar blog about reducing power consumption on Android applications. If this is of interest to you, it is definitely worth a read.

Harvest Energy DC-DC Power Circuits

Posted by Frank April - 8 - 2011 - Friday ADD COMMENTS

When I designed the energy harvesting power supply shown in my previous post, I wrote this paper to fully consider the different options for DC-DC power conversion. So even if you’re developing just a DC-DC with not element of energy harvesting involved, such as a solar panel, then it is still worth a look through:

Harvested Energy Cellphone Power Supply

Android Dalvik Virtual Machine

Posted by Frank February - 23 - 2011 - Wednesday ADD COMMENTS

Checkout my article on the technical, security and legal motivations behind the creation of Android’s Dalvik virtual machine in the February 2011 edition of JAXmag: http://jaxenter.com/java-tech-journal/JAXmag-2011-01

Linux versus Android

Posted by Frank February - 23 - 2011 - Wednesday ADD COMMENTS

I recently googled “Linux versus Android” and to my surprise, a paper I wrote a couple years ago for UC Davis’s ECS251 (Operating Systems) course came up! So I’ve reposted the paper in my blog so that it is more accessible for everyone to enjoy: Linux versus Android

Most Recent Talk