From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Stefano Manni <stefano.manni@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: firmwareload fails for cortex-m7 on imx8mp
Date: Tue, 19 Nov 2024 12:29:54 +0100 [thread overview]
Message-ID: <646e3bb7-dca5-4b1b-afb6-39ebce11815b@pengutronix.de> (raw)
In-Reply-To: <CANn9nbi2HiandQTRiAL7RgFY6f6yUU21vT6iAnZMp7gNg81bFw@mail.gmail.com>
Hello Stefano,
On 19.11.24 11:40, Stefano Manni wrote:
> 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.
Great. :)
>>
>> 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?
I have already tested that they don't break anything using the ELF
file you provided, so this is just a heads up if you run into
further problems with different firmware ELF files.
Cheers,
Ahmad
>
> Thank you.
> Best,
> Stefano
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2024-11-19 11:30 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
2024-11-19 11:29 ` Ahmad Fatoum [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=646e3bb7-dca5-4b1b-afb6-39ebce11815b@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=stefano.manni@gmail.com \
/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