mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +01:00
S99
This commit is contained in:
13
README.md
13
README.md
@@ -120,6 +120,19 @@ TODO: Ctrl + C kills the emulator, it is not sent to guest processes. See:
|
|||||||
- <https://github.com/cloudius-systems/osv/issues/49>
|
- <https://github.com/cloudius-systems/osv/issues/49>
|
||||||
- <https://unix.stackexchange.com/questions/167165/how-to-pass-ctrl-c-in-qemu>
|
- <https://unix.stackexchange.com/questions/167165/how-to-pass-ctrl-c-in-qemu>
|
||||||
|
|
||||||
|
## Automatic startup commands
|
||||||
|
|
||||||
|
When debugging a module, it becomes tedious to wait for build and re-type:
|
||||||
|
|
||||||
|
root
|
||||||
|
/mymod.sh
|
||||||
|
|
||||||
|
Instead, you can add your test commands to:
|
||||||
|
|
||||||
|
rootfs_overlay/etc/init.d/S99
|
||||||
|
|
||||||
|
and they will be run automatically before the login prompt.
|
||||||
|
|
||||||
## Debugging
|
## Debugging
|
||||||
|
|
||||||
To GDB the Linux kernel, first run:
|
To GDB the Linux kernel, first run:
|
||||||
|
|||||||
4
rootfs_overlay/etc/init.d/S99
Executable file
4
rootfs_overlay/etc/init.d/S99
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo 'S99'
|
||||||
|
# insmod /hello.ko
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user