Re: [PATCH v2 07/10] RISC-V: Add awareness for RISC-V reloations

2018-11-14 Thread Bin Meng
Hi Alex, On Wed, Nov 14, 2018 at 9:11 PM Alexander Graf wrote: > > This patch adds awareness of RISC-V relocations throughout the grub tools > as well as dynamic linkage and elf->PE relocation conversion support. > > Signed-off-by: Alexander Graf > --- > grub-core/kern/dl.c | 6 +- >

Re: [PATCH v2 04/10] RISC-V: Add setjmp implementation

2018-11-14 Thread Bin Meng
clude/grub/riscv64/setjmp.h > Reviewed-by: Bin Meng Tested via 'bootefi' command from U-Boot on QEMU riscv64 Tested-by: Bin Meng ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v2 01/10] efi: Rename armxx to arch

2018-11-14 Thread Bin Meng
ux.h| 2 +- > include/grub/efi/efi.h| 4 ++-- > 5 files changed, 12 insertions(+), 12 deletions(-) > Reviewed-by: Bin Meng Tested via 'bootefi' command from U-Boot on QEMU riscv64 Tested-by: Bin Meng ___ Grub-dev

Re: [PATCH v2 02/10] PE: Add RISC-V definitions

2018-11-14 Thread Bin Meng
-by: Alistair Francis > --- > include/grub/efi/pe32.h | 5 + > 1 file changed, 5 insertions(+) > Reviewed-by: Bin Meng Tested via 'bootefi' command from U-Boot on QEMU riscv64 Tested-by: Bin Meng ___ Grub-devel mailing li

Re: [PATCH v2 03/10] elf.h: Add RISC-V definitions

2018-11-14 Thread Bin Meng
-by: Alistair Francis > --- > include/grub/elf.h | 59 > ++ > 1 file changed, 59 insertions(+) > Reviewed-by: Bin Meng Tested via 'bootefi' command from U-Boot on QEMU riscv64 Tested-by: Bin Meng _

Re: [PATCH v2 08/10] RISC-V: Add auxiliary files

2018-11-14 Thread Bin Meng
Hi Alex, On Wed, Nov 14, 2018 at 9:11 PM Alexander Graf wrote: > > To support a new architecture we need to provide a few helper functions > for memory, cache, timer, etc support. > > This patch adds the remainders of those. Some bits are still disabled, > as I couldn't guarantee that we're alway

Re: [PATCH v2 05/10] RISC-V: Add early startup code

2018-11-14 Thread Bin Meng
-by: Alistair Francis > --- > grub-core/kern/riscv/efi/startup.S | 49 > ++ > 1 file changed, 49 insertions(+) > create mode 100644 grub-core/kern/riscv/efi/startup.S > Reviewed-by: Bin Meng Tested via 'bootefi' comman

Re: [PATCH v2 09/10] RISC-V: Add to build system

2018-11-14 Thread Bin Meng
Hi Alex, On Wed, Nov 14, 2018 at 9:11 PM Alexander Graf wrote: > > This patch adds support for RISC-V to the grub build system. With this > patch, I can successfully build grub on RISC-V as a UEFI application. > > Signed-off-by: Alexander Graf > Reviewed-by: Alistair Francis > --- > configure.

Re: [PATCH v2 09/10] RISC-V: Add to build system

2018-11-14 Thread Bin Meng
On Wed, Nov 14, 2018 at 11:28 PM Andreas Schwab wrote: > > On Nov 14 2018, Bin Meng wrote: > > > - use riscv32-* toolchain to build riscv64 target (-m64 required) > > - use riscv64-* toolchain to build riscv32 target (-m32 required) > > riscv does not use -m64/-m32. &

Re: [PATCH v2 09/10] RISC-V: Add to build system

2018-11-14 Thread Bin Meng
Hi Alex, On Thu, Nov 15, 2018 at 1:02 AM Alexander Graf wrote: > > On 11/14/2018 04:34 PM, Bin Meng wrote: > > On Wed, Nov 14, 2018 at 11:28 PM Andreas Schwab wrote: > >> On Nov 14 2018, Bin Meng wrote: > >> > >>> - use riscv32-* toolchain to build

Re: [PATCH v2 09/10] RISC-V: Add to build system

