!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

334 Members
104 Servers

Load older messages


SenderMessageTime
15 Jan 2022
@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
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @ius:nltrix.net
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)

Hmm, binfmt is pretty janky and it could be one of the packages that don't work. Let me try from my end
22:04:15
@ius:nltrix.netiuslooks like some kind of threading issue, and I'm not the first to notice: https://lists.gnu.org/archive/html/qemu-devel/2020-04/msg03004.html22:07:41
@zhaofeng:zhaofeng.liZhaofeng LiHmm, it builds fine for me (qemu 6.1.0): https://gist.github.com/zhaofengli/95eb2948deda98b6d8f2854bdf24c24f22:08:27
@zhaofeng:zhaofeng.liZhaofeng Li(this is under binfmt)22:08:38
@ius:nltrix.netiusSame qemu ver for me, failed 3 times in a row.22:24:11

Show newer messages


Back to Room ListRoom Version: 6