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'
bdinfo
arch_number = 0x00000000
boot_params = 0x80000100
DRAM bank = 0x00000000
-> start = 0x80000000
-> size = 0x20000000
baudrate = 115200 bps
TLB addr = 0x9fff0000
relocaddr = 0x9ed60000
reloc off = 0x17560000
irq_sp = 0x9cd54ed0
sp start = 0x9cd54ec0
FB base = 0x9ee00000
Early malloc usage: 5b8 / 2000
fdt_blob = 0x9cd54ee8
printenv:
https://gist.github.com/neuberfran/0857999f0fbdc6f248f5e0b2bcae260a
pico-imx7.conf
https://gist.github.com/paoloturim/a841a7516ee290456d7583fb601305b6
imx7d-pico-pi-qca-m4.dts
https://gist.github.com/neuberfran/2401878deed2c9de7c17aa7906c4966a
local.conf
https://gist.github.com/paoloturim/d1d304225e127c0be3767981cc0ad11c
root@pico-imx7:~# modprobe imx_rpmsg_tty
root@pico-imx7:~# ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttymxc4
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttymxc5
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58 /dev/ttymxc6
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
root@pico-imx7:~# lsmod
Module Size Used by
imx_rpmsg_tty 16384 0
imx_sdma 28672 6
evbug 16384 0
ov5640_camera_mipi_v2 28672 0
mxc_mipi_csi 20480 1
mx6s_capture 24576 0
snd_soc_tfa98xx 122880 0
root@pico-imx7:~# [ 64.487169] cfg80211: failed to load regulatory.db
root@pico-imx7:~# uname -a
Linux pico-imx7 5.10.72-2.2.0-stable+gacb7450af693 #1 SMP PREEMPT Thu Jan 20 14:40:54 UTC 2022 armv7l armv7l armv7l GNU/Linux
Solved! Go to Solution.
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";
};
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";
};