Exotic Nix Targets | 333 Members | |
| 103 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Jul 2023 | ||
| Did I f-up by being extra smart? 🙃 | 17:24:35 | |
| ? | 17:24:41 | |
I noticed that the image (https://github.com/misuzu/nixos-vf2) didn't boot with all combinations of DIP switches so me being extra smart, I dd-ed uboot SPL and SBI firmware on /dev/sda1 and /dev/sda2 respectively and mvoed /boot to /dev/sda3 and / to /dev/sda4. Now, your derivation doesn't work because it expects "/dev/sda1" to be EFI? | 17:27:21 | |
| I got this
| 17:27:36 | |
| That's probably because the partitions need to have specific flags/UUIDs set. | 17:28:02 | |
In reply to @thefossguy:matrix.orgAlso yes, I flashed the recommended firmware using nix run github:misuzu/nixos-vf2#flash-visionfive2-vendor /dev/ttyUSB0 :) | 17:28:25 | |
| Ah, so I'll need to build it myself? | 17:28:35 | |
| The system is only meant to boot with the switches on "flash" | 17:28:53 | |
In reply to @thefossguy:matrix.orgAnd figure out how to make it SDIO boot-compatible, if you want to go that way | 17:29:13 | |
| By flash, do you mean the QSPI flash on board? | 17:29:28 | |
| Yes, it's the setting called "flash" on the printout on the board itself. | 17:29:49 | |
| Okay I'll give it another go | 17:30:07 | |
| Honestly though, I'm amazed that you managed to boot misuzu's image at all after screwing with the partitions. | 17:30:55 | |
| I inserted an old SD card (which didn't manipulate the partitions) and now the console complains this:
| 17:31:19 | |
| I know why I did the partition makeover lol | 17:31:42 | |
| It looks to me like that's in SDIO boot mode? | 17:31:56 | |
| Nope, I'm booting from flash | 17:32:06 | |
| Switches on 0, 0? Weird. | 17:32:31 | |
| 17:32:32 | |
In reply to @alex:tunstall.xyzYep, 00 | 17:32:38 | |
| I don't know the Nix expression langauge, like, at all otherwise I would've sent in the PR to boot from SD. I hate the booting from SD card approach but since uboot is on SD card, we know what uboot the user is using. | 17:35:46 | |
| Latest from vendor should work. Are you able to boot misuzu's image in SPI mode? | 17:36:30 | |
| I'll check the latest vendor firmware | 17:36:51 | |
In reply to @alex:tunstall.xyznot in SPI mode (with the firmware flashed using nix run github:misuzu/nixos-vf2#flash-visionfive2-vendor /dev/ttyUSB0) | 17:37:07 | |
| I will recheck using the latest stock firmware | 17:38:41 | |
| You might need to flash the latest firmware in the vendor's Debian system. The "upstream" kernel's DTB has a broken SPI partition table that is too small to flash all of the u-boot file. | 17:38:44 | |
| I don't understand what you mean by the last sentence... | 17:39:18 | |
mtd0 has a size of 128KiB, but the latest versions of u-boot exceed that. | 17:40:05 | |
| Sorry, I probably should've mentioned this sooner. | 17:40:40 | |
| That's why I prefer booting from SD Card for development purposes :) | 17:41:09 | |