!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

334 Members
104 Servers

Load older messages


SenderMessageTime
15 Jan 2022
@zhaofeng:zhaofeng.liZhaofeng Li Now RISC-V is slightly more usable as a desktop 😅 05:16:25
@zhaofeng:zhaofeng.liZhaofeng 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:zhaofeng.liZhaofeng 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
@js:ukvly.orgJulian 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:zhaofeng.liZhaofeng Li
In reply to @js:ukvly.org
Nice! What platform are you running this on?
It's the HiFive Unmatched
12:37:00
@zhaofeng:zhaofeng.liZhaofeng 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
@js:ukvly.orgJulian StecklinaNice. I have a Nezha Board and Firefox would be painfully slow ;)13:46:48
@zhaofeng:zhaofeng.liZhaofeng 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
@js:ukvly.orgJulian StecklinaNo, I bought it later14:23:48
@zhaofeng:zhaofeng.liZhaofeng LiNice, and now there are other D1-based boards that are much cheaper14:26:52
@zhaofeng:zhaofeng.liZhaofeng LiAnd also VisionFive ($150) is finally coming, not dead like its predecessor BeagleV14:28:00
@sternenseemann:systemli.orgsterni
In reply to @zhaofeng:zhaofeng.li
sent an image.
is that a cross compiled system configuration?
15:00:10
@hexa:lossy.networkhexafirefox on nixos doesn't have about:buildconfig fwiw 🙂17:13:15
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @sternenseemann:systemli.org
is that a cross compiled system configuration?
No, native compilation
18:27:24
@zhaofeng:zhaofeng.liZhaofeng 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:lossy.networkhexayour build machine must be unmatched18:28:44
@zhaofeng:zhaofeng.liZhaofeng 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:lossy.networkhexai'd rather have riscv support in common.nix than darwin fwiw 😀18:30:59
@0x4a6f:matrix.org[0x4A6F]About binfmt, how did you set this up for riscv64-linux?18:41:01
@zhaofeng:zhaofeng.liZhaofeng LiJust boot.binfmt.emulatedSystems = [ "riscv64-linux" ]; works fine18:41:33
@0x4a6f:matrix.org[0x4A6F]Doesn't work for one of my system. still investigating. aarch64-linux works though.18:43:07
@zhaofeng:zhaofeng.liZhaofeng LiDo you see the binfmt_misc registrations in /proc/sys/fs/binfmt_misc at all?18:44:13
@0x4a6f:matrix.org[0x4A6F]Just a problem in my deployment..Works now.18:54:30
@sternenseemann:systemli.orgsterni Zhaofeng Li: so a downstream native stdenv? 19:10:00
@zhaofeng:zhaofeng.liZhaofeng 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
@sternenseemann:systemli.orgsterniuhh missed that nice :)19:44:01
16 Jan 2022
@zhaofeng:zhaofeng.liZhaofeng LiIn 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/202201150004:58:11
@zhaofeng:zhaofeng.liZhaofeng LiWith Virtio-GPU + VirGL (use the included launch.sh), SuperTuxKart is pretty playable with some texture glitches04:59:44
@ius:nltrix.netius 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:nltrix.netius
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

Show newer messages


Back to Room ListRoom Version: 6