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

Root [Discussion - Developers _ONLY_] Building ICS from source (Isaac's github).

Anybody? That error I posted previously? I built CM7 the other day flawlessly but now it seems that my Java isn't starting with the build for ICS. *Confuse*
 
If you guys could test out my WIFI changes, I'd appreciate it. I posted the link a couple posts above.

If I can get WIFI working, it could hold us over until I can figure out why mobile data isn't working.

Doing a build with the wifi files now.
 
Okay.. I've googled and googled but came up with nothing, so I guess I'll post it here. My build errors at the end and the only reason is that it seems that my Java doesn't start up. I have the JRE AND JDK installed though.

Code:
running:  java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmp4kimb2 out/target/product/triumph/cm_triumph-ota-eng.root.zip
Could not create the Java virtual machine.

   ERROR: signapk.jar failed: return code 1

make: *** [out/target/product/triumph/cm_triumph-ota-eng.root.zip] Error 1

Maybe try running the java command line manually, and hope it spits out a more descriptive error msg.
 
Anybody? That error I posted previously? I built CM7 the other day flawlessly but now it seems that my Java isn't starting with the build for ICS. *Confuse*

What distro, distro version and java version are you running? How did you install the JDK?
 
Does the recovery usb mount work for y'all?
I have to boot into a rom to get my usb mount to come up. On both ubuntu and windows7

No the USB mount in recovery has never worked for me. Looking at the recovery code for that, everything "LOOKS" like it SHOULD mount and work, but it just doesn't in the MT.
 

I added this update and then did a clean and clobber and then rebuilt.

Doesn't look like the wifi is working still. It's hard to work since the touchscreen doesn't respond very well to touches. Takes many touches to get anything registered and the softkeys don't respond hardly either. Also, the display itself has problems. Gotta love "work in progress" :)

Code:
W/NetworkManagementSocketTagger(  169): setKernelCountSet(10019, 1) failed with errno -2
E/WifiStateMachine(  169): Failed to load driver!
E/WifiStateMachine(  169): DriverFailedState
E/AudioService(  169): Media server died.
I/ServiceManager(  169): Waiting for service media.audio_flinger...
I/ServiceManager(  169): Waiting for service media.audio_policy...
I/        ( 2192): ServiceManager: 0xf958
D/AudioHardwareMSM7X30( 2192): msm_mixer_open: Opening the device

Full pastebin:
[CMake] triumph cm9 wifi test - Pastebin.com
 
I added this update and then did a clean and clobber and then rebuilt.

Doesn't look like the wifi is working still. It's hard to work since the touchscreen doesn't respond very well to touches. Takes many touches to get anything registered and the softkeys don't respond hardly either. Also, the display itself has problems. Gotta love "work in progress" :)

Code:
W/NetworkManagementSocketTagger(  169): setKernelCountSet(10019, 1) failed with errno -2
E/WifiStateMachine(  169): Failed to load driver!
E/WifiStateMachine(  169): DriverFailedState
E/AudioService(  169): Media server died.
I/ServiceManager(  169): Waiting for service media.audio_flinger...
I/ServiceManager(  169): Waiting for service media.audio_policy...
I/        ( 2192): ServiceManager: 0xf958
D/AudioHardwareMSM7X30( 2192): msm_mixer_open: Opening the device
Full pastebin:
[CMake] triumph cm9 wifi test - Pastebin.com

Well mine just finished syncing so I want to try and build and see if i can get one to boot. It seems like some stuff has been added because it took forever this time.

Edit: Alright this time I didn't have to touch anything and so far its only complained about the term.apk not being in the proprietary folder.


Also are we all using stock kernel or do we have to flash one???
 
I added this update and then did a clean and clobber and then rebuilt.

Doesn't look like the wifi is working still. It's hard to work since the touchscreen doesn't respond very well to touches. Takes many touches to get anything registered and the softkeys don't respond hardly either. Also, the display itself has problems. Gotta love "work in progress" :)

Code:
W/NetworkManagementSocketTagger(  169): setKernelCountSet(10019, 1) failed with errno -2
E/WifiStateMachine(  169): Failed to load driver!
E/WifiStateMachine(  169): DriverFailedState
E/AudioService(  169): Media server died.
I/ServiceManager(  169): Waiting for service media.audio_flinger...
I/ServiceManager(  169): Waiting for service media.audio_policy...
I/        ( 2192): ServiceManager: 0xf958
D/AudioHardwareMSM7X30( 2192): msm_mixer_open: Opening the device
Full pastebin:
[CMake] triumph cm9 wifi test - Pastebin.com

