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 C2194C433EF for ; Tue, 24 May 2022 04:31:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 324CD8424E; Tue, 24 May 2022 06:31:43 +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=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SlzHi9hX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5D1978424E; Tue, 24 May 2022 06:31:30 +0200 (CEST) Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (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 DCFCC82132 for ; Tue, 24 May 2022 06:31:25 +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=bmeng.cn@gmail.com Received: by mail-pj1-x1035.google.com with SMTP id ev18so15759456pjb.4 for ; Mon, 23 May 2022 21:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=71HmbbU5Os/pZzycNyuebXc/yTd6ibgMWNqKwrDWXk0=; b=SlzHi9hXcSBRUkStH7PP9nJRYvFKRV8mtxJHmxrUnZkeadZRxrAuEpeI9JBiNzScG9 XoPFyjk8mw31NCE7yChdcOc/A/qFchx1nkoCWRLC1nTvv9obLY+VPDeOXtzPgFh79HVK WY1WC98AzrA9psFoaLfyOcYuCcUThW2ChZd4lT/P7egAXXfmD8StNAOQzV8EEIop+Jk1 TxjmR658E1oCRCoEBTBgWektm49POiHfn7VyukkguhyKUxTDxz/cRhWhrLWKslAA4umr ZiB3abTGyZjIrOYSXcEgfoTl4dTwDZKQjJc1U6kV1cZnzKN2l8N3A0uWBqOhuj10S+OR nEEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=71HmbbU5Os/pZzycNyuebXc/yTd6ibgMWNqKwrDWXk0=; b=J1FFM/bFqRVPNMuN7a87/OsKUg3vz14rgCL01zkLOfy3Yuv/NMtf/0/8Fhr+VmeCud 0riH7GkxHl84XsZvgSOTRx6WicY9Gat2QtZP9iXnDem/59alUL8enety5DbZjnJ8F7Ea fNcBOhzJcy6ChjZhGleaRSzcWpDGXmBlBNwZAot8j3v8Bi2zsi6gQQYlc3tz0Aq7QflL jqnevOkrM/u10LYy603WRdOQlwnjXOVK+v55SK+LHcmYsKM6ASZtP16M81NaH1ol6ftc D6mCm6oMwjizTQcGNBXvUoCZVFguX6P2HMSWyunF6VLXh1DwitOTGFA31HBJ+Mmyqc54 AaFA== X-Gm-Message-State: AOAM531czmEMmPDuZjxPRZSiHt4QrVclNFHPHx8ZCiZJqaveHVf8toah 9HkhMb1T3PEg1yFN4BQFMJo= X-Google-Smtp-Source: ABdhPJxuSDsEei5GdThOPFn5EtIZ9n24/Kjxk/svw1DnUI52h7K83o2s8BmaMbq3gNZFB6vQzhVH9w== X-Received: by 2002:a17:90a:b017:b0:1df:6f31:c273 with SMTP id x23-20020a17090ab01700b001df6f31c273mr2585924pjq.167.1653366684162; Mon, 23 May 2022 21:31:24 -0700 (PDT) Received: from ubuntu.. (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id c123-20020a621c81000000b0050dc7628202sm7938367pfc.220.2022.05.23.21.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 21:31:23 -0700 (PDT) From: Bin Meng To: Rick Chen , Leo Liang , U-Boot Mailing List Cc: Green Wan , Pragnesh Patel Subject: [PATCH 3/3] riscv: qemu: Set kernel_comp_addr_r for compressed kernel Date: Tue, 24 May 2022 12:31:14 +0800 Message-Id: <20220524043114.45885-3-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220524043114.45885-1-bmeng.cn@gmail.com> References: <20220524043114.45885-1-bmeng.cn@gmail.com> MIME-Version: 1.0 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.5 at phobos.denx.de X-Virus-Status: Clean Set kernel_comp_addr_r and kernel_comp_size for compressed kernel. Adjust existing addresses for ramdisk, so that kernel_comp_addr_r comes before the ramdisk image, since the decompressed kernel size is known to us. This way we can allow big ramdisk image to be loaded. Signed-off-by: Bin Meng --- include/configs/qemu-riscv.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h index 618c3b63d4..f462895fb5 100644 --- a/include/configs/qemu-riscv.h +++ b/include/configs/qemu-riscv.h @@ -54,10 +54,12 @@ "fdt_high=0xffffffffffffffff\0" \ "initrd_high=0xffffffffffffffff\0" \ "kernel_addr_r=0x84000000\0" \ - "fdt_addr_r=0x88000000\0" \ - "scriptaddr=0x88100000\0" \ - "pxefile_addr_r=0x88200000\0" \ - "ramdisk_addr_r=0x88300000\0" \ + "kernel_comp_addr_r=0x88000000\0" \ + "kernel_comp_size=0x4000000\0" \ + "fdt_addr_r=0x8c000000\0" \ + "scriptaddr=0x8c100000\0" \ + "pxefile_addr_r=0x8c200000\0" \ + "ramdisk_addr_r=0x8c300000\0" \ BOOTENV #endif -- 2.34.1