View Single Post
  #252 (permalink)  
Old 02-09-2010, 01:41 AM
95-civic's Avatar
95-civic
Android VIP
Offline
Threadstarter
 
Join Date: Jul 2008
Posts: 55
Reputation: 3800
95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic is still contributing even after becoming a VIP95-civic 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]

For anyone who is interested in setting up their own dev environment follow my guide below. (I will add this to post #2)

Even if you don't have any programming experience you may have fun exploring the inner workings of Android.

Quick and Dirty Install Guide to setting up local dev environment by 95-Civic:
1) If you don't already have a linux box setup I would suggest downloading VM ware and finding a free image of Ubuntu.
2) From there head over to
http://source.android.com/download which should walk you through the installation of all packages required to retrieve and compile the source code.
3) It will take several hours to pull in the entire repository. Once download you do not need to compile the android code in order in order to build the kernel, we will use the prebuilt directory
4) Once you have copied the repository you will want to get a copy of linux-on-qualcomm. cd into the android source directory
5) type:
git clone git://gitorious.org/linux-on-qualcomm-s-msm/linux-msm.git
this process may take several hours depending on your internet connection speed
6) Copy the prebuilt directory from the android source over into the new directory created by the command above (linux-msm)
cp -r prebuilt ./linux-msm
7) CD into the linux-msm directory
8 ) Run the following command
make ARCH=arm CROSS_COMPILE=prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi- htc_msm_android_defconfig
9) If no errors are listed you will receive the following message: "configuration written to .config". Continue to step 10
10) Run
make ARCH=arm CROSS_COMPILE=prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi- zImage
11) When complete (if compiled successfully) you will now brand new zImage located in ./arch/arm/boot/zImage

As long as you use the rootfs.img and system.sqsh that I provided in the zip file you should have access to the CDMA radio to make and receive calls. In some cases you will not have access to the radio depending on the default configurations in the htc_msm_android_defconfig file.

Custom config has been posted to both this post and post #2. You will need to unzip and copy the attached file into the linux-msm/arch/arm/configs directory. When running step 8 replace htc_msm_android_defconfig with htc_tp2_cdma_defconfig

Update:
This will not have any of the changes, additions, and tweaks I've made to the linux-msm source. However it should give you a fresh bootable image and a great place to start. I would like to create a gitorious clone in the near future but right now any free time is better spent on data.

Happy coding and please feel free to PM with any questions.
Attached Files
File Type: zip htc_tp2_cdma_defconfig.zip (8.2 KB, 17 views) Click for barcode!
__________________

Last edited by 95-civic; 02-09-2010 at 02:04 AM.
This post has been thanked 18 times.