yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] triptosyll:
And, just so I know, if I go with a prebuilt one, where do I place it?

And if I build the kernel, do I build that first, then place it in the ROM build? Or does it build it 'in-line', while its building the ROM?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
You are using a cyanogenmod device tree so all pre-built options are removed and its aimed for inline kernel building (building with rom). You can add the pre-built options if you would like.

device.mk

# Kernel Modules to be copied
ifeq ($(TARGET_PREBUILT_WIFI_MODULE),)
LOCAL_WIFI_MODULE := device/samsung/crespo/bcm4329.ko
else
LOCAL_WIFI_MODULE := $(TARGET_PREBUILT_WIFI_MODULE)
endif

ifeq ($(TARGET_PREBUILT_SCSI_MODULE),)
LOCAL_SCSI_MODULE := device/samsung/crespo/scsi_wait_scan.ko
else
LOCAL_SCSI_MODULE := $(TARGET_PREBUILT_SCSI_MODULE)
endif

PRODUCT_COPY_FILES += \
$(LOCAL_WIFI_MODULE):system/modules/bcm4329.ko \
$(LOCAL_SCSI_MODULE):system/modules/scsi_wait_scan.ko

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/crespo/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif

PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel

Of course replace the crespo tags with your phone, and modules with your kernels modules.

Next you need to comment out a few lines.

BoardConfig.mk

# Kernel Config
TARGET_KERNEL_SOURCE := kernel/samsung/aries
TARGET_KERNEL_CONFIG := cyanogenmod_fascinatemtd_defconfig
[Android Q&A, Help & Troubleshooting] lithid-cm:
send me this info.

sed --version |head -n1
[Android Q&A, Help & Troubleshooting] jd3107:
Sorry i'm kinda new to this, where can I find that? Thanks for your help I really appreciate it man!

Edit: Here it is. Thanks

GNU sed version 4.2.1
[Android Q&A, Help & Troubleshooting] blazingwolf:
Nope. He wants you to put that in to a terminal. It should give something back like: GNU sed version 4.2.1

LOL. You changed your comment though my answer doesn't change. :)
[Android Q&A, Help & Troubleshooting] jd3107:
LOL, yeah I didn't want to seem dumb LOL. Thanks, I will go ahead and do that now. Thanks for your help
[Android Q&A, Help & Troubleshooting] triptosyll:
Hey lithid, I'm cloning cm jellybean kernel for my device. What directory do I synce the repo to? Right now I'm syncing it to device/samsung/ fascinatemtd/kernel. Is that where I should sync it? Or does it go somewhere else?

EDIT: i read somewhere that the kernel folder needs to be in ../system directory. so i moved my kernel source there, and tried to build. i got this error:

Export includes file: build/tools/acp/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes

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

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

Notice file: system/core/libmincrypt/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.tx

i have the kernel folder here: ../system/aries-kernel. is it in the right place? is it named ok? or should it b name just "kernel".

i dont understand this error at all

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
I get this error when I run make -j2 otapackage:

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

I'm so close I can feel it! I know that my boardconfig file points to the kernel/samsung/Aries directory where the source is located, so why can't it build the kernel?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
Did you make the changes from here? As long as TARGET_PREBUILT_KERNEL is empty it will default to the path specified.
[Android Q&A, Help & Troubleshooting] triptosyll:
I didn't make any of those changes cuz I couldn't find a prebuilt.

I don't get it, cuz my TARGET_KERNEL_SOURCE points to kernel/Samsung/Aries.

I've been following this site:

http://wiki.cyanogenmod.com/wiki/Integrated_kernel_building

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
Well then I don't know, your build needs to build the kernel then move it into the correct out folder. If I were you I would make those changes, build the kernel yourself, and place them in the right spot. Once you have a working build system, then work on getting inline to work.
[Android Q&A, Help & Troubleshooting] triptosyll:
Check the edit I made to the last post. And I tried make out/target/product/fascinatemtd/boot.img and I get the same error.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
And, if u look at the repo for my device again, ull see that there's a cm.dependencies file. That file points towards the repository for the kernel. Why doesn't that work? Then it would download the source for the kernel, and put it all in the right places, won't it?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
If you were building cm it would work. It won't work building aosp, many changes have been made for CM.
[Android Q&A, Help & Troubleshooting] triptosyll:
Oh. Well I did a clone of cm's device_kernel_samsung_ aries repo, and put it in kernel/samsung and renamed it aries. So the path is now kernel/samsung/aries. And that's exactly where my TARGET_KERNEL_SOURCE:

points to.

Can I not be using cm's kernel? And can I even build a kernel inline with a ROM on jellybean? And since I'm using cm device tree, can I use a cm kernel?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
You need way more the a TARGET_KERNEL_SOURCE for it work.
[Android Q&A, Help & Troubleshooting] triptosyll:
Like? I don't know how to edit everything so that it works. I'm brand new to this. I have heard that u can't compile jb kernels with the source, but u say I can. I want to. Why build the kernel first then the ROM. So how do I get it to find the kernel source and build it?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
Start on this page.

https://github.com/CyanogenMod/android_build/commits/jellybean?page=3

"build: Inline kernel building as a buildtime task" is the first commit. After you apply that patch, you have about 15 - 20 more.
[Android Q&A, Help & Troubleshooting] triptosyll:
Ah hahaha OK. I'll get to work. Let u know if I get stuck. Thanks bud.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
How do I apply the patch? I'm gna look around and see if I can find out...

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Mod 1. Applying a patch

A. Download the patch you wish to apply, in this case this one should work.

B. Save that file as "kernelPatch" in your kernel directory.

C. Open a Terminal

D. Move into the root directory of the kernel you wish to patch.

E. Type "patch -p1 < ../kernelPatch"

Will this do for applying the patches?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!​
[Android Q&A, Help & Troubleshooting] lithid-cm:
Cherry pick might be better for this.

cd build
git fetch https://github.com/CyanogenMod/android_build jellybean && git cherry-pick f6f290fa3954af500e3847250aae97d637b3769d

To cherry pick something else, simply replace the f6f290fa3954af500e3847250aae97d637b3769d with the new one from another commit.​
[Android Q&A, Help & Troubleshooting] triptosyll:
May I ask what that does? Does it just apply patches?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
I'm mobile, try a Google search for git cherry pick
[Android Q&A, Help & Troubleshooting] triptosyll:
OK. Will do. But I applied the first one, which was a kernel.mk files in the build/core/tasks directory. When I tried to run the command again, this time with a different string of commit numbers (the numbers for kernel: fix ARM building) I get this:

error: could not apply dbdbe7.... kernel: fix arm building

Hint: after resolving the conflicts, mark the corrected paths with 'got add paths' or got RM paths' and commit the results with 'got commit'

Recorded preimage for core/tasks/kernel.mk

I don't know what to do. Never done this cherry picking stuff

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] Roladriz:
Is there a way to revert back to unscathed source if the cherry pick isn't all it's cracked up to be?
[Android Q&A, Help & Troubleshooting] lithid-cm:
git reset --hard HEAD
[Android Q&A, Help & Troubleshooting] lithid-cm:
Once you start getting conflicts you needs to start the merging.

Install meld

git mergetool
[Android Q&A, Help & Troubleshooting] triptosyll:
What I did was create a git repository on my comp (I think), then when I had conflicts, I did git status, the add/removed whatever needed to be, so that my git status was clean, then it let me apply whatever I was trying to apply.

I then tried to build, after a bunch of patches, and it builds the kernel, and moves on to the ROM. I hit a snag, saying that I didn't have a rule to make certain libs and such, so I found those on teamhacksungs git, and place them in the folders they were sposed to b in, and it got me past that make error. Now I'm stuck on one that says:

No rule to make target product 'out/target/product/fascinatemtd/libsurfaceflinger_client_intermediates/import needed by....

I'm trying to find the libsurfaceflinger_client file but am having trouble.

Thanks for everything so far lithid!!! Ur awesome! :D:D

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] Roladriz:
I use beyond compare for Linux.... should I use meld? Are there significant differences between the two? Hope this isn't going too far off topic.
[Android Q&A, Help & Troubleshooting] jd3107:
Lithid, thanks again man for your help! Here is what the sed version is.

GNU sed version 4.2.1
[Android Q&A, Help & Troubleshooting] lithid-cm:
Meld is open source and beyond compare I think is closed. I think. I use open by choice.
[Android Q&A, Help & Troubleshooting] triptosyll:
Did u see the error that I'm having? Its at the bottom of the last page. Second to last post. Know where I can find that file?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Alright. I had the ROM building last night. It was building for about 45 mins, before if failed with this error:

Error: frameworks/base/include/media/stagefright/VideoRenderer.h: no such file or directory.

Any idea whether I need that file? If not, what file is it that's calling for it? I don't know which file to edit.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Can anyone tell me what this means?

http://pastebin.com/JZwVBuEs