Actually, everything is responding. The problem is something causing the UI not to refresh after and input or whatever is detected (or something new happens on the screen). If you pull down on the status bar, it seems to "refresh" the screen. I guess that means that even software rendering still isn't working correctly either.

I looked at your logcat output. Audio was working just fine for me, but it doesn't seem to be starting correctly in your build. Actually, from the logcat, it looks like the ROM didn't even boot?

I'll need to see the dmesg output as well. It doesn't even look like you're using the changes I recently made to libhardware_legacy... I'll build a lib for you to try and see if it doesn't come up.

I also have a new kernel with the backported genlock driver you can try. As well as the accompanying libs (libmemalloc, gralloc.msm7x30, liboverlay, libhwcomposer, and libgenlock). You can try building them yourself. They're here: https://github.com/ikarosdev/android_hardware_qcom_display

My ICS kernel stuff is here: https://github.com/ikarosdev/triumph-kernel-msm7x30

You can import my ICS kernel config with the following:

Code:
make ARCH=arm triumph_ics_defconfig
EDIT: Did you sync with upstream before you did your last build?

EDIT2: Also, if you turn off the window and transition animations in Settings-->Developer options, it'll fix the "stuck display" problems.
 
Actually, everything is responding. The problem is something causing the UI not to refresh after and input or whatever is detected (or something new happens on the screen). If you pull down on the status bar, it seems to "refresh" the screen. I guess that means that even software rendering still isn't working correctly either.

I looked at your logcat output. Audio was working just fine for me, but it doesn't seem to be starting correctly in your build. Actually, from the logcat, it looks like the ROM didn't even boot?

I'll need to see the dmesg output as well. It doesn't even look like you're using the changes I recently made to libhardware_legacy... I'll build a lib for you to try and see if it doesn't come up.

I also have a new kernel with the backported genlock driver you can try. As well as the accompanying libs (libmemalloc, gralloc.msm7x30, liboverlay, libhwcomposer, and libgenlock). You can try building them yourself. They're here: https://github.com/ikarosdev/android_hardware_qcom_display

My ICS kernel stuff is here: https://github.com/ikarosdev/triumph-kernel-msm7x30

You can import my ICS kernel config with the following:

Code:
make ARCH=arm triumph_ics_defconfig
EDIT: Did you sync with upstream before you did your last build?

EDIT2: Also, if you turn off the window and transition animations in Settings-->Developer options, it'll fix the "stuck display" problems.

Okay I actually have some kernel building experience, my question is do i have to git copy your kernel stuff or can I just build it from within the ICS working directory?

Edit: my build is finished I will get to see if this one boots. I only had to fix the term.apk so after that I will add the upstream for you Q_com display stuff.

EDIT: IT BOOTS, im cloning your kernel now
Edit:Building the kernel and adding the upstream
Edit: kernel built
and Isaac i get these errors after adding those display libs
hardware/qcom/display/libgenlock/genlock.cpp: In function 'int<unnamed>::get_kernel_lock_type(genlock_lock_type)':
hardware/qcom/display/libgenlock/genlock.cpp:53: error: 'GENLOCK_WRLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:55: error: 'GENLOCK_RDLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t<unnamed>::perform_lock_unlock_operation(native_handle_t*, int, int)':
hardware/qcom/display/libgenlock/genlock.cpp:79: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:79: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:80: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:85: error: 'GENLOCK_IOC_LOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_create_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:137: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:137: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:138: error: 'GENLOCK_IOC_NEW' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:141: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:147: error: 'GENLOCK_IOC_EXPORT' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:147: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:157: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_release_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:186: error: 'GENLOCK_IOC_RELEASE' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_attach_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:224: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:224: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:225: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:226: error: 'GENLOCK_IOC_ATTACH' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_unlock_buffer(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:286: error: 'GENLOCK_UNLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_wait(native_handle_t*, int)':
hardware/qcom/display/libgenlock/genlock.cpp:314: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:314: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:315: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:317: error: 'GENLOCK_IOC_WAIT' was not declared in this scope
make: *** [out/target/product/triumph/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o] Error 1
make: *** Waiting for unfinished jobs....


I changed line 33 to this also because it was throwing a flag
#include <genlock.h>
was <linux/genlock.h>

ALSO my audio service is crashing as well
logcat uploaded
 

Attachments

Well, crap. It would seem the audio wrapper in our device configs isn't working anymore (something must of changed in the last week or so and something got deprecated... sigh).

I'll look at it tomorrow.

To build genlock, you'll need to add a copy of the genlock header to the device folder. You can find that here: https://github.com/ikarosdev/triump...82ea0e23631bfce889425c0c3d7889df57bfbf#diff-4

