[Q] How do you compile CM7 from source? - Nook Color General

Does someone have a link that has the instructions for creating CM7 from source? Thanks.

Really? No one has a link?

It doesn't look like there's a guide for NC yet...I'm sure in time it will be added to http://wiki.cyanogenmod.com/index.php?title=Building_from_source

cyansmoker said:
It doesn't look like there's a guide for NC yet...I'm sure in time it will be added to http://wiki.cyanogenmod.com/index.php?title=Building_from_source
Click to expand...
Click to collapse
Just follow Zoom guide from there.
replace all occurences of motorola/sholes to bn/encore and just sholes to encore
so you'd be doing stuff in devices/bn/encore and at the end run brunch encore

The nookdevs wiki has steps as well:
http://nookdevs.com/NookColor:_CyanogenMod_Technical_Page
Following them myself now. We will see what happens.

Related

Kovsky Kernel Development [2.6.27]

Guys,
Seems like there are lots of threads popping up with new 'packages'. I thought we should create a thread solely for the discussion of kernel hacks/patches so that we can separate the two:
For those of you who dont know, http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm-xdadev is the repo were are working on.
Just to clarify, this topic is ONLY for discussion regarding Kernel patches. Thanks to vdelf's headset patch it seems sensible to focus on:
1. Backlight always on problem FIXED 01/05/10 (vdelf)
2. Battery Issue FIXED 11/05/10 (drlucky)
3. Camera
4. USB
5. GPS
Makes sense. Lets add USB to the list. While charging works, data transfer does not. Also USB might allow us to debug kernel/android on the x1 and that is what dev's always dream of
:suggestion: why not add the latest kernel as download in the 1st post if there is progress. So everyone know where to download the latest updates u ppl do
dexteral said:
:suggestion: why not add the latest kernel as download in the 1st post if there is progress. So everyone know where to download the latest updates u ppl do
Click to expand...
Click to collapse
It will be great to do this, and stick it
@dexteral,
Anyone can checkout the kernel from the above repo I posted. To do what you require we would need to upload the Kernel everytime someone adds a patch...
vdelf said:
Makes sense. Lets add USB to the list. While charging works, data transfer does not. Also USB might allow us to debug kernel/android on the x1 and that is what dev's always dream of
Click to expand...
Click to collapse
Is data transfer even possible in haret? I mean how would system unmount sdcard if it's running from sdcard itself?
not fast data but normal will work
love it
vietdoan20062006
Hi, Lets add fm-radio to the list
Great idea ... otherwise we are creating such a mess with lots of different kernel versions in different threads.
If anyone is interested in compiling the kernel as well as the wifi modules, I have setup a VMWare debian appliance containing all necessary tools and scripts to compile everything. Since this is a few hundes MB, I haven't got a place to upload ... need to check this first. If you are interested, let me know.
@drlucky
Have you had a chance to look at the backlight issue? I am almost out of ideas
Can you post your modifications on the microp-module and what you found out until now?
_Sensible said:
Guys,
Seems like there are lots of threads popping up with new 'packages'. I thought we should create a thread solely for the discussion of kernel hacks/patches so that we can separate the two:
For those of you who dont know, http://gitorious.org/linux-on-qualcomm-s-msm/linux-msm-xdadev is the repo were are working on.
Just to clarify, this topic is ONLY for discussion regarding Kernel patches. Thanks to vdelf's headset patch it seems sensible to focus on:
1. Backlight always on problem
2. Battery Issue
3. Camera
4. USB
5. GPS
Click to expand...
Click to collapse
hey could you post the steps involved for compiling the kernel i am able to comile the kernel but it is not running
Wich toolchain do you use? arm-2008q1 or arm-2009q3?
X1iser said:
Wich toolchain do you use? arm-2008q1 or arm-2009q3?
Click to expand...
Click to collapse
arm-2010q1
could u write all the commands used by you
the way i have written
Personally I'll start to see how to compile the kernel. Can you share the link to download arm-2010q1?
Have you read this post ?
X1iser said:
Personally I'll start to see how to compile the kernel. Can you share the link to download arm-2010q1?
Have you read this post ?
Click to expand...
Click to collapse
http://www.codesourcery.com/downloa...-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
but may be it is not the right one it has got 202 in it insted of 67
ya i read that post only
i was able to compile the kernel but it is giving some errors
_Sensible said:
@drlucky
Have you had a chance to look at the backlight issue? I am almost out of ideas
Click to expand...
Click to collapse
Sorry, haven't had the time. Could you push your changes to the git repo, I will try to have a look at it this week ...
okay i tried to make the kernel bt following the guide above by fatsal...
but i got stuck at
make htckovsky_defconfig ARCH=arm
htckovsky_defconfig doesn't exist (in the new repo anyway, i believe)
any help? which defconfig to use? :S
drlucky said:
Sorry, haven't had the time. Could you push your changes to the git repo, I will try to have a look at it this week ...
Click to expand...
Click to collapse
Just played with the klt-driver a bit. I always get version 0x0000, which on a hero means "bootloader mode". I have tried to migrate the hero code, but with no luck. It seems that the microp-klt needs a "reset", which shoudl be done by using a magical GPIO (on hero: 76), but this doesn't currently work at all. Kernel boots up, but still gets no valuable version number.

