yashsingh1/xdaforums huggingface dataset:
[Android] Albinoman:
What config should I put that in?
[Android] DragunKorr:
Device boardconfig
[Android] n1kolaa:
eror after step 2, im using last lts ubuntu 12.04

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lib32ncurses5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'lib32ncurses5-dev' has no installation candidate
E: Package 'ia32-libs' has no installation candidate
E: Unable to locate package lib32readline5-dev
E: Unable to locate package lib32z-dev
[Android] Albinoman:
Device?
[Android] DragunKorr:
Device samsung
[Android] Albinoman:
I have a board config in device/samsung/d2-common and one in device/samsung/d2vwz
[Android] blacklizard90:
Q:

Will this process also compile the kernal? DO anyone have link for kernal compiling tutorial?
[Android] ktempleton:
http://xdaforums.com/showthread.php?t=1748297

[Tutorial] Building Your First Kernel
[Android] DragunKorr:
Compile not reading my device folder at all bout to freak out!
[Android] mg2195:
Depends on the source you use...aosp won't. Anything based off cyanogen should...
[Android] knight1112:
I have just compiled JB for my Alcatel One Touch 995 Ultra

i had used kernel of version CM10 for testing, but not boot, it stuck at logo

tried to get log for know problem, but always appear error "system/bin/sh not found"

Question :

i had repacked kernel of CM10 to get zImage to make prebuilt kernel for compile JB, it's problem ??

Anyone can help me for solve this problem... Many thankssss
[Android] Albinoman:
Remove the - between j and 9
[Android] kevin130:
Its not a folder. Get the zImage and rename it to kernel.
[Android] DragunKorr:
Make -j9 otapackage
[Android] Albinoman:
Ya I figured that out thanks. I felt really stupid.

I have another question. How do I get it to make a zip? I used make otapackage but it only made a zip that was 21mb
[Android] Black_Prince:
can any one find error ...?

I have made changes to kernel.mk file in ~/asop/build/core/tasks as follows ... so please help me if i have got smthing wrong ...

# Copyright (C) 2012 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Android makefile to build kernel as a part of Android Build

TARGET_AUTO_KDIR := $(shell echo $(TARGET_DEVICE_DIR) | sed -e 's/^device/kernel/g')

## Externally influenced variables
# kernel location - optional, defaults to kernel/<vendor>/<device>
TARGET_KERNEL_SOURCE := /asop/kernel/samsung/t1
KERNEL_SRC := $(TARGET_KERNEL_SOURCE)
# kernel configuration - mandatory
KERNEL_DEFCONFIG := $(TARGET_KERNEL_CONFIG)

## Internal variables
KERNEL_OUT := /asop/out/target/product/i9100g/obj/KERNEL_OBJ/KERNEL_OBJ
KERNEL_CONFIG := $(KERNEL_OUT)/.config

ifeq ($(BOARD_USES_UBOOT),true)
TARGET_PREBUILT_INT_KERNEL := $(KERNEL_OUT)/arch/$(TARGET_ARCH)/boot/uImage
TARGET_PREBUILT_INT_KERNEL_TYPE := uImage
else ifeq ($(BOARD_USES_UNCOMPRESSED_BOOT),true)
TARGET_PREBUILT_INT_KERNEL := $(KERNEL_OUT)/arch/$(TARGET_ARCH)/boot/Image
TARGET_PREBUILT_INT_KERNEL_TYPE := Image
else
TARGET_PREBUILT_INT_KERNEL := $(KERNEL_OUT)/arch/$(TARGET_ARCH)/boot/zImage
TARGET_PREBUILT_INT_KERNEL_TYPE := zImage
[Android] mg2195:
If you want inline kernel building you need that whole file from cm (no edits), some edits to the makefile, cwm recovery in bootable/recovery, and some other stuff from external/ and system/core
[Android] kevin130:
not really sure why its that small. Try make clean and compile again. maybe it didnt finish. And are you sure thats not the recovery or something? whats the name on the zip?
[Android] Albinoman:
I just did that... still 21.2mb. The name is full_d2vwz-ota-eng.albinoman.zip

Here is the log of it building http://paste.ubuntu.com/1411692/
[Android] dorsalsk:
Can you also help with the edit that you made?
[Android] mg2195:
Disregard my post...I thought you were working with 4.2 source

