mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
build-buildroot twice, and split build-m5
This commit is contained in:
12
README.adoc
12
README.adoc
@@ -396,19 +396,19 @@ If you haven't built Buildroot yet for <<qemu-buildroot-setup>>, you can build f
|
||||
....
|
||||
./download-dependencies --gem5
|
||||
./build --gem5 --no-qemu
|
||||
./build-buildroot --gem5
|
||||
./run --gem5
|
||||
....
|
||||
|
||||
`--no-qemu` is optional, but it makes the build slightly faster TODO: after first build:
|
||||
....
|
||||
./download-dependencies --gem5
|
||||
./build-gem5 --gem5
|
||||
./build-buildroot --gem5
|
||||
./build-gem5
|
||||
./build-m5
|
||||
./build-buildroot
|
||||
./run --gem5
|
||||
....
|
||||
|
||||
If you have already built previously, don't be afraid: gem5 and QEMU use almost the same root filesystem and kernel, so `./build-buildroot --gem` will be fast. It is currently only needed for the <<m5>> tool.
|
||||
If you have already built previously, don't be afraid: gem5 and QEMU use almost the same root filesystem and kernel, so `./build-buildroot --gem` will be fast. It is currently only needed for the <<m5>> tool.
|
||||
|
||||
To get a terminal, either open a new shell and run:
|
||||
|
||||
@@ -601,7 +601,7 @@ Maybe we could work around this by just downloading the kernel source somehow, a
|
||||
+
|
||||
** there is no Debian package for it, so you have to compile your own, so you might as well just build the image itself
|
||||
** it does not handle <<gem5-qcow2,qcow2>>, and we haven't gotten <<squashfs>> to work yet, therefore we would have to either distribute large ext2 images, or constantly fight with <<br2_target_rootfs_ext2_size>>
|
||||
** QEMU uses `bzImage` and gem5 the raw `vmlinux`, and we don't want to distribute the same thing twice...
|
||||
** QEMU uses `bzImage` and gem5 the raw `vmlinux`, and we don't want to distribute the same thing twice...
|
||||
+
|
||||
And our attempt at using link:https://github.com/torvalds/linux/blob/master/scripts/extract-vmlinux[`extract-vmlinux`] failed for `aarch64` with:
|
||||
+
|
||||
@@ -2913,7 +2913,7 @@ man init_module
|
||||
documents that:
|
||||
|
||||
____
|
||||
The finit_module() system call is like init_module(), but reads the module to be loaded from the file descriptor fd. It is useful when the authenticity of a kernel module can be determined from its location in the filesystem; in cases where that is possible, the overhead of using cryptographically signed modules to determine the authenticity of a module can be avoided. The param_values argument is as for init_module().
|
||||
The finit_module() system call is like init_module(), but reads the module to be loaded from the file descriptor fd. It is useful when the authenticity of a kernel module can be determined from its location in the filesystem; in cases where that is possible, the overhead of using cryptographically signed modules to determine the authenticity of a module can be avoided. The param_values argument is as for init_module().
|
||||
____
|
||||
|
||||
`finit` is newer and was added only in v3.8. More rationale: https://lwn.net/Articles/519010/
|
||||
|
||||
Reference in New Issue
Block a user