Linux

From krtkl wiki
Jump to navigation Jump to search

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