[ROM][6.0.1] Zaphods CyanogenMOD 13.0 11/12/15 UBER 4.9/5.2 - ONE Android Development

Source
CyanogenMOD https://github.com/CyanogenMod
OnePlus One kernel https://github.com/CyanogenMod/andro...4/tree/cm-13.0
Credits
All credit go to Cyanogenmod and the devs in this forum (CraZY_BoY^, vinman12 and Temasek specifically). I just build, picked, tweaked and learnt a bit about cm13.
What works
Bluetooth, vpn, incoming calls, gps, outgoing calls, sim, wifi, battery %.
Install
1. wipe dalvik, system, data and cache
2. flash rom, gapps (I use slim gapps here or opengapps) and supersu. Boot.
3. Set up the device and reboot
4. Enjoy
I recommend running the rom in f2fs data and cache mode but ext4 is cool too. Clean flash is always best, however this does generally dirty flash onto previous releases. The rom now has superuser installed and operable. However I still cant work out a way of updating the binaries,hence flashing supersu is recommended and Selinux is set to permissive.
Probably lots more other problems that you can advise, but these are to do with CM13.
I take no responsibility if this messes your device. Use it at your own risk. I did this for myself but it may be of use by others, and its nice to be nice.
Download
zb-cm-13-20151101-UNOFFICIAL-bacon.zip
zb-cm-13.0-20151109-UNOFFICIAL-bacon.zip
zb-cm-13.0-20151112-UNOFFICIAL-bacon.zip
zb-cm-13.0-20151113-uber-4.9-5.2-bacon.zip
zb-cm-13.0-20151115-uber-4.9-5.2-bacon.zip
zb-cm-13.0-20151211-uber-4.9-5.2-bacon.zip

First. Oo. Flashing

Reserved

Amazing! Thanks a lot looking forward!
Sent from my A0001 using Tapatalk

Placing a call causes the phone to freeze up.
Sent from my A0001 using Tapatalk

Thanks for this build! For now the only thing that doesn't seem to work is GPS.
Edit: And the placing calls issue.

itslels said:
Placing a call causes the phone to freeze up.
Sent from my A0001 using Tapatalk
Click to expand...
Click to collapse
Oh yes. Didnt spot that. Worked fine on yesterdays build.

Spider-Vice said:
Thanks for this build! For now the only thing that doesn't seem to work is GPS.
Edit: And the placing calls issue.
Click to expand...
Click to collapse
GPS seem to be working for me.

It didn't here, probably related to network location though, CM has it broken I think.

Spider-Vice said:
It didn't here, probably related to network location though, CM has it broken I think.
Click to expand...
Click to collapse
GPS test shows up 10 satellites ok and google maps gets it right for me. The outgoing calls problem is new , as other cm13 roms built 1/11 have the same problem. Im rebuilding from source and compiling another build overnight so ill check it out tomorrow. CM13 had many changes yesterday.
Hopefully the next build will be UBER based, but its proving to be a little inconsistent with CM13.0 at the moment.

Added to OnePlus One index thread:
[INDEX] OnePlus One

Edid....
Enviado do meu Oneplus One através de Tapatalk

Just updated to cm1 09/11/15 build now with minimal changes to source. Running pretty good now, and Im using this build as my daily relatively problem free in f2fs mode.

The 12/11/15 build is perfect. Almost. Everything seems to work well. SuperSU still needs to be flashed, but all seems to be working very well, and this seems to be the best battery version of CM13.0 to date.
Dirty flashing this version over the last version works fine.

15/11/15 build has fixed the startup reboot.

Is AOKP dead?

On your rom for over a week now, working like a charm. Thnks

