From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AAFFC433C1 for ; Wed, 24 Mar 2021 13:43:10 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B6F0619D3 for ; Wed, 24 Mar 2021 13:43:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B6F0619D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:49824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lP3mu-0008U1-Bc for qemu-devel@archiver.kernel.org; Wed, 24 Mar 2021 09:43:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP3lP-0007U3-Lz; Wed, 24 Mar 2021 09:41:35 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:41800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lP3lN-0002sc-U5; Wed, 24 Mar 2021 09:41:35 -0400 Received: by mail-yb1-xb31.google.com with SMTP id j2so14156868ybj.8; Wed, 24 Mar 2021 06:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5YusfBGFn66IFPIBiEdhUfrqXYGa4bwguTgCYjVoZuA=; b=DCo0r+n1qTJL6bbmDecx388JHVjeLvXkFilGl9+zZiM9WCblaPhRURvLzAqEq7/I5n jdHaSuFDkb/DzuB9NTbBXFHJX2vjE6HE7mKievPfMct6NN3oxxl0+0VoA3B9TNALJfNZ 4IqWkPLg/03Bzx526IsKrk2GQP3mKjAptVPnDIhWavN9+JGQfzgzhPTeny0xtHcZJt1L JnlzjWTz9tDEZu26gWW92NqfcjimrMjEDsVfItEE0LGiBZlEjOrFUl46g9QNKgdqGRlL My3ELwYxW4teRrwnA6YLnX5zh1V5+YGjP98uX3xc+BOjjK/6cfsov9xDWtk6XEJfaCOq nzmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5YusfBGFn66IFPIBiEdhUfrqXYGa4bwguTgCYjVoZuA=; b=j4kxfhaKXg5MlEM2xGoZIh9Rd1pcXaq2uMVjWr6kpJA7aTi4vv6TiAIWnfbabPZp/v g9Bna5ZXsR/3HgOfD5ttJlgW6y81JjkXggFYB6hVe+DqoTzFNcP4ouMyvmUzpXygyBtC tlyhFu3HywSpAZm1DsxcqfUx4/xZInMVkGZRdl2VCghW/5oNxtWfNjeh3jrVhzJjnh22 PzZKtGL0icCi7O5hwHoG9wcKEyjOs2jwhlHI0YoSyp+PmDP7DN0Qpf5Yfc/RKOX4OB5t AiLkQ54EHRmusIRJMh7RY2z6bDHFLNyKtKNE83G0BuRW6lvzon0j3XoJWeCDxDY9YZha N8FQ== X-Gm-Message-State: AOAM5325W+izKe+cN/vQnymmz9tMFO1VWT3Tl2HrcI9YR05pJdwa9yOj DaSv3yiIOnhSQUr3aN5Ey151MIxdL/C68vsF6Mo= X-Google-Smtp-Source: ABdhPJzwEoWE1uDrLQI9J5MbDPq2Z1uTqJbtm3RJAf/WQW5un0ymPGxWyCJaE1mlVtCadNfm7d/UWBwBBYAtyfS5XO4= X-Received: by 2002:a25:73d1:: with SMTP id o200mr5061400ybc.239.1616593291807; Wed, 24 Mar 2021 06:41:31 -0700 (PDT) MIME-Version: 1.0 References: <20201022053225.2596110-1-anup.patel@wdc.com> In-Reply-To: <20201022053225.2596110-1-anup.patel@wdc.com> From: Bin Meng Date: Wed, 24 Mar 2021 21:41:21 +0800 Message-ID: Subject: Re: [PATCH 1/2] hw/riscv: sifive_u: Allow passing custom DTB To: Anup Patel Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=bmeng.cn@gmail.com; helo=mail-yb1-xb31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "open list:RISC-V" , Sagar Karandikar , Anup Patel , "qemu-devel@nongnu.org Developers" , Atish Patra , Alistair Francis , Palmer Dabbelt Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi Anup, On Thu, Oct 22, 2020 at 1:34 PM Anup Patel wrote: > > Extend sifive_u machine to allow passing custom DTB using "-dtb" > command-line parameter. This will help users pass modified DTB > or Linux SiFive DTB to sifive_u machine. > > Signed-off-by: Anup Patel > --- > hw/riscv/sifive_u.c | 28 ++++++++++++++++++++-------- > 1 file changed, 20 insertions(+), 8 deletions(-) > I am using the following command to boot a Linux v5.11 kernel, but it hangs at: $ qemu-system-riscv64 -M sifive_u -smp 5 -m 8G -display none -serial stdio -kernel arch/riscv/boot/Image -dtb arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb -append "earlycon=sbi console=ttySIF0" [ 0.000000] smp: Bringing up secondary CPUs ... Removing -dtb makes the kernel continue booting. I am not sure what's missing ofusing "-dtb"? Regards, Bin