From patchwork Sat Sep 2 16:31:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Massimo Pegorer X-Patchwork-Id: 1829123 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Ltomal9o; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RdL5m1gNdz1ygM for ; Sun, 3 Sep 2023 02:32:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 56BBA8675B; Sat, 2 Sep 2023 18:32:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ltomal9o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0851866CF; Sat, 2 Sep 2023 18:32:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 649938678A for ; Sat, 2 Sep 2023 18:32:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=massimo.pegorer+oss@gmail.com Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2bcc846fed0so494101fa.2 for ; Sat, 02 Sep 2023 09:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693672324; x=1694277124; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=asHoNLRODyqSYEP0cca1KRbOc7R5RMvAwep+1IQjWhk=; b=Ltomal9oOtQIhsllAfdYWBmlu+MeaXbzJsh0lhs6+CziEx19sO8i/vDPYddWBk/yD+ NhT5I8anZvbREhGTfSDD/0/CmwCCRlx3BPbfuybmYmVv6NHpcsJXFgHHY6qnQZmiB1Ay q0iWzMq1DgOrAHG7cxcUFu1ugjbbNS0J7qnfsebWeFEOAbYwynRkVjB4t++rF8mj7SxV YaS3fdKpSvsoovlK+KSO1NjmvzdvOnl+0iiYSUY6zZXudBKEkqjXY/lsGEOX0fOJIcmF TZ0D5KbLmu2qk3M1MkfHMC2TvT2SJCBhWDtXzoEdGk9xMQf0sxk1uTII7DbqSovClOUm yfGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693672324; x=1694277124; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=asHoNLRODyqSYEP0cca1KRbOc7R5RMvAwep+1IQjWhk=; b=HqKuDY5zzWG9rloPxwIKSzSHZ/oesKJzwL8VWTkRrXR5vtxs3X8uyMsJD59sHG2+t+ UV/w1HkCy9YVwb6ZnSHq5c00i+yRdZzcbmxDxhSVE6BrR/OendgxgHVK4SpbS31XavdS 7J/hHpNX2geN9212Td4S3R9P9bjx+bcGhYSz9K4T/zqcKqXF866gbYLIlA85/tNEh/sP oiyxbq+6QsGBLhqx6eMrUJg3kwP3aSgeNKCeZegAk4ulk+GmvMmKdIg2MXJ0aocXcLxG gJ/YxPOpOiAA9LNPwGnIZmw0u4V3xwhytK2RvOp1SlAbBSgY4PIWE/md45HKNBYLeBgq Trcw== X-Gm-Message-State: AOJu0Yx6ydyJ4JsofmTj52M8WZHeYGMCwcXM91NXhIeqQZFWHRlySkMZ P2uHqNfa2vqrieESdnTsLqP/difS/2435A== X-Google-Smtp-Source: AGHT+IFGYYpvnLjbzr5r65NGYDyEleroUjTOT1hFVCmAlI/YD8bgnqXhp90NjFKBYBUCwItp4h9zBA== X-Received: by 2002:a2e:86ce:0:b0:2b9:f13b:6139 with SMTP id n14-20020a2e86ce000000b002b9f13b6139mr3972275ljj.20.1693672323427; Sat, 02 Sep 2023 09:32:03 -0700 (PDT) Received: from pegmas-T15.fritz.box ([151.71.185.187]) by smtp.gmail.com with ESMTPSA id p3-20020a05600c1d8300b00401e32b25adsm8650034wms.4.2023.09.02.09.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 09:32:03 -0700 (PDT) From: Massimo Pegorer To: u-boot@lists.denx.de, Simon Glass , Philipp Tomsich , Kever Yang , Jonas Karlman , Jagan Teki , FUKAUMI Naoki Cc: Massimo Pegorer Subject: [PATCH 1/2] rockchip: Use an external TPL binary on RK3308 Date: Sat, 2 Sep 2023 18:31:59 +0200 Message-Id: <20230902163159.343716-1-massimo.pegorer+oss@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean There is no support to initialize DRAM on RK3308 SoC using U-Boot TPL and therefore an external TPL binary must be used to generate a bootable u-boot-rockchip.bin image. Imply ROCKCHIP_EXTERNAL_TPL by default for RK3308 builds. Remove useless TPL_SERIAL. Signed-off-by: Massimo Pegorer --- arch/arm/mach-rockchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index a279582f4f..e8584de258 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -159,6 +159,7 @@ config ROCKCHIP_RK3308 select SPL_ATF select SPL_ATF_NO_PLATFORM_PARAM select SPL_LOAD_FIT + imply ROCKCHIP_EXTERNAL_TPL imply ROCKCHIP_COMMON_BOARD imply SPL_ROCKCHIP_COMMON_BOARD imply SPL_CLK @@ -166,7 +167,6 @@ config ROCKCHIP_RK3308 imply SPL_SYSCON imply SPL_RAM imply SPL_SERIAL - imply TPL_SERIAL imply SPL_SEPARATE_BSS help The Rockchip RK3308 is a ARM-based Soc which embedded with quad From patchwork Sat Sep 2 16:32:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Massimo Pegorer X-Patchwork-Id: 1829124 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=AlNjQB+8; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RdL5z57vzz1ygM for ; Sun, 3 Sep 2023 02:32:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0F8F867EA; Sat, 2 Sep 2023 18:32:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AlNjQB+8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C7AA9867F7; Sat, 2 Sep 2023 18:32:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,TVD_PH_SUBJ_META1 autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 D18CB866CF for ; Sat, 2 Sep 2023 18:32:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=massimo.pegorer+oss@gmail.com Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-401bdff4cb4so998385e9.3 for ; Sat, 02 Sep 2023 09:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693672336; x=1694277136; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=W+J552DO1hGn7NUA77QrXAQY5FgjoXHKdzYIaMfJpw8=; b=AlNjQB+84IE6r2gkkVQ4qSpdNCNXYndTOfu1yLcnNqpVYLkk4sXGeUqZ8DabTgDEGX Tr6MAqI4sTP6/zU7l9XGkwqw9h1ML51+c5uZsMEvy/+W1eix4UXdFz5A1hpV9xxVKXkz 7k/Q/qwfJsWEoi3xVgmFQKmjK7n3qIQ2Bkell1ovVjzBS8HvBxsAAJNAuxHA8eNkj74m 84JJL/LthAWtxySc932fCBK1pVNT0cy2Ogd+2JZZj6LHunfED/G3savBW76OTZI04YR0 WAh7x/EKjFtqd36bL0TKGGCk0rZPpqftiztw+9Mv3R8ni392CfbYQxWP5nTLZp07OIUk +YUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693672336; x=1694277136; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W+J552DO1hGn7NUA77QrXAQY5FgjoXHKdzYIaMfJpw8=; b=kvi5UMd3tb35JtkWBoHJC3zN+p0FMVT3tF9E2jgwg67msp0+HTzgaX08TkmdifgkRp 4M1q9gAqOdClgSfLp9j7z2//gi++ZvMSu4upfhjmM1SlYiyarHeKQFgMcBHCeJDyaxZl eCY8OFanmJ+q6Xz4m+QtH8+WWBZ2ltXn+ryJWxupiuIM02t2fN8iQILbSDhuQ27QaLMk 6gPm9wxXvWAkS4eheph8gtMJs+dPTpYXzWKXYOVoyngDbZ3s2VRMjD69izEgPP03qJZq B/dP22868n58fS9Dwx8qHWePVoruMIEVtmJBzYlgQ7pJOSaRysGcJpOp0Dy36iGBSliX rGPQ== X-Gm-Message-State: AOJu0Yy/k+fYyTvB0iIDJ6QGm/y6mO4/A8KJlP+9TewIQJJhDv77iZzi hb2fOuWB9Iw8QPPPgXmqXZ4rXtPtWk9NxA== X-Google-Smtp-Source: AGHT+IHRiHSie4XryPmED6iZtG5tOHV3knjkKaPoXIh+kbrNBfToQBqeTu4Ptepol7R4BAHLhSxTOQ== X-Received: by 2002:a5d:510c:0:b0:317:18a8:5fa1 with SMTP id s12-20020a5d510c000000b0031718a85fa1mr4332759wrt.69.1693672336239; Sat, 02 Sep 2023 09:32:16 -0700 (PDT) Received: from pegmas-T15.fritz.box ([151.71.185.187]) by smtp.gmail.com with ESMTPSA id a28-20020a5d457c000000b00317f70240afsm9039552wrc.27.2023.09.02.09.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 09:32:15 -0700 (PDT) From: Massimo Pegorer To: u-boot@lists.denx.de, Simon Glass , Philipp Tomsich , Kever Yang , Jonas Karlman , Jagan Teki , FUKAUMI Naoki Cc: Massimo Pegorer Subject: [PATCH 2/2] doc: rockchip: Update and complete info about RK3308 Date: Sat, 2 Sep 2023 18:32:12 +0200 Message-Id: <20230902163212.343746-1-massimo.pegorer+oss@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean Update documentation about build steps for RK3308, using an external TPL. Add RK3308 case to rST document. Add ROCK Pi S in the list of supported boards. Signed-off-by: Massimo Pegorer --- doc/README.rockchip | 4 ++-- doc/board/rockchip/rockchip.rst | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 52b5140eca..cfbd858c3b 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -38,16 +38,16 @@ Building (or you can use another cross compiler if you prefer) 2. To build RK3308 board: + - Get the rkbin => git clone https://github.com/rockchip-linux/rkbin.git - Compile U-Boot => cd /path/to/u-boot => export BL31=/path/to/rkbin/bin/rk33/rk3308_bl31_v2.22.elf + => export ROCKCHIP_TPL=/path/to/rkbin/bin/rk33/rk3308_ddr_589MHz_uart2_m0_v1.26.bin => make roc-cc-rk3308_defconfig => make CROSS_COMPILE=aarch64-linux-gnu- all - => ./tools/mkimage -n rk3308 -T rksd -d /path/to/rkbin/bin/rk33/rk3308_ddr_589MHz_uart2_m0_v1.26.bin idbloader.img - => cat spl/u-boot-spl.bin >> idbloader.img 3. To build RK3399 board: diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index de9fe8e642..b38c3d3136 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -53,6 +53,7 @@ List of mainline supported Rockchip boards: - Google Speedy (chromebook_speedy) - Amarula Vyasa-RK3288 (vyasa-rk3288) * rk3308 + - Radxa ROCK Pi S (rock-pi-s-rk3308) - Rockchip Evb-RK3308 (evb-rk3308) - Roc-cc-RK3308 (roc-cc-rk3308) * rk3326 @@ -172,6 +173,15 @@ To build rk3288 boards: make evb-rk3288_defconfig make CROSS_COMPILE=arm-linux-gnueabihf- +To build rk3308 boards: + +.. code-block:: bash + + export BL31=../rkbin/bin/rk33/rk3308_bl31_vX.YZ.elf + export ROCKCHIP_TPL=../rkbin/bin/rk33/rk3308_ddr_589MHz_uart0_m0_vX.YZ.bin + make evb-rk3308_defconfig + make CROSS_COMPILE=aarch64-linux-gnu- + To build rk3328 boards: .. code-block:: bash