I'm clueless to what it wants. Thanks in advance!!!

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
I even tried compiling your kernel. I couldn't from that source. Without knowledge of that system I'm unaware as to the errors. Looks like its apparently looking for items that are not there. My suggestion would be to contact someone who has built that kernel. Or just take a prebuilt from the latest cm10 nightly.
[Android Q&A, Help & Troubleshooting] triptosyll:
Can I build the cm kernel inline with my ROM?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
And if I can't, where do I locate the zimage in the ROM? I tried to find the kernel from a ROM on my hard drive, and I couldn't find it.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
Its in the boot.img
[Android Q&A, Help & Troubleshooting] triptosyll:
Its throwing me errors when I try and split the boot.img. I've been searching all night and found that Samsung boot.img are different than most. I can't figure out how to unpack it.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] mg2195:
Good luck...I was never able to figure it out...if you find any info/figure it out let us/me know
[Android Q&A, Help & Troubleshooting] lithid-cm:
I had a epic 4g touch. For this reason. I took it back. Sammy phones are different and I myself got frustrated. Which is when I switched to only nexus phones lol.

I did know that you need the initramfs to get the boot.img. Recovery also lives in the boot.img too I believe. Its pretty ass backwards. Again I'm not 100%.
[Android Q&A, Help & Troubleshooting] triptosyll:
OK guys. Thanks. I'll get back to u when I see what I can do.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Just wanna ask, have either of u guys tried with a hex editor?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] blazingwolf:
Link to your boot.img?
[Android Q&A, Help & Troubleshooting] triptosyll:
http://db.tt/A9f9uurx

There ya go. And I wanna say, if u get it, you gotta tell me what u did. I don't foresee myself buying anything but Samsung for a long time. So I HAVE to figure this out. Lol :banghead:

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
May I ask what is wrong with Google Nexus phones? Everything would work by android standards, not samsungs.
[Android Q&A, Help & Troubleshooting] triptosyll:
They aren't available here. :mad:

I want one. My wife works at a us cellular store. I was thinking of buying one outright, and seeing if she could "find a way" to hook it up to us cellular. Well see what happens, but with the cost of them without a contract (hell even when u DO get a contract), let's just say, well see what happens. ;)

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
I don't know what you currently use as to "they aren't available" but as long as you use us cellular in

The galaxy nexus supports the 1900MHz out of the box. Just pop in the sim and good to go as long as its gsm supported. The other part of Us cellular uses the 800Mhz which isn't supported.

I personally use a TMO plan with unlimited data w/ 4Gig of hspa+ for 50$ a month.
[Android Q&A, Help & Troubleshooting] triptosyll:
I'm from Madison, wi. As far as I know, it "can't" b hooked up here.

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
Sorry to hear that. When I get home from work I will look more into then. I will sync your device files from my cm repo and try to figure out how cm builds the boot.img then go from there.
[Android Q&A, Help & Troubleshooting] triptosyll:
Dude that would b awesome. I really wanna b able to get a build going with inline kernel too. The reason being, is I would like to know how. The problem is, I haven't been able to find a device tree for the Samsung mesmerize, except for cm device trees. And when I use those, I have to change a hundred things in my working directory. And now this whole thing with the kernel not building. Maybe I should just make my own device tree? Is that a difficult thing to do?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Oh, and u need to know, that boot.img is from sbrissens aosp 4.1.1 build from rootzwiki I believe. Gimme a couple mins, and I'll edit this post with the website.

EDIT: http://rootzwiki.com/topic/31084-alpharom-aosp-jellybean-411-82812/

I don't know if that's a prebuilt kernel from somewhere else, or if he built that with the ROM. I gotta imagine he built it inline, but I don't know. I sure would love to get inline worked out.... ;) ;)

Lol

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] jd3107:
Hey guys, how hard is it to change a 2.3.7 device tree to a jelly bean?
[Android Q&A, Help & Troubleshooting] thewadegeek:
He built it inline, look at his github for the config/kernel source. You don't need to split it here just build the kernel yourself. https://github.com/sbrissen

Here is the BoardConfig.mk for your phone I believe. Search for kernel.

