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.
Bulding virtualbox guest additions for a custom kernel
-
- Volunteer
- Posts: 3342
- Joined: 10. May 2007, 16:59
- Location: Israel
Re: Bulding virtualbox guest additions for a custom kernel
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.
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.
Re: Bulding virtualbox guest additions for a custom kernel
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?
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?