From patchwork Tue Apr 9 10:42:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Abdurachmanov X-Patchwork-Id: 1082220 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.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="CkpI7lZx"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44dmq628Hpz9sQv for ; Tue, 9 Apr 2019 22:30:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E76FFC21E26; Tue, 9 Apr 2019 12:30:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1F107C21DEC; Tue, 9 Apr 2019 12:29:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CD6B8C21D8A; Tue, 9 Apr 2019 10:43:01 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id 8FB6BC21C4A for ; Tue, 9 Apr 2019 10:43:01 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id c1so1452862wml.4 for ; Tue, 09 Apr 2019 03:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BmEbG6k3BGaB8XNrJnLnOCKhLuMySToNxXwal2bkQhE=; b=CkpI7lZxaNwRUlCquRGVdATgPT+/zkTneU7HN7hVleyiBWj2+93xsDoznHtRan2797 MVefoU7805IcrZVt8x9ui3VTavxcX8YrB/CuX9M3QUMeE3XRRIwvSc5k1uDEZ6MyijzI 2vdCF9IBGn04PKNmcial6ZxGC0L/3uvmFmmG2a9J8qICdYASpro0Y/cQrBv5qOPPxV6j WOkf464y9Kf2o7Sg7f1lZwIH6Ppj+ooETLWdqVvrTJsBIAp3aDPGjlb7FxcEBBMPpYgq FkciIkl6zi73PTGazwnZyR/5Mz7BNiuJSqlkTHpO6PAT7HJvYyaicqwhHOsXga1OsA72 Xq6Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=BmEbG6k3BGaB8XNrJnLnOCKhLuMySToNxXwal2bkQhE=; b=ZY2U2WjSbdz+SXn3CEueOkN5c6huUnr88C3jisCKI6fAMrNh2N5jPEsxVXXcFh/pRY 48nLgLh+6uycEg5kkwMA3fjzNB52bdwCsyT6uLkyJIOmzqFOKg/QlghrZ92o8l3teb1I OXhrPLy91y4X3T0XXe+JfFH1KGIGW/wmEb1n3RiJMD7r852MgcRjbCH/TEjPjUuuZVhT yRlfD4zSE69pXH9jU+jbxWWEFbDF4+JepdGiJy8S5LtEtFB394+28cHIrOyZ/kfk3OT7 OaySWc2wd7r/fNfj317p42Zpxi/IFJ9OCqsZG4EvmNv/PdWYpmpehgoEFbegzPGBO3aK K4gw== X-Gm-Message-State: APjAAAV/gjLk+UmIaFtzEvEpqD/Nu5tQn8VgoVQUSiI8Rdk9SGHlYatl XGxEOe9Ui6NsA6Uy2XEOFc0= X-Google-Smtp-Source: APXvYqyojP6xCjwQ2lcivzW4Rsx7mI3edImXW8MF912EO4V8dffuxG5Wbh93TBN62z1kI4FnQbwLKg== X-Received: by 2002:a1c:7918:: with SMTP id l24mr21964689wme.29.1554806581242; Tue, 09 Apr 2019 03:43:01 -0700 (PDT) Received: from localhost.localdomain (85-169-74-166.rev.numericable.fr. [85.169.74.166]) by smtp.gmail.com with ESMTPSA id q24sm1039077wmj.26.2019.04.09.03.43.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Apr 2019 03:43:00 -0700 (PDT) From: David Abdurachmanov To: rick@andestech.com, atish.patra@wdc.com, Anup.Patel@wdc.com, lukas.auer@aisec.fraunhofer.de, u-boot@lists.denx.de Date: Tue, 9 Apr 2019 12:42:47 +0200 Message-Id: <20190409104247.5721-3-david.abdurachmanov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409104247.5721-1-david.abdurachmanov@gmail.com> References: <20190409104247.5721-1-david.abdurachmanov@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 09 Apr 2019 12:29:35 +0000 Subject: [U-Boot] [PATCH 2/2] riscv: qemu-riscv.h: define CONFIG_PREBOOT (enables extlinux) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" - Set fdt_addr variable, which is needed for extlinux to find FDT. Otherwise booting kernel using extlinux results in missing FDT. - Also run fdt addr with FDT address so that fdt commands would work out of the box in U-Boot prompt. This is successfully used by Fedora/RISCV with 5.1-rc3+ kernel using OpenSBI -> U-Boot (S-mode) [extlinux] -> Kernel setup. Signed-off-by: David Abdurachmanov Reviewed-by: Anup Patel Reviewed-by: Lukas Auer Reviewed-by: Bin Meng --- include/configs/qemu-riscv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h index 22a5cd7365..b7110edebc 100644 --- a/include/configs/qemu-riscv.h +++ b/include/configs/qemu-riscv.h @@ -48,4 +48,8 @@ "ramdisk_addr_r=0x88300000\0" \ BOOTENV +#define CONFIG_PREBOOT \ + "setenv fdt_addr ${fdtcontroladdr};" \ + "fdt addr ${fdtcontroladdr};" + #endif /* __CONFIG_H */