On 0, Scott Walters <[email protected]> wrote: > Background below, but I'm failing to update U-Boot:
Instead of re-building what looked like the right thing, I did later track down the exact filenames for images for reflashing on-board U_Boot, pre-built in the starfive-tech repo: https://github.com/starfive-tech/VisionFive2/releases/tag/JH7110_VF2_515_v5.10.3 has a https://github.com/starfive-tech/VisionFive2/releases/download/JH7110_VF2_515_v5.10.3/u-boot-spl.bin.normal.out StarFive # setenv ipaddr 192.168.120.222;setenv serverip 192.168.120.99 StarFive # sf probe StarFive # tftpboot ${loadaddr} u-boot-spl.bin.normal.out StarFive # sf update ${loadaddr} 0x0 $filesize StarFive # tftpboot ${loadaddr} visionfive2_fw_payload.img StarFive # sf update ${loadaddr} 0x100000 $filesize Then after reboot, PCI/NVMe does show up (eg, "load nvme" command now exists), and was able to do this: # just to dump everything so I can back everything up: env default -a -f setenv distro_boot_env "echo Booting OpenBSD from NVME; load nvme 0:1 ${fdt_addr_r} jh7110-starfive-visionfive-2-v1.3b.dtb; load nvme 0:1 ${kernel_addr_r} efi/boot/bootriscv64.efi; bootefi ${kernel_addr_r} ${fdt_addr_r}" saveenv reset Some or large amounts of that from https://forum.rvspace.org/t/how-to-boot-openbsd-from-nvme/3959/6 Then I ran in to *another* issue, and this one I haven't been able to resolve... on hot days, it hard-locks, and it looks like it isn't thermal throttling and I'm not able to turn down CPU speed or change throttling. Please tell me if I have this wrong. spiky# sysctl | grep speed hw.cpuspeed=750 spiky# sysctl | grep perf hw.setperf=56 hw.perfpolicy=high man apm -L Switch to manual performance adjustment mode, setting hw.setperf to 0. spiky# sysctl hw.perfpolicy=0 sctl: hw.perfpolicy: Invalid argument Self-reported CPU temp was getting up to close to 70C. At some point, the NVMe start reporting an impossibly high temp of 250C. This happens suddenly and it suddenly jumps. At this point, the board is hot enough it I can't touch it with bare fingers. This was happening when it was getting up to around 100F (no AC here). It looks like this is just hard-wired to run at half speed (750 I assume mhz is half of 1.5ghz) and there's no driver for CPU speed. I have a big copper passive heatsync on there but no fan. At these temps, the Intel based laptop with a fan will spool up the fan to top speed and throttle the CPU down to its lowest speed, and it feels like being stuck in molasses that also radiates a lot of heat. I missed the RISCV hype wave and it looks like StarFive hasn't been doing a lot after that so I'm sure interest is limited. And just adding a fan might buy some some thermal headroom. Thoughts and comments welcome. And hopefully my notes can help someone else down the line. Thanks, -scott

