yashsingh1/xdaforums huggingface dataset:
[Android] mark_hatred:
Help me build this kernel....

Good day, I followed the guide and I'm having serious problems specifically when building which is

***No rule to make target regarding ashldi3.o needed by lib1.c

This is the url of the source of the kernel that i wanted to compile... It's configured already...

I hope someone can find some time helping me out build this kernel...

https://github.com/edoko/Air_Kernel_for_VR
[Android] neectron:
Hi,

I don't know if it is related to pointers or not.It was compiling before,then I changed build environment.So it is not compiling anymore.

Sent from Castle of Glass
[Android] espaciosalter20:
Which cross compiler are you using???

Enviado desde mi MT27i usando Tapatalk 2
[Android] neectron:
Tried both linaro and other one from doomlords rebuilt.

There must be something wrong with my setup.

Sent from Castle of Glass
[Android] ktempleton:
OK I'm really trying to get a oc kernel for my phone I'm in the process of building my third ROM for this phone and I feel like an idiot for not being able to bring an oc kernel to my peeps I've got the patch working and it compiles the regular kernel the patch took because the govs are there its just not including them. I have tried just to add the smartass gov alone and it gives me so many errors I don't know where to start. Any help would be appreatiated I've been working on this for a couple of weeks now and really need some help. Thanks
[Android] thewadegeek:
I'll need to see the error.
[Android] thewadegeek:
Check to see if the file mentioned is present.
[Android] kmacneil3:
Looks like a great tutorial. I'm thinking about taking a crack at custom Kernel for the T989. I was going through the steps and have a question on the source code. Is it ok to download the ICS source code or do I need to find JB source code?
[Android] krazeecracker:
I'm right there with ya. Wondering the same thing.
[Android] thicklizard:
Depends if you want your kernel to work on ics based roms or jb based roms
[Android] krazeecracker:
JB. And we already have a few custom kernels for JB but they have been discontinued.
[Android] thicklizard:
Then you will need to use jb source. You can either find official source or find some on github for your device.
[Android] Mesaman2012:
Can I build kernels on my windows laptop with Windows home premium or do I need a Linux computer. Thanks!!!
[Android] thicklizard:
Got to have linux
[Android] Bastaerd:
Yes, if you run Linux in a VM. Won't have native performance though.

Also, if you want to be serious you need to know some C.
[Android] hell_lock:
Anyone knows how to swap memory in ubuntu? Sorry for the off topic
[Android] Deadly:
If you mean swap partition.. Google would help you as its not easy to cover here..

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

★Nothing is True.. Everything is Permitted©★

Have you seen a Muffin..?;)
[Android] thewadegeek:
Linux.
[Android] thewadegeek:
Swap memory meaning? Do you want to change partitions?
[Android] Mesaman2012:
Hey can't I use my windows laptop to build kernels as long as I download the program Ubuntu onto my laptop?and since I don't have any books on kernel building I could just do searches on my laptop how to build Linux kernels. Thanks
[Android] thewadegeek:
Ubuntu isn't a program. Go do some research and then come back once you have a working Linux environment.
[Android] krazeecracker:
Alright I have a kernel with the source for my sister phone. I need to recompile it with my phones source code to fix weak vibration. Any tips on swapping them out? Going from skyrocket to Hercules.
[Android] qriozum:
Welcome.

I wanted to make the first compilation of kernel for HTC DesireZ, the great, detailed tutorial.

But in step 5, part B, point C throws me this error:

CC crypto/proc.o
CC kernel/module.o
arch/arm/mach-msm/board-vision.c:3062:10: error: 'msm_fb_device' undeclared here (not in a function)
arch/arm/mach-msm/board-vision.c: In function 'vision_allocate_memory_regions':
arch/arm/mach-msm/board-vision.c:3482:2: error: 'msm_fb_resources' undeclared (first use in this function)
arch/arm/mach-msm/board-vision.c:3482:2: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/board-vision.c:3482:21: error: request for member 'start' in something not a structure or union
arch/arm/mach-msm/board-vision.c:3482:2: warning: statement with no effect [-Wunused-value]
arch/arm/mach-msm/board-vision.c:3483:21: error: request for member 'end' in something not a structure or union
arch/arm/mach-msm/board-vision.c:3483:47: error: request for member 'start' in something not a structure or union
arch/arm/mach-msm/board-vision.c:3483:2: warning: statement with no effect [-Wunused-value]
make[1]: *** [arch/arm/mach-msm/board-vision.o] error 1
make: *** [arch/arm/mach-msm] error 2
make: *** Oczekiwanie na niezakończone zadania....
CC kernel/kallsyms.o
CC fs/ext4/namei.o

Tell someone what I'm missing, or what's the problem?

Uruchomiałem compilation under Xubuntu 12.10 on a virtual machine running under Hyper-V.

Kernel source:

https://github.com/Andromadus/htc7x30-3.0

All steps was doing exactly as described in the tutorial.

For any suggestions - thank you in advance

greetings

q.
[Android] khojim:
somebody can help me? i just try to build my own kernel on my LWW. i have problem with wifi. If i didn't change CONFIG_LOCALVERSION or still 2.6.32.9-perf, my wifi is ok. but when i try to give a name in the kernel exp. 2.6.32.9-nothing, my wifi won't load or connect. any solution for that? thx
[Android] fishingfon:
Hi,

I am in the process of trying to create a dual boot kernel for the Galaxy Note 2.

I am using the source code from the Galaxy S3 Siyah kernel to get the dual boot feature.

The note 2 has a different partition layout to the S3, so I need to edit it In the Ramfs.

I was just wondering if anyone could help me with the Following:

firstly I need to know what the partition layout is for the note 2, I cant seem to find it anywhere, and I don't know how to get it from my device.

and secondly, I need to know how I would then edit the ramfs with the new partition layout.

This is the ramfs I am using:

https://github.com/gokhanmoral/ramfs-sgs3

I have been googleing this for weeks, and posting threads on different forums, but no one replys.

Please could someone please help.

Cheers

Corey
[Android] ktempleton:
Hi this is a kernel thread I've been following and the guy is using the note 2 kernel it has the lay out there hope it helps

http://xdaforums.com/showthread.php?t=1996021
[Android] fishingfon:
Hi,

Yes that helps a lot, thanks.

Now I just need to find out if the partition layout is the same on my note 2 (mine is the international n7100, his is a carrier branded version).

Thanks again.

Cheers

Corey
[Android] thewadegeek:
Are you copying the wifi modules over as well? Sounds like a module build version mismatch.
[Android] thewadegeek:
Try the mount command.
[Android] khojim:
i think yes. i just copy wifi module from stock ics because my kernel is from stock sony ics. may i'm wrong way? can you teach me how to build wifi module or copy wifi module after build kernel?
[Android] GideonX:
You can't copy modules like that, it'll break wifi.

After your kernel compile, it'll output and give you a total of what modules were created (designated with M). Copy each back into your zip or however you wish to push it back to your phone.
[Android] hell_lock:
I am getting this error while compiling govs as modules..

ERROR: "nr_running" [drivers/cpufreq/cpufreq_smoothass.ko] undefined!
ERROR: "nr_running" [drivers/cpufreq/cpufreq_smartass2.ko] undefined!
ERROR: "nr_running" [drivers/cpufreq/cpufreq_savagedzen.ko] undefined!
ERROR: "nr_running" [drivers/cpufreq/cpufreq_interactivex.ko] undefined!
ERROR: "nr_running" [drivers/cpufreq/cpufreq_brazilianwax.ko] undefined!
[Android] khojim:
i see. thank's for your help. i'll try again. hopefully working. :shakehand
[Android] cruizz:
Hi..i'am follow your tutorial,after finished and repack it with boot.img and flash it...my device stuck on samsung logo.seems the zimage didnt load...any advice for me?

If this a noob ask,please remove this replay :) ..thx b4

Sent from my SCH-i509
[Android] fishingfon:
Hi,

I am building a dual boot kernel for the galaxy note 2, using the ramfs source code from the s3 Siyah kernel.

I have ly ever made kernels which use the initramfs before.

Could someone please tell me if I compile a kernel with the ramfs the same way I compile a kernel with the initramfs?, or do I need to do it differently.

I already know that the ramfs and initramfs are different, this is what I found:

The initramfs is packed into zImage during the compilation and then compressed using the compression method used for the kernel image whereas the ramfs is let's say appended as an additional payload and may have different or no compression

So I really need to know if I still compile the kernel the same way I would with a initramfs?.

Thanks in advance.

Cheers

Corey
[Android] thewadegeek:
I gave some debugging points in the OP, other then that you are on your own, sorry.

Look into what the boot.img does.
[Android] thewadegeek:
You need to use the .ko module that you built with the kernel, please read the OP.

Is "nr_running" defined? If not define it, or include the file that does.
[Android] hell_lock:
And how to do that?
[Android] Adi_Pat:
Don't try it if you are not well versed with C and Shell Scripting.

