dcui / no-name-linux

No Name Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Name Linux

This repo helps to build and run the Linux kernel and busybox for the user land. The scripts incorporate knowledge needed to facilitate ramping up on the Linux kernel debugging.

Also there is an example of building an out-of-tree kernel module LookSee

For arm64, please switch to the arm64 branch. I'll merge it into master when I have time.

Eye candy:

  1. Debugging Linux kernel Debugging Linux kernel

  2. Serial console, inspecting Local APIC for CPU 0 with QEMU Serial console

  3. Debugging the ARM64 Linux kernel ARM64 Linux kernel

  4. What exactly happens inside the kernel when you divide by zero in your user-mode code

To clone:

	git clone --recursive https://github.com/kromych/no-name-linux.git

To build the kernel:

	./01-build-kernel.sh

To build the root filesystem:

	./02-build-rootfs.sh 

To build the bootable image (you can also use it to boot a PC)

	./03-mkimg-losetup.sh

To run:

	./run.sh

To debug:

	./run.sh waitdebug

and run ./attach-gdb.sh in another console window/tab.

To supress graphic output, and run in the text mode:

	./run.sh serial

In this case, you'll need to use Ctrl+A followed by C to QEMU's monitor.

About

No Name Linux


Languages

Language:Shell 68.0%Language:C 25.8%Language:Makefile 6.2%