Bulding virtualbox guest additions for a custom kernel

Discussions related to using the OSE version of VirtualBox.
Post Reply
DroidRC
Posts: 2
Joined: 21. Apr 2012, 12:59

Bulding virtualbox guest additions for a custom kernel

Post by DroidRC »

I was thinking about building guest additions for new android ICS vbox target.
I found that we could build guest additions kernel modules by doing -
make BUILD_TARGET_ARCH=x86 KERN_DIR=/path/to/android/kernel"

But when I looked at vbox source, it uses kbuild to build vbox. I was looking for a way to build the kernel modules for the goldfish kernel, and try to load them on android startup.
I have seen a thread, where there as answer that guest additions for android is not supported. But I would like an explanation, if someone has actually tried building it this way.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Bulding virtualbox guest additions for a custom kernel

Post by Technologov »

AFAIK building GA for Android kernel should work, just like for normal Linux. But patching vbox sources may be required...

My suggestion:
1. Use single OS image (Debian for example)
2. install 2 kernels: one - normal Linux 3.2 kernel *and* Android kernel
3. try to build GA on both, and see differences.
4. If Android fails, but standard Linux works, paste logs here.

"guest additions for android not supported" is likely to reference to X11 GA. There is a module (in GA) called "vboxvideo", which is based on X11 window system, which will fail on Android, but works on standard Linux.
DroidRC
Posts: 2
Joined: 21. Apr 2012, 12:59

Re: Bulding virtualbox guest additions for a custom kernel

Post by DroidRC »

Thanks for the information. I would follow the steps and post the results.

One query for this. Is there a way to build just the GA modules for a specific kernel? Doing " make BUILD_TARGET_ARCH=x86 KERN_DIR=/path/to/android/kernel" " doesn't work, which I have already tried. Do I have to build whole vbox to get the modules for android kernel?
Post Reply