From patchwork Thu May 9 10:57:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10936991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 13C77112C for ; Thu, 9 May 2019 10:58:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 003392875A for ; Thu, 9 May 2019 10:58:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5929287D1; Thu, 9 May 2019 10:58:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0F7012875A for ; Thu, 9 May 2019 10:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=f/+njcnU2GjSbznvB/c4nKucrOEOICi/BiIOxfQtE/M=; b=RVvI1qWSggfd9d /iJUfilZmo+RH6NEEe6uY6HpmpDXwpeBShOf6SsaY5qhJxSj9BgLDhSL1TmXtLXsYt7F9uL9tI9wF SFwkMDGszjpwOKcI8+9Y2vUnU7RL13YFhpSLV0lgx3ApecaThGYRAVV06QeaRPv7Txwv4laY1Yv0/ 2GOGNZNaFxA6D4x8HBfcOFMk6m0BZVu/iYlZheV3MjPpGSN+y6QKiH7SYzbk+cZkaQMrESgKauKPl YUF27RBMcFjfMNxwClsXeq/9gGST6urjKF3CjHDWRjSZuQJuuoIUtG0taZCLK/yiD6JsXR9HMAWd+ EmLi4eQIQNI1CT4DURrw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOgkc-0003U9-7a; Thu, 09 May 2019 10:58:10 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOgkZ-0003Tj-13 for linux-rockchip@lists.infradead.org; Thu, 09 May 2019 10:58:08 +0000 Received: by mail-pl1-x644.google.com with SMTP id n8so968348plp.10 for ; Thu, 09 May 2019 03:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3BaLSFaXh27KRMv4ERNn0Ij45/2FxXOLGY25U/L5i30=; b=lnewZWwM3spSh73ADuxF/eR5EOM8H/32m95tfDln+D+zKRl8HS2E6mNJw1Kc6GGo6N X8OtuK3ldlzwbgBMPTh0ntQ12Wl9y8UwWfyMxx6NmDeaRaKfqxXjsGyCjEpMEq5hrYTd tb3Sdg4Tu+xp/N0VJG9p5EUcJzAi3abrd2p5o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3BaLSFaXh27KRMv4ERNn0Ij45/2FxXOLGY25U/L5i30=; b=FSvOl0bKDNQbwetcED12CAMU7n+nmxQRZ130QhhxQhD0PyPOWAv+8IR5pxyYzCk/JB hxm3R5P60QVYgbK0nnwB+vFSJ4RI9CgMeI1nz8pUA/UZArgkxJTUTt8Jj2C25Tv4/H6X lapUOsZel7DIfth+qGCc0c1R9BeYsDBSP95sdW6nLUK3VX5yugizO/MyxX3FgacL/CsN ZByu5iZFWKKPlmTRZbvjAF0NiWPhdOOGu93Z1hDzJA32y77/GkQ5ZdxnO8Tb2EkC3Lvq jtsRtwsuT3A4pnUmBOkmQkmw7onvNwAXyGY/ZDdIb3wi0OD0K/4NvDRybuNOYFwfP0hw 1lrw== X-Gm-Message-State: APjAAAX+xrAGALOFox+XiInyKJ8nVGnz3ek8JGZGJbwT4Z4hLmrft4RT Uj0FpPdBC7sBotyKJ4+C2zVcDg== X-Google-Smtp-Source: APXvYqyvNAsw7uvQoPKTdxThb92NMQh/vC+OrO/nSr5NPxyZWOwuIwzv1sOvzcQ2zXi0i/RXFnj7Wg== X-Received: by 2002:a17:902:8483:: with SMTP id c3mr3952853plo.19.1557399485115; Thu, 09 May 2019 03:58:05 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n184sm5996234pfn.21.2019.05.09.03.58.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 03:58:04 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH 1/3] rk3399: orangepi: Enable TPL Date: Thu, 9 May 2019 16:27:44 +0530 Message-Id: <20190509105746.24830-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190509_035807_533368_0E78852C X-CRM114-Status: UNSURE ( 7.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , u-boot@lists.denx.de Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable TPL for OrangePI rk3399 board. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/orangepi-rk3399_defconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/orangepi-rk3399_defconfig b/configs/orangepi-rk3399_defconfig index 3f02c89983..90021bb695 100644 --- a/configs/orangepi-rk3399_defconfig +++ b/configs/orangepi-rk3399_defconfig @@ -5,7 +5,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_ROCKCHIP_RK3399=y -CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000 +CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_STACK_R_ADDR=0x80000 @@ -14,9 +14,8 @@ CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-orangepi.dtb" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y -CONFIG_SPL_TEXT_BASE=0xff8c2000 CONFIG_SPL_STACK_R=y -CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x4000 +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y @@ -24,6 +23,7 @@ CONFIG_CMD_SF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y +CONFIG_TPL=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-orangepi" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" @@ -56,4 +56,5 @@ CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_USE_TINY_PRINTF=y +CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y From patchwork Thu May 9 10:57:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10936993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F1E75112C for ; Thu, 9 May 2019 10:58:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0B132874A for ; Thu, 9 May 2019 10:58:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D483C287C2; Thu, 9 May 2019 10:58:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UPPERCASE_50_75 autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 77B082874A for ; Thu, 9 May 2019 10:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+odbJjoPyAtTPouWxzYeEb6b2DL8AnqxvoaqZGXyAxU=; b=WAZ7SvHIuE1sta aijzCzPl6kqHFVtZ+YucxBAoUtFLu88j2ycSexMBWRdfQXkkq0RG7D3BSfV+z+Xnf5GZUP2ZHCi3N 7R7IVEwPgMTaZmOxjTU6tHnbGNhFkzGbD65trWJPc86rz7qK4J08QwxhRxpNwwZsIlslYav2pVmk8 jvcXwhCN5Sqbt+x7K+cDuR/h0+YFF/6p4C7xGtg38SkTX7koU1A2aW8fXTmkdZrVQztGoakClt/HW GDj9Bm1XJiBBdoDxWi2Q84Tc5EukUdv9GY5X2jVle2fvAMuJbNqgQg/sEUfVz5fSv8ck0EWFe6wgd WYGxL7vn6GhHM8wgVlnw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOgkg-0003WY-Rw; Thu, 09 May 2019 10:58:14 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOgkd-0003U2-HV for linux-rockchip@lists.infradead.org; Thu, 09 May 2019 10:58:12 +0000 Received: by mail-pg1-x544.google.com with SMTP id j26so1031774pgl.5 for ; Thu, 09 May 2019 03:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PVvkMHM8eCl3XFlAoaCu1kuWFXWPc141Ac833IvB/0I=; b=U9GVA3XSl/WzWnZRdMJToV5GX+KqjRKMr2NoG7p1Afx7D2GjFX/zoXHRBXFApN347n /K/P1MsyHYQAbCj7/MLXlL9bq5jBxzoCOqAVzqi+/q17REZZkmnWKb1H9zKoH5frHRiG iG4cDlm8dGpp3bgCd0OqXDyZ2mFhCJVj8C02U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PVvkMHM8eCl3XFlAoaCu1kuWFXWPc141Ac833IvB/0I=; b=jwCRYUcrAbgeRQkn4oS0js3twnkH3Dw6GtG2m3DjVjPE8329YJnCJ9CABkWWdW55wC vXT4C5xGTBnGhWzhGMzbUAPeV8PqBatyKvzmb0E+ly14VLjzSN+TiBvELHOsWQ1/Sqnv LNBNDT2NEr2WbjMUP2tk7dXH7gP5vxD+JQixASoFKeT89d91IsvpctRdua080gS3R4Ig cKDhajmCO1zkYtNuJ05tUZ0RUxJB8ag4xNtkVOUbN+lyX5bYsdVYxH3goAIWIPvSX7kF t33JvgnEPqDZfzKcKwIGm3JkjNNtVVHcEmNGBovp/os/nLlnF6/+ggYMeX6qt1+qN/Rn PfNQ== X-Gm-Message-State: APjAAAUxz6fOoktZ7HE8KXYjyViuYXEPV4p7rJ6FReOP2F8qSwYzsI+U a3tnNm7D+7nQHc0TRE0hkr7amA== X-Google-Smtp-Source: APXvYqz+ozJnJNlh31ski015+FzG4r1na6KTlN2Zvw8uOF/RNBCqqJMO54nxVM8Ksu7mEAFRnaEB/g== X-Received: by 2002:aa7:8493:: with SMTP id u19mr3921757pfn.233.1557399488689; Thu, 09 May 2019 03:58:08 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n184sm5996234pfn.21.2019.05.09.03.58.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 03:58:08 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH 2/3] rk3399: nanopi4: Enable TPL Date: Thu, 9 May 2019 16:27:45 +0530 Message-Id: <20190509105746.24830-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190509105746.24830-1-jagan@amarulasolutions.com> References: <20190509105746.24830-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190509_035811_576410_66F2C2D4 X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , u-boot@lists.denx.de Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable TPL for NanoPC T4, NanoPI M4 boards. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/nanopc-t4-rk3399_defconfig | 7 ++++--- configs/nanopi-m4-rk3399_defconfig | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index d9f2137b4c..9b7e15d63a 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -5,7 +5,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_ROCKCHIP_RK3399=y -CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000 +CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_STACK_R_ADDR=0x80000 @@ -14,9 +14,8 @@ CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-nanopc-t4.dtb" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y -CONFIG_SPL_TEXT_BASE=0xff8c2000 CONFIG_SPL_STACK_R=y -CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x4000 +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y @@ -24,6 +23,7 @@ CONFIG_CMD_SF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y +CONFIG_TPL=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-nanopc-t4" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" @@ -56,4 +56,5 @@ CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_USE_TINY_PRINTF=y +CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y diff --git a/configs/nanopi-m4-rk3399_defconfig b/configs/nanopi-m4-rk3399_defconfig index c2832788f0..92e70dd939 100644 --- a/configs/nanopi-m4-rk3399_defconfig +++ b/configs/nanopi-m4-rk3399_defconfig @@ -5,7 +5,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x4000 CONFIG_ROCKCHIP_RK3399=y -CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000 +CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x50000 CONFIG_DEBUG_UART_BASE=0xFF1A0000 CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_SPL_STACK_R_ADDR=0x80000 @@ -14,9 +14,8 @@ CONFIG_NR_DRAM_BANKS=1 CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-nanopi-m4.dtb" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y -CONFIG_SPL_TEXT_BASE=0xff8c2000 CONFIG_SPL_STACK_R=y -CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x4000 +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y CONFIG_CMD_MMC=y @@ -24,6 +23,7 @@ CONFIG_CMD_SF=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_TIME=y +CONFIG_TPL=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-nanopi-m4" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" @@ -56,4 +56,5 @@ CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_USE_TINY_PRINTF=y +CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y From patchwork Thu May 9 10:57:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10936995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CB1AE112C for ; Thu, 9 May 2019 10:58:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA4B62874A for ; Thu, 9 May 2019 10:58:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE642287C2; Thu, 9 May 2019 10:58:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52B6B2874A for ; Thu, 9 May 2019 10:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZXR5WDn6NHQb57jY6yHa9iHOAzGFf0/125RTEzNyT6M=; b=C6efuwYjXBF/pP SDOIZ+WfSoieOygWYtZdqJB32QF6KoOC6IApcOcxMST4IKBAHv0vFfoF3jjHHgJe3C9MLqGHmkhQx iBF/wermfBNpblKsXZcDLqHjQbo3LkgOoHKU1VUoe7GRp6vREokTQ4Xb1F8jtGomlaYrmje6wBLQL zYZpzK7ycLO/TpWZHR6UkbRk4+AFzZciICbaComWsqLDbmMcEDEsfd/s56aEu4LvvuRZWyQclP0// 7xqlwY4p1YpyKJDPWxNrXTWlNRt47gQlwIhNWrxKGdOBABNiRofkfXmjoQb9MrcTffCy/CcPvkCr8 SmsnIiNXe+N3TnCtfltQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOgki-0003Xy-Db; Thu, 09 May 2019 10:58:16 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOgkf-0003Vw-Um for linux-rockchip@lists.infradead.org; Thu, 09 May 2019 10:58:15 +0000 Received: by mail-pg1-x541.google.com with SMTP id z16so1019087pgv.11 for ; Thu, 09 May 2019 03:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wo83Y9eMyqzW3i6WsLdjT9/MKteUZiUdWU8bx3448Bw=; b=TZD0q6H3ZZej03pOny9mDr6WrupOIzGA89hhPySUEt/nVHnERZUpDgMjYRtL/atWUA 4hD2X1sW+GWbz/zwplBicrRG6IjgvrNk2ySGi/dZhDv/SVgHT5naZwAaVbZ2xvCEpwFx m7mB8uqNbbcj4g/mJ6gm+bKVPPP/SiMjuImkY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wo83Y9eMyqzW3i6WsLdjT9/MKteUZiUdWU8bx3448Bw=; b=jwK1sWM1LDeIUO/O/xmowlstdhce16lrm2AwefCW8cUMCRx5t0gFEKGziZHaHTOSQZ Gqu5eygX7L6YU5EMJOKb2b6WKi23xv6Di/dGiQVR2TXcwHPBsd909QRRXzQ2XOQVThn+ TFW25fwa9InDxzp3wuwcHTLJuvpddMo6oCsVLxa5334EeCIEFlM0FTyQ8kcQb78RrfGq m8sa/g4nL9EWV2YkwG8VeyKYmZKtU1NAUbFOU3onf0B26Pwpc7vV2+gucVMyHb2rtqKO q7ujinEnolZx0DU0RLNkiqn4onUTwUMkjVX9S5ylo1jMck3gWNWUDFJFC0/yR5oyGu9j 1gUw== X-Gm-Message-State: APjAAAUg3h1ZP5gL/zuYnGN4Yg+2cM09Str5LMLvJKjVybkWSUyrKRvo B+Rp3D6/nh+6l52X+nj/m7U/bA== X-Google-Smtp-Source: APXvYqxVzArGn4M7dwBHWagg7Tfpr8ChXdsF7uLAKExutj46HvPOwCafimkVOqLE5iLfP8Fns6vBQg== X-Received: by 2002:aa7:8554:: with SMTP id y20mr4024998pfn.258.1557399493298; Thu, 09 May 2019 03:58:13 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id n184sm5996234pfn.21.2019.05.09.03.58.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 03:58:12 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Subject: [PATCH 3/3] doc: rockchip: Add doc for rk3399 TPL build/flash Date: Thu, 9 May 2019 16:27:46 +0530 Message-Id: <20190509105746.24830-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190509105746.24830-1-jagan@amarulasolutions.com> References: <20190509105746.24830-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190509_035813_985613_360A530D X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , u-boot@lists.denx.de Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add documentation for TPL build and flashing steps for rk3399 boards. Add full boot log for future reference. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- doc/README.rockchip | 51 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index ca4d6473b0..264f7e4994 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -173,7 +173,10 @@ For example: => make u-boot.itb (Get spl/u-boot-spl-dtb.bin, u-boot.itb images and some boards would get - spl/u-boot-spl.bin since it doesn't enable CONFIG_SPL_OF_CONTROL) + spl/u-boot-spl.bin since it doesn't enable CONFIG_SPL_OF_CONTROL + + If TPL enabled on the target, get tpl/u-boot-tpl-dtb.bin or tpl/u-boot-tpl.bin + if CONFIG_TPL_OF_CONTROL not enabled) Writing to the board with USB ============================= @@ -455,6 +458,52 @@ Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 => +Option 3: Package the image with TPL: + + - Prefix rk3399 header to TPL image + + => cd /path/to/u-boot + => ./tools/mkimage -n rk3399 -T rksd -d tpl/u-boot-tpl-dtb.bin out + + - Concatinate tpl with spl + + => cd /path/to/u-boot + => cat ./spl/u-boot-spl-dtb.bin >> out + + - Write tpl+spl at 64th sector + + => sudo dd if=out of=/dev/sdc seek=64 + + - Write U-Boot proper at 16384 sector + + => sudo dd if=u-boot.itb of=/dev/sdc seek=16384 + => sync + +Put this SD (or micro-SD) card into your board and reset it. You should see +something like: + +U-Boot TPL board init +Trying to boot from BOOTROM +Returning to boot ROM... + +U-Boot SPL board init +Trying to boot from MMC1 + + +U-Boot 2019.07-rc1-00241-g5b3244767a (May 08 2019 - 10:51:06 +0530) + +Model: Orange Pi RK3399 Board +DRAM: 2 GiB +MMC: dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0 +Loading Environment from MMC... OK +In: serial@ff1a0000 +Out: serial@ff1a0000 +Err: serial@ff1a0000 +Model: Orange Pi RK3399 Board +Net: eth0: ethernet@fe300000 +Hit any key to stop autoboot: 0 +=> + Using fastboot on rk3288 ======================== - Write GPT partition layout to mmc device which fastboot want to use it to