Reading file would overwrite reserved memory ** Failed to load 'hello_world.bin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading file would overwrite reserved memory ** Failed to load 'hello_world.bin

Jump to solution
2,746 Views
neuberfran
Contributor IV

Hi

I have issue in this tutorial (https://github.com/TechNexion/freertos-tn/tree/freertos_1.0.1_imx7d) in line:

fatload mmc 0:1 0x7F8000 hello_world.bin

issue is:

fatload mmc 0:1 0x7F8000 hello_world.bin
** Reading file would overwrite reserved memory **
Failed to load 'hello_world.bin'

PrintEnv Line 58

https://gist.github.com/paoloturim/bb4a3b82efd9de681431cb46d4b59bab

too three importants files in Yocto imx7d-pico/Hardknott configuration:

pico-imx7.conf

https://gist.github.com/paoloturim/a841a7516ee290456d7583fb601305b6

and imx7d-pico-pi-m4.dts (I'm not sure if this file is being used in the final DTB)

https://gist.github.com/paoloturim/6bc901a50ec2786e346bc1e3866dd970

and
local.conf

https://gist.github.com/paoloturim/d1d304225e127c0be3767981cc0ad11c

I stay trying solution based on this site: https://community.element14.com/products/devtools/single-board-computers/warp7/f/forum/30463/linux-d...

User griff0417 tells to include "imx7d-pico-pi-m4.dts". Ok. I include but baseboard_pico_pi.dtsi have issue:

https://gist.github.com/paoloturim/fc80f146fa681116fd24aad19c450287

issue is:
(I don't see anything wrong with line 52.)
| Error: /home/paoloturim/projects/tn-imx-yocto/build-fsl-imx-xwayland-pico-imx7/tmp/work-shared/pico-imx7/kernel-source/arch/arm/boot/dts/baseboard_pico_pi.dtsi:52.1-18 syntax error:

 

 

https://github.com/TechNexion/freertos-tn/issues/8

Tags (1)
0 Kudos
Reply
1 Solution
2,491 Views
neuberfran
Contributor IV
I solved with two changes in device-tree files:
 
in imx7d.dtsi
I put status = "okay";
in rpmsg: rpmsg {
 
in imx7d-pico-pi-qca-m4.dts
I put:
 
reserved-memory {
rpmsg_vrings: vrings0@0x8ff00000 {
reg = <0x8fff0000 0x10000>;
no-map;
};
};
 
&
 
&rpmsg{
memory-region = <&rpmsg_vrings>;
vdev-nums = <1>;
reg = <0x9fff0000 0x10000>;
status = "okay";
};
 

View solution in original post

0 Kudos
Reply
1 Reply
2,492 Views
neuberfran
Contributor IV
I solved with two changes in device-tree files:
 
in imx7d.dtsi
I put status = "okay";
in rpmsg: rpmsg {
 
in imx7d-pico-pi-qca-m4.dts
I put:
 
reserved-memory {
rpmsg_vrings: vrings0@0x8ff00000 {
reg = <0x8fff0000 0x10000>;
no-map;
};
};
 
&
 
&rpmsg{
memory-region = <&rpmsg_vrings>;
vdev-nums = <1>;
reg = <0x9fff0000 0x10000>;
status = "okay";
};
 
0 Kudos
Reply