You need to use frameworks/opt/telephony from cm as well as frameworks/base/telephony and then also list the rail type in your board config (for me it was something like "samsungexynosril3"
[Android] Nihar.G:
Any help ? :confused:
[Android] dastin1015:
Remove this flag from your device trees:

DYNAMIC_SHARED_LIBV8SO := true
[Android] Xistance:
Getting the same problem with CM10.1. Any help?
[Android] Albinoman:
Any help?
[Android] DragunKorr:
Got complete build no freak in display lol

Used cm display

Evervolv display

Edited .mk file to msm8660

Common.mk to msm8660

Renamed to display-legacy

Or just display

Reads but copy bit

and other errors damn
[Android] pongnamu:
How long does it take to do repo sync?
[Android] Kayant:
It depends on your internet speed and what source you are syncing. I think AOSP is about 10 -11 GB it am not mistaken compared to CM and other ROMs that are 13 GBs....

Let's Go ^_^
[Android] pongnamu:
How can I start the whole thing again from begining? I mean deleting everything. Thanks.
[Android] triptosyll:
Go to the root directory of your source (WORKING_DIRECTORY or whatever u named it), and hit CTRL and H. This will show all the hidden files in the directory. Go to edit, I believe, and choose 'select all' the hold down the CTRL button and click on the '.repo' file. It should de-select that file. U can then right click on everything else and delete it all. So u should b left with just the .repo file. Then, open up ur terminal, navigate to your source folder, and do repo sync again. That will reset your source, so to speak. It will allow u to refresh your source, including any changes that have been made to the source since u last synced, but remember, any changes YOUVE made to ur souce since u synced it last will b gone. So make sure its what u wanna do. Hope thats what u are talking about.
[Android] cdesai:
Or just rm -rf that directory.

So if it's ~/blah (aka blah folder in your home directory), run "rm -rf ~/blah"
[Android] knight1112:
Hi everybody,

My phone has booted, but problem bootloop

When my phone boot to home screen, if i don't move touch screen, it's stay and not reboot

But if you move status bar or open app, it reboot

I can't get logcat by command adb for know issue

How can i enable service logcat and export log.txt automatique to SDCard in kernel

because i need to know bug in where

Everybody can give me any suggestion for this problem ??

Many thankssss
[Android] cbucz24:
Do you have any init.d tweaks added to the ROM? I know that 77tweaks disables the logcat
[Android] knight1112:
Thanks for reply

I had fix adb by the way add adb to build.prope

and i saw that has error in get memory for graphic, i think !!

So i recompile JB and modifer some file for new build, hope running
[Android] azharshaikh7866:
add device

"3) Clone the github device tree from remote to local: (The shooter would be whatever you want that folder to be named so make sure it is whatever standard name would be for your device, example: Nexus One [passion], Nexus S [crespo], Motorola Droid [sholes], HTC Incredible [inc], etc.)

Code:

$ git clone git://github.com/TeamJB/android_device_htc_shooter.git -b jellybean shooter

i m trying to build aosp for lg optimus 2x p990.........what would be git clone .. for lg optimus 2x p990
[Android] Black_Prince:
File "./device/samsung/i9100g/releasetools/t1_ota_from_target_files", line 115, in <module>
main(sys.argv[1:])
File "/home/shreekant/liquid/build/tools/releasetools/ota_from_target_files", line 819, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./device/samsung/i9100g/releasetools/t1_ota_from_target_files", line 63, in WriteFullOTAPackage
if OPTIONS.backuptool:
AttributeError: 'Options' object has no attribute 'backuptool'

Any help is appreciated ...:)

Sent from my GT-I9100G
[Android] Chuckleb0ne:
PROBLEM

Hello, i have a problem that is going on in the building process. I am building from AOSP source, and i keep getting this error. Any way to fix?

Please PM me if you guys know....

Problem:

[build/core/product_config.mk:223: *** Cannot locate config makefile for product "full_d2vwz". Stop.]

** Don't have a product spec for: 'full_d2vwz'

** Do you have the right repo manifest?

By the way: There is nothing wrong with the repo manifest.
[Android] Black_Prince:
Do you have d2vwz.mk and full_d2vwz.mk file in your device tree or working dir/device/brand/d2vwz ...?

Sent from my GT-I9100G
[Android] emwno:
so yeah guys, i have it built and everything. but it wont boot. heres a logcat for those willing to help http://pastebin.com/JdxjbiG2
[Android] pitchblack5691:
I'm no dev and I know nothing about logcats but it looks like the apps and core services are not able to access or find the proper permission files so they are failing fatally. . . . I might be wrong. . . .

