here you guys go, a quick vendor tree i made for eris.
To make android, first follow the instructions over at source.android.com/source/download.html until you installed repo
from there you will do this
Code:
$repo init -u git://github.com/cyanogen/android.git -b eclair-ds
$repo sync
the sync should take a few hours, take a nap or have some coffee in the meantime
now youre going to need to remove the dream_sapphire vendor tree and replace it with this one
Code:
$rm -fr vendor/htc/dream_sapphire
$cp -r /path/to/my/vendor/ vendor/htc/dream_sapphire
after thats done you'll need to extract proprietary bits. plug your phone into your computer, make sure adb has proper
permissions, then
Code:
$pushd vendor/htc/dream_sapphire
$./extract-files.sh
$popd
from there source the envsetup.sh
Code:
$ . build/envsetup.sh
then lunch cyanogen_dream_sapphire-eng and build cyanogenmod with make
Code:
$lunch cyanogen_dream_sapphire-eng
$make otapackage -j4
make otapckage will give make you an update.zip named cyanogen_dream_sapphire-ota-eng.'$USER'.zip
github.com/darchstar/vendor_htc_desirec
darchstar said:
here you guys go, a quick vendor tree i made for eris.
Will post instructions as to how to compile cyanogenmod when i get back home
github.com/darchstar/vendor_htc_desirec
Click to expand...
Click to collapse
Good stuff.
im ready for some instructions to get my feet wet on compiling :-D
laxattack said:
im ready for some instructions to get my feet wet on compiling :-D
Click to expand...
Click to collapse
source.android.com I believe
oh this is gonna make things interesting....
gratzi!
This would be something worth learning. Can't wait, and thank you much bro.
-------------------------------------
Sent via the XDA Tapatalk App
updated first post with instructions. have fun everyone
Awesome, Great work bud !!
Cant wait to see/play with some stuff from this
if someone cud give me a better kernel binary that works for everyone, that'd be great. currently the vendor tree is using a hit or miss kernel that i compiled
Thanks!
Lawl, beat me to it
I wouldn't be surprised if I see some attempts using this guide for something...
darchstar said:
if someone cud give me a better kernel binary that works for everyone, that'd be great. currently the vendor tree is using a hit or miss kernel that i compiled
Click to expand...
Click to collapse
The one in my kernel thread at http://forum.xda-developers.com/showthread.php?t=688439
is the one that people have been having the best luck with.
Good stuff Darch!
Thank you! I have been playing with the eclair branch from the android git repository. It will be nice to take a look at your work.
darchstar said:
now youre going to need to remove the dream_sapphire vendor tree and replace it with this one
Code:
$rm -fr vendor/htc/dream_sapphire
$cp -r /path/to/my/vendor/ vendor/htc/dream_sapphire
Click to expand...
Click to collapse
Pardon my ignorance, but what directory does "/path/to/my/vendor/" correspond to?
hoban_eris said:
Pardon my ignorance, but what directory does "/path/to/my/vendor/" correspond to?
Click to expand...
Click to collapse
wherever you git clone'd my vendor tree to
I found an issue with your "vendor_htc_desirec/extract-files.sh" file. On my phone I have a couple of differences.
adb pull /system/xbin/echo3 ./
"echo3" can not be found. I have a file called "echo" on my phone.
adb pull /system/lib/hw/sensors.heroc.so ./
"sensors.heroc.so" is called "sensors.desirec.so" on my phone.
adb pull /system/etc/eri.xml ./
"eri.xml" can not be found.
adb pull /system/usr/keychars/heroc-keypad.kcm.bin ./
"heroc-keypad.kcm.bin" is called "desirec-keypad.kcm.bin" on my phone.
Other than those errors eveything is working as planned. Once again thanks for all the work getting this setup. I really appreciate it.
arockj said:
I found an issue with your "vendor_htc_desirec/extract-files.sh" file. On my phone I have a couple of differences.
adb pull /system/xbin/echo3 ./
"echo3" can not be found. I have a file called "echo" on my phone.
adb pull /system/lib/hw/sensors.heroc.so ./
"sensors.heroc.so" is called "sensors.desirec.so" on my phone.
adb pull /system/etc/eri.xml ./
"eri.xml" can not be found.
adb pull /system/usr/keychars/heroc-keypad.kcm.bin ./
"heroc-keypad.kcm.bin" is called "desirec-keypad.kcm.bin" on my phone.
Other than those errors eveything is working as planned. Once again thanks for all the work getting this setup. I really appreciate it.
Click to expand...
Click to collapse
oh, this extract-files.sh is most optimal to use against another aosp rom found in these forums
Understood. Thanks again for the work. I really just needed a push in the right direction and you have given me more than a push. Your work is much appreciated.
Thanks for this info...we need more posts like this in the Eris section. That being said I can't get repo to install. I'm getting error url malformed. I'm new to linux and can't figure out what this means..
Conap said:
Thanks for this info...we need more posts like this in the Eris section. That being said I can't get repo to install. I'm getting error url malformed. I'm new to linux and can't figure out what this means..
Click to expand...
Click to collapse
try this command to get the url
Code:
curl http://android.git.kernel.org/repo > ~/bin/repo
darchstar said:
try this command to get the url
Code:
curl http://android.git.kernel.org/repo > ~/bin/repo
Click to expand...
Click to collapse
Thank you so much that worked...the command I was using did not have the > in it. Maybe that should have been obvious but I'm still getting used to Linux.
Related
I guess this is a general question, not dev specific, so I'll post it here. I hope some people are using Linux:
Ok so something is wrong with my USB driver setup in android SDk.
I'm using Ubuntu Jaunty x64, and followed the steps here:
http://developer.android.com/guide/...ing/device.html
Everything was Ok last week.
Today, the device is not recognized:
Code:
[email protected]:~/android-sdk-linux_x86-1.5_r3/tools$ ./adb devices
List of devices attached
I can fastboot a recovery ROM just fine:
Code:
[email protected]:~/android-sdk-linux_x86-1.5_r3/tools$ ./fastboot boot recovery-RAv1.2.1H.img
downloading 'boot.img'...
OKAY booting...
And in fastboot mode:
Code:
[email protected]:~/android-sdk-linux_x86-1.5_r3/tools$ ./fastboot devices HT95RNK02763 fastboot
Any ideas? This is preventing me from remounting the system in write mode.
Try using sudo before your adb commands and it should work, the problem is to do with the unprivileged user not having access to the hardware.
You can fix it permently by telling udev about the device, see this thread for details.
http://www.anddev.org/viewtopic.php?p=21753
Nice to see some other Ubuntu users on the forum!
sdk problem
Hey sorry to bug guys. Since u guys have the sdk working already i figured to ask. How did u get the enviormental path changed? I cant get it to work for the life of me. Im using linux mint 7.1. I got it to work on ubuntu 9.04 but mint is making me grrr. Thanks!
rockin_mod said:
Hey sorry to bug guys. Since u guys have the sdk working already i figured to ask. How did u get the enviormental path changed? I cant get it to work for the life of me. Im using linux mint 7.1. I got it to work on ubuntu 9.04 but mint is making me grrr. Thanks!
Click to expand...
Click to collapse
You should just be able to add it to .bashrc. I read somewhere that adding it to .bash_profile works.
rockin_mod said:
Hey sorry to bug guys. Since u guys have the sdk working already i figured to ask. How did u get the enviormental path changed? I cant get it to work for the life of me. Im using linux mint 7.1. I got it to work on ubuntu 9.04 but mint is making me grrr. Thanks!
Click to expand...
Click to collapse
I never bothered changing the environment path. Just cd in to the tools directory, and start your commands with ./
Code:
./fastboot boot recovery.img
Add a line at the end of ~/.bashrc that points to directory containing fastboot, adb, etc.
For example mine is /home/ben/androidsdk/tools and the path statement is:
export PATH=$PATH:~ben/androidsdk/tools
First off, as always, if this causes any damage, or loss of anykind anyhow anyway I am not at fault, don't blame me.
So you rooted? But no longer want root? or want to downgrade to 1.5 with an ruu? or want to flash one of the PB00IMG like the root one with an engineering bootloader?
Tonight I made another custom misc.img, it is attached to this post. You will also need flash_image which can be found here. http://www.multiupload.com/KS2JCAMGBH
Run these commands as root:
Code:
adb push flash_image /data/local/flash_image
adb push misc.img /data/local/misc.img
adb shell chmod 777 /data/local/flash_image
adb shell /data/local/flash_image misc misc.img
Now you can flash any known (to me) ruu or PB00IMG
Cool beans and thx for your continued help even tho you don't have a Eris anymore.
korben dallas said:
Cool beans and thx for your continued help even tho you don't have a Eris anymore.
Click to expand...
Click to collapse
I have 1 motodroid, 1 eris w/ no service and 1 eris with service (Wife), I haven't been able to do dev work on the eris til recently, no root.
That has changed
Great job .thanks for working on the eris
jcase you are a god among eris user keep up the good dev'ing
jcase said:
I have 1 motodroid, 1 eris w/ no service and 1 eris with service (Wife), I haven't been able to do dev work on the eris til recently, no root.
That has changed
Click to expand...
Click to collapse
Oh my bad thought you said while back it had a bad radio and you got a Droid. I guess no more assuming lol
The hits keep on coming!
I suppose this should work equally well for PB00IMG.ZIP installs (from the corresponding RUUs), yes?
This should make life easier for "unrooters"; now if there just some way to convince them that there is really only 1 reason to unroot a phone
bftb0
my only reason for unrooting is sending my phone back ......which i will be doing this weekend..... refurb is suppose to be here today
thanks jcase ....thanks for the continued work on the eris .....
rvpartsguy said:
my only reason for unrooting is sending my phone back ......which i will be doing this weekend..... refurb is suppose to be here today
thanks jcase ....thanks for the continued work on the eris .....
Click to expand...
Click to collapse
Exactaly i just got my beautiful refurb
BTW EVERYONE,......,
if u have a custom boot screen u will want to take it off first or you will be locking it in
Sent from my Eris using XDA App
korben dallas said:
Oh my bad thought you said while back it had a bad radio and you got a Droid. I guess no more assuming lol
Click to expand...
Click to collapse
It did, the one I used. It was the only non leak one I had. Puit kinks in everything.
When I try it it just keeps saying push: not found.
The commands are the same thing for OSX, right? Drag tools to Terminal and then just copy and paste those lines of commands?
hackthis02 said:
When I try it it just keeps saying push: not found.
Click to expand...
Click to collapse
Yeah dude, those instructions didn't work for me either. This is what I did (and it worked):
Code:
adb push flash_image /data/local/flash_image
adb push misc.img /data/local/misc.img
adb shell chmod 777 /data/local/flash_image
adb shell flash_image misc /data/local/misc.img
do we put the two files into the SDK/Tools folder? or are we putting them on the SD card and running these commands while the phone is in recovery? Sorry I'm a little new to this.
derickmc said:
do we put the two files into the SDK/Tools folder? or are we putting them on the SD card and running these commands while the phone is in recovery? Sorry I'm a little new to this.
Click to expand...
Click to collapse
Tools folder.
hey guys, sorry but i'm really confused as to what to do here. i'm running evil eris and i want to downgrade to 2.1leak to get a refurb eris. i'm a complete noob with all the sdk stuff. i've gotten as far as putting the two files in the sdk/tools folder, lol. if someone could help me out with this, it'd be greatly appreciated...thanks a ton.
Just flash the pbooimg.zip back onto the phone. Out should be good from there.
Sent from my Eris using XDA App
niether worked for me. the original post reads.. error opening misc.img: no such file or directory...your method reads..error reading : /data/loca/misc.img headed : Is a directory
lil_dez said:
Yeah dude, those instructions didn't work for me either. This is what I did (and it worked):
Code:
adb push flash_image /data/local/flash_image
adb push misc.img /data/local/misc.img
adb shell chmod 777 /data/local/flash_image
adb shell flash_image misc /data/local/misc.img
Click to expand...
Click to collapse
Me! Me ! Me! too please
Hey I am not understanding what to do either. I have a rooted eris that the screen started flaking out so i Have to send it back.
I rooted alright and I have a basic understanding of the recovery stuff. But could you guys either tell me what to do from scratch on this one or point me in the right direction.
I've been searching the forum for 2 weeks trying to learn how. My kids are teasing me now cuz all I do at home try to learn about this stuff. Well anyway I would appreciate some help.
I have just opened a can of worms
Wow!!! I truly did not realize the full extent of what yous guys are doing on this website. You are smart people!!! hahahaha I opened a can of worms and can't get it shut again.
You guys are the ones writing and developing all kinds of programs.
i hope you guys arent taking this the wrong way!!!
I honestly didnt realize till I researched and found the HTC Developers center.
I have no buisness trying to do any of this stuff!
If some can help me out I would appreciate it!!!!!!
I'm trying to start busybox's httpd at boot w/o success. However, I can start it manually post-boot w/o problems. Can I enable a syslog facility so I can see what happens when the bootup script calls it?
Code:
httpd -p 80 -u 80 -h /sdcard/www -c /etc/httpd.conf
I've tried running the process as -u 80 and as -u 0, both work post-boot, not before.
It's Linux - if there is an rc.local you should be able to drop a string in there to make it start.
KaiserLinux said:
It's Linux - if there is an rc.local you should be able to drop a string in there to make it start.
Click to expand...
Click to collapse
Not that simple
There is no rc.local, but I inserted
Code:
/sbin/syslogd -O /data/log/syslog
into the beginning of init.rc, but it logs nothing.
Go into applications and turn on debugging mode. Plug your phone into your computer and run 'adb logcat' or something to that effect. You can play around with your phone and watch the log scroll by.
Your gonna need the whole ADB setup. Go to the samsung epic 4G wiki and check the article about getting root and flashing a new kernel. This will have the instructions for getting ADB on your system as well.
KaiserLinux said:
Go into applications and turn on debugging mode. Plug your phone into your computer and run 'adb logcat' or something to that effect. You can play around with your phone and watch the log scroll by.
Your gonna need the whole ADB setup. Go to the samsung epic 4G wiki and check the article about getting root and flashing a new kernel. This will have the instructions for getting ADB on your system as well.
Click to expand...
Click to collapse
I've compiled my own rooted kernel and a new busybox with syslogd to see if I can diagnose why bb's httpd isn't starting at boot. As I mentioned, it starts manually w/o a problem. adb logcat isn't very useful in this particular situation. Thanks for the reply though.
jocala said:
There is no rc.local, but I inserted
Code:
/sbin/syslogd -O /data/log/syslog
into the beginning of init.rc, but it logs nothing.
Click to expand...
Click to collapse
I'm kind of a noob myself, but I recall reading that init.rc isn't really a shell script. It has a special syntax that is parsed by Android init, I'm not sure just throwing shell commands in there is going to work. I'd post a link to the doc but I can't post links yet
coldguy said:
I'm kind of a noob myself, but I recall reading that init.rc isn't really a shell script. It has a special syntax that is parsed by Android init, I'm not sure just throwing shell commands in there is going to work. I'd post a link to the doc but I can't post links yet
Click to expand...
Click to collapse
Weird, the first 500 lines of init.rc are nothing BUT shell commands.
i.e. chmod 0666 /dev/input/event0
Anyway, further along in init.rc the daemon processes are started up. syntax looks like:
Code:
service playlogo /system/bin/playlogo
user root
oneshot
I've tried setting up my programs (httpd,syslogd) as services, no joy.
jocala said:
Not that simple
There is no rc.local, but I inserted
Code:
/sbin/syslogd -O /data/log/syslog
into the beginning of init.rc, but it logs nothing.
Click to expand...
Click to collapse
sorry to hijack your post.
but i want to know how do you modify the /init.rc,
because when i reboot, the /init.rc will automatic recovery the old verison.
did you check the /init.rc, is it modified, after your phone reboot?
Does logcat not give you the info you want?
You can go here to find out how to redirect stdout and stderr to the logcat as well.
init.rc is part of the root fs, which is compiled into the kernel. So, a custom kernel is required. Search for custom kernel for details.
I didn't see anything about this on here, so I thought I'd post this:
http://www.backtrack-linux.org/xoom/photo.jpg
This was posted on the official backtrack twitter, and they claim they will be releasing an image on May 10. Don't know how many of you use backtrack, but this might be useful for some
What oz backtrack?
Sent from my MB860 using Tapatalk
Its a linux distro based off of ubuntu(I think) Its mainly used for pentesting, which usually requires custom wifi drivers. I use the drivers on my N900 and they're fantastic. Seeing as how the Atrix's bootloader is locked down, this is probably chrooted, so it probably will not be very fast
Looks intriguing. Interested on how they will be running it as its clearly not hacked into the webtop from the photo
Ahaha I love using Backtrack on my laptop. Was a pain to setup at first, however.
hmm, time for some hacking! xD
http://www.h-online.com/security/news/item/Security-distribution-BackTrack-5-released-1241332.html
Here's another article.
tehrules said:
http://www.h-online.com/security/news/item/Security-distribution-BackTrack-5-released-1241332.html
Here's another article.
Click to expand...
Click to collapse
Going to try and install it tonight. Since it runs through AndroidVNC I am assuming it is similar to the Ubuntu method posted before in the DEV. If I do get it running properly I will post the how to from BT site.
check forum link in my signature ...
it can be used with some twist's.
ye i saw that one too, didnt come to test it yet tho =/ im highly interested in it tho
any news?
It's been a couple of weeks, yet no one has proved that this works on the Atrix, other than the developers of Backtrack themselves. I'm willing to test this out sometime next week, when I won't have too much on my plate, but could someone post a video is they have successfully got this running?
I got it running on my N900 at decent speed(it is in chroot), so you can probably get it running on the Atrix. This is from the readme file(from the xoom):
1. Once you have downloaded the ARM BT package, save the files in a convenient location. The steps below assume they are in the platform-tools folder of the Android SDK.
2. Go to your platform-tools directory and proceed to make a directory on the device to store BT5:
./adb shell
mkdir /sdcard/BT5
exit
3. Copy over the busybox install files:
./adb push busybox /sdcard/
./adb push installbusybox.sh /sdcard
4. Install busybox on the device:
./adb shell
cd /sdcard/
sh installbusybox.sh
exit
5. Transfer the required BT5 files to the device:
./adb push fsrw /sdcard/BT5/
./adb push mountonly /sdcard/BT5/
./adb push bootbt /sdcard/BT5/
./adb push bt5.img.gz /sdcard/BT5/
./adb push unionfs /sdcard/BT5/
6. Uncompress the image and start BT5:
./adb shell
su
cd /sdcard/BT5
gunzip bt5.img.gz
sh bootbt
If all goes well, you'll be in the BT5 chroot:
# sh bootbt
net.ipv4.ip_forward = 1
[email protected]:/# ls /pentest/
backdoors database exploits passwords scanners stressing voip
cisco enumeration forensics python sniffers tunneling web
[email protected]:/#
Looks like you need busybox and a vnc client, and you have to change the resolution
paravorheim said:
It's been a couple of weeks, yet no one has proved that this works on the Atrix, other than the developers of Backtrack themselves. I'm willing to test this out sometime next week, when I won't have too much on my plate, but could someone post a video is they have successfully got this running?
Click to expand...
Click to collapse
I had it working the day BT5 was released.
https://picasaweb.google.com/barry99705/BackTrak5OnAtrix#
barry99705 said:
I had it working the day BT5 was released.
https://picasaweb.google.com/barry99705/BackTrak5OnAtrix#
Click to expand...
Click to collapse
mind sharing how you did it?
crnkoj said:
mind sharing how you did it?
Click to expand...
Click to collapse
This is probably the easiest way.
http://forum.xda-developers.com/showthread.php?t=1074169
So the performance isn't all that great?
barry99705 said:
This is probably the easiest way.
http://forum.xda-developers.com/showthread.php?t=1074169
Click to expand...
Click to collapse
yes but that is a tutorial for the x10, not the atrix, as much as i checked that out we have to change partitions in the files no? or did you install it like this?
ok i have it up and running but i cannot get the screen to recognize touch. i want to set it to touchpad but everything but No Pan; Trackball MOuse is greyed out. any ideas?
I do have BT on my Atrix and this info posted in here isnt new at all.. for more info about it check this thread: http://forum.xda-developers.com/showthread.php?t=1184161.
But as far as I know Android doesnt have monitor mode for wireless so forget about aircrack or sismet for now... maybe someone can help on this...maybe not...
fernandoavc said:
I do have BT on my Atrix and this info posted in here isnt new at all.. for more info about it check this thread: http://forum.xda-developers.com/showthread.php?t=1184161.
But as far as I know Android doesnt have monitor mode for wireless so forget about aircrack or sismet for now... maybe someone can help on this...maybe not...
Click to expand...
Click to collapse
It's a Broadcom radio, so most likely not. In theory, the Atrix has usb host capability, so if someone figures out how to build some atheros or rtl based usb dongles, that would work.
Ok so I was searching and searching for a guide on how to compile CM7 source, and finally found a way to do it on the latest Ubuntu 11.10 oneiric
Updated info for non-debian based systems thanks to Vicodan:
If you want to use this on fedora or non-debian based systems you will need to replace every command that says apt-get to yum. Thanks to Vicodan for pointing this out as I do not use fedora myself.
Hardware Requirements:
- A minimum dual core pc, the more ram the better
- A working wifi connection
- Linux Operating System. Either 32-bit or 64-bit will work
NOTE: 64-bit will run faster
Optional Recommended Software:
Many of these can be found in the software center using the search box
If you find multiple versions it's ok to install them all, unless it says
otherwise
- Python
Alternatively open the terminal application and type
Code:
$ sudo app-get install python
Note: Enter your login password to install
- awk and gawk
- 7zip
- RAR
Code:
$ sudo apt-get install rar
Step 1 java:
Setting up java is one of the most important step to getting your pc prepared for a build environment. First check the java version that is installed on your pc
NOTE: On Ubuntu 11.10, and variants, you need to enable the
parter repository to install sun-java6-jdk:
Code:
$ sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
Code:
$ java -version
The correct version is:
Code:
java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
You must have a 1.6.x to compile on the gingerbread branch of cyanogenmod. If you have the correct version skip down to Step 2.
1a - First install the correct version:
Code:
$ sudo apt-get install sun-java6-jdk sun-java6-jre
1b - Now you will need to manually remove the other java version
Code:
$ sudo nautilus
This will open up a root file explorer. Once it opens click on the "file
system" tab on the left and navigate to the /usr/lib/jvm
Once there you should see two types of java. If you see java open jdk
you need to delete it, along with it's associated bin folder. Close the
root file explorer window
1c - Edit .bashrc
Next navigate to your home folder and open up the .bashrc file. This is
a hidden file so you will have to press Ctrl + H to see it. Add the
following lines to the top section, and change accordingly to your path
Example:
Code:
#JavaDev PATH
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.24
export PATH=$PATH:$JAVA_HOME/bin
Save the file and exit, then changes will not take effect until reboot
Verify java version again
Code:
$ java -version
Step 2 - Install git
http://help.github.com/linux-set-up-git/
or
Code:
$ sudo apt-get install git
Step 3 - Prepare the Build Environment
NOTE: You only need to do these steps the first time you build.
If you previously prepared your build environment, skip to Copy
proprietary files.
3a - Install the ADB
Install the Android SDK. http://wiki.cyanogenmod.com/index.php?
title=Howto:_Install_the_Android_SDK
3b - Install the Build Packages
Install using the package manager of your choice:
For 32-bit & 64-bit systems:
Code:
$ [COLOR="red"]sudo apt-get install[/COLOR] git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
For 64-bit only systems:
Code:
$ [COLOR="red"]sudo apt-get install[/COLOR] g++-multilib lib32z1-dev lib32ncurses5-dev [COLOR="Red"]lib32readline-gplv2-dev[/COLOR] [COLOR="Red"]gcc-multilib g++-multilib[/COLOR]
3c - Create the Directories
You will need to set up some directories in your build environment.
To create them:
Code:
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
3d - Install the Repository
Enter the following to download make executable the "repo" binary:
Code:
$ [COLOR="red"]curl https://raw.github.com/android/tools_repo/master/repo > ~/bin/repo[/COLOR]
$ chmod a+x ~/bin/repo
NOTE: You may need to reboot for these changes to take effect.
Now enter the following to initialize the repository:
Code:
$ cd ~/android/system/
$ [COLOR="red"]repo init -u git://github.com/CyanogenMod/android.git -b gingerbread --repo-url=git://github.com/android/tools_repo.git[/COLOR]
$ repo sync
3e - Copy proprietary files
NOTE: This only needs done the first time you build. If you have
already done these steps, you may skip to Download RomManager.
You will need to have a speedy with a working copy of CyanogenMod
install and ADB working on the computer. This script will copy the
proprietary files from the device.
Connect the device to the computer and ensure that ADB is working
properly.
Code:
$ cd ~/android/system/device/htc/speedy/
./extract-files.sh
3f - Download RomManager
NOTE: This only needs to be done when an update to
RomManager is released. If you are-up-to date, you may skip to Building
CyanogenMod. Download RomManager which is needed by the build:
Code:
$ ~/android/system/vendor/cyanogen/get-rommanager
3g - Building CyanogenMod
Check for updates
First, check for updates in the source:
Code:
$ cd ~/android/system/
$ repo sync
$ cp build/core/root.mk -f Makefile
3h - Set up your Compiler
This is optional but helpful for kernel compiling
There are a lot of things that need to be added to the .bashrc to let your
pc know about which type of compiler you want to use. The best way is
to use the one provided in the CM7 work tree.
Code:
[COLOR="red"]#Android[/COLOR]
export ARCH=arm
export CCOMPILE=$CROSS_COMPILE
export PATH=$PATH:~/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
3i - Configure Build & Compile
Now, the environment must be configured to build and the ROM
compiled, from code, for the Speedy.
Code:
$ . build/envsetup.sh && brunch speedy
3j - Install
Copy your .zip file from
~/android/system/out/target/product/speedy/update.cm-XXXXX-
signed.zip to the root of the SD card.
Optional: Download Google Apps for CyanogenMod 7 and place it on the
root of the SD card.
Flash both of these .zip files from recovery.
Nice write up. When I have time I'll see if it works for me.
riggsandroid said:
Nice write up. When I have time I'll see if it works for me.
Click to expand...
Click to collapse
Yeah this was a quick write up. The main thing is you have to reboot every time you edit your .bashrc, or copy and paste it into terminal
Also I'll be doing a how to compile kernel, hopefully soon
Or just when you change your bashrc, just source the bashrc script
. ~/.bashrc
Sent from my PG06100 using XDA App
Has anyone tried a swap file yet? I just set mine up and it seems to speed compiling up quite a bit. I went off of this guide but I made mine 1.6GB in size
https://help.ubuntu.com/community/SwapFaq
You are a savior... I have been trying to get this running on my natty tower, but have had little success... This write up will be very handy... Thank you for the excellent write up and the time for doing it...
Sent from my PG06100 using Tapatalk
New java update?
I noticed that my java was not all the way up to date. I went into recovery and selected fix broken packages and then it updated my java to this version:
~$ java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
On a side note it also updated my python and some other things. Make sure you have internet that is not wifi
guide updated for korg workaround. Changes are labeled in red
Repo not found?
Followed Directions to the T, Currently Hung up on
Code:
$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread --repo-url=git://github.com/android/tools_repo.git
Tells me repo command not Found
EDIT: I'm sorry hows about more info?, Ubuntu 11.10 64bit need anymore just ask
Nice guide. Can I do this on Fedora?
riggsandroid said:
Nice write up. When I have time I'll see if it works for me.
Click to expand...
Click to collapse
...6 months later.
Ya find any of that time yet, Riggs?
JaceAlvejetti said:
Followed Directions to the T, Currently Hung up on
Code:
$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread --repo-url=git://github.com/android/tools_repo.git
Tells me repo command not Found
EDIT: I'm sorry hows about more info?, Ubuntu 11.10 64bit need anymore just ask
Click to expand...
Click to collapse
Did you set up ~/bin/repo yet? Never had that issue before. Probably need to reboot once for the repo to take effect. Just like it says on the OP.
Sent from my PG06100 using xda premium
VICODAN said:
Nice guide. Can I do this on Fedora?
Click to expand...
Click to collapse
I wish I knew more about fedora, but I just don't, sorry.
Sent from my PG06100 using xda premium
sparksco said:
I wish I knew more about fedora, but I just don't, sorry.
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
It works fine on fedora just change the apt-get to yum
Great guide, thanks sparksco
Sent from my PG06100 using Tapatalk
VICODAN said:
It works fine on fedora just change the apt-get to yum
Click to expand...
Click to collapse
Sweet thanks for pointing that out. I've been meaning to update this guide when I have time later when I get home I'll update more info on it. I've also been wanting to try fedora for quite some time.
Sent from my PG06100 using xda premium
jesusice said:
...6 months later.
Ya find any of that time yet, Riggs?
Click to expand...
Click to collapse
I was wondering about this too
Sent from my PG06100 using xda premium
OP updated
Updated OP to include Vicodan's instructions and this is to build kanged editions of Cyanogenmod. I will also start posting my own versions of the kanged builds here when I get a build that will include my own extra mods.
Awesome guide. I'll be trying this soon. Tonight, if the wife and kids cooperate. Which usually translates to 'a week from now' lol...
Sent from my SPH-D700 using Tapatalk
NawtyB78 said:
Awesome guide. I'll be trying this soon. Tonight, if the wife and kids cooperate. Which usually translates to 'a week from now' lol...
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Its all good. me and sparksco use regular Ubuntu and it runs great