From patchwork Tue Dec 3 05:40:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Wolsieffer X-Patchwork-Id: 1203678 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TbG1BAmC"; dkim-atps=neutral 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47S1hM1HF1z9sS8 for ; Tue, 3 Dec 2019 23:37:06 +1100 (AEDT) Received: by phobos.denx.de (Postfix, from userid 109) id 584BA816C7; Tue, 3 Dec 2019 13:36:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 81965817E1; Tue, 3 Dec 2019 13:16:50 +0100 (CET) Authentication-Results: mail.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: mail.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TbG1BAmC"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 0678BC21C3F; Tue, 3 Dec 2019 05:40:47 +0000 (UTC) Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by lists.denx.de (Postfix) with ESMTPS id 7F8FDC21C27 for ; Tue, 3 Dec 2019 05:40:47 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id d5so2607292qto.0 for ; Mon, 02 Dec 2019 21:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1N9F08uWIP3mfcoiInk67DCZeeAHUuQWGG75hzK2p6g=; b=TbG1BAmCt6bKUhP9ezBT7DsHcbsmXYppAXQWqKiMMcnChadB4o1x+LZx5a/PQF8Q5s tc3F3mS7iGVohAXhkbAiYOE4tUyYV4AIxGkaWKekBvtduRBxWD2kymGmlfYvIKiESroQ DBormpZr3xky+w/mWzhex9bPuNeGLbZBqdGrNxmWBENe/WY3c5Hh1Bfov8S2AfWSD2Pv Nb91RUjOzhSAS/uHEOY9zoJKBGtUFEIgNHHxJlJqNlQ5co0vZEUQ7FuCOIK6d9qTFH1U fSt0RHQaZeAr6Ypo/sX7IwIUucL1JpVhkTfMMnEQ4VLEvYs8VYZZSaJbe1aUJMafRWMv SkjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1N9F08uWIP3mfcoiInk67DCZeeAHUuQWGG75hzK2p6g=; b=fEh57j87OdXaN2NppUG2nkU6WAitnV9RTmUbphQLIt3YrqwkO/nnCIcMIoD1z+QvS/ xDwCcedlJrqxgLsrJUOcF7UBFRWHpqiuaAtgtzTVypI4kNccAsJhh+0GM0+9xqb/W0dr Ci6JQFfZGAUzf4EjGJ/oi7lreiJ8tIRcueWvl7evdzs3Mxrvj2aKqJOD1ID3dfabqE86 ravn+3TlxBxm3VX5oAl1O43SeVs+H61Q+vp2FAxJdOBHCMr4jx+wDf4px7qP0lGvDCUS 4D0aPibVe+ZC6T6n7LkSq10LNle0luKjgXOH+J5CHWH3Ys+wyNhDwS48iQHjkBNAqzNG 31ww== X-Gm-Message-State: APjAAAUSCED/LiGgocYZn6CR9CjbCjYT52a7zT4L+Vm6ydq7j4Ih4xM7 qNzziiwxI6aBAvkjTJfZXhQuZSevuPiwhQ== X-Google-Smtp-Source: APXvYqwWKCcD/xhOR9GKM8RkQJXyXBhWrK48/LtzTcJ3ETc1CTrldYlQXnCVon6qHkdMhfV55LeY7Q== X-Received: by 2002:ac8:768d:: with SMTP id g13mr3514102qtr.7.1575351646258; Mon, 02 Dec 2019 21:40:46 -0800 (PST) Received: from localhost.localdomain ([2601:18a:0:ff60::3d02]) by smtp.gmail.com with ESMTPSA id j7sm1123407qkd.46.2019.12.02.21.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 21:40:45 -0800 (PST) From: Ben Wolsieffer To: u-boot@lists.denx.de Date: Tue, 3 Dec 2019 00:40:05 -0500 Message-Id: <20191203054006.1822512-1-benwolsieffer@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 03 Dec 2019 13:09:07 +0100 Subject: [U-Boot] [PATCH] rockchip: allow loading larger kernels X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Otavio Salvador , "Matwey V. Kornilov" , Ben Wolsieffer Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at mail.denx.de X-Virus-Status: Clean Recent versions of the Linux kernel with many options enabled have grown large enough to overwrite the beginning of the initrd. For example, the kernel I use on my Rock64 and RockPro64 is 34.1 MiB, while only 31.5 MiB are available between kernel_addr_r and ramdisk_addr_r. This patch moves ramdisk_addr_r up by 32 MiB on the RK3328 and RK3399, allowing for much larger kernels. Signed-off-by: Ben Wolsieffer Reviewed-by: Kever Yang --- include/configs/rk3328_common.h | 2 +- include/configs/rk3399_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h index e51e1b0e0e..b14da3a626 100644 --- a/include/configs/rk3328_common.h +++ b/include/configs/rk3328_common.h @@ -36,7 +36,7 @@ "pxefile_addr_r=0x00600000\0" \ "fdt_addr_r=0x01f00000\0" \ "kernel_addr_r=0x02080000\0" \ - "ramdisk_addr_r=0x04000000\0" + "ramdisk_addr_r=0x06000000\0" #include #define CONFIG_EXTRA_ENV_SETTINGS \ diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 7331c6dc02..127ca1f09c 100644 --- a/include/configs/rk3399_common.h +++ b/include/configs/rk3399_common.h @@ -51,7 +51,7 @@ "pxefile_addr_r=0x00600000\0" \ "fdt_addr_r=0x01f00000\0" \ "kernel_addr_r=0x02080000\0" \ - "ramdisk_addr_r=0x04000000\0" + "ramdisk_addr_r=0x06000000\0" #ifndef ROCKCHIP_DEVICE_SETTINGS #define ROCKCHIP_DEVICE_SETTINGS