| 16 | | Some more information about Z2 mainline can be also found on this blog:[[BR]] |
|---|
| 17 | | [http://marex-hnd.blogspot.com Marex's Linux on your palm blog] |
|---|
| | 9 | You can also browse the SVN repository by pointing your web browser to one of the following addresses: |
|---|
| | 10 | * SVN repository root: http://openzipit.svn.sourceforge.net/viewvc/openzipit/ |
|---|
| | 11 | * Linux 2.6.29 patches: http://openzipit.svn.sourceforge.net/viewvc/openzipit/oe/zipit2/recipes/linux/linux-zipit2-2.6.29/ |
|---|
| | 12 | |
|---|
| | 13 | Further information about this patchset and progress being made can be found on the following blog: |
|---|
| | 14 | * Sweetlilmre's 1337 beef blog: http://sweetlilmre.blogspot.com/ |
|---|
| | 15 | |
|---|
| | 16 | Some more information about Z2 mainline can be also found on this blog: |
|---|
| | 17 | * Marex's Linux on your palm blog: http://marex-hnd.blogspot.com/ |
|---|
| 20 | | * Firstly, you have two options on compiling the kernel, either use the [http://openzipit.svn.sourceforge.net/viewvc/openzipit/oe/Makefile?revision=19 Makefile from OpenZipit SVN] and build the whole thing including userspace using OpenEmbedded as described [http://sweetlilmre.blogspot.com/2009/04/new-oe-build.html here] or build the kernel by hand which is described in the following steps. |
|---|
| 21 | | * Secondly, you can't compile the kernel using normal GCC you have on your PC, you'll need a crosscompiler. A suitable crosscompiler can be found either: |
|---|
| 22 | | * In your distribution (called something like ''arm-linux-gcc'', for example Debian has Emdebian toolchain available [http://wiki.debian.org/EmdebianToolchain here]) |
|---|
| 23 | | * On [http://www.codesourcery.com/ CodeSourcery]s website |
|---|
| 24 | | * Built using [http://wiki.openembedded.net/index.php/Getting_started OpenEmbedded]. |
|---|
| 25 | | * Thirdly, the patchset is against vanilla linux-2.6.29, so obtain the vanilla kernel source [http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2 here]. |
|---|
| 26 | | * Then just follow the kernel bitbake file (available [http://openzipit.svn.sourceforge.net/viewvc/openzipit/oe/zipit2/recipes/linux/linux-zipit2_2.6.29.bb?revision=18 here]) and apply the patches in specified order (using patch -Np1 -i <patch>). In the end, copy the ''defconfig'' file into the root of your new kernel tree and rename it to ''.config''. Now you are ready to start compiling the new kernel by issuing the following commands: |
|---|
| 27 | | {{{ |
|---|
| 28 | | make TARGET=ARM CROSS_COMPILE=your-crosscompiler-prefix- menuconfig # optional, run this in case you want to fine-tune the kernel configuration |
|---|
| 29 | | make TARGET=ARM CROSS_COMPILE=your-crosscompiler-prefix- # this compiles the kernel |
|---|
| 30 | | INSTALL_MOD_PATH=/somewhere make TARGET=ARM CROSS_COMPILE=your-crosscompiler-prefix- modules_install # this installs modules into /somewhere, you don't want to mix them with your systems' ones |
|---|
| | 20 | 1. You have two options on compiling the kernel, use either: |
|---|
| | 21 | 1. Makefile from !OpenZipit SVN: |
|---|
| | 22 | 1. Download: http://openzipit.svn.sourceforge.net/viewvc/openzipit/oe/Makefile?revision=19 |
|---|
| | 23 | 1. and build the whole thing including userspace using OpenEmbedded as described at http://sweetlilmre.blogspot.com/2009/04/new-oe-build.html |
|---|
| | 24 | 1. or build the kernel by hand which is described in the following steps: |
|---|
| | 25 | 1. You can't compile the kernel using normal GCC you have on your PC, you'll need a crosscompiler. A suitable crosscompiler can be found either: |
|---|
| | 26 | 1. In your distribution (called something like ''arm-linux-gcc'', for example Debian has Emdebian toolchain available [http://wiki.debian.org/EmdebianToolchain here]) |
|---|
| | 27 | 1. On [http://www.codesourcery.com/ CodeSourcery]s website |
|---|
| | 28 | 1. Built using [http://wiki.openembedded.net/index.php/Getting_started OpenEmbedded]. |
|---|
| | 29 | 1. The patchset is against vanilla linux-2.6.29, so obtain the vanilla kernel source at http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.tar.bz2 |
|---|
| | 30 | 1. Then just follow the kernel bitbake file available at http://openzipit.svn.sourceforge.net/viewvc/openzipit/oe/zipit2/recipes/linux/linux-zipit2_2.6.29.bb?revision=18 |
|---|
| | 31 | 1. Apply the patches in specified order using: {{{patch -Np1 -i <patch>}}} |
|---|
| | 32 | 1. Copy the '''{{{defconfig}}}''' file into the root of your new kernel tree and rename it to '''{{{.config}}}''' |
|---|
| | 33 | 1. Now you are ready to start compiling the new kernel by issuing the following commands: |
|---|
| | 34 | {{{ |
|---|
| | 35 | # optional, run this in case you want to fine-tune the kernel configuration |
|---|
| | 36 | make TARGET=ARM CROSS_COMPILE=your-crosscompiler-prefix- menuconfig |
|---|
| | 37 | |
|---|
| | 38 | # this compiles the kernel |
|---|
| | 39 | make TARGET=ARM CROSS_COMPILE=your-crosscompiler-prefix- |
|---|
| | 40 | |
|---|
| | 41 | # this installs modules into /somewhere, you don't want to mix them with your systems' ones |
|---|
| | 42 | INSTALL_MOD_PATH=/somewhere |
|---|
| | 43 | make TARGET=ARM CROSS_COMPILE=your-crosscompiler-prefix- modules_install |
|---|