yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy W I8150] Kreaz:
This guide may be useful, but what about Fedora/RPM-based users?

Debian-based users can use the usual method (Educk has made a guide for install it, just check your repo if they have it) but for Fedora user? Maybe this method will work. I was a user of Fedora but since Debian wheezy (although it is RC1, unstable) I moved on.

Maybe this method for RPM-based (Fedora, Red Hat, CentOS, openSUSE)

$ su
# yum install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 lib32ncurses5-dev x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
# ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

This maybe useful, but if you RPM-based users didn't find those packages, then maybe Google is your best partner.
[Samsung Galaxy W I8150] lorenzo82:
R: [Guide] Build your own Kernel for Galaxy W

How can I add UV in the kernel?
[Samsung Galaxy W I8150] Xistance:
You can modify it from the arch/arm/mach-msm/acpuclock-7x30.c file.
[Samsung Galaxy W I8150] Batur97:
Is this core 'make -jx' x for telephone or pc because my pc is per of 2 core but my phone is 1 core

thanks for your helping:)
[Samsung Galaxy W I8150] Xistance:
PC of course.
[Samsung Galaxy W I8150] Batur97:
Thank you very very much for your help:)
[Samsung Galaxy W I8150] lorenzo82:
ehm sorry, I don't understand Part 4, at point 5 what do I have to type in the terminal?
[Samsung Galaxy W I8150] Xistance:
Point 5 as in step E?

You have to type in this :

find . -name "*.ko" -exec cp {} ../"kernel-name"_output \;

Change "kernel-name" to whatever you desire like ancora or something. This copies the modules to that directory.
[Samsung Galaxy W I8150] Batur97:
Hi all

With your advise i can complied the arco' s lastest kernel . But i have a proplem Wi Fi cant open

Thanks for your support.
[Samsung Galaxy W I8150] Xistance:
Because the latest sources require the ROM to be recompiled with it. You are going to have to wait.
[Samsung Galaxy W I8150] Batur97:
Ok I will wait thanks for your answer :)
[Samsung Galaxy W I8150] lorenzo82:
so I have zImage converted into boot.img and three files *.ko :

1 cifs.ko

2 dhd.ko

3 scsi_wait_scan.ko

I have to copy these .ko into /system/lib/modules, right?
[Samsung Galaxy W I8150] Xistance:
In the zip yes. In the ramdisk they go into /lib/modules.
[Samsung Galaxy W I8150] educk:
Did you run:

make ancora_defconfig

(or any other configuration file) before executing menuconfig?
[Samsung Galaxy W I8150] Xistance:
Do this :

sudo apt-get lib32ncurses5-dev

PS: Sorry Erik for invading your thread XD
[Samsung Galaxy W I8150] educk:
No such thing, I like the fact that you post here :), sometimes I don't have time to check all the threads :highfive:
[Samsung Galaxy W I8150] foid:
i think you forgot the 'install' line :D

now "make menuconfig" is working but i still dont understand what im going to configure, like oc-ing uv-ing? 03? any help?

and how do we apply a patch? (ex: bigmem patch) :)

sorry for asking to many noob questions~
[Samsung Galaxy W I8150] hurtsky:
thanks for clarify.. im not asking yet in this thread because im trying do my own research.. but it hard for me @@ im interested in coding but im still learning basic way because of time not really allow me to learn it deeply.. btw. i wanted to asking.. any git of this > samsung-kernel-msm7x30 can be use to create custom kernel for galaxy W ? and what makes or what line/ code that we can identified that the kernel is belong to specific phone? sorry. i need teacher to teach.. i cant learn by only reading.. me abit slow..
[Samsung Galaxy W I8150] foid:
thank you erik, your guide helped me a lot :D :good:

adding governors is ok now, still learning about OC/UV and RAM management :D
[Samsung Galaxy W I8150] encik_racun:
Hmm, nice tutorial....but, almost all thread on almost all device have this kind of tutorial...the best part is, whoever make the tutorial is not making any kernel to the community....

So its just like copy and paste for a thanks hunt...
[Samsung Galaxy W I8150] Xistance:
Sorry but erik is the one who brought the 3.4 kernel to the S+ and the galaxy W. I would rather you try to learn before spouting idiotic statements. He also has great kernels other than 3.4 on the S+.
[Samsung Galaxy W I8150] honeyx:
First of all thanks for this guide. Its very usefull for someone like me who dealed with linux about 15 years ago and nearly forgot everything.

So I have a little problem with building the kernel and hope someone can enlighten me. When starting to build the kernel everything is working well, but at the end I´m getting some errors and have no clue why they are coming up.

