From patchwork Thu Dec 5 10:11:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 1204558 X-Patchwork-Delegate: ykai007@gmail.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.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="GYarVOmo"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47TBPF0v7Tz9sPL for ; Thu, 5 Dec 2019 21:13:01 +1100 (AEDT) Received: by phobos.denx.de (Postfix, from userid 109) id 3E3FB81682; Thu, 5 Dec 2019 11:12:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F17A801A4; Thu, 5 Dec 2019 11:12:19 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: mail.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GYarVOmo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F40C8807F8; Thu, 5 Dec 2019 11:12:15 +0100 (CET) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 014AB801A4 for ; Thu, 5 Dec 2019 11:12:12 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=kever.yang@gmail.com Received: by mail-pf1-f195.google.com with SMTP id n13so1406599pff.1 for ; Thu, 05 Dec 2019 02:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=RtQl2eJU8bSgcpPshJQyo65HLkKhcnZhQykGoTFC+nU=; b=GYarVOmoeWWMXjIqFazZnS9FtfcRgd5xK/3iPPgFwHd3cNShsZH3Pyfyum9SMqHUU2 jpzALmomMFvcaMZGi/AXX3D0kqhUo0hB9jEchrLm5NvcOd3Tbtw6sSuV2Ol3U4eBlkVX uRvQKkahkfxB7njwVRkHnaNEaLoy3CHSgzpqe7fORJptKKTqBKpjaXBuv2CqIWCXSFsI jhDrQY0mZtOmYtiGQmlooYFD845AyEbPQwHaQrcpK099Yhv5oFeYgWxmtjPb/i4Yk8SG ohFhPNh00Lmnn5CKM0t2DrjaIdJqVDHsAd4mA8TzGCh1VdDcQu46+7HjTyDg1MvYTLp8 d2qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=RtQl2eJU8bSgcpPshJQyo65HLkKhcnZhQykGoTFC+nU=; b=Xa06IKMeRUiZQ6GsbjQBdP8BuqMeTX8v/GWzxm4TyyxYScnb4G5ni1aDbS/37jdRIo sSgGb6dhLJr8znQpjtcXoA2iJgg0nMGFKErzduIzA7zTWjg+s5NG26X4Eds1aOeBHk/4 NiDTD6iowdZzpN2J9wmF1xxhNg8QPAxuSok19fk++Yqodc53jQtS5ilPHV9kS7+eATLY XgpOHopA5lJZiIbWYDhjvpDym6e0HBnwwr7Yi7to64RBmTy1JIxYVBsrRRtxF6HujS4O 6W0VKEYaD3gubGOGRhoy1lVpsk8IphUOTSnXY7T9ZQgWZnthpbsqPjRF36ZoAFaUsBJu ftKA== X-Gm-Message-State: APjAAAXYpXlCbmdLNtoIDBTGdfvkLjvvQcUrBrlgUmcFCUSL7NbQpmKb 0UhdnoKf1cm/L3+VLLD57hfaXdpD X-Google-Smtp-Source: APXvYqzUvngHkOMg1SBkAf1PZlj82ssqkR25LUChV0pG/03idA95coYI5b/yBJ8w1jkdpA0PpzkXIg== X-Received: by 2002:a63:ed56:: with SMTP id m22mr8393339pgk.261.1575540731023; Thu, 05 Dec 2019 02:12:11 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 9sm11880870pfx.177.2019.12.05.02.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 02:12:10 -0800 (PST) From: Kever Yang To: u-boot@lists.denx.de Subject: [PATCH 1/4] rockchip: fit_spl_optee: get text and optee base from build Date: Thu, 5 Dec 2019 18:11:52 +0800 Message-Id: <20191205101155.29877-1-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at mail.denx.de X-Virus-Status: Clean Instead of hardcode the base address, we can get them from the build output, eg. get the SYS_TEXT_BASE from .config and get optee base from DRAM_BASE. We can use this script for SoCs with DRAM base not from 0x60000000(rk3229 and many other 32bit Rockchip SoCs), eg. rk3288 DRAM base is 0. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/fit_spl_optee.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-rockchip/fit_spl_optee.sh b/arch/arm/mach-rockchip/fit_spl_optee.sh index 89ef04312c..4118472d9f 100755 --- a/arch/arm/mach-rockchip/fit_spl_optee.sh +++ b/arch/arm/mach-rockchip/fit_spl_optee.sh @@ -17,6 +17,12 @@ if [ ! -f $TEE ]; then fi dtname=$1 +text_base=`sed -n "/SYS_TEXT_BASE=/s/CONFIG_SYS_TEXT_BASE=//p" .config \ + |tr -d '\r'` +dram_base=`sed -n "/SYS_SDRAM_BASE=/s/CONFIG_SYS_SDRAM_BASE=//p" \ + include/autoconf.mk|tr -d '\r'` +tee_base=`echo "obase=16;$(($dram_base+0x8400000))"|bc` +tee_base='0x'$tee_base cat << __HEADER_EOF /* @@ -39,7 +45,7 @@ cat << __HEADER_EOF os = "U-Boot"; arch = "arm"; compression = "none"; - load = <0x61000000>; + load = <$text_base>; }; optee { description = "OP-TEE"; @@ -48,8 +54,8 @@ cat << __HEADER_EOF arch = "arm"; os = "tee"; compression = "none"; - load = <0x68400000>; - entry = <0x68400000>; + load = <$tee_base>; + entry = <$tee_base>; }; fdt { description = "$(basename $dtname .dtb)"; From patchwork Thu Dec 5 10:11:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 1204564 X-Patchwork-Delegate: ykai007@gmail.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.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="DuidW4NI"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 47TBpq669Cz9sP3 for ; Thu, 5 Dec 2019 21:31:47 +1100 (AEDT) Received: by phobos.denx.de (Postfix, from userid 109) id 26ED980919; Thu, 5 Dec 2019 11:31:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 701AA816D1; Thu, 5 Dec 2019 11:13:36 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: mail.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DuidW4NI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7B1F6807F8; Thu, 5 Dec 2019 11:12:17 +0100 (CET) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 93B2B80680 for ; Thu, 5 Dec 2019 11:12:14 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=kever.yang@gmail.com Received: by mail-pf1-f194.google.com with SMTP id b19so1399651pfd.3 for ; Thu, 05 Dec 2019 02:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=bBpERB84FWj/m7IuBuhg3ukSlNRw78JSt8Etl/m9n9E=; b=DuidW4NIVVgxYPmyk3N8R3fIpM1OwLGqV+0TdIfbe8phIeBPrI984l7MYav6NBaJdf GPZL4CvUAKntlPqBJkhE2dNYqdXoOSFAcqPUyNvNjmpp3161kenzRzNjgE/b8Q77gdlT m+JEjBwEJAHTQDA0iUlp7K1Reoc/00c0KwH5CLFBrE0AOQ6InjmBq5Lh7aBG8CsZLLor 7lLoW0+vViDHjzhxra3syu9Bt3SK5Q3QZjthE7e1wvspqfvA5jygXJ+UJkvqqoT/GypG 2jpW9YpzaEsB/VP50wijLK2F2qo8q3km+p+cB+ea/iSJiqZYQdFIvZRMwDtVZFv3iqA5 Dowg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=bBpERB84FWj/m7IuBuhg3ukSlNRw78JSt8Etl/m9n9E=; b=nXTSIRFbGs9mDkx2Z3+iBFO+yFqdeTE5O43UE2kYZySe0o+bEYXLKHCASMATfUjo9b DYrJxG0tXzOIIAOlW5KoFPediaSYw08rOwzdAwFjI7RwDHIdrp/+1M4QkSNlsn35JgCT H6Qm68pbtxKs8hDBsbwW5r/pvWtXhK1m9XIbY2shu1Nv3SAokABm95mwlyW0tgdJiPDA 6XF6NC6Lk0EJ3xTUpLio3EWO3jYRwcfT952nlU3+hQRJXem+GaiMq/lYV7IpLPZ32kHK kpaRWLHwYyLg4oBFhKYxnKCLL//R22P+bD8clfYOyKHZ8aJwF7HsbYBu3x8szClV3QWH hYgw== X-Gm-Message-State: APjAAAUujhVQTjY6V9FtTXENX58285tBsB6GfTw7VLqRtF1qgwLllBL1 L1cEIJWK6kdsOkJ/ORpRXmZln8nz X-Google-Smtp-Source: APXvYqxe82ixfVf3/RQBntrqA0Mgf3MdisCctJ6+Yy+elOiSwA2wehOdPQBGQoKlVNh0nZXpMeALxQ== X-Received: by 2002:a63:7d8:: with SMTP id 207mr8561573pgh.154.1575540732985; Thu, 05 Dec 2019 02:12:12 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 9sm11880870pfx.177.2019.12.05.02.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 02:12:12 -0800 (PST) From: Kever Yang To: u-boot@lists.denx.de Subject: [PATCH 2/4] rockchip: rk3288-evb: update SPL_STACK/MALLOC_LEN config with rk3399 Date: Thu, 5 Dec 2019 18:11:53 +0800 Message-Id: <20191205101155.29877-2-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191205101155.29877-1-kever.yang@rock-chips.com> References: <20191205101155.29877-1-kever.yang@rock-chips.com> 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: Lin Huang Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at mail.denx.de X-Virus-Status: Clean Update the SPL_STACK_R_MALLOC_SIMPLE_LEN which also including space for STACK and the size may not enough when loding FIT image in SPL. If the size is not enough, you can see log like this when loding FIT: U-Boot TPL 2020.01-rc3-00082-g4b19b89ca4-dirty (Dec 05 2019 - 11:52:53) Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2020.01-rc3-00082-g4b19b89ca4-dirty (Dec 05 2019 - 11:52:53 +0800) Trying to boot from MMC2 And if enable the DEBUG for everyting in SPL, the log will hang at dwmmc sending CMD16 for 'uboot' loadables binary because this step need a large stack cost(about 0x2d00). External data: dst=8400000, offset=72638, size=b3580 Image OS is Trusted Execution Environment board_fit_config_name_match: rk3288-evb Selecting config 'rk3288-evb'loadables: 'uboot' blk_find_device: if_type=6, devnum=1: dwmmc@ff0c0000.blk, 6, 0 blk_find_device: if_type=6, devnum=1: dwmmc@ff0f0000.blk, 6, 1 Sending CMD16 Signed-off-by: Kever Yang --- configs/evb-rk3288_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index 36f6d4a18e..685120cd78 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -4,7 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x01000000 CONFIG_ROCKCHIP_RK3288=y CONFIG_TARGET_EVB_RK3288=y CONFIG_ENV_OFFSET=0x3F8000 -CONFIG_SPL_STACK_R_ADDR=0x80000 +CONFIG_SPL_STACK_R_ADDR=0x04000000 CONFIG_NR_DRAM_BANKS=1 CONFIG_SPL_SIZE_LIMIT=0x4b000 CONFIG_DEBUG_UART_BASE=0xff690000 @@ -17,7 +17,7 @@ CONFIG_DEFAULT_FDT_FILE="rk3288-evb-rk808.dtb" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_STACK_R=y -CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000 +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y From patchwork Thu Dec 5 10:11:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 1204598 X-Patchwork-Delegate: ykai007@gmail.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.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="pwVhSZbT"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 47TG5c1g9Lz9sNx for ; Thu, 5 Dec 2019 23:59:47 +1100 (AEDT) Received: by phobos.denx.de (Postfix, from userid 109) id 3044B81737; Thu, 5 Dec 2019 13:58:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 75432815E1; Thu, 5 Dec 2019 11:14:21 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: mail.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pwVhSZbT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE8D1801A4; Thu, 5 Dec 2019 11:12:18 +0100 (CET) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 455E1801A4 for ; Thu, 5 Dec 2019 11:12:16 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=kever.yang@gmail.com Received: by mail-pf1-f194.google.com with SMTP id 2so1391196pfx.6 for ; Thu, 05 Dec 2019 02:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=I7uSLD0/W6FlefZiQL6kMWyzV58G2ZV4isSrN8O6Xvg=; b=pwVhSZbTWav4+NDtq6xRJKOjmg5rVvFn32NQzdT8CTgo8m4c3/cHKSPs+x2jHgHsOY BRKebtfDZXGzSy4h+1koxCo7sKnfo1/3iDYbhV1cEnOH46Z3nLbuJtrnyIPMHL7SgHGk /uapM2O3T7fLpe+OHczmSCsLTv87oJofpZTusAVe1AT9RxNf/UpLJvQuwoP8GxXQUQHQ bGRUgW4soqwsNNdNzglCezfhUF+khQrngrhzBpU81CzEyc0fdR8CR3qb1j8JjZRdEqVY 7td2Q8D1o/3Ng5kS68S0udGucENMZqZpKpVyqTu8GA8berMwz/edy7PC+UOIj6ujEkQI FRdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=I7uSLD0/W6FlefZiQL6kMWyzV58G2ZV4isSrN8O6Xvg=; b=hb+k7F6FwRgEXp+Y7tdhcx5lmEvEXD5ktmcdWWoPs3O+fnrsEOZhs5nhqYntIBFyqf p075Zi9KcmYmZTEIJrS/4P45Hm/RvrJXxkiSsiHalV0C6ZTcGnM9RDWoWWgZvas5ybIS lX16TlYM/xqYrV/0YiQJrh7/Z8Rrks2hfiWu8snd3z3sS6W/88lwrxs/YEYikVFMiTWj tl0t8V3GO22j+NN5uJ4PnWckqsaLf5RPTs0/kJZRqjosidzT5G0DDGmqhc7RXAzwv7C9 s8BjDj4278V41XIn+T5P80DG9BFWn0U/1BSAxXs/R3WjmdGXbTJdeDJIQgg7JKcOzQIK teZQ== X-Gm-Message-State: APjAAAWfA+w7f4t216KurfUrfESMSdtdxeUI27xMV6HYTma1uyjDhm8A HSl/os4lc+NoZMCdR8gq452rKpLn X-Google-Smtp-Source: APXvYqzYa/gIv+GoxLHpgmwCapY8aLyHMxyiBqL9KBrqKX9WiLv4mhcuAnmShKRd4cM/wv/b3FDIDw== X-Received: by 2002:a62:ed16:: with SMTP id u22mr8326687pfh.28.1575540734891; Thu, 05 Dec 2019 02:12:14 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 9sm11880870pfx.177.2019.12.05.02.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 02:12:14 -0800 (PST) From: Kever Yang To: u-boot@lists.denx.de Subject: [PATCH 3/4] rockchip: rk3288-evb: update CONFIG_NR_DRAM_BANKS to 2 Date: Thu, 5 Dec 2019 18:11:54 +0800 Message-Id: <20191205101155.29877-3-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191205101155.29877-1-kever.yang@rock-chips.com> References: <20191205101155.29877-1-kever.yang@rock-chips.com> 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: Lin Huang Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at mail.denx.de X-Virus-Status: Clean The OPTEE will use the ram start at 0x8400000 which make the DRAM be two banks. Signed-off-by: Kever Yang --- configs/evb-rk3288_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index 685120cd78..9391328bce 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -5,7 +5,7 @@ CONFIG_ROCKCHIP_RK3288=y CONFIG_TARGET_EVB_RK3288=y CONFIG_ENV_OFFSET=0x3F8000 CONFIG_SPL_STACK_R_ADDR=0x04000000 -CONFIG_NR_DRAM_BANKS=1 +CONFIG_NR_DRAM_BANKS=2 CONFIG_SPL_SIZE_LIMIT=0x4b000 CONFIG_DEBUG_UART_BASE=0xff690000 CONFIG_DEBUG_UART_CLOCK=24000000 From patchwork Thu Dec 5 10:11:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 1204574 X-Patchwork-Delegate: ykai007@gmail.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.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="dNMopzrS"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 47TC930FPvz9sPJ for ; Thu, 5 Dec 2019 21:47:34 +1100 (AEDT) Received: by phobos.denx.de (Postfix, from userid 109) id 82D318176B; Thu, 5 Dec 2019 11:43:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2958816EE; Thu, 5 Dec 2019 11:14:48 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: mail.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dNMopzrS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5CD47808F1; Thu, 5 Dec 2019 11:12:22 +0100 (CET) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C1EA180701 for ; Thu, 5 Dec 2019 11:12:18 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=kever.yang@gmail.com Received: by mail-pj1-f67.google.com with SMTP id ca19so1104723pjb.8 for ; Thu, 05 Dec 2019 02:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yk92ZGV7jdgG66ggFWaqUDWvFqsJ20C+cwxU3kb5cZs=; b=dNMopzrSHxYRa36AdJuCmInoJ2f2l5uOfzftjSYTgYTy4NyMefyPe/0wV6cjSCOm8i ggO9oGXbyekX/oinPCP5McKr3d3bcr3sM1Qba/Fa87WK2Lrw8cKTG2ygwPpY6jw0qg0s zyFQJXjZ312FqoxFpfDujl5quUlf9yFUorKD0B3pJjVRKfH9CF3LMQRbqCLWNFTfB1ED XDAusq0WzIcSVjEcj4FyGqJF0GazGUY3bkCOsjiJYFRqDDhdq0U+DuOp45GtcOWWjjfq GDfehewnV535aXz2Cp3EoGGQg9BhOz8ktyRJcOYhk509rNYeCfRNeYK886qAIeBQnrJk JOuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Yk92ZGV7jdgG66ggFWaqUDWvFqsJ20C+cwxU3kb5cZs=; b=mcsXi4Ye4A8kGherYdhRva9hjsnNdEN7ugnlLA0OQGCKDOXOeN8/wQb23fS4tN3zgM xcDomUj5/7ELaJ6ra4PMmHSPJT0+zJ/30bJ0W6MQqdDxmvQQ5IolLrzW4aIsKbevv9ba da2b3+e9tbru0K6cSdt9xy7AZp+UpH5nTatWnhkxwJgFlkFZlClSldc0G3hQy7mBMjX7 eUA6Jy8BnPXzBvKyZttEfI9fJF5FcR07Lar2AoqJEfThR/1xG+ODGhEncqMFinJpfa3m E1MukR4m7+ZXPTFYp4mbMqImolAkJJddaucNRs3cRWZQVWZBQuNlHs1w5eTN3mT8yfXN rFuQ== X-Gm-Message-State: APjAAAXOxBL2QXGvSM1x9oSdEg/yscTSXoudzML2Oa3r9JZQRmgQEeUz GlsV5XTI+jdld1d4wPzbe3ClTsVD X-Google-Smtp-Source: APXvYqzp5gfK8Pxl6EQ3RkctO6NyJD1KLkVHv9tpFnx6UV4RHois0tjx3Z/ruXBcEjgXCVdTiwodLg== X-Received: by 2002:a17:90b:24c:: with SMTP id fz12mr8303716pjb.51.1575540736879; Thu, 05 Dec 2019 02:12:16 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 9sm11880870pfx.177.2019.12.05.02.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 02:12:16 -0800 (PST) From: Kever Yang To: u-boot@lists.denx.de Subject: [PATCH 4/4] rockchip: rk3288-evb: update config to support OPTEE Date: Thu, 5 Dec 2019 18:11:55 +0800 Message-Id: <20191205101155.29877-4-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191205101155.29877-1-kever.yang@rock-chips.com> References: <20191205101155.29877-1-kever.yang@rock-chips.com> 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: Lin Huang Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at mail.denx.de X-Virus-Status: Clean Upstream kernel and rockchip kernel has default enable PSCI which needs OPTEE in trust word, enable OPTEE support for evb by default and SPL_FIT option to pack OPTEE with U-Boot proper. Signed-off-by: Kever Yang --- configs/evb-rk3288_defconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288_defconfig index 9391328bce..ffa90127c7 100644 --- a/configs/evb-rk3288_defconfig +++ b/configs/evb-rk3288_defconfig @@ -11,6 +11,10 @@ CONFIG_DEBUG_UART_BASE=0xff690000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART=y # CONFIG_ANDROID_BOOT_IMAGE is not set +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_SPL_FIT_GENERATOR="arch/arm/mach-rockchip/fit_spl_optee.sh" CONFIG_USE_PREBOOT=y CONFIG_SILENT_CONSOLE=y CONFIG_DEFAULT_FDT_FILE="rk3288-evb-rk808.dtb" @@ -18,6 +22,7 @@ CONFIG_DEFAULT_FDT_FILE="rk3288-evb-rk808.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_SPL_OPTEE=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y