yashsingh1/xdaforums huggingface dataset:
[Android] mg2195:
I kinda figured out how to add inline kernel building to AOSP!!!

heres what you do: (Ill refer to cm10 working directory as cm10 and aosp as aosp)

Always make a backup before doing any changes listed below

first you need to setup a cm10 build and compile a kernel for your device

make bootimage

after that go to cm10/build/core/tasks

copy kernel.mk to aosp/build/core/tasks

download meld diff viewer from ubuntu software center

run meld and open up "Makefile" of both cm10 and aosp (located in /build/core

it should display all the differnces, just add the cm10 lines related to kernel/boot/ramdisk to the aosp one

when youve added all tht stuff just save it

now navigate to cm10/out/target/product/yourdevicenamehere/ and copy the utilites folder to aosp/out/target/product/yourdevicehere

\you can now do inline kernel building!!!

the only reason i say i kinda figured it out is because you have to copy the utilites folder...i have yet to figure out how thats created...

Note...aosp and cm10 "Makefile" are very similar ...so it might/probably will work if you just copy over the whole cm10 Makefile...besides the kernel related stuff there are only a few other changes in the cm10 makefile...none of which looked like they would lead to any error...

As of now i was successfully able to do make bootimage, im currently doing a full ota package build...so far no errors...lets hope it stays that way :)

EDIT

Well got my fist error sfter the above changes (might be from something else though...anyways heres my error:

1 error
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
[Android] Mattix724:
Ok so I was able to get past that error message by deleting the offending duplicates in the crespo folder.

Looks like I am making some progress but now I am getting this error message. http://pastebin.com/ruDe9Xjn
[Android] dastin1015:
CM9

Exactly as it says. In your d710-vendor-blobs.mk you need to have it so that instead of using PRODUCT_COPY_FILES for the apk files, you need to use BUILD_PREBUILT to copy them over.

Awesome! :)
[Android] kevin130:
Oh god why. i Cant wait til i get this to compile. how do i get passed this?

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.

PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.

No private recovery resources for TARGET_DEVICE shooter

host C: libmincrypt <= system/core/libmincrypt/rsa.c

host C: libmincrypt <= system/core/libmincrypt/sha.c

system/core/libmincrypt/sha.c: In function 'SHA_update':

system/core/libmincrypt/sha.c:153:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

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

make: *** Waiting for unfinished jobs....

host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
[Android] mg2195:
You need to get a prebuilt kernel for your device and place it in working/out/target/product/shooter/

Basically what's wrong is this...aosp dorsnt support in line kernel building (like cm does) so you need a kernel that is already made...
[Android] kevin130:
@dastin have you uploaded the zip file you got after compiling the code for the EVO 3D? I think i pulled out all my hairs and just want to start getting to trying to get it to boot.
[Android] dastin1015:
I have albeit audio and WiFi doesn't work. Data did though. Booted using an alternative kernel, didn't try with kernel I'm using for inline kernel building. I wasn't the one who tested. My developing partner did the testing. I just make commits and build.
[Android] evol4g:
so this is the issue now, i've conquered the adb issue, and i've made some java / xml edits but when i go to compile this is what i get

http://paste.ubuntu.com/1177069/
[Android] dastin1015:
Read the steps properly. The # part of -j# indicates the number of cores in your processor plus one. Also you're missing libs. Make sure you downloaded the proper libs for your Ubuntu version. You're also trying to build on a 32bit version of Ubuntu. You need to be using 64bit.
[Android] jd3107:
Have any of you guys received this error when running the command lunch?

code:

build/core/product_config.mk:62: *** Unknown sed version. Stop.

** Don't have a product spec for: 'full'
** Do you have the right repo manifest?
[Android] Gecko225:
I have followed your guide and now i am running Jelly bean AOSP on my galaxy tab 2 thank you so much for your exellent tutorial
[Android] fireman928:
stuck at add device

