Build Debian images for the VisionFive 2

VisionFive 2 Lite support #2

open opened by engielolz.ritsuko.akizuki.best

Unfortunately, it seems installing the vendor kernel isn't enough to bring up the VisionFive 2 Lite. It hangs on the boot splash screen (drawn by the on flash U-Boot I believe). The device trees are there in /usr/lib, but I suspect grub isn't loading. Need to see serial output to confirm.

As expected it doesn't try to find grub, it looks for uEnv_Lite.txt and extlinux stuff before giving up. Attempting to manually load grub with fatload mmc 0:3 /EFI/BOOT/BOOTRISCV64.EFI and bootefi will successfully load grub, but Linux crashes immediately with

clk u0_mipitx_dphy_clk_txesc already disabled
sbi_trap_error: hart0: trap handler failed (error -2)

followed by a stack trace (I think). I suspect grub u-boot is not loading the device tree like it's supposed to.

Trying to load a device tree along with grub will cause it to run out of memory when loading the Linux kernel

The U-Boot supplied by Debian uses a command bootflow scan to boot grub and Linux. This command doesn't exist in the U-Boot on the VF2L's provided flash. No luck in making grub work, so for the time being I'll have to add support for its extlinux style booting. This will probably be in a separate branch.

Got it working. A branch that supports the VisionFive 2 Lite will follow shortly.

sign up or login to add to the discussion
Labels

None yet.

Participants 1
AT URI
at://did:plc:s2cyuhd7je7eegffpnurnpud/sh.tangled.repo.issue/3m6ovjzst5s22