!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

354 Members
111 Servers

Load older messages


SenderMessageTime
9 Jun 2022
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howI'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:defenestrate.itmatthewcroughan - 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:matrix.orgjustinrestivois this serial out?20:37:15
10 Jun 2022
@alxanyae:matrix.orgalyaeanyx changed their profile picture.22:42:33
11 Jun 2022
@luizribeiro:matrix.orgluizribeiro joined the room.17:44:29
@luizribeiro:matrix.orgluizribeiro matthewcroughan - nix.how: you need to grab the uboot bin from the firmware partition of the SD image. once that is done, you should update it by following the instructions on https://rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide#appendix-b-updating-firmware-and-u-boot 17:45:48
@luizribeiro:matrix.orgluizribeiro set a profile picture.17:49:08
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @luizribeiro:matrix.org
matthewcroughan - nix.how: you need to grab the uboot bin from the firmware partition of the SD image. once that is done, you should update it by following the instructions on https://rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide#appendix-b-updating-firmware-and-u-boot
Yikes :D
18:04:15
@luizribeiro:matrix.orgluizribeirohaha it's not as bad as it sounds. we will make it better eventually though :)18:04:54
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howI know, I'm working on that part.18:05:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how Just need to reduce this to nix run .#flashTheBoard 18:05:09
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howBut first I need to wade through all their methods18:05:27
@luizribeiro:matrix.orgluizribeirooh that would be neat18:05:34
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how we could get it to be like nix run .#flash.ethernet or nix run .#flash.minicom 18:05:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how give all the different flashing methods as an app 18:05:57
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howLet's just throw people bones and stop with all these imperative instructions haha 18:06:17
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howIt's so ridiculous 18:06:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howAnd it's always the same stuff explained differently 💀18:06:35
@luizribeiro:matrix.orgluizribeirohow would you determine the current state of the bootloader from your nix expressions though?18:06:39
@luizribeiro:matrix.orgluizribeiro(so you can enter 0 to enter uboot flashing)18:06:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how apps are just shell scripts 18:06:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how so you can do whatever you want, including rm -rf 18:07:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howand I suppose the only way to guarantee minicom would work is to run it as root, since the user mightn't be in the dialout group18:07:26
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howmaking ethernet the most surefire method18:07:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howeven then, it's a bit jank 18:07:37
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howserial is probably most surefire when ran as root, to guarantee success18:07:52
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * serial is probably most surefire when ran as root, to guarantee idempotent success18:07:55
@luizribeiro:matrix.orgluizribeiroright, but there's no guarantee you are currently in uboot flashing mode. you need to enter that.18:07:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how

Our instructions would be:

  1. nix run .#flash
  2. power up board
  3. success
18:08:30
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howflash can just be a bash while loop18:08:45

Show newer messages


Back to Room ListRoom Version: 6