Building for Nexus one

Sorry if this has been asked or posted, I tried doing a search but lots of hits..
Here goes:
Is there a howto for building a Nexus one rom from Android Open Source dot com?
I have seen these:
(cant post real links lame....)
But they basically tell you to pull from GIT and type make.
I have flipped over the Makefiles, but it would be handy if someone has a tut on building a nexus one specific point of view.
Again I apologize if this has been covered.
Cheers,
Check out the wiki at http://wiki.cyanogenmod.com/index.php/Building_from_source that will help you start to compile your own ROM. Also there is a build script floating around on the CyanogenMod Forums that you can use.
Thanks this is what I have been looking for! I have the build system building on my gentoo box ATM, I will check out this link and search for the build script.
I believe I found the build script in the Motorola Droid section of the CyanogenMod forums. Like 3 or 4 pages into it.
maverick262 said:
I believe I found the build script in the Motorola Droid section of the CyanogenMod forums. Like 3 or 4 pages into it.
Click to expand...
Click to collapse
Got it thanks!
Building right now..
Cheers,

[HOW-TO]Root NC - CM7 (any sticker), and FIX the "google apps won't install" issue.

[HOW-TO]Root NC - CM7 (any sticker), and FIX the "google apps won't install" issue.
All instructions located here:
https://docs.google.com/document/pub?id=1YYeYNUeXDXmVwwl4HcRBB3up4vzS_u4dG9HL6Qm6L9w
I wrote these instructions myself, but ALL CONCEPTS have been taken from various threads and comments from various sub-forums and other developers.
ALL CREDIT GOES TO THESE GREAT FOLKS FOR THEIR AWESOME SAUCE. PLEASE DIRECT ALL DONATIONS AND THANKS TO THEM!!
http://forum.xda-developers.com/showpost.php?p=11452450&postcount=19
http://forum.xda-developers.com/showthread.php?t=931720
http://forum.xda-developers.com/showthread.php?t=1030227
http://forum.xda-developers.com/showthread.php?t=1094371
http://forum.xda-developers.com/showpost.php?p=11999569&postcount=4
http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Barnes_.26_Noble_Nook_Color
http://wiki.cyanogenmod.com/index.php?title=Barnes_&_Noble_Nook_Color:_Full_Update_Guide
If I mis-typed something, or a link isn't working, or if anything else is going wrong, PLEASE EMAIL ME (or just reply here).
Changelog:
-Updated formatting for easier reading.
-Included instructions for flashing the nightly builds.
reserved for op.
thisnameissoclever said:
All instructions located here:
https://docs.google.com/document/pub?id=1YYeYNUeXDXmVwwl4HcRBB3up4vzS_u4dG9HL6Qm6L9w
I wrote these instructions myself, but ALL CONCEPTS have been taken from various threads and comments from various sub-forums and other developers.
ALL CREDIT GOES TO THESE GREAT FOLKS FOR THEIR AWESOME SAUCE. PLEASE DIRECT ALL DONATIONS AND THANKS TO THEM!!
http://forum.xda-developers.com/showpost.php?p=11452450&postcount=19
http://forum.xda-developers.com/showthread.php?t=931720
http://forum.xda-developers.com/showthread.php?t=1030227
http://forum.xda-developers.com/showthread.php?t=1094371
http://forum.xda-developers.com/showpost.php?p=11999569&postcount=4
http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Barnes_.26_Noble_Nook_Color
http://wiki.cyanogenmod.com/index.php?title=Barnes_&_Noble_Nook_Color:_Full_Update_Guide
If I mis-typed something, or a link isn't working, or if anything else is going wrong, PLEASE EMAIL ME (or just reply here).
Click to expand...
Click to collapse
Might want to update the CMR, gapps (the may or march one), and make it a bit easier to follow (more spaces?).
ace7196 said:
Might want to update the CMR, gapps (the may or march one), and make it a bit easier to follow (more spaces?).
Click to expand...
Click to collapse
The CWM version in there is, I think, the latest version that doesn't bug out using this method. I have added some spacing to make things more clear. Thank you for the feedback.
all links appear broken....can you please help?!
Yeah, all links broken. Use mediafire instead please.
I tried everything in your list, but Google Apps still wouldn't show up...and yes, I went to settings accounts/sync...and the only option was for an exchange account. BUT...I DID FIX IT! 7.0.3 seemed to be a problem for some others also, so I ran 7.0.2 and it installed perfectly. Then, once I'd gotten everything up and running, I updated to the latest CM7 RC via RomManager and everything went smooth as butter. Thanks so much!!!

