| 15 Jan 2022 |
Zhaofeng Li | Now RISC-V is slightly more usable as a desktop 😅 | 05:16:25 |
Zhaofeng Li | Vanilla Firefox is buildable after a simple patch to authenticator-rs to add RISC-V support. I wasn't able to build node.js natively (stuck on node_mksnapshot) which is used in the build process, so I cheated a little bit by using the X86 version of node.js. | 05:23:22 |
Zhaofeng Li | (also I just realized that I accidentally dropped the original patches inside the derivation, which is why I was able to go to config:buildconfig which is patched out by us) | 05:23:36 |
Julian Stecklina | In reply to @zhaofeng:zhaofeng.li Now RISC-V is slightly more usable as a desktop 😅 Nice! What platform are you running this on? | 09:35:38 |
Zhaofeng Li | In reply to @js:ukvly.org Nice! What platform are you running this on? It's the HiFive Unmatched | 12:37:00 |
Zhaofeng Li | * Vanilla Firefox is buildable after a simple patch to authenticator-rs to add RISC-V support. I wasn't able to build node.js natively (stuck on node_mksnapshot) which is used in the build process, so I cheated a little bit by using the X86 version of node.js. | 13:04:55 |
Julian Stecklina | Nice. I have a Nezha Board and Firefox would be painfully slow ;) | 13:46:48 |
Zhaofeng Li | In reply to @js:ukvly.org Nice. I have a Nezha Board and Firefox would be painfully slow ;) Did you buy it from the initial Indiegogo batch? | 13:58:44 |
Julian Stecklina | No, I bought it later | 14:23:48 |
Zhaofeng Li | Nice, and now there are other D1-based boards that are much cheaper | 14:26:52 |
Zhaofeng Li | And also VisionFive ($150) is finally coming, not dead like its predecessor BeagleV | 14:28:00 |
sterni | In reply to @zhaofeng:zhaofeng.li sent an image. is that a cross compiled system configuration? | 15:00:10 |
hexa | firefox on nixos doesn't have about:buildconfig fwiw 🙂 | 17:13:15 |
Zhaofeng Li | In reply to @sternenseemann:systemli.org is that a cross compiled system configuration? No, native compilation | 18:27:24 |
Zhaofeng Li | In reply to @hexa:lossy.network firefox on nixos doesn't have about:buildconfig fwiw 🙂 Yup, I forgot to add old.patches in my overrideAttrs and dropped the patches | 18:27:59 |
hexa | your build machine must be unmatched | 18:28:44 |
Zhaofeng Li | In reply to @zhaofeng:zhaofeng.li Vanilla Firefox is buildable after a simple patch to authenticator-rs to add RISC-V support. I wasn't able to build node.js natively (stuck on node_mksnapshot) which is used in the build process, so I cheated a little bit by using the X86 version of node.js. (Actually built through binfmt on x86, since I did the nodejs trick 😛) | 18:30:24 |
hexa | i'd rather have riscv support in common.nix than darwin fwiw 😀 | 18:30:59 |
[0x4A6F] | About binfmt, how did you set this up for riscv64-linux? | 18:41:01 |
Zhaofeng Li | Just boot.binfmt.emulatedSystems = [ "riscv64-linux" ]; works fine | 18:41:33 |
[0x4A6F] | Doesn't work for one of my system. still investigating. aarch64-linux works though. | 18:43:07 |
Zhaofeng Li | Do you see the binfmt_misc registrations in /proc/sys/fs/binfmt_misc at all? | 18:44:13 |
[0x4A6F] | Just a problem in my deployment..Works now. | 18:54:30 |
sterni | Zhaofeng Li: so a downstream native stdenv? | 19:10:00 |
Zhaofeng Li | In reply to @sternenseemann:systemli.org Zhaofeng Li: so a downstream native stdenv? Not anymore, since riscv64-linux stdenv got merged in https://github.com/NixOS/nixpkgs/pull/147942 | 19:12:01 |
sterni | uhh missed that nice :) | 19:44:01 |
| 16 Jan 2022 |
Zhaofeng Li | In case you want to try out Firefox and SuperTuxKart on RISC-V NixOS yourself, there is now a new graphical QEMU image:
https://github.com/zhaofengli/nixos-riscv64/releases/tag/2022011500 | 04:58:11 |
Zhaofeng Li | With Virtio-GPU + VirGL (use the included launch.sh), SuperTuxKart is pretty playable with some texture glitches | 04:59:44 |
ius | Zhaofeng Li: re binfmt builds, have you run into any qemu issues? boehm-gcs testsuite seems to ~reliably cause qemu-user to disintegrate | 22:02:31 |
ius | ERROR:../plugins/core.c:222:qemu_plugin_vcpu_init_hook: assertion failed: (success)
Bail out! ERROR:../plugins/core.c:222:qemu_plugin_vcpu_init_hook: assertion failed: (success)
Child process failed, status= 0x7f00
Test failed
FAIL gctest (exit status: 134)
(on nixos-unstable, riscv64)
| 22:03:07 |