riscv64 page: minor improvements - 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 43d1dd4a661c17ad54f156c6252e6a9218670306
(DIR) parent f577e2abd58e38d2bbb7243af736b22e0a17bf6a
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 29 Oct 2021 11:07:41 +0200
riscv64 page: minor improvements
Diffstat:
M config.cfg | 2 +-
M output/atom.xml | 4 ++--
M output/atom_content.xml | 35 +++++++++++++++----------------
M output/rss_content.xml | 31 +++++++++++++++----------------
M output/sitemap.xml | 2 +-
M pages/openbsd-riscv64-vm.cfg | 2 +-
M pages/openbsd-riscv64-vm.md | 29 ++++++++++++++---------------
7 files changed, 51 insertions(+), 54 deletions(-)
---
(DIR) diff --git a/config.cfg b/config.cfg
@@ -1,5 +1,5 @@
# last updated the site.
-siteupdated = 2021-10-23
+siteupdated = 2021-10-26
sitetitle = Codemadness
siteurl = https://www.codemadness.org
(DIR) diff --git a/output/atom.xml b/output/atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">Codemadness</title>
<subtitle type="text">blog with various projects and articles about computer-related things</subtitle>
- <updated>2021-10-23T00:00:00Z</updated>
+ <updated>2021-10-26T00:00:00Z</updated>
<link rel="alternate" type="text/html" href="https://www.codemadness.org" />
<id>https://www.codemadness.org/atom.xml</id>
<link rel="self" type="application/atom+xml" href="https://www.codemadness.org/atom.xml" />
@@ -10,7 +10,7 @@
<title type="text">Setup an OpenBSD RISCV64 VM in QEMU</title>
<link rel="alternate" type="text/html" href="https://www.codemadness.org/openbsd-riscv64-vm.html" />
<id>https://www.codemadness.org/openbsd-riscv64-vm.html</id>
- <updated>2021-10-24T00:00:00Z</updated>
+ <updated>2021-10-26T00:00:00Z</updated>
<published>2021-10-23T00:00:00Z</published>
<author>
<name>hiltjo</name>
(DIR) diff --git a/output/atom_content.xml b/output/atom_content.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">Codemadness</title>
<subtitle type="text">blog with various projects and articles about computer-related things</subtitle>
- <updated>2021-10-23T00:00:00Z</updated>
+ <updated>2021-10-26T00:00:00Z</updated>
<link rel="alternate" type="text/html" href="https://www.codemadness.org" />
<id>https://www.codemadness.org/atom.xml</id>
<link rel="self" type="application/atom+xml" href="https://www.codemadness.org/atom.xml" />
@@ -10,7 +10,7 @@
<title type="text">Setup an OpenBSD RISCV64 VM in QEMU</title>
<link rel="alternate" type="text/html" href="https://www.codemadness.org/openbsd-riscv64-vm.html" />
<id>https://www.codemadness.org/openbsd-riscv64-vm.html</id>
- <updated>2021-10-24T00:00:00Z</updated>
+ <updated>2021-10-26T00:00:00Z</updated>
<published>2021-10-23T00:00:00Z</published>
<author>
<name>hiltjo</name>
@@ -18,7 +18,7 @@
</author>
<summary type="text">Setup an OpenBSD RISCV-64 VM in QEMU</summary>
<content type="html"><![CDATA[<h1>Setup an OpenBSD RISCV64 VM in QEMU</h1>
- <p><strong>Last modification on </strong> <time>2021-10-24</time></p>
+ <p><strong>Last modification on </strong> <time>2021-10-26</time></p>
<p>This describes how to setup an OpenBSD RISCV64 VM in QEMU.</p>
<p>The shellscript below does the following:</p>
<ul>
@@ -34,11 +34,23 @@ packages (pkg_add u-boot-riscv64 opensbi) and adjust the firmware path for the
qemu -bios and -kernel options. </strong></p>
<h2>Shellscript</h2>
<pre><code>#!/bin/sh
+# mirror list: https://www.openbsd.org/ftp.html
mirror="https://ftp.bit.nl/pub/OpenBSD/"
release="7.0"
+minirootname="miniroot70.img"
-n="$(printf '%s' "${release}" | tr -d '.')" # remove dot
-minirootname="miniroot${n}.img"
+miniroot() {
+ test -f "${minirootname}" && return # download once
+
+ url="${mirror}/${release}/riscv64/${minirootname}"
+ curl -o "${minirootname}" "${url}"
+}
+
+createrootdisk() {
+ test -f disk.raw && return # create once
+ qemu-img create disk.raw 10G # create 10 GB disk
+ dd conv=notrunc if=${minirootname} of=disk.raw # write miniroot to disk
+}
opensbi() {
f="opensbi.tgz"
@@ -60,19 +72,6 @@ uboot() {
tar -xzf "${f}" share/u-boot/qemu-riscv64_smode/u-boot.bin
}
-miniroot() {
- test -f "${minirootname}" && return # download once
-
- url="${mirror}/${release}/riscv64/${minirootname}"
- curl -o "${minirootname}" "${url}"
-}
-
-createrootdisk() {
- test -f disk.raw && return # create once
- qemu-img create disk.raw 10G # create 10 GB disk
- dd conv=notrunc if=${minirootname} of=disk.raw # write miniroot to disk
-}
-
setup() {
miniroot
createrootdisk
(DIR) diff --git a/output/rss_content.xml b/output/rss_content.xml
@@ -13,7 +13,7 @@
<dc:date>2021-10-23T00:00:00Z</dc:date>
<author>hiltjo</author>
<description><![CDATA[<h1>Setup an OpenBSD RISCV64 VM in QEMU</h1>
- <p><strong>Last modification on </strong> <time>2021-10-24</time></p>
+ <p><strong>Last modification on </strong> <time>2021-10-26</time></p>
<p>This describes how to setup an OpenBSD RISCV64 VM in QEMU.</p>
<p>The shellscript below does the following:</p>
<ul>
@@ -29,11 +29,23 @@ packages (pkg_add u-boot-riscv64 opensbi) and adjust the firmware path for the
qemu -bios and -kernel options. </strong></p>
<h2>Shellscript</h2>
<pre><code>#!/bin/sh
+# mirror list: https://www.openbsd.org/ftp.html
mirror="https://ftp.bit.nl/pub/OpenBSD/"
release="7.0"
+minirootname="miniroot70.img"
-n="$(printf '%s' "${release}" | tr -d '.')" # remove dot
-minirootname="miniroot${n}.img"
+miniroot() {
+ test -f "${minirootname}" && return # download once
+
+ url="${mirror}/${release}/riscv64/${minirootname}"
+ curl -o "${minirootname}" "${url}"
+}
+
+createrootdisk() {
+ test -f disk.raw && return # create once
+ qemu-img create disk.raw 10G # create 10 GB disk
+ dd conv=notrunc if=${minirootname} of=disk.raw # write miniroot to disk
+}
opensbi() {
f="opensbi.tgz"
@@ -55,19 +67,6 @@ uboot() {
tar -xzf "${f}" share/u-boot/qemu-riscv64_smode/u-boot.bin
}
-miniroot() {
- test -f "${minirootname}" && return # download once
-
- url="${mirror}/${release}/riscv64/${minirootname}"
- curl -o "${minirootname}" "${url}"
-}
-
-createrootdisk() {
- test -f disk.raw && return # create once
- qemu-img create disk.raw 10G # create 10 GB disk
- dd conv=notrunc if=${minirootname} of=disk.raw # write miniroot to disk
-}
-
setup() {
miniroot
createrootdisk
(DIR) diff --git a/output/sitemap.xml b/output/sitemap.xml
@@ -2,7 +2,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.codemadness.org/openbsd-riscv64-vm.html</loc>
- <lastmod>2021-10-24</lastmod>
+ <lastmod>2021-10-26</lastmod>
</url>
<url>
<loc>https://www.codemadness.org/sfeed_curses-ui.html</loc>
(DIR) diff --git a/pages/openbsd-riscv64-vm.cfg b/pages/openbsd-riscv64-vm.cfg
@@ -3,4 +3,4 @@ id = openbsd-riscv64-vm
description = Setup an OpenBSD RISCV-64 VM in QEMU
keywords = OpenBSD, RISCV64, RISC-V, QEMU, vm
created = 2021-10-23
-updated = 2021-10-24
+updated = 2021-10-26
(DIR) diff --git a/pages/openbsd-riscv64-vm.md b/pages/openbsd-riscv64-vm.md
@@ -18,11 +18,23 @@ qemu -bios and -kernel options. **
## Shellscript
#!/bin/sh
+ # mirror list: https://www.openbsd.org/ftp.html
mirror="https://ftp.bit.nl/pub/OpenBSD/"
release="7.0"
+ minirootname="miniroot70.img"
- n="$(printf '%s' "${release}" | tr -d '.')" # remove dot
- minirootname="miniroot${n}.img"
+ miniroot() {
+ test -f "${minirootname}" && return # download once
+
+ url="${mirror}/${release}/riscv64/${minirootname}"
+ curl -o "${minirootname}" "${url}"
+ }
+
+ createrootdisk() {
+ test -f disk.raw && return # create once
+ qemu-img create disk.raw 10G # create 10 GB disk
+ dd conv=notrunc if=${minirootname} of=disk.raw # write miniroot to disk
+ }
opensbi() {
f="opensbi.tgz"
@@ -44,19 +56,6 @@ qemu -bios and -kernel options. **
tar -xzf "${f}" share/u-boot/qemu-riscv64_smode/u-boot.bin
}
- miniroot() {
- test -f "${minirootname}" && return # download once
-
- url="${mirror}/${release}/riscv64/${minirootname}"
- curl -o "${minirootname}" "${url}"
- }
-
- createrootdisk() {
- test -f disk.raw && return # create once
- qemu-img create disk.raw 10G # create 10 GB disk
- dd conv=notrunc if=${minirootname} of=disk.raw # write miniroot to disk
- }
-
setup() {
miniroot
createrootdisk