[PATCH 0/7] MIPS: Enable EFI support

Jiaxun Yang jiaxun.yang at flygoat.com
Fri May 17 19:40:21 CEST 2024



在2024年5月17日五月 下午6:12,Heinrich Schuchardt写道:
[...]
>>as well.
>>
>>Please review.
>>Thanks
>
> Implementing the Loongarch architecture defined in 
> <https://uefi.org/specs/UEFI/2.10/02_Overview.html#loongarch-platforms> 
> would make sense to me.
>
> Supporting an architecture that does not have published UEFI standards 
> is less convincing. 
>
> Is any of the mentioned boards being produced anymore?

Hi Heinrich,

Yes, MIPS/Loongson boards are still producing for many existing applications.
There will be some future MIPS product from CIP United [1], and I think get
EBBR like booting stuff implemented can save a lot of hassle.

I also intended to use UEFI as loongson3-virt firmware, supporting actual
Loongson hardware is out of my scope.

I'm a hobbyist (and contractor) on MIPS stuff, so I don't really know details
on LoongArch UEFI.

Thanks

[1]: http://www.cipunited.com/

>
> Best regards
>
> Heinrich
>
>>
>>[1]: https://github.com/kontais/EFI-MIPS
>>[2]: https://github.com/loongson-community/firmware-nonfree
>>[3]: http://www.kunluntech.com.cn/klbiosxl
>>[4]: https://sourceforge.net/projects/efify/
>>[5]: https://github.com/loongson-community/grub
>>[6]: https://www.ventoy.net/en/index.html
>>
>>Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
>>---
>>Jiaxun Yang (7):
>>      MIPS: Implement setjmp
>>      efi: Allow runtime relocate to be disabled
>>      Makefile.lib: Preserve .rodata section for EFI file
>>      Makefile.lib: Enforce EFI CFLAGS/AFLAGS
>>      MIPS: Add smbios_start to arch_global_data
>>      MIPS: Define MIPS EFI related bits everywhere
>>      MIPS: Implement EFI supporting stuff
>>
>> Makefile                                          |   3 +
>> arch/mips/config.mk                               |   9 +
>> arch/mips/include/asm/global_data.h               |   3 +
>> arch/mips/include/asm/setjmp.h                    |  36 ++++
>> arch/mips/lib/Makefile                            |  15 ++
>> arch/mips/lib/crt0_mips_efi.S                     | 239 ++++++++++++++++++++++
>> arch/mips/lib/elf_mips_efi.lds                    | 113 ++++++++++
>> arch/mips/lib/reloc_mips_efi.c                    |  99 +++++++++
>> arch/mips/lib/setjmp32.S                          |  51 +++++
>> arch/mips/lib/setjmp64.S                          |  56 +++++
>> include/asm-generic/pe.h                          |   5 +
>> include/config_distro_bootcmd.h                   |   6 +
>> include/efi_default_filename.h                    |   8 +
>> include/efi_loader.h                              |  26 ++-
>> include/elf.h                                     |   8 +
>> lib/efi_loader/Kconfig                            |  12 +-
>> lib/efi_loader/efi_image_loader.c                 |  18 ++
>> lib/efi_loader/efi_memory.c                       |  14 +-
>> lib/efi_loader/efi_runtime.c                      |  11 +-
>> lib/efi_loader/efi_var_mem.c                      |   6 +-
>> lib/efi_selftest/Makefile                         |   2 +-
>> lib/efi_selftest/efi_selftest_miniapp_exception.c |   2 +
>> scripts/Makefile.lib                              |  10 +-
>> 23 files changed, 734 insertions(+), 18 deletions(-)
>>---
>>base-commit: ad7dce5abd49ef3b5c93da5303e15449c8c162b4
>>change-id: 20240517-mips-efi-c9a1ad819c2d
>>
>>Best regards,

-- 
- Jiaxun


More information about the U-Boot mailing list