Message ID | 20180502103523.8012-1-songgebird@gmail.com |
---|---|
Headers | show
Return-Path: <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40bZVF2ybSz9rx7 for <incoming@patchwork.ozlabs.org>; Wed, 2 May 2018 20:37:41 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qS/kYeeM"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40bZVF0yJFzF2Sp for <incoming@patchwork.ozlabs.org>; Wed, 2 May 2018 20:37:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qS/kYeeM"; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com; envelope-from=songgebird@gmail.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qS/kYeeM"; dkim-atps=neutral Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40bZV24GR8zF2ST for <petitboot@lists.ozlabs.org>; Wed, 2 May 2018 20:37:30 +1000 (AEST) Received: by mail-pg0-x241.google.com with SMTP id i29-v6so10314908pgn.12 for <petitboot@lists.ozlabs.org>; Wed, 02 May 2018 03:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vgQKqSkHYxDll0CiFRhbBxUbg1Fhei1nJGBPix7qQKE=; b=qS/kYeeMJJr2Tqsm1nqJcrusFtx5QxKOA8dCiq64gnAgBo7u/676hZPr0kNMdnzS3s r9Hb0gcy679RasPWj04EZBu+lCdY5VF9srCpffp77oL91eVYMPnCMvP8I57h/64mGr6P PAyQ7GoDwN+nchCFdnV3+8Bl09xPpvcESnd6OrF8z3ighQZXNM0X+dbWvE+Y4t4mN0zk aeHH3IIvHvmz5GQajOtykwrmsBscKElatdh2xFRI00tILG1y0Ey5NseseMvyPNLSyTss PSNRTHaUy9lrl/UzT/jhF0R9eah6L8vcxx0KmaclmzxNwX2gAPckzuKglUhVAfLE/HSx iZgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vgQKqSkHYxDll0CiFRhbBxUbg1Fhei1nJGBPix7qQKE=; b=ZXl7M3UfA0TjPoj9C5BIxm4zvTxwQrmenwAtGwVTLyRVLQRRx0eOQOZZrRmZnbsx38 xHd9B8Euo9Rnyzefs0PSDSx3/EnGKoM4Lzb5WBtCvNwqhAUHgKhcodI/os/7EUB2DxdT KkG1gNcvGM+Lep0/ZB0qCQ/MfENaq8fiezFloLTmgBJR9kwSG69l/wqlknL57VfCefXp EO2qH5tN0Ti7htuhGm3ZIp4FV4mrExzWHHJlrnSAdrcxPVnyNQf7nHD0qVer8iHjE0ri dUL4vTMgyCyJPikvvBd9FzVZYwExAmJBgvFwilHsOiFz3rDJj16eCRurcJb1YEcTQSSk pb/g== X-Gm-Message-State: ALQs6tAnJMY9cvXhWYdbHhCbiwLDctNbqTYvgKZ5bt/Ihxf4+w8kRh2x mGkn+HUrcx5e2bo2kxFFnWZFpRUJJIg= X-Google-Smtp-Source: AB8JxZqW6Z3GHdfQ8bG+aWDgFjvRogjSHrufHSLvooFhUGUjUuoFprOskZn/VFJRtvJOqphpyvveCQ== X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr19892536plb.317.1525257447815; Wed, 02 May 2018 03:37:27 -0700 (PDT) Received: from vbox.hxtcorp.net ([180.173.110.177]) by smtp.gmail.com with ESMTPSA id u4sm20347830pfn.3.2018.05.02.03.37.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 May 2018 03:37:27 -0700 (PDT) From: Ge Song <songgebird@gmail.com> To: petitboot@lists.ozlabs.org Subject: [PATCH v3 0/2] Add support for arm64 efi-based platform Date: Wed, 2 May 2018 18:35:21 +0800 Message-Id: <20180502103523.8012-1-songgebird@gmail.com> X-Mailer: git-send-email 2.11.0 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Petitboot bootloader development <petitboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/petitboot/> List-Post: <mailto:petitboot@lists.ozlabs.org> List-Help: <mailto:petitboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=subscribe> Cc: Ge Song <ge.song@hxt-semitech.com>, sam@mendozajonas.com MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
Add support for arm64 efi-based platform
|
expand
|
From: Ge Song <ge.song@hxt-semitech.com> 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 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): lib: Support to deal with petitboot's configuration on efi-based platforms Platform: Add a platform definition which is suitable for arm64 Platform. discover/Makefile.am | 3 +- lib/Makefile.am | 2 + test/lib/Makefile.am | 3 +- lib/efi/efivar.h | 43 ++ discover/platform-arm64.c | 744 ++++++++++++++++++++ lib/efi/efivar.c | 179 +++++ test/lib/test-efivar.c | 68 ++ 7 files changed, 1040 insertions(+), 2 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