[PATCH v4 0/2] Add support for arm64 efi-based platform

Ge Song songgebird at gmail.com
Sat May 26 13:53:57 AEST 2018


The patch provide support for platforms that adopt efi as their underlying
firmware. Since on x86/x64 platforms, efi is the standard firmware and has
well support from various devices. This extension seems unnecessary for
these platforms.

On arm64 servers, plenty of devices(especially for those bootable devices)
cannot be supported from efi firmware. In this situation, linux&petitboot
is the wonderful way to address the issue.

Since efi is the primary firmware on arm64 servers, most of the management
related works can be completed in that enviroment. Therefore some similar
functions implemented in petitboot have been removed.

Changes since V4:
 * Use a test directory other than the true system's efivarfs to complete the
   test for efivar lib.

Changes since V3:
 * Correct the prototype of main() in test-efivar.c
 * Add probe() to decide if function test in test-efivar.c continues.
 * Get magic of efivarfs from kernel header.

Changes since V2:
 * Clean code style and revise some parts according to Geoff's suggestion.
 * Correct the mistake about copyright.
 * Add a test case for manipulating efi varibles

Ge Song (2):
  Platform: Add a platform file which is suitable for arm64 Platform.
  lib: Support to deal with petitboot's configuration on efi-based
    platforms

 discover/Makefile.am      |   3 +-
 lib/Makefile.am           |   2 +
 test/lib/Makefile.am      |   3 +-
 lib/efi/efivar.h          |  46 ++
 discover/platform-arm64.c | 746 ++++++++++++++++++++
 discover/platform.c       |   1 -
 lib/efi/efivar.c          | 204 ++++++
 test/lib/test-efivar.c    | 127 ++++
 8 files changed, 1129 insertions(+), 3 deletions(-)
 create mode 100644 lib/efi/efivar.h
 create mode 100644 discover/platform-arm64.c
 create mode 100644 lib/efi/efivar.c
 create mode 100644 test/lib/test-efivar.c

-- 
2.11.0



More information about the Petitboot mailing list