Page 1 of 1

Installing on a Starfive Visionfive RISC-V SBC - uboot not booting

Posted: 2022-06-19 19:44
by iwakura_lain
I am installing Debian on my new Starfive Visionfive board following this guide: https://wiki.debian.org/InstallingDebia ... sionFiveV1, which I followed exactly, except in those places where it referred to kernel ver. 5.18 (substituted as appropriate). I'm currently in a serial debug console with u-boot, troubleshooting.

Versions of everything in my environment:
  • Kernel ver 5.19.0-rc2-starfive
  • u-boot ver. 2022.04-rc2-VisionFive
  • riscv64-buildroot-linux-gnu-gcc.br_real (Buildroot SDK_v2.1.1) 10.2.0
  • GNU ld (GNU Binutils) 2.34
Here is a pastebin with the serial output from boot: https://pastebin.com/8MDARRVN
Here is the output from where the issue seems to be:

Scanning mmc 0:3...
Found /boot/extlinux/extlinux.conf
Invalid pxefile address: /boot/extlinux/extlinux.conf
SCRIPT FAILED: continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
EFI boot manager: Cannot load any image
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.87 (105 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.87 (103 ms)
*** ERROR: `serverip' not set
Cannot autoload with TFTPGET

Here is my extlinux.conf: https://pastebin.com/FwyvkNcy
Confirmed that the labels are pointing to the kernel and initramfs correctly. Root is also correct.
/boot/uEnv.txt, /etc/fstab/ /etc/network/interfaces have all been checked and are exactly as they are specified in the guide, and everything else comes from debootstrap.

Sorry if the troubleshooting thus far is somewhat barebones, but I'm a little out of my depth. Thanks.

Re: Installing on a Starfive Visionfive RISC-V SBC - uboot not booting

Posted: 2022-11-06 15:25
by rd235
Maybe you've already found the problem since the message is more than 4 months old. Anyway I have seen this posting because I have had the very same problem.
I followed the guide: https://wiki.debian.org/InstallingDebia ... sionFiveV1 like you.
I decided to compile the latest version of the kernel cloning the git repo https://github.com/starfive-tech/linux.
In my case the error was to use the default configuration

Code: Select all

make -j8 ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- visionfive_defconfig
visionfive_defconfig is a minimal configuration without modules. The compressed vmlinuz (the one installed using the deb packages -- bindeb-pkg) won't boot both using extlinux or by grub (incorrect magic number). Grub boots using arch/riscv/boot/Image manually added to grub.cfg file as explained in the "install" section in https://github.com/starfive-tech/linux.
I suppose starfive_jh7100_fedora_defconfig should work.