From patchwork Mon Jan 8 05:45:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kalyan-nagabhirava X-Patchwork-Id: 123682 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2319828qgn; Sun, 7 Jan 2018 21:46:01 -0800 (PST) X-Google-Smtp-Source: ACJfBostLuykWtESsTquSt93kvoVkFwvAdwXoGErVvuTRMNDp1DFxOgMZv1y66mRvyUl4oNQiQoP X-Received: by 10.99.115.89 with SMTP id d25mr2017198pgn.218.1515390361344; Sun, 07 Jan 2018 21:46:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515390361; cv=none; d=google.com; s=arc-20160816; b=vbe8W33SFzYaYVazQcl399ziPoDtGylHedS4sGmXU332hL2AYfDvfZ+cLwGhxhzYQG gWPhCF3vm1AztU5sBuOC516w1FN66jlHk5UUO6eUNfNLGwYtnyUJiFjJjuDZvSaMMli9 VVcel9PY7vgwyw2S1hX3NsNaUqWWrTAk9aouh2u3wCjZBA8t619uoR24ikBxfgPJGafE 2BF3UWO1t458zKHo5zIDw+Oc6+chkeILoCmj5GvtGI2m2GZ3ZCHWeP8EY1wohcwb3kEx aRAhOjxNmsVmN9zwJxchhN3qSQpaZ6A8t+BOz6yhOXznzZyDC2Pno8Ait+UFO/yEMnZm +Tvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=wDJwv6touVpB7nFntAUrx+gmUGfs7n/kMfySGMnTHl8=; b=G/qhPHz2cfWydyd9GFjIWhcIU1ALS42xkNSJCqQ9PACFZCrrmyGmHFnMxcJjAVmVLz uwC6JWLo2q83SLCR5XNLegaP7BfIcFM/4RjhUxyYDg7bmcTni7xCvku8BKwTV4gGIzwM njDEQWJ8GIIsEe53q5fO9juDeK6TRjZ0/+LeCB+ZDGrRQdBwHVcFGg6qgF7khe4y3GQ4 SN3/qY5HoWhjxxygwcIBXKOleCDP+abRPW/Zy0ZjHZ8Vcxd/K1uMtonYuQ5/EmwtXMQO yS21yLrgvd3a5HDOclVJ/F2rV82VDapmJaqwR04xkoakDPYDVnLJxZ0lHsSPDSpjZdXl kJlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bR/cSxVt; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id j16si8144577pli.331.2018.01.07.21.46.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jan 2018 21:46:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bR/cSxVt; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D4E10222CB31E; Sun, 7 Jan 2018 21:40:49 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c05::242; helo=mail-pg0-x242.google.com; envelope-from=kalyankumar.nagabhirava@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2CB7621CB87BF for ; Sun, 7 Jan 2018 21:40:48 -0800 (PST) Received: by mail-pg0-x242.google.com with SMTP id q12so4888651pgt.7 for ; Sun, 07 Jan 2018 21:45:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a5J5ojSOtawLHHQxMxWDGXsW3rOybrokF+DBYDu/J50=; b=bR/cSxVtaW841LeCl29779w/4AAzQTPMKBGscsTmODYHwnebZvpEgvj+DHuOJLphBw vRYU5EvtQ6WoaFOo5J6oeq4QxqVUvsSecRY9DkLS2IwicFViVmCzJZF+Gr2JcAnyhL5M h02c1XHHtb/U4xhycQwLCnfHLCAseq2vcfMR8= 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:in-reply-to :references; bh=a5J5ojSOtawLHHQxMxWDGXsW3rOybrokF+DBYDu/J50=; b=phaJJYgZ30RNJNot7MkoBVb2roaVkLsIFQQAEpNAIubN8oSyHILkG4kh2MmHV2CDRL OpvTR+VPh30VQC6437RVRZONeuj1GkLwu3LbjIZ/PwboYgPGZPvPOwDYOMW4L/O96D3A cSlbcYWB95qOet9QRGvYCJXwUpWBaVSgwWh+qOjDyJUXf/tVtiR2MT760GEcce8lK8jN JuErf1cDDGoXkqjJkcWLS9vR4GaEQ1kbH9izrbhcVVBfdXYlSKUDkKTmvmTVX2/5taOX yP3w0dQItoSOkUK4PYj80s/vKcqesEiIfkNe770bdaToUh/O7oLkSSTrMD9Yy1TkbbtL AUfw== X-Gm-Message-State: AKGB3mLwykuWyxBNC9Zad6mhuosI3D9HcSdVarV8zGAQTgwodVnIhxI6 dKtSoTCTTpbPRcRtKJgYHgPmu8OJdos= X-Received: by 10.98.193.132 with SMTP id i126mr9661520pfg.155.1515390356821; Sun, 07 Jan 2018 21:45:56 -0800 (PST) Received: from localhost.localdomain ([220.225.120.129]) by smtp.gmail.com with ESMTPSA id f188sm4348648pfc.22.2018.01.07.21.45.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Jan 2018 21:45:55 -0800 (PST) From: kalyan-nagabhirava To: edk2-devel@lists.01.org Date: Mon, 8 Jan 2018 11:15:13 +0530 Message-Id: <20180108054513.2279-5-kalyankumar.nagabhirava@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180108054513.2279-1-kalyankumar.nagabhirava@linaro.org> References: <20180108054513.2279-1-kalyankumar.nagabhirava@linaro.org> Subject: [edk2] [PATCH v1 4/4] edk2-platforms:comcast: RDK DRI Application X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Application will Download platform code Image (kernel + DTB+ rootfs) and writes into Flash partition. Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: kalyan-nagabhirava --- Platform/Comcast/Application/Dri/Dri.inf | 56 +++++++++++++++++++ Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.inf | 57 ++++++++++++++++++++ Platform/Comcast/Application/Dri/Dri.c | 26 +++++++++ Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.c | 32 +++++++++++ 4 files changed, 171 insertions(+) -- 2.15.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Comcast/Application/Dri/Dri.inf b/Platform/Comcast/Application/Dri/Dri.inf new file mode 100644 index 000000000000..0f603ff989dc --- /dev/null +++ b/Platform/Comcast/Application/Dri/Dri.inf @@ -0,0 +1,56 @@ +# +# Copyright (c) 2016-2017, Linaro Limited. All rights reserved. +# Copyright (c) 2016-2017, comcast . All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# + +################################################################################ +# +# Defines Section - statements that will be processed to create a Makefile. +# +################################################################################ + +[Defines] + INF_VERSION = 0x00010006 + BASE_NAME = RdkDriLoader + FILE_GUID = 081ba18a-d71e-40a7-99a9-cdb86463966d + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + ENTRY_POINT = DriEntryPoint + +[Sources] + Dri.c + +[Packages] + ArmPkg/ArmPkg.dec + ArmPlatformPkg/ArmPlatformPkg.dec + EmbeddedPkg/EmbeddedPkg.dec + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + ShellPkg/ShellPkg.dec + SecurityPkg/SecurityPkg.dec + CryptoPkg/CryptoPkg.dec + NetworkPkg/NetworkPkg.dec + Platform/Comcast/Library/RdkBootManagerLib/RdkBootManagerLib.dec + +[Guids] + gEfiCertX509Guid + gEfiCertPkcs7Guid + gEfiCustomModeEnableGuid + gEfiImageSecurityDatabaseGuid + gFdtTableGuid + +[LibraryClasses] + RdkBootManagerLib + UefiApplicationEntryPoint + +[Protocols] + gEfiBlockIoProtocolGuid + gEfiDevicePathToTextProtocolGuid diff --git a/Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.inf b/Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.inf new file mode 100644 index 000000000000..4c795584f448 --- /dev/null +++ b/Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.inf @@ -0,0 +1,57 @@ +# +# Copyright (c) 2016-2017, Linaro Limited. All rights reserved. +# Copyright (c) 2016-2017, comcast . All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# + +################################################################################ +# +# Defines Section - statements that will be processed to create a Makefile. +# +################################################################################ + +[Defines] + INF_VERSION = 0x00010006 + BASE_NAME = RdkDriSecureLoader + FILE_GUID = dd52d1d7-0de2-4552-98e0-8dbee458a502 + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + ENTRY_POINT = DriSecureBootEntryPoint + +[Sources] + DriSecureBoot.c + +[Packages] + ArmPkg/ArmPkg.dec + ArmPlatformPkg/ArmPlatformPkg.dec + EmbeddedPkg/EmbeddedPkg.dec + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + ShellPkg/ShellPkg.dec + SecurityPkg/SecurityPkg.dec + CryptoPkg/CryptoPkg.dec + NetworkPkg/NetworkPkg.dec + Platform/Comcast/Library/RdkBootManagerLib/RdkBootManagerLib.dec + +[Guids] + gEfiCertX509Guid + gEfiCertPkcs7Guid + gEfiCustomModeEnableGuid + gEfiImageSecurityDatabaseGuid + gFdtTableGuid + +[LibraryClasses] + RdkBootManagerLib + UefiApplicationEntryPoint + +[Protocols] + gEfiBlockIoProtocolGuid + gEfiDevicePathToTextProtocolGuid + gEfiDevicePathFromTextProtocolGuid diff --git a/Platform/Comcast/Application/Dri/Dri.c b/Platform/Comcast/Application/Dri/Dri.c new file mode 100644 index 000000000000..affbac08b602 --- /dev/null +++ b/Platform/Comcast/Application/Dri/Dri.c @@ -0,0 +1,26 @@ +/* +# Copyright (c) 2016-2017, Linaro Limited. All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# + */ +#include + +EFI_STATUS +EFIAPI +DriEntryPoint ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + EFI_STATUS Status; + + Status = RdkHttpBoot (); + return Status; +} diff --git a/Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.c b/Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.c new file mode 100644 index 000000000000..9a36075e85a7 --- /dev/null +++ b/Platform/Comcast/Application/DriSecureBoot/DriSecureBoot.c @@ -0,0 +1,32 @@ +/* +# Copyright (c) 2016-2017, Linaro Limited. All rights reserved. +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# + */ +#include + +EFI_STATUS +EFIAPI +DriSecureBootEntryPoint ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + EFI_STATUS Status; + + Status = RdkHttpBoot (); + + Status = RdkSecureBoot( + ImageHandle, + SystemTable->BootServices + ); + + return Status; +}