Study the files in the Dual boot Kernel properly and rewrite the code adapting it for your device with proper partitions specified.

You can't copy-paste the entire thing as it is , won't work.You will end up with a PaperWeight. :p

Did you compile the modules off the same tree as that of your Kernel? The function nr_running isn't defined. If you built it off the same source, consider setting the Governers as built-in (=y rather than =m) .. in that case, if the function is not defined or any part of the code is missing you should get the error during compilation.

Also, nr_running() is a part of sched.c , so use EXPORT_SYMBOL for nr_running and the module should load correctly (Provided its the same source as that of your Kernel -zImage) !

Well, I remember telling you once before, if you don't know how to 'code' and you don't know the 'basics' of C.

You shouldn't be hacking Kernels.

Thought of Sharing something-

Well, this is my build-script.

https://github.com/AdiPat/android_kernel_samsung_latona/blob/samsung-gingerbread/build.sh

If your device uses boot.img/normalboot.img you can use it.

Change the following in the script-

ROOT="/home/aditya/i9003"
# Toolchain path =
TOOLCHAIN="/home/aditya/Toolchain/arm-eabi-linaro-4.7.2/bin/arm-eabi" [B](Change)[/B]
KERNEL_DIR="/home/aditya/i9003/GB" [B](Source directory)[/B]
RAMDISK_DIR="/home/aditya/i9003/ramdisk" [B](Ramdisk) [/B]
MODULES_DIR="$RAMDISK_DIR/lib/modules" [B](Modules folder in ramdisk) (No need to change)[/B]
OUT="/home/aditya/i9003/out" ([B]Where you wan't your final flashable output?)[/B]
# Device Specific flags
# Defconfigs
RELEASE_DEFCONFIG=latona_galaxysl_defconfig [B](I maintain two defconfigs, one for a release and one with debugging options)[/B]
DEBUG_DEFCONFIG=debug_defconfig
DEFCONFIG=latona_galaxysl_defconfig # Default [B](Set this as your defconfig, FOR Beginners no need to set above two options)[/B]
# Kernel addresses
BASE="81800000" (Kernel base address) [B]{Get both informations[/B]
PAGESIZE="4096" (Kernel page size) [B] by using unpackbootimg to unpack stock boot.img/normalboot.img}[/B]
# Kernel format
KERNEL=normalboot.img [B](Depends on your device!)[/B]

To build you will have to simply run the following in ur Kernel directory.

./build.sh

Enjoy compiling! :)
[Android] swolfe2:
Extremely helpful! Thanks!
[Android] hell_lock:
Thanks for that adi pat... Will not quote the whole post.. I know basics C (i am reading let us C) and have created dualboot mod in ramdisk using shell...
[Android] Jchym:
Hello. I have a problem when compiling the kernel. Build core for ZTE V9 +. If I use toolchain/toolchains/arm-linux-androideabi-4.4.3 SKD android so I end up with the error:

arch/arm/mach-msm/clock-7x30.c: In function 'msm_clk_soc_init':
arch/arm/mach-msm/clock-7x30.c: 1262: error: ri_list Causes and section type conflict
make [1]: *** [arch/arm/mach-msm/clock-7x30.o] Error 1
make: *** [arch / arm / mach-msm] Error 2

If I use Grabbing DooMLoRD's toolchain. Compilation is ok but I can not load the driver for Wi-Fi. Can I help somehow?
[Android] thewadegeek:
Define "can not load the driver" please. Are you getting an error?
[Android] soraci:
i've been restraining myself from asking, but i couldn't seem to find my way out of this error.
[Android] kylon:
hi,

i m tring to compile an old kernel but these are the errors

linux mint 14 x64

thanks
[Android] ru5l4n12:
Thanks for tutorial :D
[Android] Deadly:
@kylon...

Try reading here...

http://xdaforums.com/showthread.php?p=32880197

Your warnings are treated as errors..

____________________________________________

ಇದು ನನ್ನ ಆಪ್ ಸಿಗ್ನೇಚರ್

ΧΔΑ Fraternity: TOT Time! & IRC Info

Judge a man by his questions rather than his answers.
[Android] thebrainkafka:
Hi

Im trying extractin boot.img for Xperia U

Stuck at:

Android Magic not found in boot.img. Giving up.

using ./split_bootimg.pl boot.img

using ./extractboot boot.img

ThX for help!
[Android] kylon:
You can try to use the xda kitchen
[Android] thicklizard:
Did you copy over the c files?
[Android] thewadegeek:
Then go learn C/C++ so you can fix your bugs.

