[RFC] efi spi flash support - where to place

2021-01-19 Thread Michael Lawnick
Hi all, first of all, I am new to this group/grub. So please be patient if I violate some group internal rules, just point it out. Formerly I worked many years on U-Boot. I have made a driver and command line tool for accessing SPI NOR flash via EFI interface which I would like to upstream. Q:

Re: [RFC] efi spi flash support - where to place

2021-01-22 Thread Michael Lawnick
Am 22.01.2021 um 07:51 schrieb Paul Menzel: Am 19.01.21 um 11:38 schrieb Michael Lawnick: Q: where to place the efi driver, where to place the command line handler. Currently I'd say - create grub-core/flash/efispinor.c for the driver I guess, that would be fine, but I found, `grub-cor

Re: [RFC] efi spi flash support - where to place

2021-02-01 Thread Michael Lawnick
Am 22.01.2021 um 16:58 schrieb Paul Menzel: I'm not (yet) in sync with grub timeline, when is next release planned (last commit date)? March *last* year sometime? ;-) I think the current date is March, though re-reading the list posts, do not hold your breath, that it will be committed, as the

[PATCH 1/2] efi: SPI NOR flash support

2021-02-04 Thread Michael Lawnick
flash_size flash_id erase_block_size This driver might be used for further abstraction to a common (SPI) flash interface. Signed-off-by: Michael Lawnick --- diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 68b9e9f68..4d775e5f6 100644 --- a/grub

[PATCH 2/2] efi: SPI NOR flash support

2021-02-04 Thread Michael Lawnick
y or print hexdump write - write to flash part from memory erase - erase some erase blocks Signed-off-by: Michael Lawnick --- diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 4d775e5f6..403a5432f 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefil

Re: [PATCH 1/2] efi: SPI NOR flash support

2021-02-05 Thread Michael Lawnick
I introduced a bug by blindly copying header from unverified source. Version 2 following ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH v2 1/2] efi: SPI NOR flash support

2021-02-05 Thread Michael Lawnick
flash_size flash_id erase_block_size This driver might be used for further abstraction to a common (SPI) flash interface. Signed-off-by: Michael Lawnick --- [Patch v2 1/2] : fix flaw in EFI header, wrong sequence of methods. --- diff --git a/grub-core/Makefile.core.def b

[PATCH v2 2/2] efi: SPI NOR flash command line

2021-02-05 Thread Michael Lawnick
y or print hexdump write - write to flash part from memory erase - erase some erase blocks Signed-off-by: Michael Lawnick --- [Patch v2 2/2]: no change --- diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 4d775e5f6..403a5432f 100644 --- a/grub-core/Makefil

Re: [PATCH v2 1/2] efi: SPI NOR flash support

2021-02-10 Thread Michael Lawnick
Hi, seven days of silence. In the end no interest for extending EFI support? KR Michael Am 05.02.2021 um 09:58 schrieb Michael Lawnick: Add EFI SPI NOR driver Use UEFI interface for accessing SPI NOR flashes. If supported the implementation of UEFI boot software abstracts away all those

Re: [PATCH v2 1/2] efi: SPI NOR flash support

2021-02-11 Thread Michael Lawnick
Am 11.02.2021 um 09:51 schrieb Heinrich Schuchardt: On 11.02.21 08:36, Michael Lawnick wrote: Hi, seven days of silence. In the end no interest for extending EFI support? KR Michael Am 05.02.2021 um 09:58 schrieb Michael Lawnick: Add EFI SPI NOR driver Use UEFI interface for accessing SPI

Re: [PATCH v2 1/2] efi: SPI NOR flash support

2021-02-11 Thread Michael Lawnick
Am 11.02.2021 um 15:04 schrieb Heinrich Schuchardt: On 11.02.21 13:50, Michael Lawnick wrote: Hi, Several boot parameters are stored in our SPI flash to configure the systems for different use cases. I still do not understand why you need access in GRUB. You can read and write the SPI flash

Re: [PATCH v2 1/2] efi: SPI NOR flash support

2021-02-12 Thread Michael Lawnick
Am 11.02.2021 um 18:16 schrieb Heinrich Schuchardt: On 11.02.21 17:01, Michael Lawnick wrote: Am 11.02.2021 um 15:04 schrieb Heinrich Schuchardt: On 11.02.21 13:50, Michael Lawnick wrote: Hi, Several boot parameters are stored in our SPI flash to configure the systems for different use cases

Re: [PATCH v2 2/2] efi: SPI NOR flash command line

2021-02-12 Thread Michael Lawnick
Note: There is a bug in code below which will let this code fail on BIOS-UEFI and requires a v3 as soon as basic discussion whether this sort of functionality is accepted at all is done. I don't want to disturb thread by a v3 thread. KR Michael Am 05.02.2021 um 10:02 schrieb Michael La

Q: How to use grub_tpm_execute?

2022-09-19 Thread Michael Lawnick
Hi group, we have bootloader which is supposed to provide TPM access to GRUB via EFI_TPM2_GUID and I try to take this in use. But the implementation in GRUB looks a bit confusing and I can't find a real life example. Can anybody provide something like get_version so it gets clear how the paramete

Need help: alternative module inclusion - duplicate symbols

2024-02-26 Thread Michael Lawnick via Grub-devel
Hi group, hope you can help me: I have modules pci_fpga.c and pci_fpga_emul.c with same functions in them but different implementation, one for the real device, the other one is just emulating. What I now want is being able to include one of both versions through build command. I started with thi

Re: Need help: alternative module inclusion - duplicate symbols

2024-02-26 Thread Michael Lawnick via Grub-devel
b_xputs for examples > > On Mon, Feb 26, 2024 at 1:51 PM Michael Lawnick via Grub-devel > wrote: >> >> Hi group, >> >> hope you can help me: >> I have modules pci_fpga.c and pci_fpga_emul.c with same functions in >> them but different implementation, o