[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howtos:misc:kernel_development [2023/05/12 13:02 (UTC)] – created lockywolf | howtos:misc:kernel_development [2023/05/12 13:06 (UTC)] (current) – [Sources] lockywolf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using Slackware for Linux Kernel development ====== | ====== Using Slackware for Linux Kernel development ====== | ||
- | So, hello from Lockywolf. | + | So, hello from [[user: |
At some point I needed to hack some network-related kernel code. Since it is not 1993, not 2003, and not even 2013, I, naturally, wanted to do "fast development using QEMU", instead of painstakingly booting two machines with new kernels (it's network code, after all, so there needs to be a network of at least two machines). | At some point I needed to hack some network-related kernel code. Since it is not 1993, not 2003, and not even 2013, I, naturally, wanted to do "fast development using QEMU", instead of painstakingly booting two machines with new kernels (it's network code, after all, so there needs to be a network of at least two machines). | ||
Line 11: | Line 11: | ||
Before you start, you should decide for yourself the following things: | Before you start, you should decide for yourself the following things: | ||
- | 1. where you keep the kernel tree (called / | + | - where you keep the kernel tree (called / |
- | 2. where you keep iproute2 tools (called / | + | |
- | 3. what userspace software you need to test your kernel (called / | + | |
- | 4. which module you want to test (called mymodule here (whithout .ko !)) | + | |
- | 5. which packages you want to have in your VMs | + | |
Below I am using the following packages from stock slackware 15.0 (kept in / | Below I am using the following packages from stock slackware 15.0 (kept in / | ||
- | 1. openssh-9.2p1-x86_64-1_slack15.0.txz | + | - openssh-9.2p1-x86_64-1_slack15.0.txz |
- | 2. openssl-solibs-1.1.1t-x86_64-1_slack15.0.txz | + | |
- | 3. libevent-2.1.12-x86_64-3.txz | + | |
- | 4. ncurses-6.3-x86_64-1.txz | + | |
- | 5. tmux-3.2a-x86_64-1.txz | + | |
- | 6. libmnl-1.0.4-x86_64-5.txz | + | |
- | 7. iproute2-5.16.0-x86_64-1.txz | + | |
- | 8. screen-4.9.0-x86_64-1.txz | + | |
- | 9. libnl3-3.5.0-x86_64-3.txz | + | |
- | 10. tcpdump-4.99.1-x86_64-1.txz | + | |
And the following packages built from SlackBuilds.org (kept in / | And the following packages built from SlackBuilds.org (kept in / | ||
- | 1. dropbear-2022.83-x86_64-1_SBo.tgz | + | - dropbear-2022.83-x86_64-1_SBo.tgz |
- | 2. lksctp-tools-1.0.17-x86_64-3_SBo.tgz | + | |
- | 3. iperf3-3.12-x86_64-2_SBo.tgz | + | |
- | 4. wireshark-4.0.4-x86_64-1_SBo.tgz | + | |
- | 5. libpcap-1.10.3-x86_64-1.txz | + | |
- | 6. socat-noopenssl-1.7.4.4-x86_64-1.txz | + | |
- | 7. netsniff-ng-0.6.8-x86_64-1_SBo.tgz | + | |
- | 8. jq-1.6-x86_64-2_SBo.tgz | + | |
The VMs do not have any fake HDD, they are booting into their initrds, which are created using Slackware' | The VMs do not have any fake HDD, they are booting into their initrds, which are created using Slackware' | ||
Line 222: | Line 222: | ||
====== Sources ====== | ====== Sources ====== | ||
- | * Kernel development with qemu [[https:// | + | - Kernel development with qemu [[https:// |
- | * Using tap devices for communicating with virtual machines [[https:// | + | |