• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Build CyanogenMod7 from source | Development area

Hi Isaac,

Have you tried to build your kernel lately? the OC one that you pushed up? When I load it, the OC works fine but for some reason, when I try to enable wifi, it just keeps erroring out. says it can't load wifi driver.

got any suggestions? Thanks.
 
Hi Isaac,

Have you tried to build your kernel lately? the OC one that you pushed up? When I load it, the OC works fine but for some reason, when I try to enable wifi, it just keeps erroring out. says it can't load wifi driver.

got any suggestions? Thanks.

If you're trying to use it on the latest CM7 build, it won't work. TG made a lot of changes to the librasdio module included in his build. I'll push the changes for the kernel later.
 
If you're trying to use it on the latest CM7 build, it won't work. TG made a lot of changes to the librasdio module included in his build. I'll push the changes for the kernel later.

Thanks! Although, I wonder if I'm just doing something wrong. Guess I'll try again later.
 
Thanks Isaac and Ticker.

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
11 errors
make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41

It looks like these errors are from the apps and cmparts and lockscreen area. I assume this is because you're working on making that rotating lockscreen work?

I noticed I was on gcc-4.6 /g++-4.6
switched back to 4.4 and all is building complete
 
No, I haven't looked at the CM7-Triumph recently. I just got my micro-HDMI cable today so I'm shifting my focus back to CM7.

Ahh, I see. yeah, it looks like some commit that they made in the CMParts on cm source borked it again. sheesh! Unless it's just my copy... I suppose, I could just back out the changes in the commit and see if it works. but the changes seem like they should work... oh well.

Anyhow, with you back on cm7, here's to hoping for some hdmi goodness in the future! :D
 
Ahh, I see. yeah, it looks like some commit that they made in the CMParts on cm source borked it again. sheesh! Unless it's just my copy... I suppose, I could just back out the changes in the commit and see if it works. but the changes seem like they should work... oh well.

Anyhow, with you back on cm7, here's to hoping for some hdmi goodness in the future! :D

The connection between the phone and TV is definitely being made:

Code:
E/HDMIListener(  210): handleEvent 'hdmi_connected: 4'
E/HDMIService(  210): Broadcasting ... HDMI_CABLE_CONNECTED
The blue screen is just a miscommunication on what *should* be sent/seen. I'll hack a little more on this and see if I can't get it to come up.

EDIT: I'll be working on some stuff tomorrow. I'll check and see where the breakage is. It could be from me not updating the repos.
 
Ahh, I see. yeah, it looks like some commit that they made in the CMParts on cm source borked it again. sheesh! Unless it's just my copy... I suppose, I could just back out the changes in the commit and see if it works. but the changes seem like they should work... oh well.

Anyhow, with you back on cm7, here's to hoping for some hdmi goodness in the future! :D

Alright, I've pushed the changes I was going to try. I don't have time right now to test it out, but you want it's up: https://github.com/ikarosdev/android_frameworks_base
 
I ran a build. I didn't run into any issues and everything built fine. Must be something on your end.
 
Trying to build using your /frameworks/base folder from the experimental branch, I get these errors:

target thumb C++: libui <= frameworks/base/libs/ui/EGLUtils.cpp
target thumb C++: libui <= frameworks/base/libs/ui/EventHub.cpp
target thumb C++: libui <= frameworks/base/libs/ui/EventRecurrence.cpp
target thumb C++: libui <= frameworks/base/libs/ui/FramebufferNativeWindow.cpp
In file included from frameworks/base/libs/ui/FramebufferNativeWindow.cpp:31:
frameworks/base/include/ui/FramebufferNativeWindow.h: In member function 'void android::FramebufferNativeWindow::orientationChanged(int)':
frameworks/base/include/ui/FramebufferNativeWindow.h:66: error: 'struct framebuffer_device_t' has no member named 'orientationChanged'
frameworks/base/include/ui/FramebufferNativeWindow.h:67: error: 'struct framebuffer_device_t' has no member named 'orientationChanged'
frameworks/base/include/ui/FramebufferNativeWindow.h: In member function 'void android::FramebufferNativeWindow::videoOverlayStarted(bool)':
frameworks/base/include/ui/FramebufferNativeWindow.h:71: error: 'struct framebuffer_device_t' has no member named 'videoOverlayStarted'
frameworks/base/include/ui/FramebufferNativeWindow.h:72: error: 'struct framebuffer_device_t' has no member named 'videoOverlayStarted'
make: *** [out/target/product/triumph/obj/SHARED_LIBRARIES/libui_intermediates/FramebufferNativeWindow.o] Error 1
make: *** Waiting for unfinished jobs....

