| .. | .. |
|---|
| 24 | 24 | |
|---|
| 25 | 25 | - Create a virtual Linux machine for QEMU/KVM (see www.linux-kvm.org and |
|---|
| 26 | 26 | www.qemu.org for more details). For cross-development, |
|---|
| 27 | | - http://landley.net/aboriginal/bin keeps a pool of machine images and |
|---|
| 27 | + https://landley.net/aboriginal/bin keeps a pool of machine images and |
|---|
| 28 | 28 | toolchains that can be helpful to start from. |
|---|
| 29 | 29 | |
|---|
| 30 | 30 | - Build the kernel with CONFIG_GDB_SCRIPTS enabled, but leave |
|---|
| .. | .. |
|---|
| 39 | 39 | this mode. In this case, you should build the kernel with |
|---|
| 40 | 40 | CONFIG_RANDOMIZE_BASE disabled if the architecture supports KASLR. |
|---|
| 41 | 41 | |
|---|
| 42 | +- Build the gdb scripts (required on kernels v5.1 and above):: |
|---|
| 43 | + |
|---|
| 44 | + make scripts_gdb |
|---|
| 45 | + |
|---|
| 42 | 46 | - Enable the gdb stub of QEMU/KVM, either |
|---|
| 43 | 47 | |
|---|
| 44 | 48 | - at VM startup time by appending "-s" to the QEMU command line |
|---|