@zaphodbeeb thanx for ur rom, been using it since a week.
i need some help with cm13 compilation.
I am new to android development stuff and getting stuck at this error.
Code:
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
Building with Jack: /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes.jack
java -Xmx3500m -jar /home/amardeep/cm13/out/host/linux-x86/framework/jill.jar --output /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack.tmpjill.jack prebuilts/sdk/17/android.jar
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
Using additional config 'cyanogenmod_debug_config'
Using /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config as base
Merging kernel/oneplus/msm8974/arch/arm/configs/cyanogenmod_debug_config
#
# merged configuration written to /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config (needs make)
#
make[1]: Entering directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --alldefconfig Kconfig
/home/amardeep/cm13/out/host/linux-x86/bin/jack: line 131: 24457 Killed $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack'
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack'
make: Leaving directory `/home/amardeep/cm13'
#### make failed to build some targets (06:47 (mm:ss)) ####

amardeep434 said:
@zaphodbeeb thanx for ur rom, been using it since a week.
i need some help with cm13 compilation.
I am new to android development stuff and getting stuck at this error.
Code:
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
Building with Jack: /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/com.android.vcard_intermediates/classes.jack
java -Xmx3500m -jar /home/amardeep/cm13/out/host/linux-x86/framework/jill.jar --output /home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack.tmpjill.jack prebuilts/sdk/17/android.jar
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
Using additional config 'cyanogenmod_debug_config'
Using /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config as base
Merging kernel/oneplus/msm8974/arch/arm/configs/cyanogenmod_debug_config
#
# merged configuration written to /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/.config (needs make)
#
make[1]: Entering directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
GEN /home/amardeep/cm13/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --alldefconfig Kconfig
/home/amardeep/cm13/out/host/linux-x86/bin/jack: line 131: 24457 Killed $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/amardeep/cm13/out/host/linux-x86/framework/jack-launcher.jar -cp /home/amardeep/cm13/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#
# configuration written to .config
#
make[1]: Leaving directory `/home/amardeep/cm13/kernel/oneplus/msm8974'
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
ERROR: Bad request, see Jack server log (/tmp/jack-amardeep/jack-8072.log)
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v17_intermediates/classes.jack'
make: *** [/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack] Error 255
make: *** Deleting file `/home/amardeep/cm13/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack'
make: Leaving directory `/home/amardeep/cm13'
#### make failed to build some targets (06:47 (mm:ss)) ####
Click to expand...
Click to collapse
Hi,
Are you building on Ubuntu? If so have you probably need to pick 113774 else the build will fail due to using Java 7 on Ubuntu. The pick enables that. I think thats should solve the problem.
Use repopick 113774

zaphodbeeb said:
Hi,
Are you building on Ubuntu? If so have you probably need to pick 113774 else the build will fail due to using Java 7 on Ubuntu. The pick enables that. I think thats should solve the problem.
Click to expand...
Click to collapse
First of all thanks for the reply
Yes im on ubuntu 14.04lts
Thanx for pointing,will surely try that and report back.

Related

[HOWTO] Build custom kernel, libraries and applications on your own