Google it, this is solved SOOOO many times.

No duh. The compiler builds an object(.o) file for each source file, before linking them together, into the zImage. None of them will exist after you do a clean. You most likely miss-spelled something, or forgot to copy a file.
[Android] thebrainkafka:
not working via xda kitchen
[Android] kylon:
Even if i deleted -Werror i still have werror

I have to disable werror in every makefile

For. Ex in net/ipv4 i have to add

Gflasg remove name of the file = werror

Is there a better way?

Maybe the problem is not the src but my distro ?? Or the toolchain ??
[Android] GideonX:
What toolchain are you using?
[Android] kylon:
Linario 4.6 from the op

But i also have the ndk and a beta toolchain from xda 4.6.3
[Android] GideonX:
Same error with the other toolchains?

Sent from my Nexus 7
[Android] kylon:
Yes
[Android] qriozum:
For me, represent a missing identical problem: http://xdaforums.com/showpost.php?p=35216043&postcount=470

I checked the various sources of the kernel, and the two toolchain linaro toolchain 4.6.3 and 4.4.3.

I tried to use different "defconfig" (vision, vision_cm9, vision_andromadus "- to no avail.

For each configuration having the same problem.

greetings

q.
[Android] ktempleton:
http://db.tt/5KlOp8Tp

Hey guys I'm trying to oc my kernel and all it does is boot loop I have the last kmesg I see a couple of errors but not sure what I'm looking at can someone take a look thanks
[Android] thewadegeek:
Use a 4.3 toolchain.

I need posts in English please. I can't read the error in that one.
[Android] Sturdy_99:
Due im not understanding anything but ill try once again.........PLZ tell me how to overclock cpu and gpu in stock kernel.......xperia neo v
[Android] thicklizard:
Its not the same for every device or even manufacturer. It depends on your chip set. Your best bet is to look through a similar devices git repository. (source)
[Android] qriozum:
I'm trying to compile the source:

https://github.com/Andromadus/htc7x30-3.0

or these:

https://github.com/KangBangKreations/KangBanged-7x30/commits/kb-stable

Follow the tutorial in the first post in this thread.

Opt for "vision_defconfig" because I would like to use the HTC kernel DesireZ.

In the course of compiling this error appears:

arch/arm/mach-msm/board-vision.c:3062:10: error: 'msm_fb_device' undeclared here (not in a function)
arch/arm/mach-msm/board-vision.c: In function 'vision_allocate_memory_regions':
arch/arm/mach-msm/board-vision.c:3482:2: error: 'msm_fb_resources' undeclared (first use in this function)
arch/arm/mach-msm/board-vision.c:3482:2: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/board-vision.c:3482:21: error: request for member 'start' in something not a structure or union
arch/arm/mach-msm/board-vision.c:3482:2: warning: statement with no effect [-Wunused-value]
arch/arm/mach-msm/board-vision.c:3483:21: error: request for member 'end' in something not a structure or union
arch/arm/mach-msm/board-vision.c:3483:47: error: request for member 'start' in something not a structure or union
arch/arm/mach-msm/board-vision.c:3483:2: warning: statement with no effect [-Wunused-value]
make[1]: *** [arch/arm/mach-msm/board-vision.o] error 1
make: *** [arch/arm/mach-msm] error 2
make: *** Oczekiwanie na niezakończone zadania....

And I can not compile the sources.

Do you know from your experience what is causing this type of error?

greetings

q.
[Android] kylon:
You have to disable -Wunused

I m not sure but

Open the makefile

Goto kbuild_gflags and add

-Wno-error=unused-value /

Or you can delete -Wunused if it is there

Ps i m still a noob..
[Android] Beatsleigher:
Thanks for the tutorial, dude. Just what I needed :D

LG fmailyguy59/Beatsleigher
[Android] lyfkevin:
Hi, SOOOOOOOOOOOO MUCH THX for the tutorial.

I had successfully compiled a bootable kernel.

BTW, I did either mod1 or 2, but couldnot find any newly added governor options in SystemTuner.

Anyone can help, thx a lot~~~~~~

P.S. The kernel I compiled is LG Nitro HD( SU640,KR VERSION) V20D from LGE ICS OPEN SOURCE CODE

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

Figured out the solution.

Simply activated it in menuconfig :]
[Android] justwinz:
So, my carrier takes the kernel source for the device and then creates a new kernel, right? So if I want to create my own kernel, I would need the kernel source from my carrier(MetroPCS), and not from the device(HTC)? I just want to make sure before I jump into a project like this. I assume I need one from the carrier, because HTC has the source online and yet nobody can create a successful ROM for my device.

