5 Jun 2022 |
matthewcroughan - nix.how | ah okay, so the screenshot you sent was through binfmt on an x86 box? | 12:36:38 |
fufexan | yes | 12:36:41 |
matthewcroughan - nix.how | If it doesn't work when it gets there then I'll be very surprised :P | 12:36:51 |
fufexan | I'll run it real quick to test | 12:36:51 |
fufexan | Download image.png | 12:40:25 |
fufexan | sure enough, it works | 12:40:32 |
matthewcroughan - nix.how | The blog post I write this month, is going to be amazing. | 12:44:30 |
matthewcroughan - nix.how | Statically linking and cross compiling Nix itself for usage on any distribution for the VisionFive board is so simple, I'm just blown away. | 12:44:59 |
matthewcroughan - nix.how | Just that alone is such a good demonstration of Nix power. | 12:45:40 |
fufexan | sudo ./nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bottom
[sudo] password for riscv:
warning: the group 'nixbld' specified in 'build-users-group' does not exist
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 311 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 616 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 1061 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 2248 ms
error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60)
```how should I fix this?
| 18:16:41 |
fufexan | * sudo ./nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bottom
[sudo] password for riscv:
warning: the group 'nixbld' specified in 'build-users-group' does not exist
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 311 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 616 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 1061 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 2248 ms
error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60)
```how should I fix this?
| 18:16:50 |
fufexan | * sudo ./nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#bottom
[sudo] password for riscv:
warning: the group 'nixbld' specified in 'build-users-group' does not exist
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 311 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 616 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 1061 ms
warning: error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60); retrying in 2248 ms
error: unable to download 'https://github.com/NixOS/flake-registry/raw/master/flake-registry.json': SSL peer certificate or SSH remote key was not OK (60)
how should I fix this?
| 18:17:01 |
fufexan | fixed by adding export NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt | 18:45:46 |
fufexan | Download image.png | 18:49:56 |
fufexan | all of this just to run btm 😄 | 18:50:03 |
fufexan | Download image.png | 19:38:09 |
fufexan | umm, another weird issue. matthewcroughan - nix.how were you able to run anything with nix on the board? | 19:38:21 |
fufexan | I guess I'll have to try flashing zhaofengli's sdcard image and try to work with that | 19:38:55 |
comrandroxaos | https://www.clockworkpi.com/product-page/devterm-kit-r01
since we're talking aabout risc-v, i didn't know this was real until today | 20:30:47 |
fufexan | looks really cool but I can't imagine working on such a small screen | 21:42:00 |
fufexan | also, only 1GB ram, when my empty wm uses about 400mb 😄 | 21:42:34 |
6 Jun 2022 |
j-k | In reply to @matthewcroughan:defenestrate.it j-k: Zhaofeng Li did you know that nix build nixpkgs#pkgsCross.riscv64.pkgsStatic.nix works? nice | 10:40:48 |
j-k | I used the nix repo to build the release tar.gz so I'd get the installer script that sets up the systemd services and builder users for multi user install | 10:41:39 |
7 Jun 2022 |
| execat joined the room. | 18:22:05 |
9 Jun 2022 |
matthewcroughan - nix.how | j-k: How do you boot the sdImage on the visionfive then? | 19:28:22 |
matthewcroughan - nix.how | If anyone else knows, let me know! | 19:28:42 |
matthewcroughan - nix.how | https://github.com/NixOS/nixpkgs/pull/168826 | 19:28:54 |
matthewcroughan - nix.how | I've got an image, but I'm not sure if the opensbi firmware first has to be updated on the board before the sdImage will boot successfully | 19:29:19 |
matthewcroughan - nix.how | Because now, I just get
DRAM: 8 GiB
Core: 13 devices, 9 uclasses, devicetree: separate
MMC: mmc@10000000: 0, mmc@10010000: 1
Loading Environment from SPIFlash... cadence_spi spi@11860000: Can't get reset: -524
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
StarFive EEPROM format v1
--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7100A1-2209-D008E000-00000543
data version: 0x1
PCB revision: 0x1
BOM revision: A
Ethernet MAC address: 6c:cf:39:00:05:42
--------EEPROM INFO--------
In: serial@12440000
Out: serial@12440000
Err: serial@12440000
Net: dwmac.10020000
MMC CD is 0x1, force to True.
MMC CD is 0x1, force to True.
switch to partitions #0, OK
mmc0 is current device
MMC CD is 0x1, force to True.
MMC CD is 0x1, force to True.
Failed to load 'uEnv.txt'
** Invalid partition 3 **
Couldn't find partition mmc 0:3
Can't set block device
| 19:29:38 |
justinrestivo | is this serial out? | 20:37:15 |