Looking for MIUI4DX testers

NOTE: If you do not know how to SBF or have problems SBFing please do not post about it here. This is a research thread
A while ago TreyM started development on MIUI4DX. Unfortunately he does not own a Droid X. And due to personal reasons he may not be returning to the scene for some time. If he was here I would ask to take over development, but because of the circumstances I've decided to head development. (If anyone has an issue with this please contact me.)
I'd use the other thread created by TreyM for this, but I feel due to this being very unstable and being in a place where there are other device developers, I may be able to get some more input. Also this is an older build of MIUI,
Here comes the hot stuff!
Instructions:
These are in update.zip form. Just install as a zip through ClockworkMod
To grab a logcat you must have the ADB. Open a terminal (Command Prompt) and input the following:
Code:
adb devices
adb -d logcat > MIUI4DX-logcat.txt
I also need dmesg output.
Code:
adb devices
adb shell
dmesg
Go to pastebin.com and post a link to logcats and dmesg output here.
Test builds, and changelogs.
Here is test #9. It is basically the Defy MIUI ported to the Droid X
http://tetradsoftware.com/android/i...ile=miuiandroid_DroidX-1.7.10_pre-alpha-9.zip
Does not get to the bootanimation
LOGCAT: http://pastebin.com/SLy6TSqh
DMESG: http://pastebin.com/kc4N34cy
This is test #10. It's basicly the Defy apps, and framework-res.apk forted to CM7:
http://tetradsoftware.com/android/index.php?dir=DroidX/MIUI4DX/&file=MIUI-Alpha-10.zip
This actually gets to the bootanimation
LOGCAT: http://logcat.miui.us/285002
DMESG: http://pastebin.com/0wAFVXKs
Please, please, please look over the logcats, and dmesg for both of them. I can't decided which to go from.
Follow me on Twitter @ghostlypickel
are we suppose to just install one of the given zip's or do we have to use the commands first. Some detailed instructions would be extremely helpful
reannimated said:
are we suppose to just install one of the given zip's or do we have to use the commands first. Some detailed instructions would be extremely helpful
Click to expand...
Click to collapse
Install then run the commands. The test logs and changelogs are at the bottom for organizational reasons, since it's being constantly updated.
Downloading now flashing and logging when I arrive home in about an hour or so.
Just flashed the new miui port for the nook color. Wip but great Tom nonetheless.
Sent from my DROIDX using XDA Premium App
Edit: took a bit longer getting home then expected. Redownloading now previous went south.
OP updated with important info. Please look at BOTH builds logcats/dmesg. I cannot decide which to go from.
Still looking for testers?
cyberhern said:
Still looking for testers?
Click to expand...
Click to collapse
I dont think he is since the real release is coming out tonight for the DX and D2.
bigshotrob22 said:
i dont think he is since the real release is coming out tonight for the dx and d2.
Click to expand...
Click to collapse
i hope that's true
cyberhern said:
i hope that's true
Click to expand...
Click to collapse
It is. It's supposed to be released on miui, xda, and on rootzwiki.
Sent from my DROIDX using XDA App
bigshotrob22 said:
It is. It's supposed to be released on miui, xda, and on rootzwiki.
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
THANKS for the heads up...
Guess I know what I'll be doing this weekend.
!-)
sweet! i will have to try this tomorrow but definitely keeping an eye out on this thread

