Building your own ROM

JerryScript

Daydream Believer
Mar 8, 2011
2,055
1,559
0
Visit site
I'm also trying to figure out how to get my build tree synced back in time (say, to N days ago). But I'm enough of a git noob that I can't figure it out. I have a script that parses manifest.xml and runs through all the directories but I don't know the command to sync the git tree.

If you look in manifest.xml for CM9, for example, you will see the default revision is "refs/heads/ics". So let's take the first project entry, which is "build". It uses the default so...

Code:
$ cd build
$ git checkout refs/heads/ics
error: pathspec 'refs/heads/ics' did not match any file(s) known to git.
$ git show-ref | grep ics
569e20838ebaf6e7ce1fc517602a9976e67f6e1c refs/remotes/github/ics
569e20838ebaf6e7ce1fc517602a9976e67f6e1c refs/remotes/m/ics

So .. uhh .. where is "refs/heads/ics" and how do I sync to it?

I don't use the method often, but you can use git revert HEAD^^^ with the number of ^ equal to the number of commits you want to go back minus 1 (revert HEAD goes back one).
Git Book - Undoing in Git - Reset, Checkout and Revert
 

EarthnFire78

YAY!!! ME :)
Jan 1, 2012
964
232
0
Visit site
Think I know why I'm having problems; the wireless card disconnects after a while. Is there a better Linux driver for the Realtek Wireless? I'm running 64bit Linux-Mint if that matters.

Only does this on Linux, in Windows the card works great.
 

JerryScript

Daydream Believer
Mar 8, 2011
2,055
1,559
0
Visit site
Thanks but I want a time based checkout. I know the syntax:

Code:
git checkout ...@{time}

My issue is finding the branch/tag or whatever. :/

OIC, couldn't you grep git log?

And what happens to commit history, merges, etc, if you checkout a previous date and then attempt to go forward with future merges?

I'm going to have to do some reading...
 

jack454

Well-known member
Mar 3, 2011
53
11
0
Visit site
Think I know why I'm having problems; the wireless card disconnects after a while. Is there a better Linux driver for the Realtek Wireless? I'm running 64bit Linux-Mint if that matters.

Only does this on Linux, in Windows the card works great.
Type lspci -v in terminal and post the output for your wireless lan controller. We need to know the chipset it's using and we might find a better driver..
 

something15525

Well-known member
Dec 13, 2010
59
3
0
Visit site
So I've finally had time to start up on the ROM building again, and I keep running into the stupidest problem. I forked the "android" and "android_vendor_cyanogen" repos and kept the rest pointing to IHO in the default.xml.

I changed PRODUCT_RELEASE_NAME in products/cyanogen_thunderc.mk from "IHO" to "something15525" and went to go make a build....it built fine, but the finished product zip is called:

update-CM-7.2.0-RC1-thunderc_LS670-KANG-signed.zip

shouldn't it be:

update-CM-7.2.0-RC1-something15525-KANG-signed.zip?

One more thing:

When I flashed it, I went to check the mod version, and it said:

CyanogenMod-7.2.0-RC1-thunderc_LS670-KANG

Shouldn't the "thunderc_LS670" be "something15525"?

This is getting me really frustrated that I can't get past this simple problem and I was hoping someone could tell me what I'm doing wrong.

Here's the change: https://github.com/something15525/android_vendor_cyanogen/commit/e186ec8da6349b88df1f5dc4f3329530a688c7ce
 
Last edited:

EarthnFire78

YAY!!! ME :)
Jan 1, 2012
964
232
0
Visit site
Only so got repo to finally sync and now after selecting VM670 I got this.

Code:
[SIZE="2"]/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: No such file or directory[/SIZE]
 

tvall

Well-known member
Nov 27, 2011
591
353
0
Visit site
question.. i added magpie apps2sd-ext into iho, everything seems fine, except i can't get the ext partition to mount... isnt that what 05mountsd does? or am i missing something?
 

EarthnFire78

YAY!!! ME :)
Jan 1, 2012
964
232
0
Visit site
For anyone that is using 64bit Linux Mint they need to do the following in Terminal.

Code:
[SIZE="2"]sudo apt-get install ia32-libs[/SIZE]

It is need for the repo to work right and to even build ROMS, plus adb well not work without those 32bit packages either.
 
Last edited:

JerryScript

Daydream Believer
Mar 8, 2011
2,055
1,559
0
Visit site
question.. i added magpie apps2sd-ext into iho, everything seems fine, except i can't get the ext partition to mount... isnt that what 05mountsd does? or am i missing something?

Check your logcat to see if it's being mounted. How is your partition formatted?
 

Forum statistics

Threads
943,165
Messages
6,917,620
Members
3,158,857
Latest member
tress