It built on yours?
 
Trying to build using your /frameworks/base folder from the experimental branch, I get these errors:

target thumb C++: libui <= frameworks/base/libs/ui/EGLUtils.cpp
target thumb C++: libui <= frameworks/base/libs/ui/EventHub.cpp
target thumb C++: libui <= frameworks/base/libs/ui/EventRecurrence.cpp
target thumb C++: libui <= frameworks/base/libs/ui/FramebufferNativeWindow.cpp
In file included from frameworks/base/libs/ui/FramebufferNativeWindow.cpp:31:
frameworks/base/include/ui/FramebufferNativeWindow.h: In member function 'void android::FramebufferNativeWindow::orientationChanged(int)':
frameworks/base/include/ui/FramebufferNativeWindow.h:66: error: 'struct framebuffer_device_t' has no member named 'orientationChanged'
frameworks/base/include/ui/FramebufferNativeWindow.h:67: error: 'struct framebuffer_device_t' has no member named 'orientationChanged'
frameworks/base/include/ui/FramebufferNativeWindow.h: In member function 'void android::FramebufferNativeWindow::videoOverlayStarted(bool)':
frameworks/base/include/ui/FramebufferNativeWindow.h:71: error: 'struct framebuffer_device_t' has no member named 'videoOverlayStarted'
frameworks/base/include/ui/FramebufferNativeWindow.h:72: error: 'struct framebuffer_device_t' has no member named 'videoOverlayStarted'
make: *** [out/target/product/triumph/obj/SHARED_LIBRARIES/libui_intermediates/FramebufferNativeWindow.o] Error 1
make: *** Waiting for unfinished jobs....

It built on yours?

I forgot to update the manifest. You'll need this change: https://github.com/ikarosdev/androi...mmit/81ab255f5926ed4147a17deb4b9e6cc15b126bb5

Just repo sync and rebuild
 
I forgot to update the manifest. You'll need this change: https://github.com/ikarosdev/androi...mmit/81ab255f5926ed4147a17deb4b9e6cc15b126bb5

Just repo sync and rebuild

Ok, so I got rid of my repo and did a full repo sync from scratch and the build keeps on stopping here; any idea what's causing this on my system if you say that your build completes?

target Java: CMScreenshot (out/target/common/obj/APPS/CMScreenshot_intermediates/classes)
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:145: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_LOCATION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_LOCATION, 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:153: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION, 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:219: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_LOCATION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_LOCATION, calendarShowLocationPref);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:224: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION, calendarShowDescriptionPref);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/SoundQuietHoursActivity.java:142: cannot find symbol
symbol : variable QUIET_HOURS_HAPTIC
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.QUIET_HOURS_HAPTIC,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: packages/apps/CMScreenshot/src/com/cyanogenmod/screenshot/ScreenshotActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
 
Ok, so I got rid of my repo and did a full repo sync from scratch and the build keeps on stopping here; any idea what's causing this on my system if you say that your build completes?

target Java: CMScreenshot (out/target/common/obj/APPS/CMScreenshot_intermediates/classes)
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:145: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_LOCATION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_LOCATION, 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:153: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION, 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:219: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_LOCATION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_LOCATION, calendarShowLocationPref);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/LockscreenWidgetsActivity.java:224: cannot find symbol
symbol : variable LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION
location: class android.provider.Settings.System
Settings.System.LOCKSCREEN_CALENDAR_SHOW_DESCRIPTION, calendarShowDescriptionPref);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/SoundQuietHoursActivity.java:142: cannot find symbol
symbol : variable QUIET_HOURS_HAPTIC
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.QUIET_HOURS_HAPTIC,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: packages/apps/CMScreenshot/src/com/cyanogenmod/screenshot/ScreenshotActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