Place it in ~/YOUR_SOURCE_FOLDER_PATH/device/motorola/triumph/include/linux
 
Maybe try running the java command line manually, and hope it spits out a more descriptive error msg.

I tried it with a different jar file manually to test and still the same error.

What distro, distro version and java version are you running? How did you install the JDK?

I'm using Ubuntu 11.10 x64. When I was building on CM7, I used the apt-get commands you have in the guide to install the correct java versions. It should be java6-sdk and jre. It worked fine building CM7. I even flashed it to my phone and it booted, so this doesn't make any sense, really. Nothing was changed in between the builds. Huh.
 
I tried it with a different jar file manually to test and still the same error.



I'm using Ubuntu 11.10 x64. When I was building on CM7, I used the apt-get commands you have in the guide to install the correct java versions. It should be java6-sdk and jre. It worked fine building CM7. I even flashed it to my phone and it booted, so this doesn't make any sense, really. Nothing was changed in between the builds. Huh.

Did you try re installing it.
 
Well, crap. It would seem the audio wrapper in our device configs isn't working anymore (something must of changed in the last week or so and something got deprecated... sigh).

I'll look at it tomorrow.

To build genlock, you'll need to add a copy of the genlock header to the device folder. You can find that here: https://github.com/ikarosdev/triump...82ea0e23631bfce889425c0c3d7889df57bfbf#diff-4

Place it in ~/YOUR_SOURCE_FOLDER_PATH/device/motorola/triumph/include/linux

Yeah. The dsp manager keeps fc'ing.
 
Well, crap. It would seem the audio wrapper in our device configs isn't working anymore (something must of changed in the last week or so and something got deprecated... sigh).

I'll look at it tomorrow.

To build genlock, you'll need to add a copy of the genlock header to the device folder. You can find that here: https://github.com/ikarosdev/triump...82ea0e23631bfce889425c0c3d7889df57bfbf#diff-4

Place it in ~/YOUR_SOURCE_FOLDER_PATH/device/motorola/triumph/include/linux


Okay here is whats not working for me.
The radio
wifi [obviously]
camera [causes reboot]
sd card [not mounted at all.... but one time it did tel me it was an incorrect format]
the home capacitive button chooses the top of everything
terminal emulator wont start but super user will [we have root thanks to one of your commits]
launcher is very buggy and I get force closes alot.
 
Actually, everything is responding. The problem is something causing the UI not to refresh after and input or whatever is detected (or something new happens on the screen). If you pull down on the status bar, it seems to "refresh" the screen. I guess that means that even software rendering still isn't working correctly either.

EDIT2: Also, if you turn off the window and transition animations in Settings-->Developer options, it'll fix the "stuck display" problems.

Turning off the animations helped enormously. With them off, the weird rendering and non-responsiveness seems to have gone away. I had to keep pulling down the status bar in between every press until I could turn off the animations.

Edit: and to answer your question. I did repo sync before doing that last build where I posted the logcat.
 
Genlock wont boot here is logcat
Surface flinger starts but then when it initializes the graphics hardware it cant find genlock...

This is with the new kernel also.
 

Attachments

Turning off the animations helped enormously. With them off, the weird rendering and non-responsiveness seems to have gone away. I had to keep pulling down the status bar in between every press until I could turn off the animations.

Edit: and to answer your question. I did repo sync before doing that last build where I posted the logcat.

I deleted everything including my .repo folder and started over from scratch, Some thinks just arent moving over.
 
I deleted everything including my .repo folder and started over from scratch, Some thinks just arent moving over.

Well, the stuff that Isaac says that he hasn't added to the manifest, I manually downloaded them and replaced my files. it's just easier for me since I can make sure I got the updated stuff.
 
Well, the stuff that Isaac says that he hasn't added to the manifest, I manually downloaded them and replaced my files. it's just easier for me since I can make sure I got the updated stuff.

well his genlock is causing boot issues so I wouldnt pull that yet. Also his kernel builds so thats good. Also Does the radio work on your build?
 
what command are you guys using to build?

im using:
Code:
. build/envsetup.sh && brunch triumph

is that right? or completely wrong... :confused:
 
I use
. build/envsetup.sh
lunch
I choose 5
then make bacon -j[however many cores you have plus 1]

oh ok thanks :) the pc im trying to build on has one core, 512 mb of ram, and ubuntu 10.10 lol

if it doesnt build on the crappy pc, then i will break out the big guns (server) to do the job... :cool:

(x2 dual-core processors, 8 gigs of ram, and 1tb HDD)
 
Back
Top Bottom