[PATCH v5 1/9] PE: Add LoongArch definitions

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/efi/pe32.h | 36 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/include/grub/efi/pe32.h b/include/grub/efi/pe32.h index 0ed8781f0..de56edef6 100644 --- a/include/grub/efi/pe

[PATCH v5 2/9] Add LoongArch definitions

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/elf.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/grub/elf.h b/include/grub/elf.h index c478933ee..1c8d4f5d5 100644 --- a/include/grub/elf.h +++ b/include/grub/elf.h @@ -248,6 +248,7 @@

[PATCH v5 5/9] LoongArch: Add stubs for Linux loading commands

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu --- grub-core/loader/loongarch64/linux.c | 59 include/grub/loongarch64/linux.h | 31 +++ 2 files changed, 90 insertions(+) create mode 100644 grub-core/loader/loongarch64/linux.c create mode 100644 include/grub/loongarch64

[PATCH v5 8/9] LoongArch: Add to build system

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- Makefile.util.def | 1 + configure.ac| 22 - gentpl.py | 25 ++- grub-core/Makefile.am | 6 + grub-core/Makefile.core.def | 16 include/gru

[PATCH v5 7/9] LoongArch: Add auxiliary files

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/efi/mm.c | 3 +- grub-core/kern/loongarch64/cache.c | 39 + grub-core/kern/loongarch64/cache_flush.S | 33 +++ grub-core/kern/loongarch64/efi/init.c| 77 grub-core/

[PATCH v5 4/9] LoongArch: Add early startup code

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/loongarch64/efi/startup.S | 34 1 file changed, 34 insertions(+) create mode 100644 grub-core/kern/loongarch64/efi/startup.S diff --git a/grub-core/kern/loongarch64/efi/startup.S b/grub-core/kern/l

[PATCH v5 6/9] LoongArch: Add awareness for LoongArch relocations

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- grub-core/kern/dl.c| 9 +- grub-core/kern/loongarch64/dl.c| 102 + grub-core/kern/loongarch64/dl_helper.c | 198 + include/grub/dl.h | 1 + util/grub-m

[PATCH v5 3/9] LoongArch: Add setjmp implementation

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang Signed-off-by: Sun Haiyong --- grub-core/lib/loongarch64/setjmp.S | 69 ++ grub-core/lib/setjmp.S | 2 + include/grub/loongarch64/setjmp.h | 27 3 files changed, 98 insertions(+) create m

[PATCH v5 0/9] Add support for LoongArch

2022-07-29 Thread Xiaotian Wu
LoongArch is a new Loongson 3A5000 CPU instruction set, you can read documents[1] or visit the development community[2] to get more information. [1]: https://loongson.github.io/LoongArch-Documentation/README-EN.html [2]: https://github.com/loongson This patch series will add the basic support for

[PATCH v5 9/9] tests: add support for LoongArch

2022-07-29 Thread Xiaotian Wu
Signed-off-by: Xiaotian Wu --- tests/ahci_test.in | 2 +- tests/ehci_test.in | 2 +- tests/ohci_test.in | 2 +- tests/partmap_test.in| 2 +- tests/pata_test.in | 2 +- tests/uhci_test.in | 2 +- tests/util/grub-shell.in | 16 7 files change

Re: [PATCH v5 2/9] Add LoongArch definitions

2022-07-29 Thread WANG Xuerui
On 2022/7/29 15:11, Xiaotian Wu wrote: Signed-off-by: Xiaotian Wu Signed-off-by: Zhou Yang --- include/grub/elf.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/grub/elf.h b/include/grub/elf.h index c478933ee..1c8d4f5d5 100644 --- a/include/grub/elf.h ++

[PATCH v3 0/3] Cryptomount detached headers

2022-07-29 Thread brutser--- via Grub-devel
testing detached header failed: 1. built grub payload with following modules: ahci usb_keyboard part_msdos part_gpt at_keyboard cbfs cryptodisk luks2 lvm gcry_rijndael gcry_sha1 gcry_sha256 gcry_sha512 2. encrypt a partition: cryptsetup luksFormat --type luks2 -q -h sha512 -s 512 --pbkdf pb

Re: [PATCH v3 0/3] Cryptomount detached headers

2022-07-29 Thread Glenn Washburn
On Fri, 29 Jul 2022 20:56:18 +0200 (CEST) brut...@perso.be wrote: > > testing detached header failed: > > > > 1. built grub payload with following modules: ahci usb_keyboard part_msdos > part_gpt at_keyboard cbfs cryptodisk luks2 lvm gcry_rijndael gcry_sha1 > gcry_sha256 gcry_sha512 > > 2.

Re: [PATCH v3 0/3] Cryptomount detached headers

2022-07-29 Thread brutser--- via Grub-devel
Hi Glenn, To explain in more detail how I run my tests, because the whole picture can give you a better understanding as to why it fails with me: 1. As grub payload is used for coreboot, I first build coreboot for the system (default build, nothing special). 2. To build grub: git clone htt

Re: [PATCH v5 0/9] Add support for LoongArch

2022-07-29 Thread Glenn Washburn
On Fri, 29 Jul 2022 15:11:52 +0800 Xiaotian Wu wrote: > LoongArch is a new Loongson 3A5000 CPU instruction set, you can read > documents[1] or visit the development community[2] to get more information. > > [1]: https://loongson.github.io/LoongArch-Documentation/README-EN.html > [2]: https://git

Re: Re: [PATCH v5 0/9] Add support for LoongArch

2022-07-29 Thread 武校田
Thanks for your reply. > Thanks for doing this testing. What are the values passed for the > configure options --build, --host, and --target? I compiled it on my local machine, using the Archlinux 2022.03 LoongArch version, the iso and repository are here: https://mirrors.wsyu.edu.cn/loongarch/2

Re: [PATCH v3 0/3] Cryptomount detached headers

2022-07-29 Thread Maxim Fomin
--- Original Message --- On Friday, July 29th, 2022 at 6:56 PM, brutser--- via Grub-devel wrote: > testing detached header failed: > > 1. built grub payload with following modules: ahci usb_keyboard part_msdos > part_gpt at_keyboard cbfs cryptodisk luks2 lvm gcry_rijndael gcry_sha1 >