From patchwork Wed Jan 22 10:31:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priyanka Singh X-Patchwork-Id: 1227160 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=iEiu3QuD; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 482hXN3wGHz9sQp for ; Wed, 22 Jan 2020 21:31:32 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 49FAC817BD; Wed, 22 Jan 2020 11:31:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="iEiu3QuD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B5339817BE; Wed, 22 Jan 2020 11:31:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FORGED_SPF_HELO, SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0615.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::615]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 43D8381749 for ; Wed, 22 Jan 2020 11:31:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=priyanka.singh@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D+jI4IYgPjYv4nj+dNcOD8SCEUKxtGqjnZa/Y3uYdbkZ6SiCNiO6Da1TMBZk7LG1Xj4bn0v/B5B2jVDQa9hP8M8pA1w6Q1npeg60cKoGSGpAu7AQpQpohOVnYdDv6HA2DBWTB40kUo8OwljPxZvLhUnhBSoVNoRaPsgok9LSYI6hqo0EcDb9N5iyjmobPPABo7yQh7nCmhrgvY76Zt8wTEcs+aHKWGtE/gcFvx6uM2T+vl9OhpozRvpGuWt+FfaxC2tdPTRSu5EsG67zalmg3vOfykMWSK6sUL90zZYaNotzJORGQtVaObktrmxS+qilCUdcbJng/wxkKsLBx+wTNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7IPOZmGdCl60K4Lwvkb55LJsLLPlmnYHShY1HR6JV0Y=; b=EQXGplzHm2sgjs6rexNeSkWoiLHX1VpzWW3T7eazyaOWk5LXYm0AiZ1RPlU0YL0MicMfQjvS7ieuLO01S+SwyW7EbtrpXq4g9PxZKko6yAnTwzjgweYopgVP0PbAGLmO7iNSmR+BOZVdy7542HOAkAL1q7ABnx7ReniZtGIpdgAJlvq7jIWjRtbSOBeiwwabARvHVPueJBx3L4IYGPpPCZVKgMA6bPVtmht2kwcvNMna1pVPXBl+gc9wU23rfS35m5IEZySaAgEHfwFLDlbMX/bauibwXblxaEjFnb1TGIw2INk+i++64DdNaxugSqUc6SFJLhhNVlGDqj9xD6wgYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7IPOZmGdCl60K4Lwvkb55LJsLLPlmnYHShY1HR6JV0Y=; b=iEiu3QuD1sFBjvbetC72M2yUu3HmKia5/SOQaqPgbifotygs8kFjzJvZ23CL5Qs3ocnbexUpNI6dcms8gRUvcMP37puJf1C8Z+lQu9k0s7oRpKrmH4BixHJWetBokJKz5vRSI7olJUpHFUSllyz5xFlaPNTz1SyKcyhe3zqddAo= Received: from AM0PR04MB4689.eurprd04.prod.outlook.com (20.176.214.77) by AM0PR04MB5586.eurprd04.prod.outlook.com (20.178.202.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.24; Wed, 22 Jan 2020 10:31:22 +0000 Received: from AM0PR04MB4689.eurprd04.prod.outlook.com ([fe80::740a:62d9:67f2:34dd]) by AM0PR04MB4689.eurprd04.prod.outlook.com ([fe80::740a:62d9:67f2:34dd%7]) with mapi id 15.20.2644.027; Wed, 22 Jan 2020 10:31:22 +0000 Received: from lsv03194.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR04CA0175.apcprd04.prod.outlook.com (2603:1096:4:14::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19 via Frontend Transport; Wed, 22 Jan 2020 10:31:21 +0000 From: Priyanka Singh To: "u-boot@lists.denx.de" Subject: [PATCH 1/1] armv8: lx2160a: Updates secure boot headers offset Thread-Topic: [PATCH 1/1] armv8: lx2160a: Updates secure boot headers offset Thread-Index: AQHV0Q8XRyJMFVIWKkGzHkbaFLECFw== Date: Wed, 22 Jan 2020 10:31:22 +0000 Message-ID: <20200122103100.31186-1-priyanka.singh@nxp.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR04CA0175.apcprd04.prod.outlook.com (2603:1096:4:14::13) To AM0PR04MB4689.eurprd04.prod.outlook.com (2603:10a6:208:bf::13) authentication-results: spf=none (sender IP is ) smtp.mailfrom=priyanka.singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [14.142.151.118] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 534dd146-a1ae-401d-3939-08d79f2639ed x-ms-traffictypediagnostic: AM0PR04MB5586:|AM0PR04MB5586: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2657; x-forefront-prvs: 029097202E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(346002)(366004)(136003)(396003)(199004)(189003)(16526019)(186003)(36756003)(54906003)(26005)(956004)(316002)(6486002)(55236004)(15650500001)(2616005)(1076003)(86362001)(52116002)(4326008)(7696005)(478600001)(6916009)(8936002)(44832011)(2906002)(5660300002)(81166006)(66446008)(81156014)(71200400001)(64756008)(8676002)(66946007)(1006002)(66556008)(66476007)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5586; H:AM0PR04MB4689.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TCLyy2+TiO2EHWgsJm3F/ASM2Cu3Ox+0Kba5zL1clO+3nGkbzSfaV0voh0KPhpZkKmhXbY8N1SozCKoYrdWB6ztYYGfAQKr5E7YXsSm/Fe3HNTL5KL12Vulgpv6QH3bprTFhxW70BHCX5+a8YKjfOnTuyN3xFX59gQRj4lHGPTEM9jk1rl2QsFXhcDLBiO3/554jonWgRx5nuB+hx3hTE4oJox8Z9Dk6s3Eai4wLW2sghViWS6UB90zlkdjj530PTNUvjipJB18g1UDLRE6BWZRN2HkD6SkZjOSgKxSJH7j98THGsddg4AjnXs64UQDNVWrdP9fmJ/nK6/khzzJiwVOaqnFBkxeyhgfN3ITvazNVcyQywDt0SQY8jrsUxaW1cICva/tyJq2p/coCRN83c4EyPyvFlUBrykd8SN7AB0b+CWfwkC9awpnX8HdknU24kvxamlAs3MWueA68r/XigHQEY7NjPvyO9smCq/yFIm3nbm9LcU0pEFz+lNGOYmrb MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 534dd146-a1ae-401d-3939-08d79f2639ed X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2020 10:31:22.6755 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Z47KUWCBrnuWi073eLt6KL9luiQ5FRihmhyQXbGgM1nv19L4K1NYXIn/wgPbeOYTVOMcxOgkLR2sQ66hJrT0Cw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5586 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Udit Agarwal , Ruchika Gupta , Arun Pathak Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean Updates the secure boot headers offsets of Kernel and other firmware images for SD and XSPI boot sources used by esbc_validate command. Signed-off-by: Priyanka Singh --- include/configs/lx2160a_common.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h index 909d047d7d..0b0075a406 100644 --- a/include/configs/lx2160a_common.h +++ b/include/configs/lx2160a_common.h @@ -207,18 +207,18 @@ int select_i2c_ch_pca9547_sec(unsigned char ch); /* Initial environment variables */ #define XSPI_MC_INIT_CMD \ "env exists secureboot && " \ - "esbc_validate 0x20700000 && " \ - "esbc_validate 0x20740000 ;" \ + "esbc_validate 0x20640000 && " \ + "esbc_validate 0x20680000 ;" \ "fsl_mc start mc 0x20a00000 0x20e00000\0" #define SD_MC_INIT_CMD \ "mmc read 0x80a00000 0x5000 0x1200;" \ "mmc read 0x80e00000 0x7000 0x800;" \ "env exists secureboot && " \ - "mmc read 0x80700000 0x3800 0x20 && " \ - "mmc read 0x80740000 0x3A00 0x20 && " \ - "esbc_validate 0x80700000 && " \ - "esbc_validate 0x80740000 ;" \ + "mmc read 0x80640000 0x3200 0x20 && " \ + "mmc read 0x80680000 0x3400 0x20 && " \ + "esbc_validate 0x80640000 && " \ + "esbc_validate 0x80680000 ;" \ "fsl_mc start mc 0x80a00000 0x80e00000\0" #define EXTRA_ENV_SETTINGS \ @@ -229,7 +229,7 @@ int select_i2c_ch_pca9547_sec(unsigned char ch); "initrd_high=0xffffffffffffffff\0" \ "fdt_addr=0x64f00000\0" \ "kernel_start=0x1000000\0" \ - "kernelheader_start=0x7C0000\0" \ + "kernelheader_start=0x600000\0" \ "scriptaddr=0x80000000\0" \ "scripthdraddr=0x80080000\0" \ "fdtheader_addr_r=0x80100000\0" \ @@ -240,7 +240,7 @@ int select_i2c_ch_pca9547_sec(unsigned char ch); "load_addr=0xa0000000\0" \ "kernel_size=0x2800000\0" \ "kernel_addr_sd=0x8000\0" \ - "kernelhdr_addr_sd=0x3E00\0" \ + "kernelhdr_addr_sd=0x3000\0" \ "kernel_size_sd=0x1d000\0" \ "kernelhdr_size_sd=0x20\0" \ "console=ttyAMA0,38400n8\0" \ @@ -268,7 +268,7 @@ int select_i2c_ch_pca9547_sec(unsigned char ch); #define XSPI_NOR_BOOTCOMMAND \ "env exists mcinitcmd && env exists secureboot "\ - "&& esbc_validate 0x20780000; " \ + "&& esbc_validate 0x206C0000; " \ "env exists mcinitcmd && " \ "fsl_mc lazyapply dpl 0x20d00000; " \ "run distro_bootcmd;run xspi_bootcmd; " \ @@ -278,8 +278,8 @@ int select_i2c_ch_pca9547_sec(unsigned char ch); "env exists mcinitcmd && mmcinfo; " \ "mmc read 0x80d00000 0x6800 0x800; " \ "env exists mcinitcmd && env exists secureboot " \ - " && mmc read 0x80780000 0x3C00 0x20 " \ - "&& esbc_validate 0x80780000;env exists mcinitcmd " \ + " && mmc read 0x806C0000 0x3600 0x20 " \ + "&& esbc_validate 0x806C0000;env exists mcinitcmd " \ "&& fsl_mc lazyapply dpl 0x80d00000;" \ "run distro_bootcmd;run sd_bootcmd;" \ "env exists secureboot && esbc_halt;"