The gingerbread-experimental branch (of framework/base) on my Github is mostly current. However, the original gingerbread branch is not (it's a couple weeks out of date). I will have to merge all the changes from upstream into the gingerbread branch.
 
The gingerbread-experimental branch (of framework/base) on my Github is mostly current. However, the original gingerbread branch is not (it's a couple weeks out of date). I will have to merge all the changes from upstream into the gingerbread branch.

That explains it. Thanks for the explanation!

Edit: So just an FYI, I grabbed your frameworks/base out of your experimental branch so I could build this and try testing your hdmi changes. The build was able to complete this time which was great. However, the hdmi doesn't work at all now when I connect it to my tv. I don't even get the blue sync screen like before. Are you getting a different result?
 
That explains it. Thanks for the explanation!

Edit: So just an FYI, I grabbed your frameworks/base out of your experimental branch so I could build this and try testing your hdmi changes. The build was able to complete this time which was great. However, the hdmi doesn't work at all now when I connect it to my tv. I don't even get the blue sync screen like before. Are you getting a different result?

No, that's what is happening to me. The problem is CM7 has no support for HDMI. I saw some tidbits of it in the overlay (another area I have to work on). So, if I manage to get HDMI working, I believe I would be the first person to have HDMI functionality on a build of CM7 for any device.
 
No, that's what is happening to me. The problem is CM7 has no support for HDMI. I saw some tidbits of it in the overlay (another area I have to work on). So, if I manage to get HDMI working, I believe I would be the first person to have HDMI functionality on a build of CM7.


That'd be something to brag about :)
 
No, that's what is happening to me. The problem is CM7 has no support for HDMI. I saw some tidbits of it in the overlay (another area I have to work on). So, if I manage to get HDMI working, I believe I would be the first person to have HDMI functionality on a build of CM7 for any device.

Yes, that would be awesome.
 
I have tried about 6 times now to checkout this repo and get started tinkering..the script always freezes or fails on me before it gets everything checked out!! can we not just checkout the specific triumph branch or does it have to be EVERYTHING??! And why are we using an off-the-wall script called repo?? instead of the git command? EDIT: Ive also tried just using a 1 or 2 job count...the -j16 was way too unrealistic for me an my cable intertubes
 
I have tried about 6 times now to checkout this repo and get started tinkering..the script always freezes or fails on me before it gets everything checked out!! can we not just checkout the specific triumph branch or does it have to be EVERYTHING??! And why are we using an off-the-wall script called repo?? instead of the git command? EDIT: Ive also tried just using a 1 or 2 job count...the -j16 was way too unrealistic for me an my cable intertubes

It didn't use to be this way. This is happening to me too. I used to be able to run 16 jobs with no problem. My guess is something internal with Github is going on.

EDIT: The repo script is just a fancier way to facilitate pulling all repos at the same time. You're free to git clone each of the 200 or so repositories individually if you want.
 
now the script is just bailing on me!! i wiped everything and tried to start fresh...i wish there was an alternate method...surely there is...????


Code:
watson540@sabayon ~/android/system $ rm -rf *
watson540@sabayon ~/android/system $ repo init -u git://github.com/ikarosdev/android.git -b gingerbread

Your Name  [watson540]: 
Your Email [watson540@sabayon.(none)]: 

Your identity is: watson540 <watson540@sabayon.(none)>
is this correct [y/n]? y

repo initialized in /home/watson540/android/system
watson540@sabayon ~/android/system $ repo sync -j2
Fetching projects: 100% (310/310), done.  
Checking out files: 100% (3422/3422), done.ut files:  20% (713/3422)   
Checking out files: 100% (3864/3864), done.
Checking out files: 100% (133/133), done.g out files:  49% (66/133)   
Checking out files: 100% (148/148), done.g out files:  42% (63/148)   
Checking out files: 100% (146/146), done.
Checking out files: 100% (14/14), done.ing out files:  50% (7/14)   
fatal: This operation must be run in a work tree
Traceback (most recent call last):
  File "/home/watson540/android/system/.repo/repo/main.py", line 238, in <module>
    _Main(sys.argv[1:])
  File "/home/watson540/android/system/.repo/repo/main.py", line 220, in _Main
    repo._Run(argv)
  File "/home/watson540/android/system/.repo/repo/main.py", line 125, in _Run
    cmd.Execute(copts, cargs)
  File "/home/watson540/android/system/.repo/repo/subcmds/sync.py", line 417, in Execute
    project.Sync_LocalHalf(syncbuf)
  File "/home/watson540/android/system/.repo/repo/project.py", line 956, in Sync_LocalHalf
    self._InitWorkTree()
  File "/home/watson540/android/system/.repo/repo/project.py", line 1579, in _InitWorkTree
    raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
watson540@sabayon ~/android/system $

 
It didn't use to be this way. This is happening to me too. I used to be able to run 16 jobs with no problem. My guess is something internal with Github is going on.

EDIT: The repo script is just a fancier way to facilitate pulling all repos at the same time. You're free to git clone each of the 200 or so repositories individually if you want.

bahahaha...so funny...now it makes sense..Its crazy we need to download every other device too though..
 
Back
Top Bottom