These are the errors I´m getting:

arch/arm/boot/compressed/piggy.xzkern.S: Assembler messages:

arch/arm/boot/compressed/piggy.xzkern.S:4: Error: file not found: arch/arm/boot/compressed/piggy.xzkern

make[2]: *** [arch/arm/boot/compressed/piggy.xzkern.o] Error 1

make[2]: *** Waiting for unfinished jobs....

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

make: *** [zImage] Error 2

They are comming up after compiling the pure surces from Arcos github without doing any modifications to the files nor changing anything in menuconfig.
[Samsung Galaxy W I8150] educk:
I think I know what you mean. And no, not all kernel-msm7x30 git repo's are for Galaxy W. The file that you refer to is board-ancora.c inside /arch/arm/mach-msm. That makes the connection between the Linux kernel and the Galaxy W's board.

Yes, if I'm not mistaking, you are building on Ubuntu 10. Your system doesn't have the XZ compression/decompression tools. Try this:

sudo apt-get install lzma

or, search for an XZ decompression tool for your distro :).

Oh, and I found this tutorial by broodplank at XDA University that refers to adding governors, I/O schedulers and more, it might be useful: http://xda-university.com/as-a-developer/adding-features-to-your-kernel.

Erik
[Samsung Galaxy W I8150] honeyx:
Thanks Erik.

It´s saying they are already installed but somehow it dosn´t work. Probably I also need to update to 12.04 LTS like mentioned by 7amada100.
[Samsung Galaxy W I8150] honeyx:
Ubuntu 12.04 LTS did the trick. It even compiled the whole kernel without any warnings like with 10.04. So everyone who wants to install Ubuntu on his PC or in a VM should directly go for the 12.04 LTS.
[Samsung Galaxy W I8150] hurtsky:
thanks. when i reading your github.. i saw board-ancora.c and board-ariesve.c << this is not determine yours device? s+ ?

---------- Post added at 07:31 AM ---------- Previous post was at 07:18 AM ----------

owh i understand now.. after carefully read.. the file inside got been noted something like this > ariesve: fixed hangs at boot / ancora: Fix camera compile

means this ariesve file shouldn't be with ancora file when we try compiling it. right? if we compile it with ariesve it will lead to bricking phone ?
[Samsung Galaxy W I8150] hadidjapri:
because our phone got similiarities with s+ it won't cause any brick

it will only not boot but with no chance of bricking(unless you flash it to wrong partition)

Sent from my GT-I8150
[Samsung Galaxy W I8150] hurtsky:
thanks hadidjapri, long time no see you. :)

so no chance of bricking. i see.. but unless me flash it to wrong partition ? if after compiling and i just use other .zip file but just replacing the boot.img it will be okay?
[Samsung Galaxy W I8150] foid:
Yes :) ~
[Samsung Galaxy W I8150] hurtsky:
a question.. what makes the kernel specific or differentiation between JB and ICS ?
[Samsung Galaxy W I8150] educk:
The branch you used (ICS or JB) and the RAMDISK.
[Samsung Galaxy W I8150] hurtsky:
i had this error even i already confirming that the path is correct..

---------- Post added at 05:33 PM ---------- Previous post was at 05:32 PM ----------

thanks erik
[Samsung Galaxy W I8150] hurtsky:
i come with another problem

skynet@ubuntu:~/android/kernelics3.0/arcokernel$ make -j1

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/linux/version.h

CHK include/generated/utsrelease.h

/bin/sh: 1: cannot create scripts/basic/modules.order: Permission denied

make[1]: *** [scripts/basic/modules.order] Error 2

make: *** [scripts_basic] Error 2

skynet@ubuntu:~/android/kernelics3.0/arcokernel$ su

Password:

root@ubuntu:/home/skynet/android/kernelics3.0/arcokernel# make -j1

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

CC kernel/bounds.s

cc1: error: unrecognized command line option '-mno-unaligned-access'

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2

root@ubuntu:/home/skynet/android/kernelics3.0/arcokernel#

anyone can figure it out?
[Samsung Galaxy W I8150] hurtsky:
Solved
[Samsung Galaxy W I8150] zezadas:
what really makes the diference between ICS and JB or JB 4.1 or 4.2?

i'm not talking about the repo branch, i'm asking the technical detail.

why cant i use the same kernel i use on cm7 on some 4.2 rom.

i'm not noob, but i'm not a pro.

