(REQ) Help with building aosp JB kernel on 32 bit machine? - Android Q&A, Help & Troubleshooting

Looking to build vanilla kernels for jellybean roms, however I'm using a 32 bit machine. I know it can be done, just not 100% sure how to compile... Do I need certain libs? Toolchains? Commands?
A few details are I'm using Ubuntu 12.10,
Aosp ROM on an ATT OneX
If anyone is willing to dedicate a little bit of time and knowledge I'll give my gtalk or hell even my phone number lol... Any help will be GREATLY appreciated.
Sent from my One X using Tapatalk 2

It's alright to use a 32 bit machine, I'm using a 32 bit Ubuntu distro as well.
There's plenty of tutorials around the web about how to setup ubuntu for android development, even here on xda. Did you search?
Have a look around the foruns, how to setup ubuntu for android development, or google "setup ubuntu 12.10 for android development".
You'll need to install libs, the sdk, probably github and a few more things (can't tell exactly for sure, not my area of expertise)
Last time I did something alike, I used this link.

Been searching for a while lol. I see a crap load of tutorials on building GB with 32 bit.. But nothing with jelly bean. Tried a bunch of stuff... Getting this as of now
Sent from my One X using Tapatalk 2

Related

[Q] Which Linux OS is Prefered?

So I want to get into developing, I heard that Linux is where I should start. But there are a bunch of linux OS out there. Which one is suggested?
Any insight would greatly be appreciated.
P.S. I hope this is the right place to post this
I started with Ubuntu 10.04 but I found myself going to fedora 13 until my computer fried. Lol. Well I think Ubuntu 10.10 is out now could be wrong but it was in its beta stage in June so it should be done lol anyway Ubuntu is for more of the beginner stages of switching over so if your fresh with Linux I think that'd be the best way to go till you get your feet wet. Then I would move up to fedora or something along those lines. But that's my honest opinion people progress differently. I hope this helps
Sent from my FroShedYo.V6 using XDA App
I downloaded 10.10 to a disk so one I get my had drive hopefuly today ill get it installed
Sent from my SPH-D700 using XDA App
Well I wish you luck and welcome aboard the Linux train lmao
Sent from my FroShedYo.V6 using XDA App
I use Ubuntu 9.10 for my Kitchen.
I'm hardcore like that.
I'm running Ubuntu 10.10 on 3 of my computers (2Desktops & 1Laptop) and I love it. Very nice.
Usually I am on the latest Ubuntu release, but for the easy editing, I use Windows7, with Cygwin for the kitchen. Of course, this is only for ROM editing, so no buildig or such things under cyg, but for ROM dev, it is perfect. And I can keep TotalCommander and Notepad++ too
Ubuntu
If you want to be building ROM I'd vouch for Ubuntu.
All you need to do is set-up 10.4 ( so far most stable )
And then run this
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
This will get all the packages you need. Then follow instructions on [google for building android apt-get, can't post the direct link due to my account being to new here] and happy coding.
You might also want to install Eclipse and ADT.
Also, if you want to be on the cutting edge keep in mind that newer versions of Android platform require 64-bit system for building.
If all you need is to develop the apps, you can use whatever you want as long as it runs Eclipse. [ Windows / MacOS / Most of the major linux distros ]
-- Vlad
On ubuntu it said the 32 bit is suggested. Why is that?
Sent from my SPH-D700 using XDA App
I just switched to Ubuntu 10.10 from Vista and Im kicking myself for not switching along time ago. Its like getting a new computer again.
Start with Linux Mint. It's a redone version of Ubuntu basically. It's aimed towards being friendly to first time Linux users but still powerful enough for experienced users. It comes with some more drivers than Ubuntu so it's compatible with more hardware out of the box and you won't need to do command line stuff or mess with getting drivers installed. It's just an overall great first time linux user distro. I even use it still while I'm inbetween testing out other distros till I finally find one I like to stick with. I tell everyone I know to try out Linux Mint if it's their first time installing linux. One added bonus is it since it's based off of Ubuntu, it has access to all of Ubuntu's programs also through it's software manager. The lists go on. I'd say watch some reviews on youtube (no, not the one's by twelve year olds haha). Also, it's just more so a matter of taste and preference to find your perfect distro that you'll want to stick with. Ubuntu is just a well known one so most people tend to flock to it and use it. (Not that I hate Ubuntu or anything like that).
But anyways, I suggest LinuxMint to the first time users.
EDIT::
warlar12 said:
On ubuntu it said the 32 bit is suggested. Why is that?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
I had heard that alot of the 64bit was still new (atleast with the Ubuntu and LinuxMint) and can be quirky at times. But it was about one year ago that I was told that by a member of the Ubuntu forums...I'm not sure how reputable he was, but I just remember him having a few thousand posts.
Although from my experience I would have to say I have not had any problems with 64bit. I have been messing with Linux a little here and there for about a year and half now, and finally got another computer (netbook) after about 8 months of sharing an ancient desktop so I'm starting all over again.
I would agree with Linux Mint. That is what I am on at the moment. I am also a moderator for PeppermintOS and that is incredibly fast on my netbook and laptop. So I would suggest either of those.
is there any place on the website that I can see the included drivers? The reason I am asking is because my wireless card needs the "Broadcam B43 wireless driver" and on ubuntu it is not included on the install
warlar12 said:
is there any place on the website that I can see the included drivers? The reason I am asking is because my wireless card needs the "Broadcam B43 wireless driver" and on ubuntu it is not included on the install
Click to expand...
Click to collapse
I'm not quite sure. I found that information about a year ago but can't remember where... I believe it was in the forums somewhere...
I do know that they like to include broadcom drivers as 2 laptops ago my laptop needed a broadcom wireless driver and a few others and linux mint worked right out of the box. My brother also needed the broadcom drivers and I told him to try LinuxMint and it worked right away.
Best way to see if it'll work is to run a live cd or liveusb and play with it and see if you like it better.
codybear said:
I'm not quite sure. I found that information about a year ago but can't remember where... I believe it was in the forums somewhere...
I do know that they like to include broadcom drivers as 2 laptops ago my laptop needed a broadcom wireless driver and a few others and linux mint worked right out of the box. My brother also needed the broadcom drivers and I told him to try LinuxMint and it worked right away.
Best way to see if it'll work is to run a live cd or liveusb and play with it and see if you like it better.
Click to expand...
Click to collapse
I think ill download it and mess around with it for a bit. And as for ubuntu I agree with the one who said it is just a well known OS. Many times people flock to things that are known, like Ipods vs Zune I prefer zune however many many people use ipod and have never touched a zune. Same goes for different OS, everyone flocks to the most known one and the others may in fact be better.
As for linuxMint. I notice they have a debian version now. Anyone use it here? I like debian and was thinking of installing it to see how good it was.
smokestack76 said:
As for linuxMint. I notice they have a debian version now. Anyone use it here? I like debian and was thinking of installing it to see how good it was.
Click to expand...
Click to collapse
Yes, that's the version I am running right now.
Also running PuppyLinux and Win7.
looking into ArchLinux and also DamnSmallLinux and TinyCore Linux.
Going to be trying those out in the near future.
Linuxmint is great. basically the same thing as ubuntu, but imo it is improved in many ways. lots dub it as a beginner linux, but you still have tons of functionality (possibly as much as ubuntu) and less install headaches. I prefer the UI most of all though.
moosefist said:
Linuxmint is great. basically the same thing as ubuntu, but imo it is improved in many ways. lots dub it as a beginner linux, but you still have tons of functionality (possibly as much as ubuntu) and less install headaches. I prefer the UI most of all though.
Click to expand...
Click to collapse
I have never really heard of any functionality that ubuntu has that linux mint does not. Maybe a program or command not being installed right out of the box, but you have access to all of ubuntu's packages/software/etc through the linux mint install program (drawing a blank and actually on windows for once...playing with a windows only programming language).
I have been using and falling more in love with puppy linux...it's becomming one of my favorites...it's about a 150 megabytes in size and boots into your ram so everything is insanely fast OS wise. To configure my wireless properly I did have to download my driver from my netbook manufacturer's site and locate the .inf file within it using ndiswrapper. It works perfectly fine and is pretty dang fast. I still have more distros to try out and see what has changed in the past year or so.
Will keep reporting back on occasion with my new linux love lol.
If you want a challenge (not so big as, say, Slackware), go for ArchLinux. I have it both on my work laptop and on my home desktop. It's a rolling release, so gets updated fairly frequently and offers a great deal of flexibility. Plus, you learn a LOT about the inner workings of Linux.