https://github.com/sbrissen/android_device_samsung_fascinatemtd/blob/jellybean/BoardConfig.mk
[Android Q&A, Help & Troubleshooting] lithid-cm:
Right, we have been working through that. Just building the kernel doesn't work.
[Android Q&A, Help & Troubleshooting] triptosyll:
Yup. That's what's got us confused. I've been trying with his kernel source. I appreciate u helpin tho. I'm sure, the more people we have looking at it, the more chance to get it. Maybe if someone like @sbrissen wanted to stop in and give a pointer or two as to what is going wrong. Lol. Tho, lithid has been the bomb so far, I got faith hell figure it out!

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] blazingwolf:
Hmm. None of my tools like this one either. Still doing some looking around though.
[Android Q&A, Help & Troubleshooting] triptosyll:
What off we go after it with a hex editor. Anyone any good with one?

I'll be trying my hand at bit in a couple hours when I'm back at my comp. I'll see what I can find out. Are the magic numbers gna be different?

________________________________

Bacon in my coffee, please? You don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Any luck lithid? Did u get some time to try this weekend?

______________________________

Bacon in my coffee, please? U don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
I work Friday - Monday. Weekends are my work week. lol. No not really.
[Android Q&A, Help & Troubleshooting] triptosyll:
Oh. That's no fun. What do u do for work?

________________________________

Bacon in my coffee, please? U don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] lithid-cm:
*nix Engineer
[Android Q&A, Help & Troubleshooting] triptosyll:
Hence the reason u know so much bout what were trying to do here, ay? Lol. I bet that helps with the android programming!

________________________________

Bacon in my coffee, please? U don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
I'm running make again. This time I'm running make -j2 -d ota package. Hopefully the debug mode will help pinpoint the problem. Is this just a waste of time? Or will it give us a more in-depth look at what's going on?

________________________________

Bacon in my coffee, please? U don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
This is my error from running make in debug mode. this is everything that had to do with the kernel:

http://pastebin.com/DH85zNJE

________________________________

Bacon in my coffee, please? U don't have bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
I got a question, lithid. What if I deleted my /build and /kernel folders, and cloned them from CM? Would that get the kernel built? I'm just wondering what that makes my build. A CM build? Or aosp? I want to built as much aosp as possible. I just want enough cm parts to be able to build an inline kernel. That's it. I want it to b mostly aosp tho. So should I do cherry-pick to try and fix this? Or just change out whole folders?
[Android Q&A, Help & Troubleshooting] mg2195:
Device and kernel trees don't determine whether or not a build is cyanogenmod, aosp, aokp...etc hat is determined by your first repo sync...the repo init command...

I've used cm device and kernel trees to compile aosp, aokp, cm, slim bean...the build type is determined by the repo init... the build folder, the frameworks folder, the packages folder...all that determines what's built

Although cm device/kernel trees may have some extra things or be missing some things for your build...but they should anything extra will probably be ignored (or give you errors...but probably ignored) when compiling...anything missing will likely give you errors
[Android Q&A, Help & Troubleshooting] triptosyll:
So what then happens if I replace the /build folder with the cm build folder? Still aosp? Just trying to get a handle on understanding what I'm all doing. If I do release a ROM someday, I don't wanna call it aosp if its cm, or visa versa.
[Android Q&A, Help & Troubleshooting] mg2195:
If you just replace the build folder it won't build...it will give you a crap ton of errors due to missing files and incorrect content of existing files...build folder (from my understanding) is the bulk.of the compile instructions...hence he name build...but just about every folder contributes to that
[Android Q&A, Help & Troubleshooting] triptosyll:
So cherry-pick is prolly the best way to go about it? Just cherry pick what I need to get the build to work? Man this has been frustrating!
[Android Q&A, Help & Troubleshooting] mg2195:
Whatever works best for you...I've never used cherry pick to compile roms...I just use cm device and kernel trees and plug them in...right now I'm using.cm fdevice and kernel trees for slim bean
[Android Q&A, Help & Troubleshooting] lithid-cm:
Me too.
[Android Q&A, Help & Troubleshooting] triptosyll:
Well thanks guys. I'll keep digging. See if I can get this stupid build completed.

---------------------------

Bacon in my coffee, please? u don't have bacon??!! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
U guys know what free node channel some of these cm guys hangout on? Maybe some of the cm guys that maintain the galaxy s devices? They should b able to help I would think.

---------------------------

Bacon in my coffee, please? u don't have bacon??!! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
How do I set up the TARGET_KERNEL_CONFIG variable in the boardconfig.mk? I need it to link to the right place.

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] triptosyll:
Can anyone tell me why I'm getting this error:

Build/core/product_config.mk:211:***no match for product 'full_fascinatemtd'. Stop.

___________________

Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
[Android Q&A, Help & Troubleshooting] cmbaughman:
Whenever you see that error it just means you have to edit your blobs var PRODUCT_NAME to match the filename found in your device tree.