I am trying to build a spin of OpenWRT for my Rasberry Pi4.
However, I want to replace the bootloader to GRUB2. But I am unfortunately unable to find it running make menuconfig.
Is there someone here that can take some time to help me sort this I would be greatful!
What I have tried so far,
I have tried to build for x86_64 and use the GRUB, but it did not work as expected just ending up in a loop trying to find an NVME or SDdisk.
I have tried to manually edit the .config menuconfig file, and add GRUB2 lines. This did not go as expected as well.
I tried to add these lines:
CONFIG_DEFAULT_grub2-bios-setup=y`
CONFIG_PACKAGE_grub2=y
CONFIG_PACKAGE_grub2-efi=y
CONFIG_PACKAGE_grub2-bios-setup=y
# CONFIG_PACKAGE_grub2-editenv is not set
Thanks in advance for taking your time to read this!
That is not be possible at this point, as it would require quite a bit of development on your side, first.
Technically speaking it would be possible to support the RPi4 and its close descendants by the armsr target, using a u-boot --> tianocore (emulated UEFI boot services) --> grub-efi --> linux multi platform (armsr) kernel, but OpenWrt currently is not prepared for that, so you would have to add the missing bits and pieces. This should be possible, and I personally would really prefer it (despite not owning any RPi devices myself), but it would take considerable development efforts (extend armsr with a new device recipe, dts, RPi u-boot image build, RPi tianocore build, grub-efi build plus the required RPi patches for armsr and the kernel symbol changes).
I see, Thank you for taking the time to answer.
Would i be possible hire someone that could add this?
Because I am willing to pay someone to add this? But dunno what to ask for and where I can turn these kinds of question within this community of OpenWRT.
I am also willing to help from my end, but I have very limited knowledge about developing in this but willing to learn if someone could point me in the right direction.