1. Install Git tools
2, to the official website download Linux kernel https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git, this address is not very useful
Use the following Git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Http://vger.kernel.org/vger-lists.html#linux-kernel This is a discussion of Linux-driven mail groups
3. Linux tool Chain
ARM-LINUX-GCC and other compilation tools
LD and other link tools
Objdump Tools
4. Configuring the Kernel
Configuring the kernel is based on the hardware environment, compiling the relevant code, and ultimately generating the executable file.
Example: The process of compiling a core based on the Samsung 210 processor
- into the kernel file directory, extract the kernel files
See the Makefile in the cross-tool chain? Cross_compile? = We're going to push the toolchain down there.
- Installation Tool Chain
is to extract the relevant toolchain to the above position cross_compile? =
- Compile the kernel: Compile the relevant code according to the hardware environment, and eventually generate the executable file
Select the required modules: Open the vi Config profile with macros that need to compile the module
Choose a profile that is close to your development, and it is impossible to write the CP config_qt210. config from scratch.
- Make Menuconfig
Vmlinux is the original uncompressed executable file
Zimage is a compressed executable file, after compressing vmlinux, plus a header, these headers are composed of some programs that are used to decompress the
Uimage is a zimage for uboot booting, because uboot can boot other operating systems in addition to booting Linux.