Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B609C6FD1F for ; Sun, 19 Mar 2023 09:13:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2E69855A8; Sun, 19 Mar 2023 10:13:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="TC7LkJ6k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F400B85982; Sun, 19 Mar 2023 10:13:11 +0100 (CET) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (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 9176985548 for ; Sun, 19 Mar 2023 10:13:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=mime-version:subject:references:from:in-reply-to:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=MAL2veEhnxDb0eJ/7rRHQg8PbVRvN8QGCa6EGYtChJo=; b=TC7LkJ6kSJPSTxzIVIXjw4xhmrRhU6M3mdBKMpMtO9xvKSJsBDpTU6EXr5+8OrS/0c9U qHoXBkjSKR5bp0JvRjE7av6/FuO7L2x1AcvruAETY2wbXzWSvaCDLWNcouhyhvL4i/Ttm2 uk9B+QbnWa/VIFFW51yYUuFPmoGpNTk3u/kRB3yAorCDCyBKJaxlnlJJpWF/l/KODbZIyG A2go2VJhuekq+Yds78H19iBvtLcpYWqdrjssWuv7Q5LncXy+PJ7xmrhfOhrE3gyCH+4bXd 4JtGwoU2egBhgZiNsDwSk/FTdpDspi0mMPgpwebRDBaLbvh7WFfXiJz6iulBEI7A== Received: by filterdrecv-canary-5c4c476479-p9cht with SMTP id filterdrecv-canary-5c4c476479-p9cht-1-6416D222-12 2023-03-19 09:13:06.842218 +0000 UTC m=+2202892.188543597 Received: from [192.168.1.50] (unknown) by geopod-ismtpd-8 (SG) with ESMTP id mckZN4eLRFizcz2O-Tj1gw Sun, 19 Mar 2023 09:13:06.353 +0000 (UTC) Message-ID: Date: Sun, 19 Mar 2023 09:13:06 +0000 (UTC) MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 12/12] rockchip: Convert rk35xx to use standard boot References: <20230314003755.512696-1-jonas@kwiboo.se> <20230314003755.512696-13-jonas@kwiboo.se> <7a4d1e68-ff63-0278-c02c-06cd23967cf7@rock-chips.com> Content-Language: en-US From: Jonas Karlman In-Reply-To: <7a4d1e68-ff63-0278-c02c-06cd23967cf7@rock-chips.com> X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h5FVw7UEpTmVB3gwZ?= =?us-ascii?Q?6SlePDt=2FpI1qDGzVB30mGE2DtOMdkDY69wQfCmZ?= =?us-ascii?Q?7bk8gSD78KO8RBRy6gyQJgf19FlJS+CkljQ5f9+?= =?us-ascii?Q?EIqeZg8cZz3cd5vWWeKyBtaKoS7p2Xtg6xJZHpU?= =?us-ascii?Q?A4xxPZlbVNsNU+hBMdeNB+1isMVi4IBMhvOjt2?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jagan Teki , Eugen Hristev , u-boot@lists.denx.de X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 Hi Kever, On 2023-03-19 07:16, Kever Yang wrote: > Hi Jonas, > >     I will pick other patches for fix of this series, and leave this > one after the patch set[0] from Simon get land. Thanks, I noticed that you did not include the following two patches in your pull request. Please consider them for next pull request to master to fix booting on RK3588 / Radxa ROCK 5 Model B. rockchip: Use an external TPL binary on RK3588 (prerequisite to fixes series) - https://patchwork.ozlabs.org/project/uboot/patch/20230228213822.3583989-1-jonas@kwiboo.se/ rockchip: rk3588-rock-5b: Fix sdmmc boot (06/12 of fixes series) - https://patchwork.ozlabs.org/project/uboot/patch/20230314003755.512696-7-jonas@kwiboo.se/ The generated u-boot-rockchip.bin will not contain rockchip TPL and is not bootable by default on RK3588 without the first patch. Thanks, Jonas > > > Thanks, > > - Kever > > https://patchwork.ozlabs.org/project/uboot/patch/20230302033930.2546548-7-sjg@chromium.org/>> > On 2023/3/14 08:38, Jonas Karlman wrote: >> Imply use of BOOTSTD and OF_LIBFDT_OVERLAY on RK3568 and RK3588. >> Drop the use of scripts and rely on standard boot for all operation. >> >> Signed-off-by: Jonas Karlman >> --- >> arch/arm/mach-rockchip/Kconfig | 6 ++++++ >> include/configs/rk3568_common.h | 9 +++++++-- >> include/configs/rk3588_common.h | 9 +++++++-- >> 3 files changed, 20 insertions(+), 4 deletions(-) >> >> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig >> index e5ac58ae60b5..5e8aacc2ea14 100644 >> --- a/arch/arm/mach-rockchip/Kconfig >> +++ b/arch/arm/mach-rockchip/Kconfig >> @@ -289,6 +289,9 @@ config ROCKCHIP_RK3568 >> select DM_REGULATOR_FIXED >> select DM_RESET >> imply ROCKCHIP_COMMON_BOARD >> + imply BOOTSTD_BOOTCOMMAND >> + imply BOOTSTD_DEFAULTS >> + imply OF_LIBFDT_OVERLAY >> imply ROCKCHIP_OTP >> imply MISC_INIT_R >> help >> @@ -310,6 +313,9 @@ config ROCKCHIP_RK3588 >> select SYSCON >> select BOARD_LATE_INIT >> imply ROCKCHIP_COMMON_BOARD >> + imply BOOTSTD_BOOTCOMMAND >> + imply BOOTSTD_DEFAULTS >> + imply OF_LIBFDT_OVERLAY >> imply ROCKCHIP_OTP >> imply MISC_INIT_R >> help >> diff --git a/include/configs/rk3568_common.h b/include/configs/rk3568_common.h >> index a5e1dde50888..164c123d9490 100644 >> --- a/include/configs/rk3568_common.h >> +++ b/include/configs/rk3568_common.h >> @@ -17,10 +17,15 @@ >> >> #define ENV_MEM_LAYOUT_SETTINGS \ >> "scriptaddr=0x00c00000\0" \ >> + "script_offset_f=0xffe000\0" \ >> + "script_size_f=0x2000\0" \ >> "pxefile_addr_r=0x00e00000\0" \ >> "fdt_addr_r=0x0a100000\0" \ >> + "fdtoverlay_addr_r=0x02000000\0" \ >> "kernel_addr_r=0x02080000\0" \ >> - "ramdisk_addr_r=0x0a200000\0" >> + "ramdisk_addr_r=0x0a200000\0" \ >> + "kernel_comp_addr_r=0x08000000\0" \ >> + "kernel_comp_size=0x2000000\0" >> >> #include >> #define CFG_EXTRA_ENV_SETTINGS \ >> @@ -28,6 +33,6 @@ >> "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ >> "partitions=" PARTS_DEFAULT \ >> ROCKCHIP_DEVICE_SETTINGS \ >> - BOOTENV >> + BOOTENV_BOOT_TARGETS >> >> #endif >> diff --git a/include/configs/rk3588_common.h b/include/configs/rk3588_common.h >> index abd20139aaf3..7ff0481a69fd 100644 >> --- a/include/configs/rk3588_common.h >> +++ b/include/configs/rk3588_common.h >> @@ -16,10 +16,15 @@ >> >> #define ENV_MEM_LAYOUT_SETTINGS \ >> "scriptaddr=0x00c00000\0" \ >> + "script_offset_f=0xffe000\0" \ >> + "script_size_f=0x2000\0" \ >> "pxefile_addr_r=0x00e00000\0" \ >> "fdt_addr_r=0x0a100000\0" \ >> + "fdtoverlay_addr_r=0x02000000\0" \ >> "kernel_addr_r=0x02080000\0" \ >> - "ramdisk_addr_r=0x0a200000\0" >> + "ramdisk_addr_r=0x0a200000\0" \ >> + "kernel_comp_addr_r=0x08000000\0" \ >> + "kernel_comp_size=0x2000000\0" >> >> #include >> #define CFG_EXTRA_ENV_SETTINGS \ >> @@ -27,6 +32,6 @@ >> "partitions=" PARTS_DEFAULT \ >> ENV_MEM_LAYOUT_SETTINGS \ >> ROCKCHIP_DEVICE_SETTINGS \ >> - BOOTENV >> + BOOTENV_BOOT_TARGETS >> >> #endif /* __CONFIG_RK3588_COMMON_H */