Fedora 40 Alpha/Testing Image found

I was searching to see if there had been any recent updates on Fedora 40 support, when I stumbled across this git gist: Install Fedora 40 on the VisionFive 2 · GitHub

I am in the process of following the instructions, but they reference a prebuilt bin for grub that does not exist so I am figuring out the steps to cross compile that grub fork.

I tried building it with:

ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- ./bootstrap
ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- ./autogen.sh
ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- ./configure --target=riscv64-linux-gnu --with-platform=efi
ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- make -j$(nproc)

…but am getting:


mv -f commands/.deps-core/acpi_module-acpi.Tpo commands/.deps-core/acpi_module-acpi.Po
setjmp.S: Assembler messages:
setjmp.S:143: Error: missing name
setjmp.S:24:  Info: macro invoked from here
setjmp.S:144: Error: unknown pseudo-op: `.module_license'
setjmp.S:24:  Info: macro invoked from here
setjmp.S:145: Error: unrecognized opcode `a"'
setjmp.S:24:  Info: macro invoked from here
make[3]: *** [Makefile:36902: lib/setjmp_module-setjmp.o] Error 1

I’ll probably bang my head against the assembler issue for a bit, but if anyone who’s familiar with how to cross compile grub can see what I did wrong it would be helpful

Found the missing file: https://github.com/jmontleon/grub2-dist-git/raw/f40-2.12-riscv-f40-binaries/grubriscv64.efi

1 Like

It would be nice to see an official Fedora build. Ubuntu did a horrible job.

1 Like