[Q]

I'm sure this is a stupid noob question, but:
Can I build from source on a Chromebook without running Ubuntu in a box? If so, can anyone point me in the direction of a resource for that? I'm only asking because the wifi only Chromebooks are pretty cheap - cheaper than I am likely to find a macbook.
austontatious said:
I'm sure this is a stupid noob question, but:
Can I build from source on a Chromebook without running Ubuntu in a box? If so, can anyone point me in the direction of a resource for that? I'm only asking because the wifi only Chromebooks are pretty cheap - cheaper than I am likely to find a macbook.
Click to expand...
Click to collapse
You are very unlikely to find your answer here. What exactly are you wanting to do? Install a different OS on it?
Sounds like he wants to build Android from source code which is usually done it a Linux system. I'm not sure the answer, but it seems like you should be able to. Unless Chrome is not as powerful since it is browser based system.
I don't know if this is correct but....
I would assume that you can't because chromebooks are not powerful at all. There's almost nothing that eye popping about the specs of chromebooks. On top of that, there isn't much you can do with a chromebook because it is a browser-based operating system. If you really want to build from source just buy a cheap DIY computer from Newegg or something and install Linux on it.
Please use the Q&A Forum for questions Thanks
Moving to Q&A
You can't do what you want right out of the box on a chromebook. But you can open em up and flip a switch which will allow you to load linux or ubuntu on them. Only caveat is that the one I have is an alpha tester model they gave to us (the company I work for had a deal with google) so jot sure if that I the case wih the newest ones.
3VO Sent
austontatious said:
I'm sure this is a stupid noob question, but:
Can I build from source on a Chromebook without running Ubuntu in a box? If so, can anyone point me in the direction of a resource for that? I'm only asking because the wifi only Chromebooks are pretty cheap - cheaper than I am likely to find a macbook.
Click to expand...
Click to collapse
As long as you're able to get to a unix/linux based terminal/shell, you *should* be able to compile the Android OS.
Now there are a few caveats to the process, I recall hearing a 64 bit instead of a 32 bit system was required for gingerbread and above, plus there might be some other operating system dependencies. There might also be a RAM requirement.
Also, it can take an hour or two on many modern computer builds. This might take a very long time on a laptop or stripped down laptop such as a chromebook.
I've only compiled inside Ubuntu as that is the recommended OS by Google in their directions. I've compiled using Ubuntu as main booting OS and with Ubuntu being booted inside a VM on a Windows Host.
Best place to start is with Google's official directions for compiling AOSP: http://source.android.com/source/initializing.html
I found this link by searching google.com using the terms: android complie source code
The requirements and notes Google's mentions in their directions:
"Note: The source download is approximately 6GB in size. You will need 25GB free to complete a single build, and up to 80GB (or more) for a full set of builds."
"The Android build is routinely tested in house on recent versions of Ubuntu LTS (10.04), but most distributions should have the required build tools available. Reports of successes or failures on other distributions are welcome.
Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree"
Hope that helps! Good luck!
Thanks for the help! So it looks like I could *maybe* do the build on a chromebook, but regardless I wouldn't want to. Correct?
austontatious said:
Thanks for the help! So it looks like I could *maybe* do the build on a chromebook, but regardless I wouldn't want to. Correct?
Click to expand...
Click to collapse
Assuming you were able to get everything setup on the Chromebook, at bare minimum it would take a few hours, if not much much longer to complete the compile based on Chromebook hardware and Google expectations as outlined in my previous post.
An alternative, would be to ssh into a build box from the chromebook and compile using this method. This would probably be an approach I would be willing to take. Just throwing out another idea as there are a few reasonable alternatives.
In my experience, compiling AOSP is one of the more hardware intensive tasks I perform on my desktop .. if not the most intensive.
Hope that helps!

