!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

232 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v68 Servers

Load older messages


SenderMessageTime
11 Mar 2024
@skeuchel:matrix.orgSteven Keuchelso to boot from SPI you would have to flash from an existing image first19:32:37
@joerg:thalheim.ioMic92 S. Reimers: order some sdcard :) 19:32:53
@rmrs:matrix.orgS. ReimersI think we have one (:19:33:16
@skeuchel:matrix.orgSteven Keuchelbest grab the bootloader from https://github.com/sophgo/bootloader-riscv/actions19:33:17
@skeuchel:matrix.orgSteven Keuchelthe sophgo-bootloader-single build artifact is what you want. (-multi is for some multisocket board)19:34:23
@skeuchel:matrix.orgSteven Keuchelit contains a .bin to flash to SPI and an SD .img that contains just one partition with all the boot stages19:35:02
@skeuchel:matrix.orgSteven KeuchelI hope you got the box though, not just the bare board, because by default the bootloader does not output the bootmenu on serial :(19:35:51
@joerg:thalheim.ioMic92We have the case19:36:05
@joerg:thalheim.ioMic92USB-C serial works19:36:16
@joerg:thalheim.ioMic92I am going to chatgpt some docs out of this conversation.19:37:05
@skeuchel:matrix.orgSteven Keuchelwith that on an sdcard, you can simply cross-compile nixos to a second partition. or to a USB, SATA, or NVME drive .19:37:08
@skeuchel:matrix.orgSteven Keucheloh and I'm running this kernel now https://github.com/sophgo/linux-riscv/tree/sg2042-dev-6.619:39:48
@joerg:thalheim.ioMic92How does the boodloader than find the nixos on the second partition i.e. the kernel, initrd and so on?19:40:47
@skeuchel:matrix.orgSteven KeuchelLinuxBoot is a bit generic and scans for extlinux, grub.cfg, etc.19:41:10
@skeuchel:matrix.orgSteven Keuchelyou can also EFI boot19:41:44
@skeuchel:matrix.orgSteven Keuchelbut that does not work from SD19:41:50
@skeuchel:matrix.orgSteven KeuchelSD has to be mbr, because the zsbl does not support gpt for some reason19:42:18
@skeuchel:matrix.orgSteven Keucheleven though the Arm TF and the FAT code inside zsbl do support gpt.19:43:04
@joerg:thalheim.ioMic92 Steven Keuchel: so you just went the grub route to have a /boot/grub.cfg? 19:44:35
@skeuchel:matrix.orgSteven Keuchelno I started with extlinux and then eventually switched to efi boot19:45:06
@skeuchel:matrix.orgSteven KeuchelI think grub cross-compilation failed19:45:20
@joerg:thalheim.ioMic92So you updated the firmware on spi flash and than boot with EFI from the nvme?19:45:59
@skeuchel:matrix.orgSteven Keuchelyes19:46:11
@joerg:thalheim.ioMic92Also sounds like an option.19:46:19
@skeuchel:matrix.orgSteven Keuchelhttps://github.com/sophgo/sophgo-doc/blob/main/SG2042/HowTo/Configuration%20Info%20in%20INI%20file.rst19:46:54
@joerg:thalheim.ioMic92To flash the spi, do I dd the .bin to an sd card?19:47:00
@skeuchel:matrix.orgSteven Keuchelsays how to switch to edk2 and how to flash19:47:02
@joerg:thalheim.ioMic92Ah no you probably did this from a linux linux19:47:34
@skeuchel:matrix.orgSteven Keuchelthe only documentation about flashing to SPI I found is just via mtd-utils in linux19:47:39
@skeuchel:matrix.orgSteven Keuchelno idea if you can flash over UART19:47:49

Show newer messages


Back to Room ListRoom Version: 10