Quote:
I've pasted my notes so far:
http://pastebin.com/TapNxJrE
What's lacking are my startup scripts that are semi-done.
Basically what is needed is :
put a ubuntu filesystem in /usr/local/ubuntu
create a script that bind mounts what is needed and chroots into /usr/local/ubuntu, and starts your window manager.
Start the second X server : xinit <your-script-here> -- :1
In order to get opengl you need libdrm and libmali from chromeos, and make libGLESv2 point to libmali.
This is the script responsible for bind mounting and chrooting:
http://pastebin.com/EE2xuFqK
And this is the frontend script I use to start with:
http://pastebin.com/npXFjX7S
It is not nearly done, the missing prepare.sh script is for doing stuff before chrooting and start.sh is for doing stuff after, and eventually starting the window manager. I hope you can get some meaning from this until I can make it more available.
Thanks for the instructions! I will have to try that out at some point. Please let me know if you figure out how to get around the bugs you mention.
On a similar note, would it not be possible to just copy over the X server executable (and modules, and anything else tied to the X server) from the Chrome OS partition to the Ubuntu filesystem (ie. without using chroot from within Chrome OS)? Isn't the X server fairly stand-alone, or are there too many dependencies for this to be possible?
As far as I can see, the only thing that prevents copying binaries from Chrome to Ubuntu is the fact that Chrome uses a different X version than Ubuntu, so I've been thinking about completely replacing Ubuntu's X with Chrome's, so the binary extensions/drivers from Chrome OS can be used in Ubuntu.