!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

341 Members
106 Servers

Load older messages


SenderMessageTime
25 Feb 2022
@ius:nltrix.netiusRight, was not aware19:41:20
@zhaofeng:zhaofeng.liZhaofeng LiOk, gonna continue tonight19:48:40
@ius:nltrix.netiusSo for some reason my standalone cross compiled kernel starts, but the one I yanked out of a sdImage build does not. Same tree, so it must be the config?19:56:35
@zhaofeng:zhaofeng.liZhaofeng LiMight be, how are you generating the initrd in the standalone case?22:34:05
@zhaofeng:zhaofeng.liZhaofeng LiI pushed my expression here: https://github.com/zhaofengli/nixos-riscv64/blob/master/pkgs/linux-visionfive/default.nix22:36:37
@ius:nltrix.netiusThanks. I wasn't using an initrd yet. I think I sorted it: https://zc.lc/linux-5.16-visionfive.nix23:27:03
@ius:nltrix.netius
    SERIAL_8250_DW = yes;
    PINCTRL_STARFIVE = yes; # somehow disabled
23:27:18
@ius:nltrix.netiusThose end up being built as a module on NixOS compared to the Fedora defconfig23:27:52
27 Feb 2022
@zhaofeng:zhaofeng.liZhaofeng Li For those with a VisionFive board, a NixOS SD image is now available at https://github.com/zhaofengli/nixos-riscv64/releases/tag/2022022600 (more info here). Could you give it a try? Thanks to ius for figuring out the kernel issues above (additionally stmmac needs to be built-in and then ethernet works). 07:32:52
@zhaofeng:zhaofeng.liZhaofeng LiSadly, the stock U-Boot shipped with the board is pretty broken and some ugly workarounds are used to get the SD image to boot, but otherwise looks like a pretty good Linux-capable RISC-V board to get.07:34:12
@ius:nltrix.netiusThe module initialization quirks are frustrating, I'm also seeing occasional OOPS from the drm driver. Guessing it'll magically disappear if it's built-in08:55:48
@zhaofeng:zhaofeng.liZhaofeng Li Yeah, need to look into it more. At the moment it can't shut down cleanly because the loading some modules causes hangs, so the systemd-udev processes that trigger the modprobe are just stuck 19:44:06
@zhaofeng:zhaofeng.liZhaofeng Li * Yeah, need to look into it more. At the moment it can't shut down cleanly because loading some modules causes hangs, so the systemd-udev processes that trigger the modprobe are just stuck 19:44:34
@ius:nltrix.netiusSame here.20:07:13
@ius:nltrix.netius

By the way, some minor kernel config bike shedding for ethernet - I have:

    # Ethernet fails as module
    PTP_1588_CLOCK = yes;
    STMMAC_ETH = yes;
    STMMAC_PLATFORM = yes;
    DWMAC_GENERIC = yes;

You can swap STMMAC_PCI for STMMAC_PLATFORM (I guess PCI requires PLATFORM?). I also added the MAC so ethernet is fully builtin.

20:14:51
@ius:nltrix.netiusActually, let me just paste my full derivation: https://zc.lc/linux-5.16-visionfive.nix I also added the toggles for MMC builtin (though I'm not sure how useful it is)20:19:39
@ius:nltrix.netius Did you spend time on EFI yet? I tried to get systemd-boot to work, but discovered it only supports passing the initrd via initrd= on the kernel command line, which is unsupported for RISC-V.. 20:29:09
@ius:nltrix.netiusUsing the sd stub (https://www.freedesktop.org/software/systemd/man/systemd-stub.html) allows packing an kernel/initrd/cmdline, but I haven't managed to get it to boot yet.20:53:26
@zhaofeng:zhaofeng.liZhaofeng LiNo, haven't done much yet, but you can get grub2 to build and generate an efi image with grub-mkstandalone21:38:09
3 Mar 2022
@colemickens:matrix.orgcolemickens changed their display name from colemickens 🏳️‍🌈 to colemickens.07:13:31
4 Mar 2022
@j-k:matrix.orgj-k joined the room.18:19:40
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone joined the room.18:21:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneIs there anyone around who would be interested in trying to get NixOS working on RiscV boards?18:22:13
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI will be able to get boards sent out if so, and we could establish a little team , "NixOS on RiscV"18:22:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * I will be able to get boards sent out if so, and we could establish a little team, "NixOS on RiscV"18:22:41
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneThe only way this can go forward is if we do have a team, as the effort is too large for individuals to do.18:23:05
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneIf so much as 5 people are interested, I think I can get riscv.org to send us that many boards.18:23:19
@j-k:matrix.orgj-kI'm interested in riscv and interested. I don't have much experience with the lower level bootstrap parts of nixpkgs but I'm interested to learn & I've got a couple packages in different ecosystems I'm maintainer for. A bunch of go, some rust, one or two c projects18:25:20
@j-k:matrix.orgj-k * I'm interested in riscv. I don't have much experience with the lower level bootstrap parts of nixpkgs but I'm interested to learn & I've got a couple packages in different ecosystems I'm maintainer for. A bunch of go, some rust, one or two c projects18:25:40
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @matthewcroughan:defenestrate.it
Is there anyone around who would be interested in trying to get NixOS working on RiscV boards?
Would be nice if there is a GH team. You can read the scrollback for the efforts we've made last week on the VisionFive board.
18:26:52

Show newer messages


Back to Room ListRoom Version: 6