| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
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>
|