aboutsummaryrefslogtreecommitdiff
path: root/bin/run-riscv-qemu.sh
Commit message (Collapse)AuthorAgeFilesLines
* bin: join the "append" kernel parameter into a single stringMiquel Sabaté Solà2026-06-221-7/+2
| | | | | | This apparently avoids weird problems when calling QEMU. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: cleanup the busybox /home only when a binary was providedMiquel Sabaté Solà2026-02-251-5/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* run-riscv-qemu: move to KERNEL in error messagesMiquel Sabaté Solà2025-10-241-3/+4
| | | | | | | | 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à <mssola@mssola.com>
* run-riscv-qemu.sh: Add '-k/--kernel' and '-d/--disk' parametersMiquel Sabaté Solà2025-10-031-47/+83
| | | | | | | | 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à <mssola@mssola.com>
* run-riscv-qemu: Allocate at least 8G for memoryMiquel Sabaté Solà2025-09-241-0/+1
| | | | | | | 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à <mssola@mssola.com>
* bin: Guess the QEMU_KERNEL to be used based on cwdMiquel Sabaté Solà2025-09-231-4/+17
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* Streamline configuration for run-riscv-qemu.shMiquel Sabaté Solà2025-05-071-9/+15
| | | | | | | | | | | | | | 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à <mikisabate@gmail.com>
* bin: Force a busybox path when running QEMUMiquel Sabaté Solà2025-04-221-5/+23
| | | | | | | | | | | | | | | | | | 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à <mikisabate@gmail.com>
* bin: Add helpers for gdb and qemu for RISC-VMiquel Sabaté Solà2024-10-111-0/+61
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à <mikisabate@gmail.com>