glad someone can explain me.
[Samsung Galaxy W I8150] honeyx:
Simply because the drivers, libs and modules are different and they are using a drifferent architecutre. I guess you are familar with WIndows, so it´s like you were asking why you cannot use the Win8 Kernel in Win98, Windows 2000, XP or Win7.
[Samsung Galaxy W I8150] zezadas:
im more familiarized with linux.

but sometimes when changing kernels i get a phone FC, or something like that, or you get a bootloop.

the kernel is loaded before the "rom", since the rom is just a "VM" java, i dont understand the conection between kernel(of course the modules change), and a binary, zygote(that runs without modules interferences)

i think the modules change but the connections rom-kernel still the same.

can you explain or guide me to something more concrete.

Sory for boring you with noob questions, but there is something that is really confusing me.

PS: feel free for talk about more cientific things, i'm really familiarized with linux, developing, etc...
[Samsung Galaxy W I8150] honeyx:
Oh well, I´m not the right person to guide you to something more concrete. As I already said in an earlier post, It´s about 15 years ago I dealed with Linux. At that time almost everything was configured via the terminal and almost all servers were running completely without an UI. So the basics are still there, but when it comes to Android I´m also a complete noob.

So all I can tell you it´s because of the dependencies in the code and specific changes in the funktions. Probably some guides about the Android SDK could help you to understand the differences.
[Samsung Galaxy W I8150] zezadas:
Thanks anyway. Im going try to build my own ROM, for learning better how it works.

Enviado do meu GT-I8150 utilizando xda app-developers app
[Samsung Galaxy W I8150] educk:
Hi!

First of all, I build kernels, so, my knowledge is based on that. I also built ROM's in the past but I didn't find it so entertaining as Kernel Modding and building.

I'll explain exactly how I learned these things:

You can name the kernel as the "bottom layer". Android, which is just a GUI (Graphical User Interface) is called the "top layer" . Now, you already know that our top layer is written in Java.

These two layers can't communicate directly with each other so there must be a linking layer between them. This layer will handle all the hardware requests between the top layer and the bottom layer. These intermediate layers are called libraries (libs) and can be found in /system/lib. There is much more to explain here, this is only a starting point.

Your assumption about the kernel, when you say it's loaded before it's completely correct. But, be careful with the term "ROM" the ROM also includes the kernel. So, the correct way to say it will be like: The Bottom Layer is loaded before the top layer.

This applies to any platform (Android and Linux too).

Also, please note that we are talking about two different Operating Systems, different sources, maybe different init processes so the RAMDISK must be different. A ramdisk which is compatible with ICS is not necessary compatible with Jelly Bean. But these can vary from device to device.

Please note that it takes really much time to understand these things, but I hope my statements above will take you on the right path ;).
[Samsung Galaxy W I8150] zezadas:
thanks

so the hard work porting a rom is the linking layer, i guess the top layer wouldn't make much problem...

where you grab the linking layer source (libs), that modules are not part of the kernel source.
[Samsung Galaxy W I8150] educk:
oh no!

Those libraries are hardware dependent. They are closed source as each device manufacturer provides only the compiled files. (.so ending)

Some of them located here (for ancora) https://github.com/arco/android_vendor_samsung_ancora/tree/ics/proprietary/lib.

You can't have access to the source of these libraries, only to the compiled files. And. it may be the hardest part of porting a ROM if you are trying to port ASOP, because they provide only standard shared hardware libs, which the manufacturers modify regarding to the devices hardware. Because you'll need to modify them yourself in order to get pure AOSP.

But otherwise, it's easy because you just have to include those vendor files and that's it.

I told you, I'm not so experienced in ROM porting. These are some very basics and you first need to know how to build from source and after that porting will seem much more easier.

EDIT: Here is a great example to help you to understand these relations better:

1.Bottom Layer: Linux Kernel the files located inside /drivers/gpu/msm (KGSL and other adreno drivers)

2.Linking Layer: the EGL Libs from /proprietary/lib located in /system/lib/egl

3.Top layer: Android, using them for display, games and so on.
[Samsung Galaxy W I8150] zezadas:
i understed, one more question xD

i know your experience is not much in porting roms... What are the first steps to do a port? getting the top layer(i think this layer does not need much work), nothing to be done in linking layer, since its closed source, what usually fail on kernel?

because on my experience on linux(pc) when i compile my updated kernel, i compile my modules again for the updated kernel and thats all, but my pc isn't runing a java vm, neither use android frameworks...
[Samsung Galaxy W I8150] educk:
Well, as I said, try to build from source an already "ported" ROM. Let's say CM 10, to be familiarized with building. You can follow this guide by Xistance: http://xdaforums.com/showthread.php?t=1915412

