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