Im a little stuck i have followed the instructions and everything went fine accourding to plan up until i got the the add device part. I am having a difficult time finding the device tree for my droid razr xt912. i have looked on github but i cant find anything maybe im just looking in the wrong places...idk. I am just learning this stuff and have been doin a lot of reading on the internet and am being self taught till i can actually go to school which is the plan. If someone could lead me in the right direction or something i would appreciate it. thanks
[Android] Roladriz:
This is one of the most helpful threads on xda I have ever seen. Props go out to not only the OP, but everyone else contributing. I resolved 2 of my build errors building for my 8660 device. I'm right in the middle of the build so if I have anymore issues, I'll stop back by. Thanks again everyone.

EDIT: I knew it was too good to be true.

Can anyone decipher this?

http://pastebin.com/7hcyeDNj

/home/michael/android/cm/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/pyramid/obj/SHARED_LIBRARIES/audio.primary.msm8660_intermediates/AudioHardware.o: in function android_audio_legacy::AudioHardware::setMicMute_nosync(bool):hardware/qcom/audio/msm8660/AudioHardware.cpp:1108: error: undefined reference to 'msm_set_voice_tx_mute_ext'

collect2: ld returned 1 exit status

make: *** [out/target/product/pyramid/obj/SHARED_LIBRARIES/audio.primary.msm8660_intermediates/LINKED/audio.primary.msm8660.so] Error 1

make: *** Waiting for unfinished jobs....
[Android] dessolator666:
So...

make: *** No rule to make target `out/target/product/shooteru/obj/SHARED_LIBRARIES/librpc_intermediates/export_includes', needed by `out/target/product/shooteru/obj/SHARED_LIBRARIES/gps.shooteru_intermediates/import_includes'. Stop.

Ideas?

much obliged
[Android] Gecko225:
I dont know if this will help you but...

https://github.com/STS-Dev-Team/android_device_motorola_spyder
[Android] fireman928:
ya i have found that but when i type that in termina it dont work out for me im sure im doing it wrong. ill keep trying:fingers-crossed:
[Android] jd3107:
Try typing

git clone https://github.com/STS-Dev-Team/android_device_motorola_spyder.git
[Android] evol4g:
okay so i updated to kubuntu 12.04 64 bit, i have all my libs ect and have everything set up correctly. I am using open-jdk 1.6 and i'm getting the "waiting for unfinished jobs" error so I tried applying the guava patch, unfortunately it did not work in my benefit

here is the pastebin after the gauva patch, so it's not any different then before as you will see.

http://paste.ubuntu.com/1182296/
[Android] mg2195:
Did you apply the patch correctly? Delete what was in red add the green? Double check the line numbers are matching...
[Android] evol4g:
tripple checked, still no go..

EDIT: well i just to make sure they were the same line numbers... and, well they're not.. the two lines that needed to be edited are lines 225 & 226 where as in CyanogenMods git it's showing that it's lines 228 & 229

---------- Post added at 03:20 PM ---------- Previous post was at 02:52 PM ----------

i fixed the spacing on the patch, (i noticed i had it a little off) i still got the same error, but i got this at the end which i havent seen before

frameworks/wilhelm/src/itf/IEqualizer.c: In function 'SLresult IEqualizer_GetCurrentPreset(SLEqualizerItf, SLuint16*)':
frameworks/wilhelm/src/itf/IEqualizer.c:364:22: warning: comparison is always false due to limited range of data type [-Wtype-limits]
[Android] Roladriz:
Would anyone know why the build compiles properly, but doesn't boot? I get the htc screen but then it goes black.

http://pastebin.com/WCXWjM8y
[Android] mg2195:
Try getting a logcat?
[Android] Roladriz:
Thanks for the quick response.
[Android] mg2195:
Didnt really see much in that...but it also wasn't the full thing cause it won't all fit in the terminal

Try this

adb logcat > logcat.txt