Is for ariesve, you'll just have to change it a bit... different device tree, kernel, vendor files, configuration...

After you successfully built it and understood each step you'll know what's changed when trying to build AOKP for instance.

Oh, and the bottom layer (kernel) is always the same as we are only modifying the top layer when porting ROM's.

That's true. There are are a few differences between the structure of a Linux Based system and an Android one...
[Samsung Galaxy W I8150] Madridii:
Yes. I made it finally

Thank you all
[Samsung Galaxy W I8150] haky 86:
Question

Hello mate

i try to build a kernel for 10.1 unofficial i have a question:

where is *OC can be activated under "System Type" tab i can't found it ?

thanks
[Samsung Galaxy W I8150] lafactorial:
If you added overclock support it will be there...
[Samsung Galaxy W I8150] haky 86:
Thanks

Ok thanks for answer i'll report if worked or not ;)
[Samsung Galaxy W I8150] arsradu:
[MENTION=4922835]educk[/MENTION], thanks for the tutorial.

I can confirm this to be working with Ubuntu 13.04 and 13.10 (most likely with 14.04 as well, though I haven't tried that just yet) as long as they are 64-bit variants (that is important!). In my opinion, it would be nice to add them on the first post as well. I'm pretty sure I'm not the only one wondering if it works with these Ubuntu versions (well, I'm not wondering cause I already know it works but anyway, you know what I mean :P ). Thanks again. :)
[Samsung Galaxy W I8150] ilusi0n_:
Works on every linux distro as long as you have the right packages installed ;)
[Samsung Galaxy W I8150] arsradu:
It didn't work on a x86 distro in my case. But if you can confirm it working, even better. :)
[Samsung Galaxy W I8150] ilusi0n_:
naa, I only said it worked with all distros. Regarded to 32 bits OS I don't see why shouldn't work. Well. I can always compile in a 32 bits to check if it works or not for curiosity since I have an debian installed on a virtual machine
[Samsung Galaxy W I8150] arsradu:
I'm not sure that would be an accurate test (in virtual environment). But it would be interesting to know anyway. :D
[Samsung Galaxy W I8150] hurtsky:
based on our experience me and [MENTION=4410351]honeyx[/MENTION] , you will had difficulties if you compile on 32bit variants with linaro toolchains compiler... normal toolchains won't have problem.
[Samsung Galaxy W I8150] haky 86:
Thanks

[MENTION=5183976]lafactorial[/MENTION]

Ok when i compile the kernel my cpu get freez and system got blocking, any solution for this?

then did you mean cpu frequencies about overclocking? thanks
[Samsung Galaxy W I8150] lafactorial:
What is your highest freq ?

I think you have to set min max freq under system tab.
[Samsung Galaxy W I8150] haky 86:
Thanks

Here is my freq in the attacched image
[Samsung Galaxy W I8150] lafactorial:
It must be 1401600 but I am not sure if it is the cause of your problem.
[Samsung Galaxy W I8150] haky 86:
Thanks

Because i am try to port ubuntu touch for samsung ancora, i build an image about 29 mb , flashing works fine but it reboot automatically

However i will try later

thanks again ;)
[Samsung Galaxy W I8150] honeyx:
This is because Christophers linaro toolchains are build on a 64 bit Linux and require 64 bit Linux to work. All the standard toolchains are build on a 32 bit linux and work with both. 32 bit and 64 bit. So you can´t use Christophers toolchains in a 32 bit environment. You only can get the sources and rebuild them for 32 bit to make it work.
[Samsung Galaxy W I8150] educk:
Thanks for the heads-up, OP refreshed :o
[Samsung Galaxy W I8150] LeroViten:
All I can say is that I successfully compile kernel on x64 Ubuntu 13.04, 13.10 and finally 14.04 . ;)
[Motorola Droid RAZR] Vallerino WR:
HI

My question:

AS anyone a prblem with the Brightness level???

After i unlock the phone the level go down but in setting have the seme level that i set

Any suggestion?

Maybe apk file infected???
[Nexus 4 Q&A, Help & Troubleshooting] MrMarkEdward:
Is there a sensor calibration app for the N4 CM10.1 roms? My camera is out of wack all pics I take are upside down.
[AT&T Samsung Galaxy Note II] mmckenna11:
Hello all I am in a bit of a situation.

This is the second time I have posted regarding me causing my galaxy note 2 to be out of order. Today I used TWRP to wipe my OS then also deleted all of my data wiping the os's I had downloaded. I only have a Mac thus the help for Mac's and Android is very limited thus I am wondering if there would be any way to get this fixed without using a Windows computer right now my phone is stuck rebooting.

