Difference between revisions of "Custom Kernels v2"

From WebOS Internals
Jump to navigation Jump to search
(New page: {{Warning|The directions on this page are for building a kernel for the Palm Pre using a armv7 cross toolchain. There are plenty of instructions on how to get a cross toolchain for the Pre...)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Warning|The directions on this page are for building a kernel for the Palm Pre using a armv7 cross toolchain. There are plenty of instructions on how to get a cross toolchain for the Pre so that will not be discussed here. If you don't already have a cross toolchain or don't know what one is,turn around now.}}
+
__NOTOC__
 +
{{Warning|The directions on this page describe building a kernel for the Palm Pre using an armv7 cross toolchain. There are plenty of instructions on how to obtain a cross toolchain for the Pre, so that will not be discussed here. If you don't already have a cross toolchain or don't know what it is, please leave this page.}}
  
 +
===== Setup your environment: =====
 +
<code language="sh">
 +
export CROSS_COMPILE="armv7a-softfloat-linux-gnueabi-"
 +
 +
export ARCH="arm"
 +
</code>
  
 
===== Get the kernel code: =====
 
===== Get the kernel code: =====
Line 6: Line 13:
 
<code language="sh">
 
<code language="sh">
 
git clone git://git.webosinternals.org/kernel.git
 
git clone git://git.webosinternals.org/kernel.git
 +
 +
git checkout -b master-palm origin/master-palm
 
</code>
 
</code>
  
Line 11: Line 20:
  
 
<code language="sh">
 
<code language="sh">
cp arch/arm/configs/webos-internals .config
+
cp arch/arm/configs/omap_sirloin_3430_defconfig .config
 +
</code>
 +
 
 +
===== Configure the kernel: =====
 +
<code language="sh">
 +
make menuconfig
 +
</code>
 +
 
 +
===== Build the kernel: =====
 +
<code language="sh">
 +
make && make uImage
 
</code>
 
</code>

Latest revision as of 20:12, 15 August 2009

Warning The directions on this page describe building a kernel for the Palm Pre using an armv7 cross toolchain. There are plenty of instructions on how to obtain a cross toolchain for the Pre, so that will not be discussed here. If you don't already have a cross toolchain or don't know what it is, please leave this page.
Setup your environment:

export CROSS_COMPILE="armv7a-softfloat-linux-gnueabi-"

export ARCH="arm"

Get the kernel code:

git clone git://git.webosinternals.org/kernel.git

git checkout -b master-palm origin/master-palm

Get the default config:

cp arch/arm/configs/omap_sirloin_3430_defconfig .config

Configure the kernel:

make menuconfig

Build the kernel:

make && make uImage