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 DA435C001DF for ; Tue, 25 Jul 2023 12:58:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 589D6862C9; Tue, 25 Jul 2023 14:58:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com 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=bootlin.com header.i=@bootlin.com header.b="UexhQpB3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B4A13862C9; Tue, 25 Jul 2023 14:58:48 +0200 (CEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 725F085DE2 for ; Tue, 25 Jul 2023 14:58:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=paul.kocialkowski@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 11F5FC000A; Tue, 25 Jul 2023 12:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1690289926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VdY0a73jcNf9nrh2pGe7iKu4rOBs//kkGXAL5xNxRUA=; b=UexhQpB31isBhTMPjox9+HzbC1s9FALiHp1i4HTgntpg2KGiOqKXQEBlrvHd7TPObK4yQm sYmMBHYESYQwzgmDqfm70NB6xeSW/tFy3gtexGzhNXxvgYTb8/uEaiYlU6bsTzTWjZREQ9 p2f7HQCe9FF0gvunFvnF5dDK25MsZ+BeSlXNPC9Ej2DjcKLqba85eh3sus7zRvlgEdW8qJ sddh0oVJXdBkfvivJ2PCTgAWyfhujDDQXMQc70tVRwgOxgfA3zgXNxVX+NXAy/9ydIdmdP youWxUxNt0ZT4iVNaoKKfN4/UrZI2dDO9ye7MfspV+q5k0d08Jpr8ABh4E0lWw== From: Paul Kocialkowski To: u-boot@lists.denx.de Cc: Kever Yang , Jonas Karlman , Quentin Schulz , Thomas Petazzoni , Paul Kocialkowski Subject: [PATCH] rockchip: px30: Define variables for compressed image support Date: Tue, 25 Jul 2023 14:58:35 +0200 Message-ID: <20230725125835.126744-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: paul.kocialkowski@bootlin.com 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 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 --- 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 \ -- 2.41.0