From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c0b::244; helo=mail-it0-x244.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (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 249202222C25E for ; Tue, 30 Jan 2018 05:44:00 -0800 (PST) Received: by mail-it0-x244.google.com with SMTP id x128so694452ite.0 for ; Tue, 30 Jan 2018 05:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=r2CjhAXlWVoyEQIk46GFsD6oomLq1qeyELXhGUxLot8=; b=eegJ0gYqKmtDUFUJY+QiWiUfYgn5S4dB+uo2HAGr0vBFXRW/fO9vWbuvJAryAULYgg mWme+eUfSMtvyABIFmRs50HjZSW0j5TatvDAVPm1Sm1/TMKAQj7gquga1JTpjJrDSIdT 3TAh0BQ+4uO7OnPGxKZSSyXPtzFVy8h+Hh8Ws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=r2CjhAXlWVoyEQIk46GFsD6oomLq1qeyELXhGUxLot8=; b=d5aINSXwKUW/7810CAfnQec0kCCtF0deuWjRg7rLUk1gNoaFJV8Ix/4EtOkRu+WWP1 jSIW0iwprQivWND5Ctn24zRuoV1lkECFvaP3lcIihiP0M26RU/Vxopoq4w9hr+sQSqRh hphlF/k8w0Wk54tAOnptS/C6dZLRzoFwk6CtQrnHq+GwwTwAd0/RbLMPHTMoQ1688gLF Qz48tUscnBuYllYt+QSgsN4u4LOCvGs2nyWYvNShNym1vRM4dXDDzVOnW5P04hydqFT0 uhpB++8MNBdyJN4ZD9t2i41RM58bQpbQgcOBSk7OeAPuR34SiR3GXLtJ3MLM3pXbHCHp SfBA== X-Gm-Message-State: AKwxytfSFsZwb/UfZRPykNiEf2x39ZIUZo1Mf9dLSa8/MvKHzzbo6uFu aoGCB56yQqjc3ksi2Y1rePNTSk53lhKYlWJ3B11HjA== X-Google-Smtp-Source: AH8x225kWdJwYAG0nZKgfi/arepFmSzVkAxuvBOpxZOLS0kUM8o0EoT9EbnoR/y9o0vkq7eMpM3vCJBM6SgNeJXyg9c= X-Received: by 10.36.39.215 with SMTP id g206mr29681463ita.17.1517320174285; Tue, 30 Jan 2018 05:49:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.112.13 with HTTP; Tue, 30 Jan 2018 05:49:33 -0800 (PST) In-Reply-To: <20180108054513.2279-5-kalyankumar.nagabhirava@linaro.org> References: <20180108054513.2279-1-kalyankumar.nagabhirava@linaro.org> <20180108054513.2279-5-kalyankumar.nagabhirava@linaro.org> From: Ard Biesheuvel Date: Tue, 30 Jan 2018 13:49:33 +0000 Message-ID: To: kalyan-nagabhirava Cc: "edk2-devel@lists.01.org" Subject: Re: [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: , X-List-Received-Date: Tue, 30 Jan 2018 13:44:00 -0000 Content-Type: text/plain; charset="UTF-8" On 8 January 2018 at 05:45, kalyan-nagabhirava wrote: > 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(+) > > 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. Bump year > +# 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 0x0001001A > + 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; > +} > -- > 2.15.0 >