2018-11-15 Thread Bin Meng
Hi Alex, On Thu, Nov 15, 2018 at 6:02 PM Alexander Graf wrote: > > > > On 15.11.18 02:48, Bin Meng wrote: > > Hi Alex, > > > > On Thu, Nov 15, 2018 at 1:02 AM Alexander Graf wrote: > >> > >> On 11/14/2018 04:34 PM, Bin Meng wrote: > >>

Re: [PATCH v3 02/10] PE: Add RISC-V definitions

2018-11-18 Thread Bin Meng
-by: Alistair Francis > --- > include/grub/efi/pe32.h | 5 + > 1 file changed, 5 insertions(+) > Reviewed-by: Bin Meng Tested-by: Bin Meng ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v3 03/10] elf.h: Add RISC-V definitions

2018-11-18 Thread Bin Meng
-by: Alistair Francis > --- > include/grub/elf.h | 59 > ++ > 1 file changed, 59 insertions(+) > Reviewed-by: Bin Meng Tested-by: Bin Meng ___ Grub-devel mailing list Grub-devel@g

Re: [PATCH v3 09/10] RISC-V: Add to build system

2018-11-18 Thread Bin Meng
stall.h | 2 ++ > util/grub-install-common.c | 2 ++ > util/grub-install.c | 28 > util/grub-mknetdir.c | 4 +++- > util/grub-mkrescue.c | 16 +++- > util/mkimage.c | 32 ++++++++

Re: [PATCH v3 04/10] RISC-V: Add setjmp implementation

2018-11-18 Thread Bin Meng
clude/grub/riscv64/setjmp.h > Reviewed-by: Bin Meng Tested-by: Bin Meng ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v3 05/10] RISC-V: Add early startup code

2018-11-18 Thread Bin Meng
-by: Alistair Francis > --- > grub-core/kern/riscv/efi/startup.S | 49 > ++ > 1 file changed, 49 insertions(+) > create mode 100644 grub-core/kern/riscv/efi/startup.S > Reviewed-by: Bin Meng Tested-by: Bin Meng ___

Re: [PATCH v3 01/10] efi: Rename armxx to arch

2018-11-18 Thread Bin Meng
ux.h| 2 +- > include/grub/efi/efi.h| 4 ++-- > 5 files changed, 12 insertions(+), 12 deletions(-) > Reviewed-by: Bin Meng Tested-by: Bin Meng ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: [PATCH v3 09/10] RISC-V: Add to build system

2018-11-25 Thread Bin Meng
Hi Alex, On Mon, Nov 26, 2018 at 7:06 AM Alexander Graf wrote: > > > > On 18.11.18 12:41, Bin Meng wrote: > > Hi Alex, > > > > On Thu, Nov 15, 2018 at 1:27 AM Alexander Graf wrote: > >> > >> This patch adds support for RISC-V to the grub build

Build RISC-V 32-bit UEFI target fails with kernel.org riscv64 toolchain

2020-03-27 Thread Bin Meng
Hi, I tried to build RISC-V 32-bit UEFI target using kernel.org riscv64 toolchain: https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/7.3.0/x86_64-gcc-7.3.0-nolibc_riscv64-linux.tar.xz $ ./configure --target=riscv32 --with-platform=efi CC=gcc TARGET_CC=/share/toolchains/gcc-7.3.

Re: Build RISC-V 32-bit UEFI target fails with kernel.org riscv64 toolchain

2020-03-27 Thread Bin Meng
On Fri, Mar 27, 2020 at 10:51 PM Daniel Kiper wrote: > > Adding Alex... > > On Fri, Mar 27, 2020 at 03:01:15PM +0800, Bin Meng wrote: > > Hi, > > > > I tried to build RISC-V 32-bit UEFI target using kernel.org riscv64 > > toolchain: > > https://mirrors

Re: Build RISC-V 32-bit UEFI target fails with kernel.org riscv64 toolchain

2020-03-29 Thread Bin Meng
On Sat, Mar 28, 2020 at 11:54 PM Mike Gilbert wrote: > > On Fri, Mar 27, 2020 at 7:45 PM Bin Meng wrote: > > > > On Fri, Mar 27, 2020 at 10:51 PM Daniel Kiper wrote: > > > > > > Adding Alex... > > > > > > On Fri, Mar 27, 2020 at 03:01:15P