!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

242 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux 74 Servers

Load older messages


SenderMessageTime
12 Dec 2024
@doge.2:matrix.orgdoge.2tried max verbosity (-vvvv) and i saw nothing12:38:46
@snaki:kescher.at@snaki:kescher.at
In reply to @thefossguy:matrix.org
This will take some days given that it's building gcc, linux-headers, curl, cmake, rustc, curl and what not :D
i could offer some x86 build machines with binfmt if that would help
12:39:00
@doge.2:matrix.orgdoge.2that's what i've been trying to do, i have a framework laptop 13 running nixos that i've been cross compiling with risc-v, i might be doing it wrong but it doesn't seem to work right for me, idk12:40:33
@doge.2:matrix.orgdoge.2(i spent almost all of yesterday working purely on this project with almost no success)12:40:51
@alex:tunstall.xyzAlex
In reply to @doge.2:matrix.org
that's what i've been trying to do, i have a framework laptop 13 running nixos that i've been cross compiling with risc-v, i might be doing it wrong but it doesn't seem to work right for me, idk
Do you have a Git repository with the latest changes?
We could take another look to try to figure out why you're not getting cache hits.
12:53:13
@doge.2:matrix.orgdoge.2i do, let me upload them to my github repo real quick (also why is that text red?)12:53:44
@doge.2:matrix.orgdoge.2https://github.com/fyredragon69/nix-config/tree/main/nixos-starfive here you go13:01:14
14 Dec 2024
@0x4a6f:matrix.org[0x4A6F] Has been since https://github.com/NixOS/nix/pull/10228 08:30:13
17 Dec 2024
@blitz:chat.x86.lol@blitz:chat.x86.lol joined the room.11:05:05
20 Dec 2024
@xiaoxiangmoe:matrix.org@xiaoxiangmoe:matrix.org joined the room.13:58:58
22 Dec 2024
@hsngrmpf:matrix.orgDavHau joined the room.06:05:05
23 Dec 2024
@hsngrmpf:matrix.orgDavHauI got a VisionFive2 V1.3B and was not able to get nixos booting so far? I already flashed the latest bootloader via an upstream image. Unfortunately I do not have an hdmi cable or UART adapter (ordered, in transit). When I flash the nixos image linked in the nixos wiki, I do not see the device in my LAN and also the green LED does not flash? Should the green LED supposed to be flashing under nixos, as it does with the official images?08:59:37
@hsngrmpf:matrix.orgDavHau(I'm falshing the nixos to an sd card and have the switches on the board configured correctly. Also the latest official image boots fine from sd card, so I guess everything with my board is OK)09:08:46
@alex:tunstall.xyzAlex
In reply to @hsngrmpf:matrix.org
I got a VisionFive2 V1.3B and was not able to get nixos booting so far? I already flashed the latest bootloader via an upstream image.
Unfortunately I do not have an hdmi cable or UART adapter (ordered, in transit).
When I flash the nixos image linked in the nixos wiki, I do not see the device in my LAN and also the green LED does not flash?
Should the green LED supposed to be flashing under nixos, as it does with the official images?
I don't recall it flashing under most NixOS builds -- only vendor images.
10:10:28
@alex:tunstall.xyzAlex

You should be able to get it onto the network. If you can't, you could try getting it to log to the disk, but you're practically debugging blind without UART.

You're not booting from NVMe, are you? That doesn't work on some firmware versions (not properly configured to try NVMe).

Another thing to note is the selected boot mode. The vendor image is more tolerant and can probably boot in most modes, whereas some NixOS images need you to boot from flash (no firmware partition).

10:15:43
@hsngrmpf:matrix.orgDavHauCheers! Now it popped up in my network. Not sure what went wrong before. I just flashed the image form the wiki again and it's online.10:19:00
@hsngrmpf:matrix.orgDavHauThough there is no hdmi output on any image I tried so far. Maybe the hdmi on my board is broken10:20:29
@alex:tunstall.xyzAlex
In reply to @hsngrmpf:matrix.org
Though there is no hdmi output on any image I tried so far. Maybe the hdmi on my board is broken

It's very likely that your kernel doesn't have a driver for the HDMI. Check the version and what patches are being applied on top.

See: https://rvspace.org/en/project/JH7110_Upstream_Plan

10:23:55
@hsngrmpf:matrix.orgDavHauAlaright, I was now able to boot my own cross compiled image and login via ssh 🚀10:24:35
@alex:tunstall.xyzAlexThe vendor's graphical image should have working HDMI (with some glitchiness, unless they've fixed it).10:25:00
@xiaoxiangmoe:matrix.org@xiaoxiangmoe:matrix.org left the room.14:09:36
25 Dec 2024
@hsngrmpf:matrix.orgDavHau

Fixed a bunch of cross build issue with python packages and got home-assistant almost running, but there is one I'm having trouble with wrapping my head around. The python bcrypt library just builds its shared object for x86 instead of riscv
Any ideas why?

> nix-build -A pkgsCross.riscv64.python3Packages.bcrypt
/nix/store/xfc8xssvq2vwcn6126ml3m6fkdd1gzw0-python3.12-bcrypt-4.2.0-riscv64-unknown-linux-gnu

> file /nix/store/xfc8xssvq2vwcn6126ml3m6fkdd1gzw0-python3.12-bcrypt-4.2.0-riscv64-unknown-linux-gnu/lib/python3.12/site-packages/bcrypt/_bcrypt.cpython-312-riscv64-linux-gnu.so
/nix/store/xfc8xssvq2vwcn6126ml3m6fkdd1gzw0-python3.12-bcrypt-4.2.0-riscv64-unknown-linux-gnu/lib/python3.12/site-packages/bcrypt/_bcrypt.cpython-312-riscv64-linux-gnu.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
07:34:49
@hsngrmpf:matrix.orgDavHauThe binary is a result from a rust build. The derivation in nixpks looks fine. Other python packages containing rust cross compile correctly07:36:48
@alex:tunstall.xyzAlex The Python package's install script might not be cross-friendly; you should look at the package's source.
If it's doing the build itself, it probably found the buildPackages compiler instead of the cross compiler.
07:40:29
@hsngrmpf:matrix.orgDavHauOK, for rust the compiler is target platform specific like with gcc?11:10:44
@alex:tunstall.xyzAlex

Oh I just noticed it has the riscv64 target triple in the file name, very weird.

No, rustc is multi-targeting because it's based on LLVM. It's probably being given the wrong build flags.

Have you looked through the build logs for anything suspicious?

11:45:27
@hsngrmpf:matrix.orgDavHauCould not spot anything. I guess I'll inspect the source once I find the time.16:40:25
26 Dec 2024
@rtunreal:c-base.orgrtunreal changed their display name from rtunreal to rtunreal | SIP:3987.14:26:42
27 Dec 2024
@root:0x1.stroot left the room.06:51:45
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT: 3538 / EPVPN 2681).07:31:40

Show newer messages


Back to Room ListRoom Version: 10