mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
docs: document slightly faster kernel module test setup
This commit is contained in:
@@ -348,7 +348,7 @@ The fast method is slightly risky because your previously insmodded buggy kernel
|
||||
|
||||
Such failures are however unlikely, and you should be fine if you don't see anything weird happening.
|
||||
|
||||
The safe way, is to fist <<rebuild-buildroot-while-running,quit QEMU>>, rebuild the modules, put them in the root filesystem, and then reboot:
|
||||
The safe way is to fist <<rebuild-buildroot-while-running,quit QEMU>>, rebuild the modules put them somewhere QEMU can see and then reboot. So you could either place it in the root filesystem:
|
||||
|
||||
....
|
||||
./build-modules
|
||||
@@ -356,6 +356,13 @@ The safe way, is to fist <<rebuild-buildroot-while-running,quit QEMU>>, rebuild
|
||||
./run --eval-after 'insmod hello.ko'
|
||||
....
|
||||
|
||||
or for a slightly faster turnaround just leave it on 9p and use it from there:
|
||||
|
||||
....
|
||||
./build-modules
|
||||
./run --eval-after 'insmod /mnt/9p/out_rootfs_overlay/lkmc/hello.ko'
|
||||
....
|
||||
|
||||
`./build-buildroot` is required after `./build-modules` because it re-generates the root filesystem with the modules that we compiled at `./build-modules`.
|
||||
|
||||
You can see that `./build` does that as well, by running:
|
||||
|
||||
Reference in New Issue
Block a user