Read about permissions here developer.android.com/reference/android/Manifest.permission.html

#pitchblack5691#
[Android] Phil3759:
Hi,

I am trying to repo sync the new cm-10.1 branch as follow:

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync -j16

It downloads for a few hours and fails with this error sequence:

* [new tag] android-4.1.1_r1 -> android-4.1.1_r1
.
.

error: RPC failed; result=56, HTTP code = 0.79 MiB | 140 KiB/s
fatal: The remote end hung up unexpectedly
.
.
* [new branch] cm-10.1 -> github/cm-10.1

error: Exited sync due to fetch errors

Tried twice with no luck

I started from scratch in a blank folder

Any help?
[Android] blazingwolf:
Keep doing the repo sync. CM does this for some reason and if you do another repo sync it will try to finish. It may take a few tries to get it all.
[Android] djmatt604:
Seems like you would just need to remove the backuptool attribute from the file the error is complaining about and give it another shot.
[Android] fezzy102:
compiling error

Im compiling cm 4.2 for the note and i get this every time i build and cannot figure it out any help in the right direction would be a big help.thanks in advance.

http://db.tt/wqKvfi8A
[Android] ktempleton:
From what i gather the msm8660 isn't ready to run 4.2 yet I've been watching the sky rocket page
[Android] dastin1015:
What ktempleton said.

What I assume CM will/should do is implement the old 4.1.2 qcom/display as a legacy and then use legacy build flags in your Board Config to ensure the usage of the legacy display repos for devices that require them.
[Android] Xistance:
I have built 4.2.1 for ariesve(i9001) and I have many libs that are specified in my ariesve.mk file missing in my build. Anything that I have to do to get them to build?
[Android] fezzy102:
Yea that's what I have done just can't figure out what else as far as flags and such needs to be there. I know cm is planing on using the device_qcom_common with the msm8660-common as they did with the msm8960- common its commented out in it write now the msm8660_ common just needs to be reconfigured.

Thanks for the reply .and all the helpfully info in this thread.
[Android] Phil3759:
Well, I finally managed it by forcing -j1 on sync. Seems there are some connection dropped on heavy load?

Thank you anyway
[Android] blazingwolf:
Not really. It will do that even at -j1.
[Android] Phil3759:
so it is like you said, trial and repeat until it got done

Thank you a lot as I was deleting and starting from scratch thinking it is on my side
[Android] SierraStroker:
Thanks for posting this tut, I'll be trying it out soon.
[Android] gitch101:
could you guys help me out with this error?

target Dex: framework
make: *** [/home/jaapteeuw/android/cm101/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed
[Android] silver03wrx:
i see there is support for htc msm8660 but not samsung yet??????????? lol not the usual case. htc ahead of our beloved samsung..... someone dropped the ball. and this atrocity must be dealt with swiftly
[Android] ErwinP:
Hello Sir

First of all, thank you very much for your very good tutorial. I have encountered a problem that I don't know how to solve, despite that I've builded (and still build) succesfull for CM-9. So yes, this is about Cyanogenmod and not about the AOSP, but I think that my problem can be found there as well. If not, I will ask it elsewere, but I don't want to pollute this thread.

The problem is very simple. When I source envsetup.sh, lunch, make a pick and than mka j4 bacon (mjummie bacon). I encounter this problem really fast:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=cm_buzz
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv6j
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-34-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/media/LUCIE/jellybean/cm-10.1/android/system/out
============================================
build/core/package.mk:351: *** doelpatroon bevat geen '%'. Gestopt.

The translation of the error is:

build/core/package.mk:351: *** target pattern contains no `%'. Stopped.

The fact that this error is in my native (and system) language, makes me think that this is not an android setup error, but more a 'systemic' error, like for example a wrong version of gcc. However, I've checked that (gcc 4.6). Also my Java SDK and pyton should be good. So dispite that I can build CM-9 and that I already have builded CM-10.0 some time ago, I stumble upon this now.

My setup:

- Ubuntu x64 12.04

- Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz

- gcc 4.6 in /usr/bin

- java and javac are in the "java-6-openjdk-amd64" folder

- Fresh sync of the cm-10.1 repo's

- device folder: http://github.com/ErwinP/android_device_htc_buzz/tree/cm-10.1

- kernel folder: https://github.com/ErwinP/htc-kernel-msm7225/tree/jellybean

- If there is anything else you want to know, I'll tell ya.

I already googled a lot for it, but I don't seem to get a solution. So I was hoping that anybody here could point me into the right direction :)

Thank you in advance,

Erwin
[Android] vijendrahs:
@OP,

Thanks for the good info/tutorial.

I need to setup a github to compile CM10.1 for my device and there is no official CM10.1 release for my device, but my device is having a AOSP JB 4.2.1 release from Evervolv.

Can some one confirm me what should be my setup?

From this tutorial I followed till 8th step and need to do 9th step " ~How To Add A Device To The List~"

Once I get reply to this I can proceed.

Thanks in advance,

VJ
[Android] tnpapadakos:
what device?
[Android] vijendrahs:
HTC desire (bravo)
[Android] Ghostfreak NB:
A noob here.....

Can you suggest me if 10.04is the best to compile or would 12.04 also do?

As I read in initial posts of this thread but its been about 6 months since so asking you devs!

Pls help me out!

Tia :o
[Android] Black_Prince:
It doesn't matter if you use 12.04/12.04.1/12.10 ...

Different guides are available to set up environment ...:)

Just Google it ...
[Android] Ghostfreak NB:
The results shouldn't differ, right?

I'm confused as why in the initial posts it's written to use 10.04 instead!

And 12.04 is just experimental!

Sorry for the trouble!
[Android] djmatt604:
That's what it says on the AOSP website. Previous poster is right, there isn't a whole lot of difference though if you follow the instructions closely. If I were to recommend one I would pick 12.04, that is what I have built with personally.
[Android] tnpapadakos:
your quickest route to this answer may be to just ask evervolv
[Android] ErwinP:
Or you can build upon what is already available.. I started building CM10 from my CM9 device folder, although it needed a lot of fixing before I could eventually make a succesfull build.

A quick look in the bravo forum and some google give the github of dk_zero-cool, who is currently building CM10 (but doesn't update it repo's anymore). If you want to use this, you can git clone the android_device_htc repository in android/device/, rename 'android_device_htc' to 'htc', remove every commit that is a tweak for CM9 and try to build.. When you encounter problems, google and perhaps dk_zero-cool are your friends :)

Perhaps you can even git clone the evervolv device folder in the same way, it looks like it is worth a try :)

Best regards,

Erwin

PS:

please do not forget about my question? :) :)
[Android] :
maybe silly question but do i really need 64 bit ubuntu to start with developing or is 32bit good enough?:confused:
[Android] djmatt604:
You really need 64 bit. You CAN work under 32 but you want 64.
[Android] dastin1015:
Yes.

Incorrect. 64 bit is required.

私のEVO 3Dから送信される。
[Android] djmatt604:
Thx for correcting! I thought i had read elsewhere that 32 bit was possible, my bad.
[Android] dastin1015:
Prior to JB yes. You're welcome!
[Android] koklimabc:
For the first time I reply on this thread, I need to ask some help from you dastine1015 or whoever knowed this?:good:

It seems to be fined after I've done my first time compilation of jellybeam 4.2.1 for Gnex phpone, where can I find the META_INF folder content from somewhere under /out directory because I need flash it as zip content under Clockworkmod recovery mode.
[Android] dastin1015:
That is part of the otapackage zip.
[Android] femmyade2001:
Hi, i'm new to ROM building...

When i do a "make -j9 otapackage", i get the error message below. Any clues?

make: *** No rule to make target `/home/femi/android/out/target/product/a500/kernel', needed by `/home/femi/android/out/target/product/a500/boot.img'. Stop.

The entire log in pastebin is here -> http://pastebin.com/JFSuUC0N
[Android] dastin1015:
You need to have your device tree copy over the kernel because aosp doesn't do inline kernel building.
[Android] femmyade2001:
Thanks for the response, dastin1015. Just to confirm before i start overwriting files, i already have my device tree here (https://github.com/PlayOSS-Dev/kernel_acer_a500) and it is downloaded. Do i paste all files here /android/build/target/product

Thanks in advance!
[Android] dastin1015:
No. That is the kernel source. What you need to do is compile the kernel and rename the zImage to kernel, place the kernel where the error is pointing to. Also you need to place the compiled modules for your kernel your output directory under system/lib/modules
[Android] femmyade2001:
Still working on compiling a kernel here. I have come across a good number of errors and have resolved them, but this last one (extract shown below) beats me. I have tried the hint here but still no luck. Anyone got some hints? :confused:

SYSMAP System.map

SYSMAP .tmp_System.map

OBJCOPY arch/arm/boot/Image

Kernel: arch/arm/boot/Image is ready

AS arch/arm/boot/compressed/head.o

LZMA arch/arm/boot/compressed/piggy.lzma

CC arch/arm/boot/compressed/misc.o

CC arch/arm/boot/compressed/decompress.o

SHIPPED arch/arm/boot/compressed/lib1funcs.S

AS arch/arm/boot/compressed/lib1funcs.o

AS arch/arm/boot/compressed/piggy.lzma.o

LD arch/arm/boot/compressed/vmlinux

arm-linux-androideabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output

arm-linux-androideabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output

make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1

make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2

make: *** [zImage] Error 2
[Android] dastin1015:
I suggest you use the kernel source of one of your device developers. It should compile fine. If it doesn't you need to contact that dev and tell them that they aren't GPL compliant and need to fix that.
[Android] tusharkulkarni008:
What if i have 32 bit and fully synced source of jb
[Android] djmatt604:
Dastin mentioned previously that you cannot build jb without a 64 bit environment.

Sent from my Infamous Tab.
[Android] Xistance:
After getting 4.2.1 to build I found that the SD cards weren't getting mounted. Looked at init.qcom.rc ( for my i9001) and changed where it mounts /system(fstab) from "on emmc-fs" to "on fs". This fixed the SD issue but introduced reboots every minute or so. Really stumped on what to do as I have done everything possible to the init.*.rc file. Could anyone help me out?
[Android] dany547:
any ideea why it can run the binary?

host C: minigzip <= external/zlib/test/minigzip.c
host C: libz <= external/zlib/adler32.c
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
make: *** [/home/dan/jb/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/test/minigzip.o] Error 126
make: *** Waiting for unfinished jobs....
host C: libz <= external/zlib/compress.c
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
make: *** [/home/dan/jb/out/host/linux-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 126
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: cannot execute binary file
make: *** [/home/dan/jb/out/host/linux-x86/obj/STATIC_LIBRARIES/libz_intermediates/compress.o] Error 126
[Android] Phil3759:
I never tested it, but hinted a few people by PM and they reported it worked for them:

Give it a try
[Android] AmanMehta007:
i want to create a jb rom

[as said from rumors and gsmarena it will have jb in few months,but i need jb now

{the special kernel can be modded from s duos(ics)} ]

for ace plus it doesnt cm7 yet few stock based roms and few kernels (the special kernel to boot jb is in progress)

i need help can any one tell me what todo

im a total beginner very new with ubuntu
[Android] Black_Prince:
Any help is appreciated...

target thumb C++: libpixelflinger <= system/core/libpixelflinger/buffer.cpp
target thumb C: libpixelflinger <= system/core/libpixelflinger/codeflinger/disassem.c
system/core/libpixelflinger/codeflinger/disassem.c:710:1: warning: initialization from incompatible pointer type [enabled by default]
system/core/libpixelflinger/codeflinger/disassem.c:710:1: warning: (near initialization for 'disassemble_di.di_printf') [enabled by default]
target thumb C: audio.a2dp.default <= external/bluetooth/bluedroid/audio_a2dp_hw/audio_a2dp_hw.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C: audio.primary.t1 <= device/samsung/i9100g/audio/audio_hw.c
target thumb C: audio.primary.t1 <= device/samsung/i9100g/audio/ril_interface.c
target thumb C: audio.usb.default <= hardware/libhardware/modules/usbaudio/audio_hw.c
device/samsung/i9100g/audio/audio_hw.c: In function 'set_preprocessor_echo_delay':
device/samsung/i9100g/audio/audio_hw.c:2482:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
device/samsung/i9100g/audio/audio_hw.c:2483:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
cc1: some warnings being treated as errors
make: *** [/home/shree/aosp/out/target/product/i9100g/obj/SHARED_LIBRARIES/audio.primary.t1_intermediates/audio_hw.o] Error 1
make: *** Waiting for unfinished jobs....
system/core/libpixelflinger/codeflinger/GGLAssembler.cpp: In member function 'int android::GGLAssembler::scanline_core(const android::needs_t&, const android::context_t*)':
system/core/libpixelflinger/codeflinger/GGLAssembler.cpp:1110:5: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
[Android] pongnamu:
I did repo sync "repo sync -j16".

How long will it take? Thanks :)
[Android] mg2195:
Depends on your internet speed...it usually takes me 4-6 hours to sync it all up...I usually just do it right before I go to bed so that when I wake up its done syncing
[Android] pongnamu:
Hmmm than I can do -j32 or -j64 or -j128?