Help on getting started with App Development?

I would like to develop my own application, I've gotten my feet wet in programming in java and a little c++ but I want to learn everything I can.
Also maybe are there compiling tools available directly on Android?
Can anyone get me started?
Much thanks for people who help.
Sent from my Transformer Prime TF201 using xda premium
Download the Android SDK and the ADT Plugin for Eclipse from here: http://developer.android.com/sdk/index.html. After I got it all running, I found a nice little Android Development Tutorial online and went to work (it was probably on this same site). Eclipse is a little slow on Windows, so I switched to an Ubuntu machine, but that is not a must.
tedr108 said:
Download the Android SDK and the ADT Plugin for Eclipse from here: http://developer.android.com/sdk/index.html. After I got it all running, I found a nice little Android Development Tutorial online and went to work (it was probably on this same site). Eclipse is a little slow on Windows, so I switched to an Ubuntu machine, but that is not a must.
Click to expand...
Click to collapse
sorry if this is noob, but did you dual boot or run it in a VM? would either be sufficient? or would an actual dual boot be better?
stretchwookie said:
sorry if this is noob, but did you dual boot or run it in a VM? would either be sufficient? or would an actual dual boot be better?
Click to expand...
Click to collapse
I made a dual boot machine. VM works well for many -- definitely a good option to be able to play around with Linux to see if you like it. For development purposes, I thought it better to get the best performance, thus the dual boot system.
I have the need to move my development machine often, so I did my research and got a laptop that is very compatible with Ubuntu -- many are not. It has all worked out very well to this point.
tedr108 said:
I made a dual boot machine. VM works well for many -- definitely a good option to be able to play around with Linux to see if you like it. For development purposes, I thought it better to get the best performance, thus the dual boot system.
I have the need to move my development machine often, so I did my research and got a laptop that is very compatible with Ubuntu -- many are not. It has all worked out very well to this point.
Click to expand...
Click to collapse
thank you very much! i just recently decided i want to become a developer and possibly a get a degree in computer science. (im stilll young, luckily i got time to do this) and so im very new to all this. ive been rooting and flashing for 2 years, but never have created anything. so thank you for taking your time to answer me, regardless of my noobness
I recently got started with developing for Android, and using the Android SDK with eclipse is definitely a great way to get started. I would recommend making a simple application that does some type of math function.
If you have developed in Java before, it will be pretty easy to get started with Android. I common first app is a tip calculator. If you get stuck or have any questions, google is your best friend. Also, you can always PM me, I have been looking for people to develop with.
juntistik said:
I recently got started with developing for Android, and using the Android SDK with eclipse is definitely a great way to get started. I would recommend making a simple application that does some type of math function.
If you have developed in Java before, it will be pretty easy to get started with Android. I common first app is a tip calculator. If you get stuck or have any questions, google is your best friend. Also, you can always PM me, I have been looking for people to develop with.
Click to expand...
Click to collapse
I may PM you tonight, I'll see if I can get that tip calculator to work. Thanks!
Sent from my LG-VM670 using XDA App

