Dead after flashing

Hi All,

Tried to install image via uboot from USB flash.

Used bootloader 2025.02.00 and the latest ubuntu-24.04-preinstalled-server-riscv64.

ext4load usb 0 0x90000000 bootloader_ddr5_secboot.bin
es_burn write 0x90000000 flash
es_fs write usb 0 ubuntu-24.04-preinstalled-server-riscv64.img mmc 0

And after power reboot uart console says:
entry[0] image exec error, errorcode[-29993]
bootstrap is failed:-29993 (0xffff8ad7)
boot sel change to uart

and cyclically while pressing any buttons:

Abort download:
, -79899
Downloading failed!
download bootchain failed[-79899]

Abort download:
, -79899
*Downloading failed!
download bootchain failed[-79899]

Don’t know how to interrupt this and recover the board.
Could anyone help?
Thank you in advance.

1 Like

You have to use the USB recovery procedure. It’s in chapter 5 of this document.

https://www.sifive.com/document-file/hifive-premier-image-update-procedure

I’ve experienced this same problem. I found that the vendor u-boot is broken. I have a working bootloader_ddr5_secboot.bin that you can download here (w6rz.net is my website):

https://www.w6rz.net/bootloader_ddr5_secboot.bin

1 Like

Thanks! Your bootloader file works.
But I couldn’t figure out how to configure esburn to work with ubuntu *img. By the way bootloader was flashed and I tried again to install ubuntu image from USB flash. But something went wrong again.
After reboot:

===
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1…
145768 bytes read in 20 ms (7 MiB/s)
MMC: no card present
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootriscv64.efi
3608576 bytes read in 52 ms (66.2 MiB/s)
Booting /efi\boot\bootriscv64.efi
ethernet@50400000 Waiting for PHY auto negotiation to complete… done

grub command line is displayed after this
Any ideas?

The bootloader_ddr5_secboot.bin that I posted was modified to boot automatically from nvme. It looks like it’s working correctly, but just to be sure, here’s the unmodified bootloader_ddr5_secboot.bin from December 2024.

https://www.w6rz.net/bootloader_ddr5_secboot_original.bin

Thank you, but it didn’t help. I’ve restored ubuntu image to SD card and successfully load the system. Then I realized that partition table on MMC is very different than on SD card. I tried to restore ubuntu image to MMC directly from current system. After this I switched off the system, ejected SD and switched it on again. And the system booted from MMC. It seem that es_fs write usb 0 ubuntu-24.04-preinstalled-server-riscv64.img mmc 0 do nothing. I was really surprized. However the system works now.
Thank you for participation.