All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anup Patel <anup@brainfault.org>
To: Andreas Schwab <schwab@suse.de>
Cc: Atish Patra <Atish.Patra@wdc.com>,
	"linux-riscv@lists.infradead.org"
	<linux-riscv@lists.infradead.org>
Subject: Re: 5.3-rc2: Found incompatible CPU
Date: Wed, 31 Jul 2019 13:42:37 +0530	[thread overview]
Message-ID: <CAAhSdy0NdStsJ+Lgo22VT=gzdiOnv40y0abxc-Cvt4cewMOpaQ@mail.gmail.com> (raw)
In-Reply-To: <mvmsgqm8xlc.fsf@suse.de>

On Wed, Jul 31, 2019 at 1:06 PM Andreas Schwab <schwab@suse.de> wrote:
>
> On Jul 31 2019, Atish Patra <Atish.Patra@wdc.com> wrote:
>
> > On 7/30/19, 5:51 AM, "linux-riscv on behalf of Andreas Schwab" <linux-riscv-bounces@lists.infradead.org on behalf of schwab@suse.de> wrote:
> >
> >     Trying to boot 5.3-rc2 on the HiFive I'm getting "Found incompatible
> >     CPU" for each cpu, which means that of_device_is_compatible(node,
> >     "riscv") is failing.  Any idea?
> >
> > Probably wrong DT ? If you are using OpenSBI, you need to point to the correct DT built by kernel by using FW_PAYLOAD_FDT_PATH.
>
> I don't see any difference between the 5.2 and 5.3 DTs.

Sorry for delay in response...

I had seen this issue when booting 5.3-rc1 from U-Boot.

Eventually, I figured that Linux-5.3-rc1 is placing some data structures at
end of RAM which is corrupting DTB placed at end of RAM.

A simple fix for this is to explicitly TFTP DTB to ${fdt_addr_r} on U-Boot
and pass ${fdt_addr_r} as DTB address.

You can also copying DTB from ${fdtcontroladdr} to ${fdt_addr_r} and
pass ${fdt_addr_t} as DTB address.

I have already send documentation update patch to U-Boot:
https://www.mail-archive.com/u-boot@lists.denx.de/msg335882.html

Regards,
Anup

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

      reply	other threads:[~2019-07-31  8:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 12:51 5.3-rc2: Found incompatible CPU Andreas Schwab
2019-07-30 22:09 ` Paul Walmsley
2019-07-31  7:33   ` Andreas Schwab
2019-07-31  6:48 ` Atish Patra
2019-07-31  7:36   ` Andreas Schwab
2019-07-31  8:12     ` Anup Patel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAhSdy0NdStsJ+Lgo22VT=gzdiOnv40y0abxc-Cvt4cewMOpaQ@mail.gmail.com' \
    --to=anup@brainfault.org \
    --cc=Atish.Patra@wdc.com \
    --cc=linux-riscv@lists.infradead.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.