From: Stefano Manni <stefano.manni@gmail.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: firmwareload fails for cortex-m7 on imx8mp
Date: Tue, 19 Nov 2024 11:40:51 +0100 [thread overview]
Message-ID: <CANn9nbi2HiandQTRiAL7RgFY6f6yUU21vT6iAnZMp7gNg81bFw@mail.gmail.com> (raw)
In-Reply-To: <55dbe395-08b7-4b72-b2b9-6e2ceee182b5@pengutronix.de>
Il giorno mar 19 nov 2024 alle ore 10:03 Ahmad Fatoum
<a.fatoum@pengutronix.de> ha scritto:
>
> I am surprised it works for you in Linux. To get it working with barebox:
>
> 1) run iomem and note where your malloc area begins. Set CONFIG_MALLOC_SIZE,
> so it starts after 0x90000000
>
> 2) Add the following to your DT:
>
> &{/reserved-memory} {
> rproc_reserved: rproc@80000000 {
> reg = <0 0x80000000 0 0x10000000>;
> };
> };
>
> &remoteproc_cm7 {
> memory-region = <&rproc_reserved>;
> };
>
> Do you not have an equivalent memory-region definition in your kernel DT?
Yes, I have. Adding rproc_reserved to barebox as in kernel DT it fixes
the issue.
>
> 3) I found some issues that I just Cc'd you on the fixes for. They may not be
> necessary for the simple hello-ddr.elf example though.
Do you need that I test them?
Thank you.
Best,
Stefano
next prev parent reply other threads:[~2024-11-19 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 13:43 Stefano Manni
2024-11-15 14:02 ` Ahmad Fatoum
2024-11-15 14:47 ` Stefano Manni
2024-11-15 14:49 ` Ahmad Fatoum
2024-11-15 15:01 ` Stefano Manni
2024-11-19 9:03 ` Ahmad Fatoum
2024-11-19 10:40 ` Stefano Manni [this message]
2024-11-19 11:29 ` Ahmad Fatoum
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=CANn9nbi2HiandQTRiAL7RgFY6f6yUU21vT6iAnZMp7gNg81bFw@mail.gmail.com \
--to=stefano.manni@gmail.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox