small rewording, regen + sync - www.codemadness.org - www.codemadness.org saait content files (HTM) git clone git://git.codemadness.org/www.codemadness.org (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 2ff0b9d3643e1e384eba162ebc01d76e475e530c (DIR) parent d19cdc4efa32a78c71df5155eaec2a0600483e57 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 23 Oct 2021 17:50:26 +0200 small rewording, regen + sync Diffstat: M output/atom_content.xml | 14 +++++++------- M output/rss_content.xml | 14 +++++++------- M pages/openbsd-riscv64-vm.md | 15 ++++++++------- 3 files changed, 22 insertions(+), 21 deletions(-) --- (DIR) diff --git a/output/atom_content.xml b/output/atom_content.xml @@ -20,10 +20,10 @@ <content type="html"><![CDATA[<h1>Setup an OpenBSD RISCV-64 VM in QEMU</h1> <p><strong>Last modification on </strong> <time>2021-10-23</time></p> <p>This describes how to setup an OpenBSD RISCV-64 VM in QEMU.</p> -<p>The below script does the following:</p> +<p>The script below does the following:</p> <ul> <li>Set up the disk image (raw format).</li> -<li>Patch the disk image with OpenBSD miniroot file for the installation.</li> +<li>Patch the disk image with the OpenBSD miniroot file for the installation.</li> <li>Downloads the opensbi and u-boot firmware files for qemu.</li> <li>Run the VM with the supported settings.</li> </ul> @@ -33,7 +33,7 @@ files are not verified. If the host is OpenBSD make sure to instead install the packages (pkg_add u-boot-riscv64 opensbi) and adjust the firmware path for the qemu -bios and -kernel options. </strong></p> <h2>Script</h2> -<pre><code> +<pre><code>#!/bin/sh mirror="https://ftp.bit.nl/pub/OpenBSD/" release="7.0" arch="riscv64" @@ -78,14 +78,14 @@ miniroot() { curl -o "${minirootname}" "${minirooturl}" } -createdisk() { - qemu-img create disk.raw 10G -} - patchminiroot() { dd conv=notrunc if=${minirootname} of=disk.raw } +createdisk() { + qemu-img create disk.raw 10G +} + createrootdisk() { test -f disk.raw && return # create once createdisk (DIR) diff --git a/output/rss_content.xml b/output/rss_content.xml @@ -15,10 +15,10 @@ <description><![CDATA[<h1>Setup an OpenBSD RISCV-64 VM in QEMU</h1> <p><strong>Last modification on </strong> <time>2021-10-23</time></p> <p>This describes how to setup an OpenBSD RISCV-64 VM in QEMU.</p> -<p>The below script does the following:</p> +<p>The script below does the following:</p> <ul> <li>Set up the disk image (raw format).</li> -<li>Patch the disk image with OpenBSD miniroot file for the installation.</li> +<li>Patch the disk image with the OpenBSD miniroot file for the installation.</li> <li>Downloads the opensbi and u-boot firmware files for qemu.</li> <li>Run the VM with the supported settings.</li> </ul> @@ -28,7 +28,7 @@ files are not verified. If the host is OpenBSD make sure to instead install the packages (pkg_add u-boot-riscv64 opensbi) and adjust the firmware path for the qemu -bios and -kernel options. </strong></p> <h2>Script</h2> -<pre><code> +<pre><code>#!/bin/sh mirror="https://ftp.bit.nl/pub/OpenBSD/" release="7.0" arch="riscv64" @@ -73,14 +73,14 @@ miniroot() { curl -o "${minirootname}" "${minirooturl}" } -createdisk() { - qemu-img create disk.raw 10G -} - patchminiroot() { dd conv=notrunc if=${minirootname} of=disk.raw } +createdisk() { + qemu-img create disk.raw 10G +} + createrootdisk() { test -f disk.raw && return # create once createdisk (DIR) diff --git a/pages/openbsd-riscv64-vm.md b/pages/openbsd-riscv64-vm.md @@ -1,9 +1,9 @@ This describes how to setup an OpenBSD RISCV-64 VM in QEMU. -The below script does the following: +The script below does the following: * Set up the disk image (raw format). -* Patch the disk image with OpenBSD miniroot file for the installation. +* Patch the disk image with the OpenBSD miniroot file for the installation. * Downloads the opensbi and u-boot firmware files for qemu. * Run the VM with the supported settings. @@ -16,7 +16,8 @@ qemu -bios and -kernel options. ** ## Script - + + #!/bin/sh mirror="https://ftp.bit.nl/pub/OpenBSD/" release="7.0" arch="riscv64" @@ -61,14 +62,14 @@ qemu -bios and -kernel options. ** curl -o "${minirootname}" "${minirooturl}" } - createdisk() { - qemu-img create disk.raw 10G - } - patchminiroot() { dd conv=notrunc if=${minirootname} of=disk.raw } + createdisk() { + qemu-img create disk.raw 10G + } + createrootdisk() { test -f disk.raw && return # create once createdisk