!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

232 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v70 Servers

Load older messages


SenderMessageTime
22 May 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:28:03
26 May 2024
@samueldr:matrix.orgsamueldr left the room.19:52:17
28 May 2024
@qyliss:fairydust.spaceAlyssa Rossfyi https://github.com/NixOS/nixpkgs/pull/315121#issuecomment-213467719608:50:27
@qyliss:fairydust.spaceAlyssa RossWe could probably switch to gz compression on all supported kernels, if that's interesting.08:56:13
@hexa:lossy.networkhexaiirc there is no support for that on aarch6409:10:17
@hexa:lossy.networkhexa * iirc there is no support for compression that on aarch6409:10:25
@hexa:lossy.networkhexa * iirc there is no support for compression on aarch6409:10:29
@qyliss:fairydust.spaceAlyssa Rossfor RISC-V, I mean09:24:16
29 May 2024
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @5m5z3q888q5prxkg:chat.lightnovel-dungeon.de@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de.12:48:25
@nscnt:matrix.org@nscnt:matrix.org joined the room.15:12:05
@hive:the-apothecary.clubhive ⬡ changed their profile picture.16:43:47
@hive:the-apothecary.clubhive ⬡ changed their profile picture.16:46:41
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 7248).17:08:33
@atka:matrix.org@atka:matrix.org joined the room.19:49:05
@atka:matrix.org@atka:matrix.orghello, what are the nixos package equivalents for openbsi and uboot-qemu? trying to run debian risc-v port in qemu on nixos host23:54:37
@atka:matrix.org@atka:matrix.orgor is there another/better way to play around with risc-v assembly in qemu on nixos23:56:12
@alex:tunstall.xyzAlexDoes QEMU not bundle OpenSBI and u-boot (or equivalent) for its RISC-V machines?23:59:52
30 May 2024
@alex:tunstall.xyzAlex See https://www.qemu.org/docs/master/system/target-riscv.html#risc-v-cpu-firmware 00:00:31
@atka:matrix.org@atka:matrix.org qemu-system-riscv64: Unable to find the RISC-V BIOS "/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf" 00:00:32
@atka:matrix.org@atka:matrix.orgoh oops, probably my mistake00:01:02
@atka:matrix.org@atka:matrix.orgI have the wrong location specified most likely00:01:50
@alex:tunstall.xyzAlex You shouldn't have to specify the location at all if you use -bios default. 00:02:18
@atka:matrix.org@atka:matrix.orgok, thanks, I'll try that again, was following an old debian guide00:02:38
@atka:matrix.org@atka:matrix.orgprogress, now getting a kernel panic in qemu00:09:58
@atka:matrix.org@atka:matrix.org
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:matrix.org@atka:matrix.org
[    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:matrix.org@atka:matrix.org *
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:matrix.org@atka:matrix.org looks like I need to replace "root=LABEL=rootfs" with another device 00:31:54
@atka:matrix.org@atka:matrix.orgnevermind, figured it out, I specified my kernel but not initrd00:38:02
@atka:matrix.org@atka:matrix.orgworking now, running debian trixie w/ 6.8.9-riscv64!00:39:50

Show newer messages


Back to Room ListRoom Version: 10