Difference between revisions of "Custom Kernels v2"
Jump to navigation
Jump to search
PuffTheMagic (talk | contribs) |
PuffTheMagic (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | {{Warning|The directions on this page | + | {{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/ | + | cp arch/arm/configs/omap_sirloin_3430_defconfig .config |
</code> | </code> | ||
===== Configure the kernel: ===== | ===== Configure the kernel: ===== | ||
<code language="sh"> | <code language="sh"> | ||
− | + | make menuconfig | |
</code> | </code> | ||
===== Build the kernel: ===== | ===== Build the kernel: ===== | ||
<code language="sh"> | <code language="sh"> | ||
− | + | make && make uImage | |
</code> | </code> |
Latest revision as of 19:12, 15 August 2009
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