That will save the full thing to a logcat.txt, when your done getting the log Cate just press "ctrl" and "c"

Then upload the logcat.txt as an attachment
[Android] Roladriz:
Thanks for the patience
[Android] mg2195:
not an expert but heres some things that could be causing problems

E/hwcexternal( 519): writeHPDOption: state file '/sys/devices/virtual/graphics/fb1/hpd' not found : ret-1err str: Permission denied
E/copybit_c2d( 519): set_image: RGB Surface c2dUpdateSurface ERROR
E/Adreno200-EGLSUB( 584): SwapBuffers() dequeue native buffer fail: Broken pipe
F/libc ( 519): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 549 (SurfaceFlinger)

E/ = error

F/ = fatal

i usually look for anything starting with those
[Android] Serious_Beans:
Download the SDK here: http://developer.android.com/sdk/index.html

Extract the SDK and place it in your home directory.

I renamed my SDK to android-sdk to make it easier to navigate to.

Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.

Add these lines at the bottom of the file:

Code:

# Android tools

export PATH=${PATH}:~/android-sdk/tools

export PATH=${PATH}:~/android-sdk/platform-tools

export PATH=${PATH}:~/bin

Find your .profile file and add this at the bottom of the file:

Code:

PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"

You have now successfully installed the Android SDK.

To check for updates issue this into your terminal:

Code:

$ android

When i type android it says

android: command not found

haithem@haithem:~/sdk$
[Android] dastin1015:
You have your folder named sdk and the path variables set to android-sdk. You need to change one or the other. I advise changing the folder to android-sdk

私のEVO 3Dから送信される。
[Android] triptosyll:
Hey man, I'm wondering, how do I build for my device? I might just b confused, but the lunch menu doesn't have the option for my phone, so how do I build for it?

EDIT: I found out that with the proper tree and what not, your device will b added to the lunch menu so I'm good there.

But I have another question. I know nothing of device trees, or where to find them....could u help me out? Where do I get the device tree for Samsung mesmerize? Jt1134 has files on his github. I have files downloaded from him and I'm not sure if they're the ones I need.

EDIT 2: the zips I downloaded from his github are:

1.Android_vendor_Samsung_mesmerizemtd

2. Proprietary_vendor_Samsung_mesmerizemtd

I'm wondering if these are the vendor tree and proprietary files respectively. And if so, the proprietary files, are those the ones that I was gna try and extract from my phone? Thanks man!!

:thumbup::thumbup:

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] dastin1015:
First one is your device tree, second one is the vendor files (ie proprietary). If you have the vendor files, no need to extract
[Android] dastin1015:
You're welcome!

Do you have proper headers included with either your device repo or msm8660-common repo?

Remove the aosp hardware/qcom/gps and put in CM's version of it
[Android] triptosyll:
Seeing as I'm installing the proprietary files from a zip, and not using the extract script, where will I b placing the resulting unzipped folder/contents?

EDIT: they go in my 'shooter' folder, right?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] mg2195:
Working/vendor/manufacturernamehere/devicenamehere
[Android] triptosyll:
K well that proprietary zip wouldn't extract, so I ran the extract-files.sh, then proceeded. When I got to lunch my device doesn't show up.....don't really know why....:confused:

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 08:34 PM ---------- Previous post was at 08:32 PM ----------

Does the device tree go there too? Or does it go in the /device folder?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] mg2195:
Device tree goes in the /device folder...you may need to add it to the lunch

To create it you have to make a file called vendorsetup.sh and put it in the device tree...don't remember what goes in the file but its talked about a few times in this thread
[Android] triptosyll:
Figured out how to make the vendorsetup.sh, and when I made my choice at the lunch menu, I get this error now.

http://pastebin.com/tspiyd7C

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 10:09 PM ---------- Previous post was at 10:01 PM ----------

I understand sort of what its telling me, but I don't know what changes to make...

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] lxetuo:
I was able to successfully build cm10 from source for d2vzw. However, whenever I update the build using...

