All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/7] efi_loader: PXE boot support
Date: Fri,  6 May 2016 21:01:00 +0200	[thread overview]
Message-ID: <1462561267-92773-1-git-send-email-agraf@suse.de> (raw)

One of the most common boot cases with EFI on arm64 is to boot from the
network using PXE boot. While TianoCore implements that just fine, we
were lacking support for it in U-Boot so far.

But no longer! Here is a patch set, enabling PXE booting of EFI payloads.
With this patch set, I was successfully able to automatically boot our
normal (usually used with TianoCore based systems) environment to boot
and run grub2 and a kernel from there with U-Boot.

Changes from v1 -> v2:

  - Only set client id to 0 on x86
  - new patch: net: Fix client identifiers for ARM
  - new patch: net: Move CONFIG_SPL_NET_VCI_STRING into Kconfig
  - new patch: net: Optionally use pxe client arch from variable
  - Error out for unknown arch
  - Also set client arch variable

Alexander Graf (7):
  efi_loader: Add network access support
  bootp: Move vendor class identifier set to function
  net: Move the VCI and client arch values to Kconfig
  net: Fix client identifiers for ARM
  net: Move CONFIG_SPL_NET_VCI_STRING into Kconfig
  net: Optionally use pxe client arch from variable
  distro: Add efi pxe boot code

 cmd/bootefi.c                             |   7 +
 configs/am335x_evm_defconfig              |   1 +
 configs/am335x_evm_nor_defconfig          |   1 +
 configs/am335x_evm_norboot_defconfig      |   1 +
 configs/am335x_evm_spiboot_defconfig      |   1 +
 configs/am335x_evm_usbspl_defconfig       |   1 +
 configs/am335x_sl50_defconfig             |   1 +
 configs/am437x_gp_evm_defconfig           |   1 +
 configs/am437x_sk_evm_defconfig           |   1 +
 configs/am43xx_evm_defconfig              |   1 +
 configs/am43xx_evm_ethboot_defconfig      |   1 +
 configs/am43xx_evm_qspiboot_defconfig     |   1 +
 configs/am43xx_evm_usbhost_boot_defconfig |   1 +
 configs/birdland_bav335a_defconfig        |   1 +
 configs/birdland_bav335b_defconfig        |   1 +
 configs/ls2080a_emu_defconfig             |   1 +
 configs/ls2080a_simu_defconfig            |   1 +
 configs/pcm051_rev1_defconfig             |   1 +
 configs/pcm051_rev3_defconfig             |   1 +
 configs/thunderx_88xx_defconfig           |   1 +
 configs/vexpress_aemv8a_dram_defconfig    |   1 +
 configs/vexpress_aemv8a_juno_defconfig    |   1 +
 configs/vexpress_aemv8a_semi_defconfig    |   1 +
 configs/vexpress_ca15_tc2_defconfig       |   1 +
 configs/vexpress_ca5x2_defconfig          |   1 +
 configs/vexpress_ca9x4_defconfig          |   1 +
 include/config_distro_bootcmd.h           |  47 ++++-
 include/config_distro_defaults.h          |  21 ---
 include/configs/ls2080a_emu.h             |   1 -
 include/configs/ls2080a_simu.h            |   1 -
 include/configs/thunderx_88xx.h           |   2 -
 include/configs/vexpress_aemv8a.h         |   2 -
 include/configs/vexpress_ca15_tc2.h       |   1 -
 include/configs/vexpress_ca5x2.h          |   1 -
 include/configs/vexpress_ca9x4.h          |   1 -
 include/efi_api.h                         | 119 ++++++++++++
 include/efi_loader.h                      |   7 +
 include/net.h                             |   2 +-
 lib/efi_loader/Makefile                   |   1 +
 lib/efi_loader/efi_net.c                  | 291 ++++++++++++++++++++++++++++++
 net/Kconfig                               |  16 ++
 net/bootp.c                               |  59 +++---
 net/net.c                                 |   4 +-
 net/tftp.c                                |   2 +
 44 files changed, 554 insertions(+), 56 deletions(-)
 create mode 100644 lib/efi_loader/efi_net.c

-- 
1.8.5.6

             reply	other threads:[~2016-05-06 19:01 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-06 19:01 Alexander Graf [this message]
2016-05-06 19:01 ` [U-Boot] [PATCH v2 1/7] efi_loader: Add network access support Alexander Graf
2016-05-10 21:25   ` [U-Boot] [PATCH v3 " Alexander Graf
2016-05-14 19:49     ` Simon Glass
2016-05-14 20:34       ` Alexander Graf
2016-05-16 13:24         ` Simon Glass
2016-05-16 18:06           ` Alexander Graf
2016-05-18 17:21             ` Simon Glass
2016-05-19 16:18               ` Alexander Graf
2016-05-19 16:34                 ` Simon Glass
2016-05-30 17:56   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-05-06 19:01 ` [U-Boot] [PATCH v2 2/7] bootp: Move vendor class identifier set to function Alexander Graf
2016-05-06 19:28   ` Tom Rini
2016-05-30 17:56   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-05-06 19:01 ` [U-Boot] [PATCH v2 3/7] net: Move the VCI and client arch values to Kconfig Alexander Graf
2016-05-06 19:28   ` Tom Rini
2016-05-30 17:56   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-05-06 19:01 ` [U-Boot] [PATCH v2 4/7] net: Fix client identifiers for ARM Alexander Graf
2016-05-06 19:28   ` Tom Rini
2016-05-30 17:56   ` [U-Boot] [U-Boot,v2,4/7] " Tom Rini
2016-05-06 19:01 ` [U-Boot] [PATCH v2 5/7] net: Move CONFIG_SPL_NET_VCI_STRING into Kconfig Alexander Graf
2016-05-06 19:28   ` Tom Rini
2016-05-30 17:57   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-05-06 19:01 ` [U-Boot] [PATCH v2 6/7] net: Optionally use pxe client arch from variable Alexander Graf
2016-05-06 19:28   ` Tom Rini
2016-05-12 13:51   ` [U-Boot] [PATCH v4 " Alexander Graf
2016-05-30 17:57     ` [U-Boot] [U-Boot, v4, " Tom Rini
2016-05-06 19:01 ` [U-Boot] [PATCH v2 7/7] distro: Add efi pxe boot code Alexander Graf
2016-05-06 19:28   ` Tom Rini
2016-05-30 17:57   ` [U-Boot] [U-Boot,v2,7/7] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462561267-92773-1-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.