mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Use a single build for aarch64 qemu and gem5!
Document the minimal aarch64 boot. Rename -c to -B for uniformity with -b. Add help for ./run and ./build options.
This commit is contained in:
30
run-usage.adoc
Normal file
30
run-usage.adoc
Normal file
@@ -0,0 +1,30 @@
|
||||
= run usage
|
||||
|
||||
....
|
||||
./run [OPTIONS] [-- EXTRA_RUN_ARGS]`
|
||||
....
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
|Name |Argument name | Description
|
||||
|`-a` |`ARCH` | Run architecture `ARCH`.
|
||||
|`-c` |`NCPUS` | Emulate `NCPUS` guest CPUs.
|
||||
|`-D` | | Run GDB on the emulator itself.
|
||||
|`-d` | | Run in debug mode, expect a GDB connection to guest.
|
||||
|`-E` |`CMDSTR` | Replace the normal init with a minimal init that just evals
|
||||
with given `CMDSTR` bash command string. Example:
|
||||
`-E 'insmod /hello.ko;'`
|
||||
|`-e` |`CLI_OPTIONS` | Pass an extra Linux kernel command line options.
|
||||
Example: `./run -a arm -e 'init=/poweroff.out'`
|
||||
|`-K` | | Use KVM. Only works if guest arch == host arch.
|
||||
|`-k` | | Enable KGDB.
|
||||
|`-G` | | Pass extra options to the gem5 executable.
|
||||
Only useful if `-g` is given.
|
||||
Do not confuse with the arguments passed to the config scripts,
|
||||
e.g. `fs.py`
|
||||
|`-h` | | Show this help message.
|
||||
|`-I` | | Run with initramfs.
|
||||
|`-i` | | Run with initrd.
|
||||
|`-m` | | Set the memory size of the guest. E.g.: `-m 512M`. Default: `256M`.
|
||||
|`-n` | | Run in nographic mode.
|
||||
|===
|
||||
Reference in New Issue
Block a user