Sorry to bother you all again,

Max
[AT&T Samsung Galaxy Note II] Brad.S.:
I don't know if I understand your post fully, but... It sounds like you wiped the device, and wiped the ROM that you downloaded? I've seen this increasingly lately.

Anyways..

Download another ROM and place it on an external SD card. You'll need an adapter to be able to hook the SD up to the computer. Or just borrow someone's SD. (just don't wipe it too)

Put the SD in and flash the ROM. just shut the phone off and when you're ready, use the three button combo to get back to TWRP.

Please hit the triangle on the side of your post and report it for thread maintenance to be moved. This thread (A question thread) belongs in the Q&A section.
[AT&T Samsung Galaxy Note II] mmckenna11:
Is there any way I could do it without an SDcard?
[AT&T Samsung Galaxy Note II] Brad.S.:
With a Mac, not that I know of.

Give it a few hours and maybe someone with higher knowledge of mac+android will chime in.

The phone is blank right now, I would hesitate to even try to turn it on. You could use windows and Odin. You might be able to adb the files to the device..But that is more learning/hassle than the SD. Using the SD is really the easiest.

I'd let you borrow mine but shipping would take a while (haha)

I have an iMac and have the same problem. Android file transfer doesn't even recognize my device for MTP transfer. But I have four other windows machines here, so no biggie for me.
[AT&T Samsung Galaxy Note II] mmckenna11:
How would you go about doing it using windows?
[AT&T Samsung Galaxy Note II] Brad.S.:
Install Odin and grab the stock OS files

Place the phone into download

And push the stock os to the phone

It would be as if you were going back to full stock.

There are numerous guides on how to do it.

Here are a bunch of resources:

http://xdaforums.com/showthread.php?t=1987541
[AT&T Samsung Galaxy Note II] wase4711:
if you install a VM on your mac, or if you have one already installed, then just run it, install Odin on it, and install the stock ROM that way..
[AT&T Samsung Galaxy Note II] g2tegg:
Exactly what I do! Parallels 7 does the trick for me if my windows box has a non specific color screen of death.
[AT&T Samsung Galaxy Note II] mmckenna11:
For ATT they all seem to be in .zip file format yet you cant use that with odin so how would i go about doing this?
[AT&T Samsung Galaxy Note II] mmckenna11:
How do you place a file directly into a directory so i can use recovery to flash it on?!
[Galaxy Note II Q&A, Help & Troubleshooting] Udonitron:
Hey Guys

I have noticed my haptic feedback cannot be turned off even when the sensitivity is at 0 and is shut off.

Also my camera no longer makes shutter noises when taking pics.

Anyone else and did you figure out a fix?

Cheers
[Galaxy Note II Q&A, Help & Troubleshooting] KennyG123:
Please read forum rules before posting

Questions and Help go in Q&A

Thread moved

Thank you for your cooperation

Friendly Neighborhood Moderator
[Galaxy Note II Q&A, Help & Troubleshooting] Udonitron:
Haha I somehow knew this would happen, thanks Ken.
[Galaxy Note II Q&A, Help & Troubleshooting] Udonitron:
No camera sound issues or haptic feedback issues eh?
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] Android Noobie:
Hi All,

I have the above phone and many times when i try to move a folder to phone/android/obb it says its write protected.

I have tried to use root explorer with no luck.

Can someone please help me?

Cheers
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] Obagleyfreer:
You clicked the button in the top right hand corner on root explorer to allow it write permission?
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] Android Noobie:
In the top left it says mount as r/w or r/o

If i select r/w and try to delete a file it says "delete failed"
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] Android Noobie:
Can anyone please help me with this?

I have even changed rom and the phone/android/obb folder is still write protected.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] yshaikh01:
Have you actually rooted your device? If not follow this guide http://xdaforums.com/showthread.php?t=1979290

Thanks
[Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & ] Android Noobie:
Im sure it was directory bind that was write protecting the file.
[Samsung Galaxy S (4G Model)] turkayunal:
Hello,

I'm new member in xda ,but ı am reading posts nearly 1 year.In these days ı am little bored to my phone.One of my friend wants to swap her atrix 4g with my sgs4g.I dont know much about atrix 4g.Is this good choice to change my phone with atrix 4g or not?
[Samsung Galaxy S (4G Model)] gregcapps:
Google specs on both and compare. That will give you a good idea. Also not a bad idea to check out the development section for the atrix to see what is available.