Skip to content

sbourdelin/br2-external-kernel-dev-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

br2-external-kernel-dev-lab

A buildroot out-of-tree kernel dev lab

This repository is just a minimal Buildroot out-of-tree solution to setup a kernel dev lab using Qemu.

How to use:

Clone this repository:

$ git clone https://github.com/sbourdelin/br2-external-kernel-dev-lab.git

Go to your main Buildroot folder, and add the root folder of this external repository:

$ make BR2_EXTERNAL=<path>/br2-external-kernel-dev-lab

You can now use the new board qemu_x86_64_debug_defconfig, which will create a qemu ready image with debug symbols and facilities for debugging:

$ make qemu_x86_64_debug_defconfig

Start the qemu machine using the generated start-qemu.sh script:

$ ./output/images/start-qemu.sh

Qemu is now waiting for a GDB connection on port 1234 before starting the kernel. You can start GDB with the compiled vmlinux file to get the symbols.

$ gdb ./output/build/<linux-path>/vmlinux

(gdb) target remote :1234
(gdb) continue

The linux gdb scripts are also available:

(gdb) apropos lx-