• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Virgin Mobile] AOSP

xstefen

Android Expert
Hey guys, the experienced devs atleast. For my first project I wanted to give a shot at bringing android 4.3 aosp to our phone. The problem I'm having is when syncing the android repos. After 'repo sync' it takes forever and eventually locks up. After lock up I'm unable to reboot ubuntu. Ive reinstalled 3 times trying to get this to sync. Following googles directions exactly. Anyone have experience with preparing to build AOSP from source? Help would be awesome
#padawandevproblems
 
I've narrowed it down. The boot problem occurs after installing the remaining dependencies then symlinking libgl.so. After that a reboot causes either a blank screen or black screen with flashing cursor after the Ubuntu logo.
 
I have found the culprit! In setting up my build enviroment, when installing "libgl1-mesa-glx:i386" causes..

Screenshot%20from%202013-07-27%2017%3A28%3A07.png


I believe its removing half the dependencies ubuntu needs to actually fully boot. Does anyone else recognize this? I have successfully installed every last thing required except this last lib

Mods if there is a better placs for this thread, please do move it :) thanks

Edit: it seems that [HIGH]libgl1-mesa-glx-lts-quantal:i386[/HIGH] is already installed. So im wondering if
[HIGH]libgl1-mesa-glx:i386[/HIGH]
and
[HIGH]sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so[/HIGH]
is even necessary? Still doing research. Apparently its because in Ubuntu 12.04.02 some new X variants were used.
 
Good luck with this! I have very little Linux experience, so I'm of no help. But if you get 4.3 booting (I reallllly hope you do), you have your first tester :)
 
First rule of building AOSP
Dont use Ubuntu 12.04

Lmfao. Ubuntu's site only lists a server edition of 10.04. What would you perfer/recommend? as I always thought this was pretty much the standard. I dont feel like spending hours preparing my Arch Linux build, and I removed OpenSuSE to make extra hdd space for repo syncs :D

Im going to try a test sync and build to see if it will work without that lib, maybe
 
It depends on if u need the gui. Im used to command line so I use it 24/7. You can use a debian distro because ubuntu:debian cyanogen::android. Just find whats good for u but google doesnt support new.
 
I use cli quite a bit, but i like a decent gui, cinnamon or lxde/xfce. Hmm. Well shit, I guess I should test and see if this works, or just install a different distro. Both would be about the same work. Bahhh.
 
Also, I would believe that even with ubuntu server 10.04 LTS, you could do an apt-get install for your preferred GUI. Following your progress.
 
Lol I use ubuntu 12.04
but only because im not building anymore
I only do kernels now.
But earlier I used to use ubuntu 9.04 (last year I used it still)
But if u look in the archives I think they have 10.04 images with guis
 
Im getting 10.04.4 desktop 64 now. I am interested in building a kernel too, was my first thought, but then i saw the couple on here that are already great! and only one rom. :)
 
Yeah I helped out somewhat with that last kernel releasw. But there will always be more space for otger kernels. Just build one and put it out. Add feature people want. Do you have makefiles to build the cm (device tree)?
 
i dont, im completely scratch with this phone. ive only ever edited 4.0.3 sense 3.6 roms so im fairly new to building
 
No problem. I cant compile myself as my machine is 32 bit smh but I can make device trees like the back of my hand. This will be trial and error at its finest
 
I
No problem. I cant compile myself as my machine is 32 bit smh but I can make device trees like the back of my hand. This will be trial and error at its finest

It certainly will be and I'm excited. Only rocking an Asus laptop i3 @ 2.4x4 and 4gb ram, but it'll do, 10.04.4 64bit desktop almost done installing then lots of setup todo

Edit: finished. Kernel 2.6.x eeeck I was just rocking the July release of 3.10.x lol

Edit2: seems I'm gonna have to get my wifi working before anything... Phone research ftw
 
You can use Ubuntu 12.04, you just have to install ubuntu-desktop after installing mesa! ;)

I figured it out the hard way. Had the exact same issue, and reinstalled Ubuntu 4 times trying to figure it out. Once you are at the grub boot loader, choose the recovery. Once it loads, you will need to activate root and networking, then continue to boot as normal. Once you hit the black screen press cntrl+alt+f or cntrl+alt+f1 (or f2-f10) till you get a command prompt. Once you have your command prompt try running
PHP:
sudo startx
You should see an error about x not being available. Now run
PHP:
sudo apt-get install ubuntu-desktop
Once it finishes, type reboot. This should fix your black screen at boot issues. ;).

I imagine you could avoid all this by just running apt-get install ubuntu-desktop after doing everything else to setup your build environment.
 
Thanks JerryScript Maybe I'll go back to 12.04, well see if I get ndiswrapper setup easy enough or not.

Github xstefen
 
Back
Top Bottom