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 DA76CEB64DD for ; Wed, 26 Jul 2023 01:52:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0246A867A0; Wed, 26 Jul 2023 03:52:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9FB12867DB; Wed, 26 Jul 2023 03:52:23 +0200 (CEST) Received: from mail-m11886.qiye.163.com (mail-m11886.qiye.163.com [115.236.118.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 91997867A0 for ; Wed, 26 Jul 2023 03:52:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [172.16.12.93] (unknown [58.22.7.114]) by mail-m11886.qiye.163.com (Hmail) with ESMTPA id 87F36801F8; Wed, 26 Jul 2023 09:52:07 +0800 (CST) Message-ID: <4452cfdc-7906-e9e9-6653-5656828897b0@rock-chips.com> Date: Wed, 26 Jul 2023 09:52:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] rockchip: px30: Define variables for compressed image support Content-Language: en-US To: Paul Kocialkowski , u-boot@lists.denx.de Cc: Jonas Karlman , Quentin Schulz , Thomas Petazzoni References: <20230725125835.126744-1-paul.kocialkowski@bootlin.com> From: Kever Yang In-Reply-To: <20230725125835.126744-1-paul.kocialkowski@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQx8eQlYYTEwdS01MTR1NGh1VEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk5MSUpJVUpLS1VKQl kG X-HM-Tid: 0a898fe577ee2ebakusn87f36801f8 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PRg6Syo5Lj0MLU01Fyg5SUhR NzQKCz5VSlVKTUJLSEhNSElDSk5DVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFJTUJJNwY+ 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 On 2023/7/25 20:58, Paul Kocialkowski wrote: > The standard boot path expects the kernel_comp_addr_r and kernel_comp_size > variables for booting compressed kernel images. Define them using the previous > kernel_addr_c value (likely initially meant for this purpose) and usual size. > > This was tested on the PX30 EVB to successfully boot compressed Linux kernel > images. > > Signed-off-by: Paul Kocialkowski Reviewed-by: Kever Yang Thanks, - Kever > --- > include/configs/px30_common.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/include/configs/px30_common.h b/include/configs/px30_common.h > index 6fbd2679f099..13ed9011764b 100644 > --- a/include/configs/px30_common.h > +++ b/include/configs/px30_common.h > @@ -21,8 +21,9 @@ > "pxefile_addr_r=0x00600000\0" \ > "fdt_addr_r=0x08300000\0" \ > "kernel_addr_r=0x00280000\0" \ > - "kernel_addr_c=0x03e80000\0" \ > - "ramdisk_addr_r=0x0a200000\0" > + "ramdisk_addr_r=0x0a200000\0" \ > + "kernel_comp_addr_r=0x03e80000\0" \ > + "kernel_comp_size=0x2000000\0" > > #define CFG_EXTRA_ENV_SETTINGS \ > ENV_MEM_LAYOUT_SETTINGS \