View Single Post
  #481 (permalink)  
Old 02-26-2010, 03:48 AM
makkonen's Avatar
makkonen
TouchPro Android Guy
Offline
 
Join Date: May 2007
Posts: 585
Reputation: 3280
makkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIPmakkonen is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [1/25/2010] Google Android for TP2 CDMA [In Dev]

Quote:
Originally Posted by acbyrd View Post
I was curious to see if anyone else was able to set up a dev environment using Ubuntu in VMware. I tried just now for about the last 2 hours and, after getting Ubuntu running, I was trying to download and install alot of the packagesm but it was telling me that many of them could not be found. For Ex. git-core and sun-java5-sdk. Any help would be greatly appreciated as there is nothing on the website that says anything about this.
the required version of the java sdk is no longer available via apt for Ubuntu Jaunty, I think. You have to manually get it, install it, and then make sure your Android build tools point to it. but...

Unless you're building an entire Android system package, and I can't see why you would, you don't need... really any of those things. You need git, and you need an arm toolchain, but downloading the whole android source package to get that is a bit excessive.

I'm going to try to copy and paste my instructions from the wave here. The formatting will probably be off, but it might get you closer to up-and-running. (on preview: Yeah, the formatting's pretty bad -- the bits that are for the command line aren't distinguished from the bits that are explaining what else you need to do.)

Preliminaries

Install a linux build environment. Ubuntu is recommended. Installing in a virtual machine (Virtualbox is free and easy to install) is a good way to do so without disturbing your existing system.
Make sure git (distributed version control tool) is installed

Obtain Kernel Source

git clone git://gitorious.org/linux-on-qualcomm-s-msm/linux-msm.git
(or one of the clones of the repository, listed on the side of the page at http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm)

git checkout -b htc-msm-2.6.27 origin/htc-msm-2.6.27
(if you get an error that says fatal: git checkout: branch htc-msm-2.6.27 already exists, just ignore -- it means you've already got the correct branch)

git checkout htc-msm-2.6.27
(if you get an error that says Already on "htc-msm-2.6.27", just ignore -- you're already on the correct branch)

Obtain the ARM toolchain

wget http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -O - | tar xj
add arm-2008q3/bin to your path (export PATH=$PATH:/path/to/arm-2008q3/bin)

Obtain the Module Sources

git clone git://android.git.kernel.org/platform/system/wlan/ti.git
wget http://compcache.googlecode.com/files/compcache-0.5.4.tar.gz -O - | tar xzvf
Edit compcache-0.5.4/Makefile:
Modify KERNEL_BUILD_PATH to point to your kernel source

To Compile the Kernel

make ARCH=arm htc_msm_android_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- zImage
cp arch/arm/boot/zImage <your device's sd card>
This post has been thanked 6 times.