| 9 Jun 2022 |
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 |
| 10 Jun 2022 |
| alyaeanyx changed their profile picture. | 22:42:33 |
| 11 Jun 2022 |
| luizribeiro joined the room. | 17:44:29 |
luizribeiro | 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 set a profile picture. | 17:49:08 |
matthewcroughan - 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 | haha it's not as bad as it sounds. we will make it better eventually though :) | 18:04:54 |
matthewcroughan - nix.how | I know, I'm working on that part. | 18:05:00 |
matthewcroughan - nix.how | Just need to reduce this to nix run .#flashTheBoard | 18:05:09 |
matthewcroughan - nix.how | But first I need to wade through all their methods | 18:05:27 |
luizribeiro | oh that would be neat | 18:05:34 |
matthewcroughan - nix.how | we could get it to be like nix run .#flash.ethernet or nix run .#flash.minicom | 18:05:45 |
matthewcroughan - nix.how | give all the different flashing methods as an app | 18:05:57 |
matthewcroughan - nix.how | Let's just throw people bones and stop with all these imperative instructions haha | 18:06:17 |
matthewcroughan - nix.how | It's so ridiculous | 18:06:19 |
matthewcroughan - nix.how | And it's always the same stuff explained differently 💀 | 18:06:35 |
luizribeiro | how would you determine the current state of the bootloader from your nix expressions though? | 18:06:39 |
luizribeiro | (so you can enter 0 to enter uboot flashing) | 18:06:48 |
matthewcroughan - nix.how | apps are just shell scripts | 18:06:51 |
matthewcroughan - nix.how | so you can do whatever you want, including rm -rf | 18:07:00 |
matthewcroughan - nix.how | and 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 group | 18:07:26 |
matthewcroughan - nix.how | making ethernet the most surefire method | 18:07:31 |
matthewcroughan - nix.how | even then, it's a bit jank | 18:07:37 |
matthewcroughan - nix.how | serial is probably most surefire when ran as root, to guarantee success | 18:07:52 |
matthewcroughan - nix.how | * serial is probably most surefire when ran as root, to guarantee idempotent success | 18:07:55 |
luizribeiro | right, but there's no guarantee you are currently in uboot flashing mode. you need to enter that. | 18:07:58 |
matthewcroughan - nix.how | Our instructions would be:
nix run .#flash
- power up board
- success
| 18:08:30 |
matthewcroughan - nix.how | flash can just be a bash while loop | 18:08:45 |