For building own custom stuff for my Gen8 Device I set up an Ubuntu 10.10 32bit Virtual Machine, so everything in here refers to it, may be different on other linux system.
[disclaimer]This is only a HowTo, if you brick your android device with some custom kernels or other stuff, don't blame me! I'm not responsible for anything you do![/disclaimer]
Notice: ** = you only have to do this step once
Prerequisites for Ubuntu 10.10 32 Bit: **
Code:
# sudo apt-get install git-core flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl automake autoconf libtool gettext texinfo libmpfr1ldbl
Prepare environment: **
Code:
# mkdir -pv $HOME/{archos,bin}
# echo export ARCHOS=\$HOME/archos >> ~/.bashrc
# echo export PATH=\$HOME/bin:\$PATH >> ~/.bashrc
# cd $HOME/archos
# wget -Oavos_env.tgz http://archos-gen8-dvb.googlecode.com/files/avos_env_20110415.tgz
# tar xzf avos_env.tgz
# install -m755 cross $HOME/bin/
# rm -f cross avos_env.tgz
RESTART CONSOLE OR REBOOT COMPUTER!
Toolchain: **
Code:
# cd $ARCHOS
# make all
Configure kernel:
Code:
# cd $ARCHOS
# make kernel-config
Restore kernel config:
Code:
# cd $ARCHOS
# make kernel-reset
Build kernel:
Code:
# cd $ARCHOS
# make kernel-build
CrossCompile: (this is just an example for if you want to build some linux libraries or tools)
Code:
# echo $ARCHOS
# cd ..xyz../..zyx../
# cross make
I followed your instructions, and I got all the way to the end, but when I did 'make kernel-build' it ended with this:
drivers/built-in.o: In function `archos_dpm_suspend':
/home/zyntax/archos/gen8-gpl-froyo/linux/drivers/usb/storage/archos_hdd.c:261: undefined reference to `usbsata_power'
make[3]: *** [.tmp_vmlinux1] Error 1
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory `/home/zyntax/archos/gen8-gpl-froyo/linux'
make[1]: *** [/home/zyntax/archos/gen8-gpl-froyo/buildroot//linux/arch/arm/boot/zImage] Error 2
make[1]: Leaving directory `/home/zyntax/archos/gen8-gpl-froyo/buildroot'
make: *** [kernel-build] Error 2
[email protected]:~/archos$
This is on a fresh install of Ubuntu 10.10 32-bit in Virtualbox. I installed it, updated the OS, then started your steps. Not sure if this is normal and I'm holding off on the last step. I did do one extra step: in 'make kernal-config' I deselected all the Archos boards under System Type except for the A101IT since that's what I have.
jbradshw said:
This is on a fresh install of Ubuntu 10.10 32-bit in Virtualbox. I installed it, updated the OS, then started your steps. Not sure if this is normal and I'm holding off on the last step. I did do one extra step: in 'make kernal-config' I deselected all the Archos boards under System Type except for the A101IT since that's what I have.
Click to expand...
Click to collapse
can you please try again without modifying kernel config?
Did that, now I get this:
CC [M] drivers/usb/musb/omap2430.o
/home/zyntax/archos/gen8-gpl-froyo/linux/drivers/usb/musb/omap2430.c:221: warning: 'omap_phy_read' defined but not used
LD [M] drivers/usb/musb/musb_hdrc.o
LD drivers/built-in.o
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory `/home/zyntax/archos/gen8-gpl-froyo/linux'
make[1]: *** [/home/zyntax/archos/gen8-gpl-froyo/buildroot//linux/arch/arm/boot/zImage] Error 2
make[1]: Leaving directory `/home/zyntax/archos/gen8-gpl-froyo/buildroot'
make: *** [kernel-build] Error 2
I don't believe I changed anything besides what I mentioned earlier. Is there anyway to get back a default kernel-config?
hehe, I thought you should try with default kernel-config
I added a section for restoring kernel config in the start posting :
chulri said:
[*]Restore kernel config:
Code:
# cd $ARCHOS
# tar xzf gen8-gpl-froyo.tgz gen8-gpl-froyo/linux/linux.config
Click to expand...
Click to collapse
Well I did poke around in the config, but as far as I remember I only removed those extra archos systems. I'll restore the default and run it again later tonight.
Thanks.
jbradshw said:
Well I did poke around in the config, but as far as I remember I only removed those extra archos systems. I'll restore the default and run it again later tonight.
Click to expand...
Click to collapse
You can't remove other devices (like A32, A101 etc) from Linux kernel config because Archos made bad dependencies for different parts of the kernel and even 70S requires some USB kernel code, it's only compiled when you choose A101 - so either you clean it up manually, or you are required to leave checked other archos devices :/
Thanks for this howto, this is gonna be useful for me, should be a sticky.
OK the make kernel-build worked without errors. Now I'm just questioning the command 'cd ..xyz../..zyx../' I don't have any files or directories called that, and running that reports the same. Can I just skip that and do the make cross?
@jbradshw that's just a sample if someone wants to crosscompile something (e.g. some linux library or application like linuxtv-dvb-apps or w_scan)
you don't have to do everything mentioned in the howto. it's a HowTo not a HaveTo
Ahh OK. So I guess I'm done then. I haven't installed the SDE on my Archos yet, but what's the final 'thing' that came out of this procedure that I'll be placing on the tablet?
Also I don't have an microSD card yet, and I know there was talk of putting stuff on there - can this be done using just the internal memory (8 GB for me)?
you have to install the SDE to install a custom kernel. follow this guide: http://forum.xda-developers.com/showthread.php?p=10157349#post10157349
Yeah I saw that guide, my question is where is the zImage and initramfs.cpio.gz that I assume was part of the compiling I just did? And also if a microSD card is needed for any of this?
no microsd is needed
initramfs.cpio.gz can be extracted from current installation ( /dev/mmcblk0p1 -> init ), read this: http://forum.xda-developers.com/showthread.php?t=880321&page=5
zImage is compiled at this location: $ARCHOS/gen8-gpl-froyo/buildroot/linux/arch/arm/boot/zImage
Shouldn't it be
Code:
cross make kernel-build
?
Here I have to use cross, which makes sense to find gcc arm binaries.
No you don't. In case of building stuff which comes with the gen8-gpl-froyo.tgz (e.g. kernel) the env vars are set up by the supplied makefiles
chulri said:
No you don't. In case of building stuff which comes with the gen8-gpl-froyo.tgz (e.g. kernel) the env vars are set up by the supplied makefiles
Click to expand...
Click to collapse
If I don't use cross, here is what I get:
[email protected]:~/archos$ make kernel-build
make -C gen8-gpl-froyo/linux mrproper
make[1]: arm-linux-gcc: Command not found
make[1]: Entering directory `/home/ubuntu/archos/gen8-gpl-froyo/linux'
make[3]: arm-linux-gcc: Command not found
But using cross it compiled fine, though I followed carefully your directions !
Apparently I was too frightened by the error messages, since it does work in the end
Thank you very much, hope some good things come from this !
Cheers !
desiresush said:
Apparently I was too frightened by the error messages, since it does work in the end
Click to expand...
Click to collapse
Yeah it's just an annoying bug, it doesn't hurt because "mrproper" only cleans the build directory and doesn't need compiler at all
2.6.29 kernel for Froyo?
Does anybody know, why Archos releases the SDK with a 2.6.29 kernel?
Shouldn't 2.2 Froyo be a 2.6.32 kernel?

AOSP compiling error help

Hi All,
Hope someone can help me with a specific error I am receiving please. I have overcome some errors already but this one, I just cannot see the wood for the trees.
I am new to compiling AOSP. Other than copying a bit from the CM7 repository, everything else is pure AOSP source. I haven't altered anything myself.
Some of the error:
Code:
make: *** [out/target/common/obj/APPS/ApplicationsProvider_intermediates/proguard.classes.jar] Error 137
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
make: *** [out/target/common/docs/api-stubs-timestamp] Error 45
Preparing output jar [/home/dan/mydroid/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/dan/mydroid/out/target/common/obj/APPS/AccountAndSyncSettings_intermediates/classes.jar]
Full Error and some lines above that here:
http://pastebin.com/5QL0bpxC
Any advice and help greatly appreciated.
Thanks in advance, Dan
Edit, if it helps, I'm trying to compile AOSP for the HTC desire (Bravo)
What projects did you fork into from CM? You may have to fork some more in since alot of the packages are codependent.
Thanks for the reply.
I used the cm script to obtain the proprietory files from cm7.0.3
I used hardware/qcom/gps/libbloc-api/android.mk and also a camera folder (off the top of my head can't remember the exact path. It had 2 folders in it, one of which was called test.
That's all though. Both in response to errors received on those modules.
The gps was a LOCATION_MODULE error, which I read up on but by the time I'd finished I'd forgotten what changes I'd made. I knew cm compiled fine so just swapped it out.
Sent from my HTC Desire using XDA App
rootSU said:
I used hardware/qcom/gps/libbloc-api/android.mk
Click to expand...
Click to collapse
did you use the entire package?
if not the entire package I would fork https://github.com/CyanogenMod/android_hardware_qcom_gps into the build from hardare/qcom/gps down
Thanks. I shall try that and feed back
Sent from my HTC Desire using XDA App
No dice I am afraid.
The compile runs for 20 minutes or so before its killed. I'm pretty sure its quite far along.
I've pasted more here:
http://pastebin.com/SDqvuNtc
Last 1500 lines (or just over) if it helps identify where in the process this occurs?
Any further guidance greatly appreciated (as always )
You can try forking in cyanogenmod/framework_base_core
But then you start moving pretty far from aosp
Humm... not sure
Sent from my DROID2 using Tapatalk
Thanks ill look at that and maybe revisit the location module tag too.
It would be nice if the source would just compile "out of the box"
Sent from my HTC Desire using XDA App
Well back to the original gps module and android.mk with LOCAL_MODULE_TAGS =:Optional, I still get errors which are similar:
Code:
Install: out/target/product/bravo/system/lib/libaudio.so
Install: out/target/product/bravo/system/lib/libaudiopolicy.so
Install: out/target/product/bravo/system/lib/libcameraservice.so
target SharedLib: libFFTEm (out/target/product/bravo/obj/SHARED_LIBRARIES/libFFTEm_intermediates/LINKED/libFFTEm.so)
Install: out/target/product/bravo/system/lib/libSR_AudioIn.so
target SharedLib: libandroid (out/target/product/bravo/obj/SHARED_LIBRARIES/libandroid_intermediates/LINKED/libandroid.so)
target SharedLib: libaudioeffect_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/libaudioeffect_jni_intermediates/LINKED/libaudioeffect_jni.so)
target SharedLib: libjnigraphics (out/target/product/bravo/obj/SHARED_LIBRARIES/libjnigraphics_intermediates/LINKED/libjnigraphics.so)
target SharedLib: librs_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/librs_jni_intermediates/LINKED/librs_jni.so)
target SharedLib: libsoundpool (out/target/product/bravo/obj/SHARED_LIBRARIES/libsoundpool_intermediates/LINKED/libsoundpool.so)
Install: out/target/product/bravo/system/lib/libsrec_jni.so
target SharedLib: libttssynthproxy (out/target/product/bravo/obj/SHARED_LIBRARIES/libttssynthproxy_intermediates/LINKED/libttssynthproxy.so)
target SharedLib: libwebcore (out/target/product/bravo/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
target Jar: core-tests-dalvik (out/target/common/obj/JAVA_LIBRARIES/core-tests-dalvik_intermediates/javalib.jar)
'out/target/common/obj/JAVA_LIBRARIES/core-tests-dalvik_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-dom_intermediates/emma_out/lib/classes-jarjar.jar
target Jar: core-tests-json (out/target/common/obj/JAVA_LIBRARIES/core-tests-json_intermediates/javalib.jar)
'out/target/common/obj/JAVA_LIBRARIES/core-tests-json_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-xml_intermediates/noproguard.classes.dex
target Executable: AudioHardwareRecordLoop (out/target/product/bravo/obj/EXECUTABLES/AudioHardwareRecordLoop_intermediates/LINKED/AudioHardwareRecordLoop)
target Executable: AudioHardwareRecord (out/target/product/bravo/obj/EXECUTABLES/AudioHardwareRecord_intermediates/LINKED/AudioHardwareRecord)
target Executable: AudioInRecord (out/target/product/bravo/obj/EXECUTABLES/AudioInRecord_intermediates/LINKED/AudioInRecord)
target Executable: SRecTestAudio (out/target/product/bravo/obj/EXECUTABLES/SRecTestAudio_intermediates/LINKED/SRecTestAudio)
target Executable: SRecTest (out/target/product/bravo/obj/EXECUTABLES/SRecTest_intermediates/LINKED/SRecTest)
target Executable: quake (out/target/product/bravo/obj/EXECUTABLES/quake_intermediates/LINKED/quake)
target SharedLib: libplatform_library_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/libplatform_library_jni_intermediates/LINKED/libplatform_library_jni.so)
target Executable: app_process (out/target/product/bravo/obj/EXECUTABLES/app_process_intermediates/LINKED/app_process)
Install: out/target/product/bravo/system/lib/libandroid_runtime.so
target SharedLib: libstagefright (out/target/product/bravo/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so)
make: *** [out/host/linux-x86/obj/EXECUTABLES/dx-tests_intermediates/dx-tests] Killed
make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/dx-tests_intermediates/dx-tests'
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed
Looks like libstagefright is the cause?
Found in first log- line 160:
Code:
/bin/bash: line 26: 23801 Killed LD_LIBRARY_PATH=out/host/linux-x86/lib javadoc \@out/target/product/bravo/obj/JAVA_LIBRARIES/doc-comment-check_intermediates/droiddoc-src-list -J-Xmx768m -J-Djava.library.path=out/host/linux-x86/lib -quiet -doclet DroidDoc -docletpath out/host/linux-x86/framework/clearsilver.jar:out/host/linux-x86/framework/droiddoc.jar:out/host/linux-x86/framework/apicheck.jar......
IMO there are 2 possibilities:
1.build environment is not set properly
-did you install compatibility libs that are mentioned for Froyo? These can also be needed
-is sun java set as default JVM? Check update-alternatives for java and javac
2. some files can be from a different branch (line 58)
Code:
Note: Some input files use or override a deprecated API.
(this happened to me when I accidetaly merged fixes for Arabic support into standard framework)
Brilliant. Thanks for your response. I will double check all these things.
I did not:
Code:
Java 5: for Froyo and older
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
Or...
Code:
For building Froyo or an older release on a 64-bit system, several other packages are necessary to establish a 32-bit build environment:
$ sudo apt-get install gcc-multilib g++-multilib libc6-i386 libc6-dev-i386
rootSU said:
Brilliant. Thanks for your response. I will double check all these things.
I did not:
Code:
Java 5: for Froyo and older
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
Or...
Code:
For building Froyo or an older release on a 64-bit system, several other packages are necessary to establish a 32-bit build environment:
$ sudo apt-get install gcc-multilib g++-multilib libc6-i386 libc6-dev-i386
Click to expand...
Click to collapse
You don't need java5 (since you have java6 which is OK for Froyo also), but I'd recommend to install "several other packages are necessary to establish a 32-bit build environment"- this won't hurt but can help.
I don't remember which packages I had to install to build Redux 1.2
Well checking the environment, I did install the froyo stuff and there is only Java so nothing to configure there with sudo update-alternatives --config java
Guess its option 2 then....
Other than the camera folder I imported (forget which it is now - Bad Dan), I imported vendor/htc/bravo for proprietary files and device/htc/bravo (so I can build) both from the CM repository
Would it be better to lunch for passion? It was that bit I was never certain of (and couldnt find the answer) so I just guessed it.
EDIT> The camera was frameworks/base/services/camera/
Sounds possible cause
Well put the original camera folder back and now back to my original camera error
Code:
target SharedLib: libcameraservice (out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::getCameraInfo(int, android::CameraInfo*):frameworks/base/services/camera/libcameraservice/CameraService.cpp:109: error: undefined reference to 'HAL_getCameraInfo'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:75: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::CameraService():frameworks/base/services/camera/libcameraservice/CameraService.cpp:75: error: undefined reference to 'HAL_getNumberOfCameras'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:148: error: undefined reference to 'HAL_openCameraHardware'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/bravo/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function android::CameraService::connect(android::sp<android::ICameraClient> const&, int):frameworks/base/services/camera/libcameraservice/CameraService.cpp:154: error: undefined reference to 'HAL_getCameraInfo'
Not getting on very well am I?
This shouldn't happend, where did you get Camera Service sources? Or- where did you get android_device_bravo (some files required by CameraService are most probably device specific)?
The android/device/bravo is from the cm7 bravo repository. I got this so I could lunch bravo_full-userdebug.
The camera stuff is back to Google source.
I wasn't sure where else to get android/device/bravo from to lunch it.
Also I have vendor/HTC/bravo which has proprietory files in. I extracted from cm7 nightlies and copied entire directory
Sent from my HTC Desire using XDA App
rootSU said:
The android/device/bravo is from the cm7 bravo repository.
Click to expand...
Click to collapse
Did you try to use android_device_bravo from AOSP sources (Redux, Oxygen etc) ? There are major differences between AOSP and CM framework and services. It seems that there are also differences between AOSP and CM android_device since you get compilation errors (I'm not that deep in Desire sources yet so sorry if I'm mistaken)
That sounds a sensible suggestion. Where is the redux source please? EDIT> Nevermind, I didn't realise it was there.
Sent from my HTC Desire using XDA App
gen_scheisskopf said:
Did you try to use android_device_bravo from AOSP sources (Redux, Oxygen etc) ? There are major differences between AOSP and CM framework and services. It seems that there are also differences between AOSP and CM android_device since you get compilation errors (I'm not that deep in Desire sources yet so sorry if I'm mistaken)
Click to expand...
Click to collapse
Thank you, this worked! Now to phase 2. Make update.zips
Many thanks for all your help and support.
Does anyone know how to.overcome "no rule to make xxxx. Needed by xxxxx" errors?
Compilation works with just vendor and device directories, but boot loops stating no audio policy published, so forking in what I can from redux source, I have been getting a lot of these errors which I need to over come. Where are these rules and what is needed to create the targets?
Id rather add than remove at this point.
Sent from my HTC Desire using XDA App

[Q] Building Kernel error

Hello,
I want build the kernel of Xperia S but I hava this error :
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
Thank you !
Solved
Solved I write in the Makefile the flag --disable-werror. Nice
Edit : BUT i have a new error
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Erreur 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Erreur 2
make: *** [arch/arm/mach-msm] Erreur 2
Anything Ideas ?
c3ma138 said:
Solved I write in the Makefile the flag --disable-werror. Nice
Edit : BUT i have a new error
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Erreur 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Erreur 2
make: *** [arch/arm/mach-msm] Erreur 2
Anything Ideas ?
Click to expand...
Click to collapse
You shouldn't have to edit the Makefile. Are you using the tool chain recommended by Sony? Make sure your path selects them before anything else. Also I would reset locale to C before compiling ("Erreur"?!), it may play some tricks.
kuisma said:
You shouldn't have to edit the Makefile. Are you using the tool chain recommended by Sony? Make sure your path selects them before anything else. Also I would reset locale to C before compiling ("Erreur"?!), it may play some tricks.
Click to expand...
Click to collapse
I use the ndk toolchain, where can I find the Sony toolchain
Edit : arm-[...].4.6
c3ma138 said:
I use the ndk toolchain, where can I find the Sony toolchain
Edit : arm-[...].4.6
Click to expand...
Click to collapse
You find the specific instructions for the Xperia S at http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/ referring to the kernel building howto at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/ recommending you to use the tool chain at https://sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
Follow those instructions before start tinkering with Makefiles, tools, build environment etc and I'm sure you'll succeed.
And reset locale to C! I.e. unset the LANG and LC_* environment variables in your shell before running the build scripts.
kuisma said:
You find the specific instructions for the Xperia S at http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/ referring to the kernel building howto at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/ recommending you to use the tool chain at https://sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
Follow those instructions before start tinkering with Makefiles, tools, build environment etc and I'm sure you'll succeed.
And reset locale to C! I.e. unset the LANG and LC_* environment variables in your shell before running the build scripts.
Click to expand...
Click to collapse
thank you,
But this does not work
I download: https://sourcery.mentor.com/sgpp/lite/arm/portal/release2188
then: http://developer.sonymobile.com/wportal/devworld/downloads/download/61a0452tarbz2
I unzipped all in my Desktop and in a terminal, I wrote:
- cd source/kernel
- ARCH=arm CROSS_COMPILE=/home/cemal/Bureau/arm-2012.03/bin/arm-none-eabi- make fuji_nozomi_defconfig
- ARCH=arm CROSS_COMPILE=/home/cemal/Bureau/arm-2012.03/bin/arm-none-eabi- make
c3ma138 said:
But this does not work
Click to expand...
Click to collapse
Sorry, but I'm no mind reader. "does not work" is not sufficient information for me to reply anything helpful to.
The basic is, if you don't know what you are doing, do it by the book. Still not working? Ask for help. Sony Xperia has presented quite a verbose instruction about how to compile their kernels. Try following this before choosing your own tool chain, edit Makefiles and so. When you get problems, read the instructions more carefully and/or ask the community (hi!) for help, with somewhat more detailed information about what you did and how it failed. The more verbose information you present, the more likely you are to get a useful reply.
Best of luck.
------------------
(edit)
A curious question, why do you want to compile a new kernel? I get the impression this is not your field of expertise, and maybe you are trying to achieve something somewhat more complicated than needed.
Hello,
I encounter the same kind of issue. Does anyone could help me ?
I work in an Ubuntu PC (10.04).
I have downloaded the toolchain for Linux from sourcery.mentor.com (arm-2012.03-57-arm-none-linux-gnueabi.bin)
Then the kernel source code 6.1.A.0.452 from developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-6-1-a-0-452-6-1-a-0-453-and-6-1-a-0-454
and I execute:
cd kernel
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make fuji_nozomi_defconfig
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make
Then I have the following error:
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
Many thanks in advance for your help
zongojim said:
Hello,
I encounter the same kind of issue. Does anyone could help me ?
I work in an Ubuntu PC (10.04).
I have downloaded the toolchain for Linux from sourcery.mentor.com (arm-2012.03-57-arm-none-linux-gnueabi.bin)
Then the kernel source code 6.1.A.0.452 from developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-6-1-a-0-452-6-1-a-0-453-and-6-1-a-0-454
and I execute:
cd kernel
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make fuji_nozomi_defconfig
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make
Then I have the following error:
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
Many thanks in advance for your help
Click to expand...
Click to collapse
You need android-ndk-r5b to compile the Xperia kernel source. I.e. you can not use the latest NDK.
Thanks a lot for your answer
Unfortunately, I didn't find android-ndk-r5b for Linux.
Could you kindly indicate me where I can get it ?
thanks !
zongojim said:
Thanks a lot for your answer
Unfortunately, I didn't find android-ndk-r5b for Linux.
Could you kindly indicate me where I can get it ?
thanks !
Click to expand...
Click to collapse
http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2
Thanks again, I really apreciate your support !
I have downladed and extracted android-ndk-r5b to my Ubuntu station.
it seems that is is not a built version, right ?
I have tried to navigate in the documentation, but it does not look so trivial...
Would you know how to simply compile it ?
zongojim said:
Thanks again, I really apreciate your support !
I have downladed and extracted android-ndk-r5b to my Ubuntu station.
it seems that is is not a built version, right ?
I have tried to navigate in the documentation, but it does not look so trivial...
Would you know how to simply compile it ?
Click to expand...
Click to collapse
It's compiled ready to use.
Read the documentation at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/
Replace the toolchain path with e.g. "CROSS_COMPILE=/opt/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" and you are good to go.
ok nice.
Then I tried again and... I've got a different error !
Here is what I have done:
$ ARCH=arm CROSS_COMPILE=~/Toolchain/arm-2011.03-41-arm-none-linux-gnueabi/bin/arm-none-ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make fuji_nozomi_defconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
#
# configuration written to .config
#
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make clean
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
make[1]: `include/generated/mach-types.h' is up to date.
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/prj/mms/smdswv/users/jmgrimaud/Xperia/6.1.A.0.452/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make: *** [arch/arm/mach-msm] Error 2
zongojim said:
ok nice.
Then I tried again and... I've got a different error !
Here is what I have done:
$ ARCH=arm CROSS_COMPILE=~/Toolchain/arm-2011.03-41-arm-none-linux-gnueabi/bin/arm-none-ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make fuji_nozomi_defconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
#
# configuration written to .config
#
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make clean
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
make[1]: `include/generated/mach-types.h' is up to date.
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/prj/mms/smdswv/users/jmgrimaud/Xperia/6.1.A.0.452/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Only specify ONE toolchain ...
Also, I'm note quite sure if I used 4.4.0 or 4.4.3, since both are included in the same r5b distribution. You can also try;
CROSS_COMPILE=~/Toolchain//android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
Thank you kuisma.
Sorry it was a copy/paste error, I had for sure specified only one toolchain.
So I am making a new test with CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
I'll keep you informed
---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------
It built, thanks again for your support, kuisma !
Not sure it is still in the scope of this topic, but continuing to execute the instructions found in developer.sonymobile.com/2011/05/06/how-to-build-a-linux-kernel/, I have some questions regarding Step C, absolutly not clear for me
What should I do exactly to prepare my boot.img ? What have I to do to create a ramdisk.img file, or where can I find it ? (in fact I do not know what it the ramdisk in the picture...is it required ?)
zongojim said:
Thank you kuisma.
Sorry it was a copy/paste error, I had for sure specified only one toolchain.
So I am making a new test with CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
I'll keep you informed
---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------
It built, thanks again for your support, kuisma !
Not sure it is still in the scope of this topic, but continuing to execute the instructions found in developer.sonymobile.com/2011/05/06/how-to-build-a-linux-kernel/, I have some questions regarding Step C, absolutly not clear for me
What should I do exactly to prepare my boot.img ? What have I to do to create a ramdisk.img file, or where can I find it ? (in fact I do not know what it the ramdisk in the picture...is it required ?)
Click to expand...
Click to collapse
Start with the original root filesystem from the standard boot.img you are already running.
You'll find my tool working with boot.img here: http://whiteboard.ping.se/Android/Unmkbootimg
Also, read the links on the page my signature links to, to get more information about how to build boot images, root file systems etc.
The ramdisk contains the root filesystem, and yes, it's very much needed.
Ok understood
last point: how to retrieve the boot.img from my Xperia S phone ? (that is already unlocked)
zongojim said:
Ok understood
last point: how to retrieve the boot.img from my Xperia S phone ? (that is already unlocked)
Click to expand...
Click to collapse
Last? Ok, I'll take your word for it.
http://www.youtube.com/watch?v=bB77gWRUI_A
Remember, Google is your friend.
help me somebody please
i'm trying to build custom kernel for my xperia M dual
got sources from sony's website, doing build by guide
here is an error:
Code:
In file included from drivers/usb/gadget/android.c:51:0:
drivers/usb/gadget/f_qdss.c: In function 'qdss_bind_config':
drivers/usb/gadget/f_qdss.c:586:38: warning: argument to 'sizeof' in 'strncmp' call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: f_qdss.c:586
make[3]: *** [drivers/usb/gadget/android.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
is it an NDK version issue?
I'm running:
Code:
make -j8 ARCH=arm CROSS_COMPILE=/home/dev/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-
thanks

cm10.2 - libwebcore.so problem

hi, i want to compile cm.10.2 from scratch to my device,
i have one error that i dont know how to solve.
Code:
target SharedLib: libwebcore (out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
collect2: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Error 1
i try this
Code:
#Clean libwebcore built files
make clean-libwebcore
#Rebuild libwecore modules only
make -j8 libwebcore
#continue with the building of the remaining modules not being compiled yet.
make -j8
but it doesnt work for me.
i have latest sources, VM o virtualbox ubuntu 13.04 64bit
problem solved, wrong java, changed openjdk to oracle and it works now
if we had done change jdk > oracle, it should be build from begining or just 'make -j8 libwebcore'?
Sent from my SM-T211 using XDA Free mobile app

Error on building my ROM

Hi all,
I own an Japanese version of S3 (SC-06D) and I try to build my CM12.1 rom, but I had a problem at the very beginning, see the log below:
make: *** No rule to make target `/home/erio/android/aojp/out/target/product/d2dcm/obj/STATIC_LIBRARIES/libminui_intermediates/export_includes', needed by `/home/erio/android/aojp/out/target/product/d2dcm/obj/EXECUTABLES/healthd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Install: /home/erio/android/aojp/out/target/product/d2dcm/root/sbin/felica_init.sh
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 26) to /home/erio/android/aojp/out/target/product/d2dcm/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit
GEN /home/erio/android/aojp/out/target/product/d2dcm/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
make[1]: Entering directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
CHK include/linux/version.h
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
#### make failed to build some targets (04:37 (mm:ss)) ####
I couldn't found "/libminui_intermediates/export_includes" and "healthd_intermediates/import_includes" and it halt there. I done repo sync perfectly and no ideas on why there is such a problem. Please help.
erioho said:
Hi all,
I own an Japanese version of S3 (SC-06D) and I try to build my CM12.1 rom, but I had a problem at the very beginning, see the log below:
make: *** No rule to make target `/home/erio/android/aojp/out/target/product/d2dcm/obj/STATIC_LIBRARIES/libminui_intermediates/export_includes', needed by `/home/erio/android/aojp/out/target/product/d2dcm/obj/EXECUTABLES/healthd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Install: /home/erio/android/aojp/out/target/product/d2dcm/root/sbin/felica_init.sh
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 26) to /home/erio/android/aojp/out/target/product/d2dcm/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit
GEN /home/erio/android/aojp/out/target/product/d2dcm/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
make[1]: Entering directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
CHK include/linux/version.h
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
#### make failed to build some targets (04:37 (mm:ss)) ####
I couldn't found "/libminui_intermediates/export_includes" and "healthd_intermediates/import_includes" and it halt there. I done repo sync perfectly and no ideas on why there is such a problem. Please help.
Click to expand...
Click to collapse
Your issue is that the device is not supported by cm. So you will have to do all the legwork of getting the device trees and all the proper files. You can't use the same files for other s3 on your device.
zelendel said:
Your issue is that the device is not supported by cm. So you will have to do all the legwork of getting the device trees and all the proper files. You can't use the same files for other s3 on your device.
Click to expand...
Click to collapse
Thanks.
Once I successfully build CM12.1 on 9 July, but afterward, never success and prompt that error.
I reviewed a page on how to build for SC06D: http://lawnfield.blog.fc2.com/blog-entry-61.html
I had done all the things listed there, but finally got that error.
So, what exactly that error means and what should I do to resolve?
It seems (maybe) I solved the problem, now building but not yet complete.
From the source it use CWM as default recovery but now the code is using TWRP, so it halted. And I change it to TWRP and now running. For sure I have not much ideas on why such change in code, may be the KBC-developer intended to do, but not fully.
Another question is, If I would like to build the rom, but not all apks in /system/app, what should I do? As I would like to slim down the rom as some of the files are unnecessary to me, e.g. bootnanimation.zip and the default browser.

Categories

Resources