| 19 Mar 2026 |
Alex | Frankly, I'm surprised that QEMU continues to get RISC-V emulation subtly wrong. | 06:13:22 |
Alex | Or is the issue unrelated to QEMU in that some things behave weirdly when userspace and kernelspace are on different architectures? | 06:15:15 |
Alyssa Ross | often qemu-user just doesn't implement certain stuff — remember it's not just emulating the architecture; it has to emulate the whole Linux API | 06:23:38 |
dramforever | -ENOSYS is one of the least subtle wrongs qemu-user commits | 12:39:17 |
dramforever | but yes usually you can expect user emulation to have a crap ton more problems than system emulation | 12:40:03 |
colemickens | Is there a branch y'all follow or maintain? Or just ride nixos-unstable and cross your fingers? :) | 19:17:42 |
Alex | Generally two options:
- Latest and pray
- Find someone else's (hopefully working) configuration and use the same revision as them
| 19:22:52 |
Sergei Zimmerman (xokdvium) | In reply to @alex:tunstall.xyz Or is the issue unrelated to QEMU in that some things behave weirdly when userspace and kernelspace are on different architectures? Well, nix is one for example https://github.com/NixOS/nix/issues/15153 | 20:16:49 |
Alex | Yes, I ran into that issue myself a few weeks ago while doing binfmt emulation of aarch64. | 20:18:01 |
Sergei Zimmerman (xokdvium) | I guess it should be pretty easy to fix by just calling uname and using the appropriate arch for setting up seccomp? | 20:23:35 |
Alex | colemickens good news:
alex@alex-pc3 ~/r/O/n/ghc-cross-2 (ghc-cross-hadrian)> /nix/store/7kjpbn6fv6gqi9fx65ann5bqdsm3s9fi-riscv64-unknown-linux-gnu-ghc-9.10.3/bin/riscv64-unknown-linux-gnu-ghc --info | grep platform
,("target platform string","riscv64-unknown-linux")
,("Build platform","x86_64-unknown-linux")
,("Host platform","x86_64-unknown-linux")
,("Target platform","riscv64-unknown-linux")
I'm still double checking that the cross-compiler works, but I expect to PR the fix to Nixpkgs soon enough. | 21:35:58 |
Alex | This alone is not enough to cross-compile cachix:
---> Starting interpreter on port 6072
Listening on port 6072
iserv-proxy-interpreter: tmp/nix/store/7kjpbn6fv6gqi9fx65ann5bqdsm3s9fi-riscv64-unknown-linux-gnu-ghc-9.10.3/lib/riscv64-unknown-linux-gnu-ghc-9.10.3/lib/riscv64-linux-ghc-9.10.3/ghc-prim-0.12.0-561f/libHSghc-prim-0.12.0-561f.a: RTS linker not implemented on riscv
iserv-proxy-interpreter: loadArchive "tmp/nix/store/7kjpbn6fv6gqi9fx65ann5bqdsm3s9fi-riscv64-unknown-linux-gnu-ghc-9.10.3/lib/riscv64-unknown-linux-gnu-ghc-9.10.3/lib/riscv64-linux-ghc-9.10.3/ghc-prim-0.12.0-561f/libHSghc-prim-0.12.0-561f.a": failed
iserv-proxy: <socket: 17>: hGetBufSome: resource vanished (Connection reset by peer)
HasCallStack backtrace:
collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
throwIO, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
ioException, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception
/nix/store/vw5aaxwm2fppx1xarn7k41db5yr3rvww-iserv-wrapper-both/bin/iserv-wrapper: line 1: kill: (499) - No such process
<no location info>: error: External interpreter terminated (1)
| 21:43:39 |
Alex | colemickens https://github.com/NixOS/nixpkgs/pull/501439 | 22:00:19 |
| 20 Mar 2026 |
| @silvio:booq.org left the room. | 09:01:21 |
| 18 Aug 2023 |
| Shados joined the room. | 05:42:58 |
misuzu | % cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00001000 "spl"
mtd1: 00010000 00001000 "uboot-env"
mtd2: 00400000 00001000 "uboot"
mtd3: 00a00000 00001000 "reserved-data"
Looks like the visionfive2_fw_payload.img should be flashed to /dev/mtd2 instead of /dev/mtd1
| 08:29:39 |
| 20 Aug 2023 |
| erremilia joined the room. | 17:53:34 |
| Claes joined the room. | 19:27:07 |
| 24 Aug 2023 |
erremilia |  Download 1000004363.jpg | 19:36:55 |
erremilia | This should be fun to play with | 19:37:02 |
👉@crystallinefire:chat.solarpunk.moe | oooh nice | 19:38:17 |
👉@crystallinefire:chat.solarpunk.moe | same chip as starfive v2 iirc so it should be somewhat easy to use | 19:38:37 |
erremilia | Sounds good! Me and my SO mostly got it to play with and just see some Risc-V stuff but it'd be awesome if it turns out to be useful. | 19:39:52 |
raitobezarius | let us know how it goes | 19:40:12 |
raitobezarius | I ragequit my riscv stuff currently because I will go in vacations soon and had higher priority, but still interested into getting in a place where we can start having remote builders all together | 19:40:34 |
| 25 Aug 2023 |
fgaz | In reply to @erremilia:matrix.org sent an image. Nice, the number of star64+nixos users just doubled! | 07:12:19 |
fgaz | By late next month we'll be over a billion | 07:12:51 |
fgaz | erremilia: I have a native NixOS image here https://sr.ht/~fgaz/nixos-star64/ | 07:13:29 |
| 30 Aug 2023 |
erremilia | Could you compile a 8GB image for me? I haven't been able to get it to compile properly and on your 4GB image it never seems to connect to the internet or anything and haven't had the time to try and hook it up to serial. | 03:13:48 |
fgaz | erremilia: sure. I'm actually updating the image right now, so I think it'll be ready tomorrow or the day after | 13:52:39 |