Kernel Source Directory
1, Arch: recorded x86 focus on
2. Init: Start_kernel in MAIN.C under directory is the starting point of the boot kernel
3. IPC: Directory of inter-process communication
Experiment
Open the shell with a virtual machine in the lab building
CD linuxkernel/
Qemu-kernel LINUX-3.18.6/ARCH/X86/BOOT/BZIMAGE-INITRD rootfs.img
Use gdb Trace Debug Kernel
qemu -kernel linux-
3.18 .
6 /arch/x86/boot/bzImage -initrd rootfs.img
- s -S
#
Load Symbol table
Set breakpoints
Summary:understanding of the "Linux system startup process"
The Start_kernel in MAIN.C under the Init directory is the starting point for booting the kernel. Start of process Init in Strat_kernel
Li Hai Empty original works reprint please indicate the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000
Linux kernel Analysis Job 3: Trace analysis of the boot process of the Linux kernel