<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotfiles/bin/run-riscv-qemu.sh, branch main</title>
<subtitle>My own dotfiles.
</subtitle>
<id>https://git.mssola.com/misc/dotfiles/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/misc/dotfiles/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/'/>
<updated>2026-06-22T08:04:06Z</updated>
<entry>
<title>bin: join the "append" kernel parameter into a single string</title>
<updated>2026-06-22T08:04:06Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-06-22T08:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=652eaaf523aa8643fcc42a23ec7d9a3c97e31898'/>
<id>urn:sha1:652eaaf523aa8643fcc42a23ec7d9a3c97e31898</id>
<content type='text'>
This apparently avoids weird problems when calling QEMU.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>bin: cleanup the busybox /home only when a binary was provided</title>
<updated>2026-02-25T06:48:55Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-02-25T06:48:55Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=a9c3eeb4c2eb519cd61963c3e90c8029e67a9112'/>
<id>urn:sha1:a9c3eeb4c2eb519cd61963c3e90c8029e67a9112</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>run-riscv-qemu: move to KERNEL in error messages</title>
<updated>2025-10-24T10:02:06Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2025-10-24T10:01:38Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=ab683cc638ce8d9a233aad10f28aa6ac441dd562'/>
<id>urn:sha1:ab683cc638ce8d9a233aad10f28aa6ac441dd562</id>
<content type='text'>
Commit 295231706308 ("bin: Guess the QEMU_KERNEL to be used based on
cwd") introduced QEMU_KERNEL into this script, but actually we have
moved to KERNEL instead. Hence, use that as well in error messages.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>run-riscv-qemu.sh: Add '-k/--kernel' and '-d/--disk' parameters</title>
<updated>2025-10-03T14:20:14Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2025-10-03T14:20:14Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=eb79d8fcf0632582dfcc0dea01cdf6f89a664926'/>
<id>urn:sha1:eb79d8fcf0632582dfcc0dea01cdf6f89a664926</id>
<content type='text'>
This allows this script to be more specific on the kernel being used,
less hiden (as it was on an environment variable), and it easies up the
route for a disk already containing a Linux system.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>run-riscv-qemu: Allocate at least 8G for memory</title>
<updated>2025-09-24T08:36:36Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2025-09-24T08:36:36Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=61f91364f8b6402665484a0834e27f67d60f15fa'/>
<id>urn:sha1:61f91364f8b6402665484a0834e27f67d60f15fa</id>
<content type='text'>
I don't know what were the defaults for this, but it was certainly not
enough in order to run some of the selftests from the Linux kernel.

Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>bin: Guess the QEMU_KERNEL to be used based on cwd</title>
<updated>2025-09-23T14:41:59Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2025-09-23T14:41:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=29523170630804b6083c6d46ac54d65e06bde176'/>
<id>urn:sha1:29523170630804b6083c6d46ac54d65e06bde176</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>Streamline configuration for run-riscv-qemu.sh</title>
<updated>2025-05-07T14:32:19Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-05-07T14:32:19Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=72d503eeed47e33bdb365e0e1b9783bc938c6f1e'/>
<id>urn:sha1:72d503eeed47e33bdb365e0e1b9783bc938c6f1e</id>
<content type='text'>
Personal stuff like the location of the kernel image should go into my
.bashrc file, and then require it on `run-riscv-qemu.sh`. Similarly,
some environment variables were dropped, and some others removed. This
brings some much needed consistency to the whole script.

Last but not least, the `run-riscv-qemu.sh` now also had an extra
configurable variable, which is used for the `-cpu` QEMU option. It
defaults to 'max' so we can test the maximum amount of supported
extensions as possible.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>bin: Force a busybox path when running QEMU</title>
<updated>2025-04-22T14:09:23Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-04-22T14:09:23Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=fe7e74d567537d39020c22fad573b77aed2aa017'/>
<id>urn:sha1:fe7e74d567537d39020c22fad573b77aed2aa017</id>
<content type='text'>
When running QEMU/RISC-V, force the user to provide the `BUSYBOX_SRC`
environment variable. This variable points to the path where busybox has
been built. This way the path to the initramfs is not hardcoded.

Moreover, this allows us to rebuilt the initramfs every time the
`run-riscv-qemu.sh` is called, which in turn brings some consistency to
the process. Plus, this opens the door for allowing files to be passed
into a new `/home` directory for the current user. This way, someone can
just statically compile a binary via cross compilation, and then run it
in isolation with QEMU/RISC-V.

Last but not least, also update the .bashrc file with a value for
`BUSYBOX_SRC` on my system.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>bin: Add helpers for gdb and qemu for RISC-V</title>
<updated>2024-10-11T19:39:25Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-10-11T19:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/misc/dotfiles/commit/?id=f7a74ab248d3a033f795275fd4b9eda3e0b90834'/>
<id>urn:sha1:f7a74ab248d3a033f795275fd4b9eda3e0b90834</id>
<content type='text'>
There are now two scripts that can be used in order to quickly test a
locally built Linux kernel which has been cross compiled for the RISC-V
architecture.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
</feed>
