Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5174141ybi; Tue, 28 May 2019 08:43:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLrWCeWAP+nOLsBdSBJcq1o88yY3/QL545vZqFEHOU4J6qOLbrUCdT/JsPcrOpYxDzZxzv X-Received: by 2002:aa7:9a99:: with SMTP id w25mr50719008pfi.249.1559058220134; Tue, 28 May 2019 08:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559058220; cv=none; d=google.com; s=arc-20160816; b=lNyyUqWU6rgWY0gncGM5cEYqeUQ/gQ3lUrz/+3SV6dhlGgbryd0bavLf8gWa8N/bmy zYLB6WjzvNMSANNXpF6TqplNyd+YnSdh/4rIhWhpGaHHiIyVCypYVB4Tzco6W3w+MW1L 4fGOeN4atuib0ybEU6gTxgLCiogYbo5bgpDDUTTkayxCp1PSJus0wXlLVRmmbebE93+A jjoN7enNflh6pd8a+GCXaUOnBHdZV8mQTtwHpnmLGPkDyC9n9zvbyZjd117Fi5c0g9ZT dqX499mjb2bq0+6MJX3s8hUmzzt3kd4isDrcKPMS7rnTMYVNfNAeIrn7uNBnsCd6N9AV Fqug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=IwupYC6xi4DYfXNloebS/EzHvJ+kcOXkGGvamraya8k=; b=aClvPC7ShZbN0lNm6L1PoJREQVEIPECrZleJbTNAM0WBCp2/KtiSjM62tj8Zg+NMAE QNnY9twutHZa1l4cVpF89VE1Hel9K4ZXfTDo17OV0Qyfr+H86R4zSSRyTszKFJsy4ebv GJzKJt9lh4fPUOya3c1X3Tli4vBLtvD5IUuFgSgxJQPQavMVbruPr1BElBtu5a+oj37B YaYcqUo8rcCqUxtT6XqjhkmU3qR+Cc+7oi5pWia+7BLTD16fBFdLnIczjsi458lZgTCt d6NF2qmfpYtJ6gX3xBJQDFpfBoJcpYLuuKZM6cisuka0JhvW8hgg5aoeFU+JyK1gOJY9 iJnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=SWqib+Rj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si22827585pgw.281.2019.05.28.08.43.24; Tue, 28 May 2019 08:43:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=SWqib+Rj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727442AbfE1PKq (ORCPT + 99 others); Tue, 28 May 2019 11:10:46 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39780 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727133AbfE1PKq (ORCPT ); Tue, 28 May 2019 11:10:46 -0400 Received: by mail-wr1-f66.google.com with SMTP id x4so1534941wrt.6 for ; Tue, 28 May 2019 08:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=IwupYC6xi4DYfXNloebS/EzHvJ+kcOXkGGvamraya8k=; b=SWqib+RjvuSA0pkdMulAC7TUcNtEIOmE0PqA/3HgHnbM7FdKYrFVSizn/vxAJlnnbs mxsfyhq5ARmCHU/9WtBEow2q9/CHD+2DdrKKFlgXCHysSGrQBvooj8o+RDNJctKPc28K GkUdEpBEz4vAgwxe9suCGQPMbpzhKhRcXOIehJF14FOrjJ3MzWEX3A2dYQQoB0HZry8C RCyq5xXPiIWBsw8oUkcVbVoOcDx+qaUvEClC718UYPPDYJKBiEFdqZl+xemHqJ8ov71z xlczHPRJrFkMs7kz+c8ws0Ci+fQRYc3j53wbDlinNexwjTco+bUuJ/SscsDIk8BhD/zf jJfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=IwupYC6xi4DYfXNloebS/EzHvJ+kcOXkGGvamraya8k=; b=doLK51iFE8giR7XhiiZxw8NllBJ3A0coKNnAl+/JIC2z+ciESzNhXxztKSV/wTdJuh BocmyUHCKh1cDECpbh6FsJv/JD7o2vNylwDMjd661baQm1FZ9s77Swbv/DdInLh9RbAt MnJ5BA74Am+NOyGGoT4nYG1MRfgcRwLnkUxWnBYDpAHFDeIpVzIfGEP+UICiVq/HcW8b NKyu2KXbSOP33StdnLA9T4kLse14uDPNuAuL7nYYLF+iUA1cMqHd24nSMnjlBi3q6Dy7 2TW+rPSJWMrVRn4fxAkyo5fiGrpvfo0FUXdlOru39LTsnYUh6pikzg5EN2AD2ita0Wpi +VDg== X-Gm-Message-State: APjAAAX54Y8UIofLsY0ygziDJ/aHdKy6LMt3SzJ1XoB9SfbjptsMj6LI lWGN+A0XwBJhMCzgDRwMPIEs6t8wruo= X-Received: by 2002:adf:eb09:: with SMTP id s9mr20380369wrn.127.1559056244724; Tue, 28 May 2019 08:10:44 -0700 (PDT) Received: from localhost (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id n4sm17053526wrp.61.2019.05.28.08.10.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2019 08:10:43 -0700 (PDT) From: Loys Ollivier To: Paul Walmsley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Testing the recent RISC-V DT patchsets In-Reply-To: References: Date: Tue, 28 May 2019 17:10:42 +0200 Message-ID: <86o93mpqbx.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 28 May 2019 at 01:32, Paul Walmsley wrote: > An update for those testing RISC-V patches: here's a new branch of > riscv-pk/bbl that doesn't try to read or modify the DT data at all, which > should be useful until U-Boot settles down. This new riscv-pk version > should be easier to use than the previous version for those testing > upstream-bound kernel DT data on SiFive hardware: > > https://github.com/sifive/riscv-pk/tree/dev/paulw/configurable-machine-data-methods-v1 > > To build a BBL that doesn't touch the DT data, use the > "--with-config-method=hifive_unleashed" switch for the "configure" script. > As before, this version of riscv-pk can take a DTB that can be passed > along to the kernel. But this time the path to the DTB can be specified > on the "configure" script command line. > > Below is an example of how to configure it. (The directory structure > should be familiar to those using the v1_0 tag of freedom-u-sdk, with the > kernel source in ./linux, riscv-pk source in ./riscv-pk, and build trees > in work/{linux,riscv-pk}.) > > cd work/riscv-pk > CC=/opt/rv64gc-mmu-linux-8.2.0/bin/riscv64-unknown-linux-gnu-gcc ../../riscv-pk/configure \ > --host=riscv64-unknown-linux-gnu \ > --with-payload=../../work/linux/vmlinux-stripped \ > --with-config-method=hifive_unleashed \ > --enable-dtb \ > --with-dtb-path=../../work/linux/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb > > > Here is an Linux kernel branch with updated DT data that can be booted > with the above bootloader: > > https://github.com/sifive/riscv-linux/tree/dev/paulw/dts-v5.2-rc1-experimental > > A sample boot log follows, using a 'defconfig' build from that branch. Thanks Paul, I can confirm that it works. Something is still unclear to myself. Using FSBL + riscv-pk/bbl the linux kernel + device tree boots. Neither FSBL nor riscv-pk/bbl are modifying the DT. Using FSBL + OpenSBI + U-Boot the same kernel + device tree hangs on running /init. Would you have any pointer on what riscv-pk does that OpenSBI/U-boot doesn't ? Or maybe it is the other way around - OpenSBI/U-boot does something that extra that should not happen. Thanks, Loys