Compiling cm11

Hello,
I don't want to ask how to build ROM.
I am new to building and compiling. I followed tutorial here on xda.
I installed everything crucial, then I do "repo init" ( repo init -u https://github.com/P880-dev/android.git -b cm-11.0) and then "repo sync". Source has downloaded. Then I do "source \envsetup.sh", "lunch", chose 11 as cm_p880-userdebug and at last "make -j6 otapackage". Now I have a question: I am compiling it for like 6 hours and in "home\username\android\out\project\p880" is around 12 GB of data, is that good?
Sent from my LG-P880 using Tapatalk
yep that is good.. every next time would be faster..
how long ? depends on processor and ram
@gerciolisz
Oh, forgot my specs:
Asus laptop
Core i5 3120m
6 GB ram
in virtualbox:
3 cores
2,5 gb
60 gb disk
And run make -j6
whoah it can be a long day to you i have ubuntu in dualboot with windows i5 and 12gb ram and it took about 4 hours
I am more concerned about that I have only 6 gb of disk available. But I think it is on the end of process. It is worth if waiting
Compiling done First compiling successed Tomorrow time for testing.
Just 2.3 GB of storage left
Do I need to manually now run ccache=1 (or sth like that - to not compile everytime everything) or is good if it is already in file somewhere in repos configuration?
You have to initialize ccache before compilation, that way it can cache the code when you first compile it. Check here.
LGaljo said:
Compiling done First compiling successed Tomorrow time for testing.
Just 2.3 GB of storage left
Do I need to manually now run ccache=1 (or sth like that - to not compile everytime everything) or is good if it is already in file somewhere in repos configuration?
Click to expand...
Click to collapse
Just like Adam said.. But anyway it needs more space to cache..
Sent from my LG-P880 using xda app-developers app
I will expand disk. I added first two lines in bashrc. But I didn't run prebuilts/misc/linux-x86/ccache/ccache -M 50G. It is good if I do it now?
Sent from my LG-P880 using Tapatalk
LGaljo said:
I will expand disk. I added first two lines in bashrc. But I didn't run prebuilts/misc/linux-x86/ccache/ccache -M 50G. It is good if I do it now?
Sent from my LG-P880 using Tapatalk
Click to expand...
Click to collapse
You can, but won't have effect now as you already compiled.
gerciolisz said:
whoah it can be a long day to you i have ubuntu in dualboot with windows i5 and 12gb ram and it took about 4 hours
Click to expand...
Click to collapse
Today I built my new build from scratch in 2 hours and half. I made dualboot and run make -j12 otapackage. Mean while I was able to surf the web :laugh:.
Hi!
Perhaps this thread actually can be some kind of a tutorial on how to build CM11 for P880, if you succeded?
I have followed this thread:
http://forum.xda-developers.com/showthread.php?t=2515305
Except i did some mistakes, so i simply did a fresh Ubuntu reinstall on a SSD-disk so it hopefully also will build faster..
I have some questions though:
- Don't we need to insert the code into the local_manifest.xml?
- Also, i see you don't compile it using "brunch p880" command.. Is there a reason for this?
LGaljo said:
Today I built my new build from scratch in 2 hours and half. I made dualboot and run make -j12 otapackage. Mean while I was able to surf the web :laugh:.
Click to expand...
Click to collapse
make -j12 with 3 core inside virtualbox? seems pointless 3-4 would be sufficient. also try schedtool and see if it's faster. (install schedtool, then use schedtool -B -e make -j4 otaimage)
gingerboy92 said:
make -j12 with 3 core inside virtualbox? seems pointless 3-4 would be sufficient. also try schedtool and see if it's faster. (install schedtool, then use schedtool -B -e make -j4 otaimage)
Click to expand...
Click to collapse
You didn't read well, I made dualboot with windows. I don't know how is it possible to run -j12 and no lag. (I was also able to surf the web). can be installed with apt-get? does otaimage produce .img file?
faabak said:
Hi!
Perhaps this thread actually can be some kind of a tutorial on how to build CM11 for P880, if you succeded?
I have followed this thread:
http://forum.xda-developers.com/showthread.php?t=2515305
Except i did some mistakes, so i simply did a fresh Ubuntu reinstall on a SSD-disk so it hopefully also will build faster..
I have some questions though:
- Don't we need to insert the code into the local_manifest.xml?
- Also, i see you don't compile it using "brunch p880" command.. Is there a reason for this?
Click to expand...
Click to collapse
just follow the instructions from the thread until creating the working directory, for initializing repo, use the one from laufersteppenwolf's thread (http://forum.xda-developers.com/showthread.php?t=2551006).
repo init -u https://github.com/P880-dev/android.git -b cm-11.0the next steps are the same.
repo sync
cd vendor/cm/
. get-prebuilts
and other steps. i'm lazy to retype everything if you are really willing to build android from source, you should be able to figure out what i'm saying
---------- Post added at 11:33 PM ---------- Previous post was at 11:23 PM ----------
LGaljo said:
You didn't read well, I made dualboot with windows. I don't know how is it possible to run -j12 and no lag. (I was also able to surf the web). can be installed with apt-get? does otaimage produce .img file?
Click to expand...
Click to collapse
there's no point of using numbers higher than the amount your cpu cores. -j5 or -j6 is fine for quad core cpu, any higher, it doesn't effect anything, just pointless. sudo apt-get install schedtool should work, but again, i have no idea how much difference it will make. otaimage will produce a zip file. you can also use make bacon. make bacon will produce a zip with the proper naming, and more, i guess, idk.
gingerboy92 said:
just follow the instructions from the thread until creating the working directory, for initializing repo, use the one from laufersteppenwolf's thread (http://forum.xda-developers.com/showthread.php?t=2551006).
repo init -u https://github.com/P880-dev/android.git -b cm-11.0the next steps are the same.
repo sync
cd vendor/cm/
. get-prebuilts
and other steps. i'm lazy to retype everything if you are really willing to build android from source, you should be able to figure out what i'm saying
---------- Post added at 11:33 PM ---------- Previous post was at 11:23 PM ----------
there's no point of using numbers higher than the amount your cpu cores. -j5 or -j6 is fine for quad core cpu, any higher, it doesn't effect anything, just pointless. sudo apt-get install schedtool should work, but again, i have no idea how much difference it will make. otaimage will produce a zip file. you can also use make bacon. make bacon will produce a zip with the proper naming, and more, i guess, idk.
Click to expand...
Click to collapse
I'm actually doing the sync now, with the https://github.com/P880-dev/android.git so i'm guessing i'm onto the right path!
Thanks!!
faabak said:
I'm actually doing the sync now, with the https://github.com/P880-dev/android.git so i'm guessing i'm onto the right path!
Thanks!!
Click to expand...
Click to collapse
you are welcome.
hope it will compile.
and boots
don't worry if it bootloops, we all had it at least once.
gingerboy92 said:
you are welcome.
hope it will compile.
and boots
don't worry if it bootloops, we all had it at least once.
Click to expand...
Click to collapse
It compiled!
But.. Of course it bootloops, as i expected! Maybe i should just try to compile it again? What did you do?
faabak said:
It compiled!
But.. Of course it bootloops, as i expected! Maybe i should just try to compile it again? What did you do?
Click to expand...
Click to collapse
it have been a while since i compiled from 4.4 source. i think i read from cm11 development thread someone mentioned that the some patches causes bootloop. perhaps your problem is the same as his. take a look at the thread
gingerboy92 said:
it have been a while since i compiled from 4.4 source. i think i read from cm11 development thread someone mentioned that the some patches causes bootloop. perhaps your problem is the same as his. take a look at the thread
Click to expand...
Click to collapse
Yeah, i also noticed! But it does'nt seems like everyone has that problem.. I run "brunch" again now, it only used like 15 minutes or so.. Will try to install it!

Categories

Resources