Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-11-07,master
commit 1079df52e8fa8410a19115ccae7c6e7e0277a9be Author: Sven Eckelmann sven@narfation.org Date: Sun Nov 3 15:19:05 2019 +0000
doc: open-mesh/Kernel_hacking_Debian_image: switch to qboot as bios
1079df52e8fa8410a19115ccae7c6e7e0277a9be open-mesh/Kernel_hacking_Debian_image.textile | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/open-mesh/Kernel_hacking_Debian_image.textile b/open-mesh/Kernel_hacking_Debian_image.textile index ee73fa9..4c77dfa 100644 --- a/open-mesh/Kernel_hacking_Debian_image.textile +++ b/open-mesh/Kernel_hacking_Debian_image.textile @@ -296,6 +296,15 @@ make olddefconfig make all -j$(nproc || echo 1) </code></pre>
+h2. Build the BIOS + +The (sea)bios used by qemu is nice to boot all kind of legacy images but reduces the performance for booting a paravirtualized Linux system. Something like qboot works better for this purpose: + +<pre><code class="shell"> +git clone https://github.com/bonzini/qboot.git +make -C qboot +</code></pre> + h2. Building the batman-adv module
The kernel module can be build outside the virtual environment and shared over the 9p mount. The path to the kernel sources have to be provided to the make process @@ -324,6 +333,7 @@ The BASE_IMG is of course no longer the same because a new image "debian.img" wa
<pre><code class="shell"> BASE_IMG=debian.img +BOOTARGS+=("-bios" "qboot/bios.bin") BOOTARGS+=("-kernel" "linux-next/arch/x86/boot/bzImage") BOOTARGS+=("-append" "root=/dev/vda rw console=ttyS0 nokaslr") </code></pre>