!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

327 Members
104 Servers

Load older messages


SenderMessageTime
25 Feb 2022
@ius:nltrix.netiusBonus rant: had to scramble for cash, because apparently UPS over here only accepts cash payments in exact change - it's 2022 after all12:55:45
@7c6f434c:nitro.chat7c6f434cThis is their attempt to only accept card payments without saying they only accept card payments?12:58:45
@ius:nltrix.netiusNo, they don't take cards at all.13:01:20
@7c6f434c:nitro.chat7c6f434cDo they try to get written checks?? Or do they simply hate the world and want the world to feel it?13:02:56
@ius:nltrix.netiusThe proof of payment I got sports 2 checkboxes: 'check' or 'cash'. National banks haven't issued any checks since 2002. The only reason it's on there because someone probably translated a US form/procedure.13:12:57
@ius:nltrix.netius
[    0.000000] Linux version 5.16.0-rc2 (nixbld@localhost) (riscv64-unknown-linux-gnu-gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.35.2) #1-NixOS SMP Tue Jan 1 00:00:00 UTC 1980
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] Machine model: StarFive VisionFive V1

🚀

16:45:25
@zhaofeng:zhaofeng.liZhaofeng LiNice! My sdimage built overnight, but I haven't had a chance to test it yet18:45:18
@zhaofeng:zhaofeng.liZhaofeng Li

Also roughly what I got to:

[    0.000000] Linux version 5.16.11 (nixbld@localhost) (gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.35.2) #1-NixOS SMP Tue Jan 1 00:00:00 UTC 1980
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] Machine model: StarFive VisionFive V1
[    0.000000] earlycon: uart0 at MMIO32 0x0000000012440000 (options '115200n8')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
19:26:04
@zhaofeng:zhaofeng.liZhaofeng Li The Fedora image boots using UEFI, and the factory U-Boot isn't set up to boot with extlinux.conf with various environment variables like kernel_addr_r are missing. After setting the environments manually I could start the kernel, but we should use UEFI as well. 19:27:39
@ius:nltrix.netiusI cheated, it's a cross compiled kernel only (because I still have to build it natively).19:27:40
@ius:nltrix.netiusYeah, I have been experimenting with UEFI and was thinking the same thing.19:28:05
@zhaofeng:zhaofeng.liZhaofeng Li * The Fedora image boots using UEFI, and the factory U-Boot isn't set up to boot with extlinux.conf with various environment variables like kernel_addr_r missing. After setting the environments manually I could start the kernel, but we should use UEFI as well. 19:28:07
@ius:nltrix.netius * Yeah, I have been experimenting with EFI and was thinking the same thing.19:28:14
@ius:nltrix.netiusThe sdImage derivation needs some work though, think it would be nice if it could generate an ESP + systemd-boot19:29:15
@zhaofeng:zhaofeng.liZhaofeng LiYeah, that would be the annoying part. The sd-image generator is very inflexible.19:30:23
@ius:nltrix.netiusI have some half-finished derivation to declaratively specify a partition table for sdImage, but hadn't gotten around to finishing it.19:32:59
@zhaofeng:zhaofeng.liZhaofeng LiFor this, we should be collaborating with @samueldr because that's what he's doing in tow-boot.19:35:00
@zhaofeng:zhaofeng.liZhaofeng LiI'm not sure whether he intends to upstream any of that into nixpkgs, though.19:35:24
@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

Show newer messages


Back to Room ListRoom Version: 6