From patchwork Tue Mar 6 16:10:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Madan Srinivas X-Patchwork-Id: 882142 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="GdwPFeZY"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zwhcG6GW8z9skg for ; Wed, 7 Mar 2018 03:11:58 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 855DDC21F9C; Tue, 6 Mar 2018 16:11:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 100F3C21FC1; Tue, 6 Mar 2018 16:10:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C4010C21FD8; Tue, 6 Mar 2018 16:10:39 +0000 (UTC) Received: from fllnx209.ext.ti.com (fllnx209.ext.ti.com [198.47.19.16]) by lists.denx.de (Postfix) with ESMTPS id D17DEC21EFC for ; Tue, 6 Mar 2018 16:10:35 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w26GALYc027225; Tue, 6 Mar 2018 10:10:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520352622; bh=l4QhywQ9EC2N7PV/otFB01/YlFY8aj82dEw6ptlsEbE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GdwPFeZYZqOtg7cfa66jyx5/vPEuAcxVjC50uPD7D7de9tD4MjyyvK8tiu0xNjHRl cmZ0nNRaDOA5ec68dgg13F5XgIqkdEPgoPzpRkJW25haXFJ0IvwJ4D+aqJNydmQHT1 779DFisw/y/iJZEdjk+m3r3ZkRw7WVYaIHYi5Kss= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w26GALwj030206; Tue, 6 Mar 2018 10:10:21 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 6 Mar 2018 10:10:21 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 6 Mar 2018 10:10:21 -0600 Received: from UDA0756974.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w26GAIqr032713; Tue, 6 Mar 2018 10:10:20 -0600 From: Madan Srinivas To: U-Boot Date: Tue, 6 Mar 2018 11:10:09 -0500 Message-ID: <1520352610-36549-2-git-send-email-madans@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520352610-36549-1-git-send-email-madans@ti.com> References: <1520352610-36549-1-git-send-email-madans@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Alexandru Gagniuc , Vitaly Andrianov , Tero Kristo , Madan Srinivas Subject: [U-Boot] [U-Boot PATCH v2 1/2] configs: k2l: Updates u-boot env to install secure boot monitor X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch updates the default u-boot env for K2L HS devices to install the secure boot monitor and load the fitImage during boot. Signed-off-by: Madan Srinivas Acked-by: Andrew F. Davis Reviewed-by: Tom Rini --- Changes in v2: None include/configs/k2l_evm.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/configs/k2l_evm.h b/include/configs/k2l_evm.h index d8bcbde..87639df 100644 --- a/include/configs/k2l_evm.h +++ b/include/configs/k2l_evm.h @@ -15,9 +15,18 @@ /* Platform type */ #define CONFIG_SOC_K2L +#ifdef CONFIG_TI_SECURE_DEVICE +#define DEFAULT_SEC_BOOT_ENV \ + DEFAULT_FIT_TI_ARGS \ + "findfdt=setenv fdtfile ${name_fdt}\0" +#else +#define DEFAULT_SEC_BOOT_ENV +#endif + /* U-Boot general configuration */ #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS \ DEFAULT_FW_INITRAMFS_BOOT_ENV \ + DEFAULT_SEC_BOOT_ENV \ "boot=ubi\0" \ "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs " \ "root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,4096\0" \ From patchwork Tue Mar 6 16:10:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Madan Srinivas X-Patchwork-Id: 882141 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="IlcsR/pk"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zwhbK4B71z9shR for ; Wed, 7 Mar 2018 03:11:09 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 381D8C21FAA; Tue, 6 Mar 2018 16:10:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 343F5C21F62; Tue, 6 Mar 2018 16:10:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3E2B0C21FA8; Tue, 6 Mar 2018 16:10:41 +0000 (UTC) Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by lists.denx.de (Postfix) with ESMTPS id B9008C21FA8 for ; Tue, 6 Mar 2018 16:10:37 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w26GANNR021453; Tue, 6 Mar 2018 10:10:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520352623; bh=p2mJ+pDrXqdXywPr/ybntZGUE1XkLhicN7n4YlP9gVs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=IlcsR/pk75SVRpWYQZDH7qkBZn8GYnZCwlKoy1+3hWWUgjY10ff8m7DeMvg2HccMN j8b/LGZtHJuvqdH92/9JIs9WE0pSTkMCDEVhWu2m/83oCANAm7BsR5sQcMwLEppnJ5 nDbcSS+XUSTtZmXKu+JcMMqkxyQp4uZ3uQ0kNwe4= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w26GANGE028988; Tue, 6 Mar 2018 10:10:23 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 6 Mar 2018 10:10:23 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 6 Mar 2018 10:10:23 -0600 Received: from UDA0756974.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w26GAIqs032713; Tue, 6 Mar 2018 10:10:22 -0600 From: Madan Srinivas To: U-Boot Date: Tue, 6 Mar 2018 11:10:10 -0500 Message-ID: <1520352610-36549-3-git-send-email-madans@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520352610-36549-1-git-send-email-madans@ti.com> References: <1520352610-36549-1-git-send-email-madans@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Alexandru Gagniuc , Vitaly Andrianov , Tero Kristo , Madan Srinivas Subject: [U-Boot] [U-Boot PATCH v2 2/2] defconfig: k2l_hs_evm: Add k2l_hs_evm_defconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Adds a dedicated defconfig to build TI K2L secure devices and updates MAINTAINERS. k2l_hs_evm_defconfig is created from the k2l_evm_defconfig and removes support for SPL, as SPL is not supported on K2 HS devices. Corrects SYS_TEXT_BASE for HS devices. Also adds TI_SECURE_DEVICE and FIT_IMAGE_POST_PROCESS to include support for secure image creation and authentication Signed-off-by: Madan Srinivas Reviewed-by: Tom Rini Acked-by: Andrew F. Davis --- Changes in v2: - Updates MAINTAINERS with K2L HS MAINTAINERS | 1 + configs/k2l_hs_evm_defconfig | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 configs/k2l_hs_evm_defconfig diff --git a/MAINTAINERS b/MAINTAINERS index f42cb22..4f29b16 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -486,6 +486,7 @@ F: configs/dra7xx_hs_evm_defconfig F: configs/k2hk_hs_evm_defconfig F: configs/k2e_hs_evm_defconfig F: configs/k2g_hs_evm_defconfig +F: configs/k2l_hs_evm_defconfig TQ GROUP #M: Martin Krause diff --git a/configs/k2l_hs_evm_defconfig b/configs/k2l_hs_evm_defconfig new file mode 100644 index 0000000..cc002d3 --- /dev/null +++ b/configs/k2l_hs_evm_defconfig @@ -0,0 +1,43 @@ +CONFIG_ARM=y +CONFIG_ARCH_KEYSTONE=y +CONFIG_TI_SECURE_DEVICE=y +CONFIG_SYS_TEXT_BASE=0xC000060 +CONFIG_TI_COMMON_CMD_OPTIONS=y +CONFIG_TARGET_K2L_EVM=y +CONFIG_DEFAULT_DEVICE_TREE="keystone-k2l-evm" +CONFIG_FIT_IMAGE_POST_PROCESS=y +CONFIG_OF_BOARD_SETUP=y +CONFIG_SYS_CONSOLE_INFO_QUIET=y +CONFIG_VERSION_VARIABLE=y +CONFIG_BOARD_EARLY_INIT_F=y +CONFIG_HUSH_PARSER=y +# CONFIG_CMD_FLASH is not set +# CONFIG_CMD_GPIO is not set +# CONFIG_CMD_GPT is not set +# CONFIG_CMD_MMC is not set +CONFIG_CMD_NAND=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_MTDIDS_DEFAULT="nand0=davinci_nand.0" +CONFIG_MTDPARTS_DEFAULT="mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)" +CONFIG_CMD_UBI=y +CONFIG_ISO_PARTITION=y +CONFIG_EFI_PARTITION=y +CONFIG_OF_CONTROL=y +CONFIG_ENV_IS_IN_NAND=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_DM=y +CONFIG_TI_AEMIF=y +# CONFIG_MMC is not set +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH=y +CONFIG_SPI_FLASH_STMICRO=y +CONFIG_PHYLIB=y +CONFIG_DM_ETH=y +CONFIG_DM_SERIAL=y +CONFIG_SYS_NS16550=y +CONFIG_DM_SPI=y +CONFIG_DAVINCI_SPI=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_STORAGE=y