Difference between revisions of "Linux"
Jump to navigation
Jump to search
(Created page with " <code>uImage</code> specifies that the kernel binary be wrapped with a U-Boot header for loading. <pre> $ make ARCH=arm CROSS_COMPILE=arm-none-eabi- LOADADDR=0x8000 uImage...") |
|||
Line 1: | Line 1: | ||
+ | == Fetch Source == | ||
− | + | Download the Linux kernel source from GitHub by cloning the repository to a local workspace. | |
+ | <pre> | ||
+ | $ git clone https://github.com/krtkl/snickerdoodle-linux.git | ||
+ | </pre> | ||
+ | |||
+ | == Build == | ||
+ | |||
+ | <code>uImage</code> specifies that the kernel binary be wrapped with a U-Boot header for loading. To build the <code>uImage</code> target, the U-Boot <code>mkimage</code> utility needs to be available via the <code>$PATH</code> variable. | ||
+ | |||
+ | ==== Setup Environment ==== | ||
+ | |||
+ | <pre> | ||
+ | $ export ARCH=arm CROSS_COMPILE=arm-none-eabi- | ||
+ | </pre> | ||
+ | |||
+ | ==== Configure Source Tree ==== | ||
+ | |||
+ | <pre> | ||
+ | $ git snickerdoodle_defconfig | ||
+ | </pre> | ||
+ | |||
+ | === Compile kernel Binary === | ||
<pre> | <pre> | ||
− | $ make | + | $ make LOADADDR=0x8000 uImage |
</pre> | </pre> |
Revision as of 20:48, 24 March 2018
Contents
Fetch Source
Download the Linux kernel source from GitHub by cloning the repository to a local workspace.
$ git clone https://github.com/krtkl/snickerdoodle-linux.git
Build
uImage
specifies that the kernel binary be wrapped with a U-Boot header for loading. To build the uImage
target, the U-Boot mkimage
utility needs to be available via the $PATH
variable.
Setup Environment
$ export ARCH=arm CROSS_COMPILE=arm-none-eabi-
Configure Source Tree
$ git snickerdoodle_defconfig
Compile kernel Binary
$ make LOADADDR=0x8000 uImage