repo sync
source build/envsetup.sh && brunch d2vzw

...the date for the build is not updated. How can I update that? Thanks!
[Android] dastin1015:
You need to do a 'make clean' or a 'make clobber' if you want to make a new build.
[Android] lxetuo:
Perfect, thanks!
[Android] triptosyll:
Can u help me out guys? I tried changing a couple things in the .../product_config.mk files, to match the name of my device, but I keep getting the exact same error...

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] dastin1015:
Don't modify that file. You need to modify your device make file to make sure that your product name equals the name in your vendorsetup.sh minus the -userdebug
[Android] triptosyll:
I'll give it a shot and get back

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 01:56 AM ---------- Previous post was at 01:43 AM ----------

Everything matches....I don't see any discrepancies between the vendorsetup.sh and the full_mesmerizemtd.mk file.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 02:05 AM ---------- Previous post was at 01:56 AM ----------

OK, well this 'device tree' that I have didn't come with a device.mk file in it. So I assume, this isn't the device tree files I'm actually looking for. I don't know where else to get the appropriate device tree...

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 02:19 AM ---------- Previous post was at 02:05 AM ----------

Well no that doesn't make sense. This is jt1134 device tree. I'm pretty sure he would have everything he needs in that file. So, why is it I don't have a device.mk file? What else is there that I need to do?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] dastin1015:
Send me a link to the repo you're using
[Android] triptosyll:
https://github.com/jt1134/android_device_samsung_mesmerizemtd

EDIT: not questioning what u told me earlier, I just wanna know where my thinking went wrong, but why does the error that I put on pastebin say that the error is from product_config.mk:211, and you say to edit the device.mk file? How do u know that from that error. It doesn't even indicate the device.mk file in the error anywhere. Thx for the answer!

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] Roladriz:
Thanks for the response dastin1015, your post #862 "fixed" the error and I got it to compile.

I'm a fighting another battle now. It builds and compiles fine, but when I flash..it doesn't fully boot.

I've tried cloning two repo's.

Intervigilium's source compiled perfect with 0 errors.

CM source needed 3 things added to BoardConfigCommon.mk

COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK
TARGET_NO_HW_VSYNC := true
COMMON_GLOBAL_CFLAGS += -DLEGACY_QCOM_VOICE

I put the following in my local_manifest.xml and synced up.

1.)

<project name="intervigilium/android_device_htc_pyramid" path="device/htc/pyramid" remote="github" revision="jellybean" />
<project name="intervigilium/android_device_htc_msm8660-common" path="device/htc/msm8660-common" remote="github" revision="jellybean" />

2.)

<project name="CyanogenMod/android_device_htc_pyramid" path="device/htc/pyramid" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_htc_msm8660-common" path="device/htc/msm8660-common" remote="github" revision="jellybean" />

I'm wanting to try a prebuilt kernel first to help debug the process and get this thing booting. In cm/device/htc/pyramid/BoardConfig.mk I have

#kernel
BOARD_KERNEL_BASE := 0x48000000
BOARD_KERNEL_PAGE_SIZE := 2048
BOARD_KERNEL_CMDLINE := console=ttyHSL0 androidboot.hardware=pyramid no_console_suspend=1
TARGET_PREBUILT_KERNEL := device/htc/pyramid/prebuilt/kernel

I navigate to that directory and see the prebuilt kernel so I am under the impression that I am doing what I want to and I should be looking at other options here. Another question arises when I look at cm/device/msm8660-common/BoardConfigCommon.mk and see the path to an inline kernel

#kernel
TARGET_KERNEL_SOURCE := kernel/htc/msm8660

Is the msm8660-common folder being pulled from github necessary or should I delete that from my local_manifest?

Is the msm8660-common folder classified as an inline kernel, if not what does that folder do?

Attached is the complete log

Thanks again for everyone's help and input.