Creating Rom?

Any vids to teach a newb how to create roms for phones. Only thing I am missing from my android knowledge
Sent from my rooted Verizon Galaxy Note 2. FU Verizon and all tour BS you throw around.
It depends, if you want to build something like an AOSP rom from source or if you want to "bake" your own from based off of a stock image. To build AOSP from source you either need to be on Ubuntu (not sure if you can on other Linux distros, could be wrong) or you need to have a virtual machine running Ubuntu on Mac or Windows. There's videos on how to do so around the net, so use Google as your friend. As far as baking goes there's a chef section at XDA that has countless tutorials on how to do stuff like that. They may also have tutorials on how to build from source (haven't been there in awhile so I couldn't tell you). Hope I helped.
Thanks for the info, I was kind of curious as well and wanted to know what it took to make one and better understand what the devs do.
I was thinking about trying to make one also found this link
http://forum.xda-developers.com/showthread.php?t=1801690
Sent from my SCH-I605 using Tapatalk 2

Rom building help

Hey guys, I recently got a new hard drive for my computer and I have the old 80 gig sitting around. I also have my old HTC Aria from when I was on AT&T. I am thinking of either building a CM rom or porting one over to it. Which ever one is easier. I have no Android development experience, so I figured this would be a good way to get my feet in the water.
I would like to hear from some people with some experience. Would Ubuntu or Windows running Ubuntu through a VM be best? Are there any little tips to make things easier? Thanks in advance!
Sent from my Infected Rezound using xda app-developers app
So do you have a machine you can dedicate to building roms or are you going to be using your main machine?
I'd put linux on it if it's a stand alone build box, otherwise if you need Windows on your main machine, go with a VM.
You can follow the steps in the how to build CM10.1 guide to set things up once you have a booted linux OS.
http://forum.xda-developers.com/showthread.php?t=1920107
Since you're building for a different phone, you'll wanna poke around that section of XDA to look for a repository to build from vs using the CM10.1 rezound repository...
Thanks! I will be using my main PC but have a dedicated hard drive just for developing. I am familiar with Ubuntu, if I didn't do a lot of audio editing and work with AutoCAD, I would use it instead of windows. I imagine Ubuntu would work perfectly, right?
Sent from my Infected Rezound using xda app-developers app
mjones already linked to my guide in Development which is based around Ubuntu.
If you want to do more than just compile preexisting code, you're going to want to get familiar with git, repo, and the layout of code in AOSP. Guides on that are hard to come by, and TBH, trial and error is how I learned things on that front.

Categories

Resources