All of lore.kernel.org
 help / color / mirror / Atom feed
* EFI Payload problems, Congatec x86
@ 2020-03-10 10:28 Kim Bøndergaard
  0 siblings, 0 replies; only message in thread
From: Kim Bøndergaard @ 2020-03-10 10:28 UTC (permalink / raw)
  To: u-boot

I'm currently trying to boot a Congatec x86 eval board from a USB Mass Storage.

I have a config based on efi-x86_payload64_defconfig with the following changes:

27a28
> CONFIG_ENV_OFFSET=0x0
493c494
< CONFIG_ENV_IS_NOWHERE=y
---
> # CONFIG_ENV_IS_NOWHERE is not set
498c499
< # CONFIG_ENV_IS_IN_MMC is not set
---
> CONFIG_ENV_IS_IN_MMC=y
502a504,505
> CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
> CONFIG_ENV_OFFSET_REDUND=0x10000
1141c1144
< # CONFIG_FAT_WRITE is not set
---
> CONFIG_FAT_WRITE=y

I.e. I define the u-boot environment to be stored in an MMC flash

In order to make it compile I had to add the following two lines to efi-x86_payload.h

+
+#define CONFIG_SYS_MMC_ENV_DEV          0
+#define CONFIG_SYS_MMC_ENV_PART         0
+

I further more have had to make two changes in lib/efi/efi_stub.c:

First change:
Commented out call to  exit_boot_services(). It never returns.

Second change:
Commented out the line where use_uart is set to true - and thus keep showing output at the screen.

I guess the defines I have to add to efi-x86_payload.h is just a missing 'port' to Kconfig support.
Any plans for support of EFI environment access?


Any one having ideas about serial connections on the congatec boards?

Any one having knowledge about exit_boot_services() hanging?





Kim B?ndergaard
Prevas A/S
Team Manager / Systems Architect

Hedeager 3, DK-8200 Aarhus N
Phone +45 3315 9090
Mobile +45 5154 3961
kibo at prevas.dk
www.prevas.dk<https://webmail.prevas.se/owa/redir.aspx?C=iN_3zIhizUqp7BVo33RNR3R2ecTf_dEIdGI1j2JStIzDh7zuxYMXNtw7TKp3qanuPKuw20ZD0vE.&URL=http%3a%2f%2fwww.prevas.dk%2f>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-10 10:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 10:28 EFI Payload problems, Congatec x86 Kim Bøndergaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.