26 May 2024 |
| @samueldr:matrix.org left the room. | 19:52:17 |
28 May 2024 |
Alyssa Ross | fyi https://github.com/NixOS/nixpkgs/pull/315121#issuecomment-2134677196 | 08:50:27 |
Alyssa Ross | We could probably switch to gz compression on all supported kernels, if that's interesting. | 08:56:13 |
hexa | iirc there is no support for that on aarch64 | 09:10:17 |
hexa | * iirc there is no support for compression that on aarch64 | 09:10:25 |
hexa | * iirc there is no support for compression on aarch64 | 09:10:29 |
Alyssa Ross | for RISC-V, I mean | 09:24:16 |
29 May 2024 |
| NixOS Moderation Bot unbanned @5m5z3q888q5prxkg:chat.lightnovel-dungeon.de. | 12:48:25 |
| @nscnt:matrix.org joined the room. | 15:12:05 |
| Li-ion changed their profile picture. | 16:43:47 |
| Li-ion changed their profile picture. | 16:46:41 |
| raitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 7248). | 17:08:33 |
| atka joined the room. | 19:49:05 |
atka | hello, what are the nixos package equivalents for openbsi and uboot-qemu? trying to run debian risc-v port in qemu on nixos host | 23:54:37 |
atka | or is there another/better way to play around with risc-v assembly in qemu on nixos | 23:56:12 |
Alex | Does QEMU not bundle OpenSBI and u-boot (or equivalent) for its RISC-V machines? | 23:59:52 |
30 May 2024 |
Alex | See https://www.qemu.org/docs/master/system/target-riscv.html#risc-v-cpu-firmware | 00:00:31 |
atka | qemu-system-riscv64: Unable to find the RISC-V BIOS "/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf" | 00:00:32 |
atka | oh oops, probably my mistake | 00:01:02 |
atka | I have the wrong location specified most likely | 00:01:50 |
Alex | You shouldn't have to specify the location at all if you use -bios default . | 00:02:18 |
atka | ok, thanks, I'll try that again, was following an old debian guide | 00:02:38 |
atka | progress, now getting a kernel panic in qemu | 00:09:58 |
atka | qemu-system-riscv64 -machine 'virt' -cpu 'rv64' -m 1G -device virtio-blk-device,drive=hd -drive file=image.qcow2,if=none,id=hd -device virtio-net-device,netdev=net -netdev user,id=net,hostfwd=tcp::2222-:22 -bios default -kernel /home/atka/downloads/riscv/dqib_riscv64-virt/kernel -object rng-random,filename=/dev/urandom,id=rng -device virtio-rng-device,rng=rng -nographic -append "root=LABEL=rootfs console=ttyS0"
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) | 00:14:43 |
atka | [ 0.794832] /dev/root: Can't open blockdev
[ 0.796131] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[ 0.796344] Please append a correct "root=" boot option; here are the available partitions:
[ 0.796884] List of all bdev filesystems:
[ 0.797249] fuseblk
[ 0.797286]
[ 0.797608] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.798226] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.9-riscv64 #1 Debian 6.8.9-1
[ 0.798634] Hardware name: riscv-virtio,qemu (DT) | 00:21:09 |
atka | * qemu-system-riscv64 -machine 'virt' -cpu 'rv64' -m 1G -device virtio-blk-device,drive=hd -drive file=image.qcow2,if=none,id=hd -device virtio-net-device,netdev=net -netdev user,id=net,hostfwd=tcp::2222-:22 -bios default -kernel /home/atka/downloads/riscv/dqib_riscv64-virt/kernel -object rng-random,filename=/dev/urandom,id=rng -device virtio-rng-device,rng=rng -nographic -append "root=LABEL=rootfs console=ttyS0"
| 00:21:32 |
atka | looks like I need to replace "root=LABEL=rootfs" with another device | 00:31:54 |
atka | nevermind, figured it out, I specified my kernel but not initrd | 00:38:02 |
atka | working now, running debian trixie w/ 6.8.9-riscv64! | 00:39:50 |
2 Jun 2024 |
| Li-ion changed their profile picture. | 04:13:45 |