If that is the case, is there a way to go backwards and get the kernel source from the stock ROM?
[Android] thicklizard:
Source comes from manufacturer not carrier
[Android] justwinz:
Sorry, I wasn't clear. I should have said stock kernel and not source. There are tons of ROMs and several custom kernels already for my device. But, for my carrier only, none of them work. So my guess is if I were to create my own kernel, I would have to use the stock kernel and not the source. I'll search around and try to figure out how to get the stock kernel. Thanks
[Android] ayysir:
i am having same problem, governor is not appying to kernel on compile...
[Android] kylon:
After make oldconfig

Type make menuconfig

Go to cpu..something(i do not remember the name sorry)

Press enter in the first entry

Now you can see all the aviables governors

Press Y to enable a governor if it is not enabled
[Android] ayysir:
thing im not using git-clone method because the kernel keeps erroring out via that method

what i did was repo sync cm10, then change manifest to direct repo sync to pull kernel's git and repo sync again

then i lunch aand make bootimage
[Android] kylon:
Um

I downloaded the source .zip

Anyway every kernel has the menuconfig

Otherwise open the config and add the string to compile the gov
[Android] ayysir:
THIS IS WHAT I KEEP GETTING...

drivers/video/msm/lcdc_ld9040.c:65:29: fatal error: lcdc_ld9040_seq.h: No such file or directory
compilation terminated.
make[3]: *** [drivers/video/msm/lcdc_ld9040.o] Error 1
make[2]: *** [drivers/video/msm] Error 2
make[1]: *** [drivers/video] Error 2
make[1]: *** Waiting for unfinished jobs....
[Android] kylon:
You are missing a file...

Just find it
[Android] ayysir:
its already there and defined in the header file

+
[Android] azoller1:
You could redownload everything maybe it missed some stuff or downloaded it wrong
[Android] ayysir:
and the saga continues

tried to add a governor and got this in compile

/home/ayysir/android/cm10/kernel/samsung/msm8660-common/drivers/cpufreq/cpufreq_ondemand.c:986: warning: 'dbs_input_handler' defined but not used
make[4]: *** No rule to make target `drivers/cpufreq/cpufreq_lulzactive.o', needed by `drivers/cpufreq/built-in.o'. Stop.
make[3]: *** [drivers/cpufreq] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ayysir/android/cm10/kernel/samsung/msm8660-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
ayysir@XDA:~/android/cm10$
[Android] thewadegeek:
Check file names.
[Android] ayysir:
all file names are correct. anyways im redoing my setup from scratch....
[Android] azoller1:
Where the heck is the zImage output? I looked in arch/arm/block and it wasent there and I did the make modules thing and then what? Do I have to build each individually?
[Android] kylon:
Look for compiling errors
[Android] thicklizard:
Arch/arm/boot?
[Android] kylon:
I read boot, not block Lol

Sorry
[Android] thicklizard:
Just recompile and when it's done it will give you the ditrctories of the module and z image
[Android] _Zoom:
You could use custom script if wanted....this will do all work for you :) .... all you have to do is the easy stuff...pm me if u want script
[Android] thewadegeek:
Nope they don't want it. They will learn more if they follow the steps.
[Android] dodgedroid:
to unpack boot.img, why don't use Kitchen, is much more easy...;)
[Android] kylon:
A big question

Is it possible to patch a kernel from 3.0 to 3.x?

Where can i find all the kernel patches? I can t find 2.6.35.16+

Thanks
[Android] thewadegeek:
Yes.

https://www.kernel.org/
[Android] kylon:
In that site i can find 2.6.35.15

The next patch is not there:(

I m a bit confused

There are 3 3.1 patches

In wich order i have to apply a patch from kernel.org?

Thanks
[Android] hell_lock:
Best way of porting or building 3.xx kernel?
[Android] soraci:
anyone can help me here?

http://pastebin.com/PyrcZVmC
[Android] kairi_zeroblade:
learn C and C# and you would simply be able to debug the error out.. :D
[Android] ghost shell:
I'm trying to build the jeboo kernel (for i9100) https://github.com/jeboo/kernel_JB_ZSLS6_i9100

But I'm getting this error:

Any ideas?

Thanks
[Android] hell_lock:
Check if the file is there or not
[Android] thewadegeek:
Also verify your permissions are correct.
[Android] thewadegeek:
Yeah because you use a TON of C# in Linux...