FORUMS
Remove All Ads from XDA

HOWTO: Compile your own kernel from source (WIP)

10,950 posts
Thanks Meter: 6,568
 
By adrynalyne, Inactive Recognized Developer on 18th April 2011, 04:06 AM
Post Reply Email Thread
27th June 2011, 02:20 AM |#61  
MikereDD's Avatar
Senior Member
Flag Houston
Thanks Meter: 513
 
More
Quote:
Originally Posted by adrynalyne

Didn't see you on IRC, so...this assumes you have sudo setup. if not, run the below commands under a # (su) prompt. Just delete where it says sudo.

Make sure you have ppl, gmp, and mpfr packages installed beforehand.

Also, because you are bound to run into it with the kitchen, install cpio.

Code:
sudo pacman -S ppl
sudo pacman -S gmp
sudo pacman -S mpfr
sudo pacman -S cpio
Then...


Code:
sudo ln -s /usr/lib/libppl_c.so.4 /usr/lib/libppl_c.so.2
sudo ln -s /usr/lib/libppl.so.9 /usr/lib/libppl.so.7
sudo ln -s /usr/lib/libmpfr.so.4 /usr/lib/libmpfrso.1

Code:
sudo pacman -S cloog ppl gmp mpfr cpio

yaourt -S lib32-cloog lib32-ppl lib32-mpfr or lib32-mpfr-dev lib32-gmp or lib32-gmp-dev
Code:
sudo ln -s /usr/lib/libppl_c.so.4 /usr/lib/libppl_c.so.2
sudo ln -s /usr/lib/libppl.so.9 /usr/lib/libppl.so.7
sudo ln -s /usr/lib/libcloog-isl.so.1 /usr/lib/libcloog.so.0
sudo ln -s /usr/lib/libmpfr.so.4 /usr/lib/libmpfr.so.1
sudo ln -s /usr/lib/libgmp.so.10 /usr/lib/libgmp.so.3
what i did to get rolling based off your help.
thnx for this, helped me. im an arch 64bit user and this helped em get rolling.
27th June 2011, 02:47 AM |#62  
yareally's Avatar
Senior Member
Thanks Meter: 228
 
Donate to Me
More
Just for fun, I tried a bit to get it to go on cygwin on windows with a different toolchain, but it most likely has some incompatibilities just from still being a part of the underlying windows environment. You're better off just doing it on linux unless you just like a challenge.
27th June 2011, 05:06 AM |#63  
Quote:
Originally Posted by kumarmarld

Hi adrynalyne
I have followed your steps and have found some issues with my setup potentially. Can you help me please.
When you refer to:
"This installs the kitchen and starts it up. Now the first thing we need to do is setup a working directory. Take a rom, any rom, and copy it to the ogiinal_update folder inside the kitchen. You can then setup your working folder.
Inside the working folder, delete boot.img. Grab, one of say, my kernels, and extract it. Take boot.img from the extracted contents and copy to the kitchen."

1.) What do you mean by taking any rom? Where can I get this from and what does the file look like (i.e. file extension, etc..)
2.) What is the working folder
SOrry for my ignorance - I am new to this.

Cheers

Raj

1.) ROMs are the zip files that you download to replace your system. Things like BAMF, Gingeritis, etc are ROMs

2.) The working folder is created by the kitchen. When you put a ROM into the folder that says "Place ROM here" the kitchen will decompress it into a folder that it names working folder followed by some numbers.

Sorry I'm not the person you directed the questions to, but I saw them as I was passing by.
27th June 2011, 02:05 PM |#64  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by twistedumbrella

Sorry I'm not the person you directed the questions to, but I saw them as I was passing by.

Who cares? You still helped, right? That's all that matters.

GingerRemix 2.1 ¦ Imoseyon's GB Kernel 3.3.6 ¦ MR 2.5 Radio
27th June 2011, 05:23 PM |#65  
Account currently disabled
Flag Texas
Thanks Meter: 558
 
Donate to Me
More
I get this error when try to use a different kernel source

Can't find default configuration "arch/arm/configs/ace-lte_defconfig"!
1st July 2011, 04:55 AM |#66  
Account currently disabled
Flag Texas
Thanks Meter: 558
 
Donate to Me
More
solved my own problem. for the menu mecha_deconfig you need to replace with your own build. Sense Im on an ace device I had to go into android/kernel/desirehd/ace-2.6.35/arch/arm/config/here look for your deconfig mine is ace_deconfig. The is the same for cm7 kernels also. Thanks for the guide.
1st July 2011, 08:29 AM |#67  
Quote:
Originally Posted by desai827

Who cares? You still helped, right? That's all that matters.

GingerRemix 2.1 ¦ Imoseyon's GB Kernel 3.3.6 ¦ MR 2.5 Radio

... you'd be surprised... but I agree with your thinking
1st July 2011, 10:07 PM |#68  
Member
Thanks Meter: 1
 
More
where can i get ppl, gmp, cpio and mpfr?

EDIT: nm got it.
7th September 2011, 02:22 PM |#69  
GabrielSousa's Avatar
Senior Member
Flag Leiria
Thanks Meter: 1,768
 
Donate to Me
More
i have this error:

anyone knows why ?


scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/dma-mapping.h:93,
from arch/arm/kernel/asm-offsets.c:15:
/usr/src/pyramid-2.6.35_mr/arch/arm/include/asm/dma-mapping.h: In function 'dma_cache_post_ops':
/usr/src/pyramid-2.6.35_mr/arch/arm/include/asm/dma-mapping.h:442: error: implicit declaration of function 'arch_has_speculative_dfetch'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
7th September 2011, 05:44 PM |#70  
GabrielSousa's Avatar
Senior Member
Flag Leiria
Thanks Meter: 1,768
 
Donate to Me
More
how i canvert the zimage to boot.img

the kitchen dont have the option 'b'

or where i can get the ramdisk ? if i dont the the boot.img

only the kernel source
7th September 2011, 07:31 PM |#71  
smokin1337's Avatar
Retired Recognized Developer
Flag Virginia
Thanks Meter: 1,615
 
Donate to Me
More
Quote:
Originally Posted by vladnosferatu

i have this error:

anyone knows why ?


scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/dma-mapping.h:93,
from arch/arm/kernel/asm-offsets.c:15:
/usr/src/pyramid-2.6.35_mr/arch/arm/include/asm/dma-mapping.h: In function 'dma_cache_post_ops':
/usr/src/pyramid-2.6.35_mr/arch/arm/include/asm/dma-mapping.h:442: error: implicit declaration of function 'arch_has_speculative_dfetch'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

Did you get this fixed ? I have the same error.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes