Difference between revisions of "Linux"
Jump to navigation
Jump to search
m (→Build) |
|||
Line 9: | Line 9: | ||
== Build == | == 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. | + | <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. See [[U-Boot#mkimage Utility|mkimage Utility]] for information on how this utility is built and how to add it to the <code>$PATH</code>. |
==== Setup Environment ==== | ==== Setup Environment ==== |
Latest revision as of 21:06, 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. See mkimage Utility for information on how this utility is built and how to add it to the $PATH
.
Setup Environment
$ export ARCH=arm CROSS_COMPILE=arm-none-eabi-
Configure Source Tree
$ git snickerdoodle_defconfig
Compile kernel Binary
$ make LOADADDR=0x8000 uImage