http://pastebin.com/7SvtYEw0
[Android] mg2195:
Because the product config calls on the device mk files when it comes time to build
[Android] triptosyll:
Perfect. Thanks bud. I just learned my 25th new thing today! :p

I think this is what you were talking about dastin. https://github.com/jt1134/android_device_samsung_mesmerizemtd

Is that a repo?

EDIT: I don't know what your gna get out of it, but I took a look around in all the files, and it looked like it pointed to using 'common' files shared with different carrier variants, so I downloaded the common-aries files, and placed them in ..../device/samsung/mesmerizemtd/aries-common.

Then, in the mesmerizemtd.mk file, there's a line that looks like it calls on the device.mk file from the fascinate vendor tree too, so I downloaded the fascinate vendor tree, and placed it in the ..../device/samsung/fascinatemtd folder. Still the same exact error tho. And seeing as how I had all the files to try and build a fascinate ROM, I ran the extract-files.sh, then went thru the lunch process, chose the fascinatemtd, and got the exact same error.

Ha, long winded, I know, and possibly wasted if I'm way off on my train-of-thought. But that's where my thinking lead me. But alas, to no avail.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] dastin1015:
Use these for the HTC Sensation (pyramid)

https://github.com/bruce2728/local_manifest

https://github.com/bruce2728/android_vendor_htc_pyramid

https://github.com/bruce2728/android_device_htc_pyramid

https://github.com/bruce2728/android_device_htc_msm8660-common

That is a CM device repo so first you need to add a file called vendorsetup.sh with this inside:

add_lunch_combo full_mesmerizemtd-userdebug

Next create a file called Android.mk with this inside:

ifneq ($(filter mesmerizemtd,$(TARGET_DEVICE)),)
include $(all-subdir-makefiles)
endif

Now create a file called AndroidProducts.mk with this inside:

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_mesmerizemtd.mk

Tell me how that goes.
[Android] triptosyll:
Will try in the am (or if I have my regular dose of insomnia :banghead: ). Thanks so much for the responses yo!!:thumbup:

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android] Roladriz:
Man, thank you so much for those links. Adding in changes to local now.
[Android] dastin1015:
With those everything works except for front facing camera on CM. Idk about AOSP
[Android] Roladriz:
K cool. I was wondering how to add and configure an inline kernel to the build and you answered without me asking :P. It's crazy how without the inline in sauce, it defaults to prebuilt. Once configured to include an inline, prebuilt/kernel still remains only commented out. Pretty cool. I tried making with inline but got more errors so I'll keep working on getting prebuilt working and try and decipher errors tomorrow. Thanks again.
[Android] dastin1015:
Happy to help. Trying to use get as much help out as possible cause in two weeks I go back to school.
[Android] Roladriz:
Are there any resources to show how to read the errors and fix them rather than just posting errors?

EDIT: With that said, I added the new qcom and kernel source to my local_manifest and ran in to this.

http://pastebin.com/rUR1v8y5

I found this but I don't know HOW to know where to add them.

LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
[Android] dastin1015:
Not that I know of. I learned from just trial and error.
[Android] Roladriz:
lol probably the best way imo.
[Android] triptosyll:
So I tried this morning, got past that error, but hit an error: build/core/config.mk:145: no config file found for target device. I'm gna try and figure this one out, if I can't, I'll ask you for assistance. Thanks bro!

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!

---------- Post added at 03:05 PM ---------- Previous post was at 02:39 PM ----------

K I tried looking into it, and its taking about the boardconfig.mk file. Well mine looks like it tries to direct to the fascinate boardconfig.mk. The fascinate make file has a lot of stuff in it, where the mesmerize just has a line about 'include' /device/samsung/ fascinate/boardconfig.mk.

So could I just edit the fassy boardconfig.mk file to point to the mesmerize folder and its contents? Or am I not looking in the right place again? Let me know what u think bud. :D

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!