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 B3668C43334 for ; Mon, 11 Jul 2022 18:32:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4D1FC8404A; Mon, 11 Jul 2022 20:32:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="gJ2xi9Ns"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8F76811EA; Mon, 11 Jul 2022 20:32:21 +0200 (CEST) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 85E7884003 for ; Mon, 11 Jul 2022 20:32:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id g28so7720426qts.1 for ; Mon, 11 Jul 2022 11:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=EasP/qyh0CNjKdZ3rQ2x6v8n07JofewcMVNqKf/Tb6Q=; b=gJ2xi9NsQXSdEZYr6+HWIDiSUIswmHpJMNQzaPmOFi+XsikM9cvHHfQDGNaNd3DEPT 1t2hgqz5im+vRBHjmEbjnxVH4HjR3uLAjJP6Bq8Mf0YoIn7vljoHxg/+vyAN3ZU5pBM3 Eemp+GpZaDqV5ZZFNjw78S8lpY3hZUFCUn478= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EasP/qyh0CNjKdZ3rQ2x6v8n07JofewcMVNqKf/Tb6Q=; b=lcKlcskseWxdt0gPGhmwe7vEQ0n+emvzDvmrjtIZ3SEHiwkPHjqtiDEnCAjj7MIivm uSGM+0tVr/ECjCcYZ8xEqN235/DktF63jT1ut4AWbxICvyL/6c1gMq0duZp9ebG/3xOe /h/gZFQqRpkNuMibYXuundjsvzPiUeZkJIIbrztuOOSAr2eNhYmkY2hcwbRmNpKAS2Yy 6cyPYdVUqrl9eoBt9cIo2dXqK3mFjKBjfLUJjNh2xlkp+1vAJ3t+JP0o2yGIh8QwY3nt 6H8Q6ii93F1T0KbRQaIuk9jYdVlwxYA7Yh82/XmZJhZzlvETLn3nuUH9G226xHNg5R5A qrVA== X-Gm-Message-State: AJIora+exr8vdtatm7CPONPusTQ+b/4vC4c/89eB3PG77GsMkvw3CkYb 932qSaxUgxRuahDR2/3LxnqST4rOqgEFvA== X-Google-Smtp-Source: AGRyM1tHQ9aGa5DFmylcPEGfuA+yrpHdiB21OpUj2qYLSOCnOpBmrQSzhmBr0Vrh+UNn7isWUiBH4A== X-Received: by 2002:ac8:7f82:0:b0:31e:bd7c:265d with SMTP id z2-20020ac87f82000000b0031ebd7c265dmr233504qtj.271.1657564335976; Mon, 11 Jul 2022 11:32:15 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id q15-20020ac8734f000000b0031eb9508ccbsm1214346qtp.70.2022.07.11.11.32.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 11:32:15 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 2/3] doc: environment: Expand on fdt_addr, initrd_addr and loadaddr Date: Mon, 11 Jul 2022 14:32:12 -0400 Message-Id: <20220711183213.1933852-2-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220711183213.1933852-1-trini@konsulko.com> References: <20220711183213.1933852-1-trini@konsulko.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.6 at phobos.denx.de X-Virus-Status: Clean - Explain why fdt_addr and initrd_addr should not be set to disable relocation normally. - Provide some advice on the typical loadaddr default value. Signed-off-by: Tom Rini --- Changes in v2: - Fix "iamge" typo --- doc/usage/environment.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst index a3f23d4e4e22..30b08b281879 100644 --- a/doc/usage/environment.rst +++ b/doc/usage/environment.rst @@ -204,7 +204,9 @@ fdt_high to work it must reside in writable memory, have sufficient padding on the end of it for u-boot to add the information it needs into it, and the memory - must be accessible by the kernel. + must be accessible by the kernel. This usage is strongly discouraged + however as it also stops U-Boot from ensuring the device tree starting + address is properly aligned and a misaligned tree will cause OS failures. fdtcontroladdr if set this is the address of the control flattened @@ -240,14 +242,21 @@ initrd_high memory. In this case U-Boot will NOT COPY the ramdisk at all. This may be useful to reduce the boot time on your system, but requires that this - feature is supported by your Linux kernel. + feature is supported by your Linux kernel. This usage however requires + that the user ensure that there will be no overlap with other parts of the + image such as the Linux kernel BSS. It should not be enabled by default + and only done as part of optimizing a deployment. ipaddr IP address; needed for tftpboot command loadaddr Default load address for commands like "bootp", - "rarpboot", "tftpboot", "loadb" or "diskboot" + "rarpboot", "tftpboot", "loadb" or "diskboot". Note that the optimal + default values here will vary between architectures. On 32bit ARM for + example, some offset from start of memory is used as the Linux kernel + zImage has a self decompressor and it's best if we stay out of where that + will be working. loads_echo see CONFIG_LOADS_ECHO -- 2.25.1