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@xxxxxxxxxxxxxx> 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 |