Hi there!
So i have the same Problem.
I have a verdin imx8mm 2gb wb it and a dahlia carrierboard.
software:
[upload|Ho/0PGNU9vkmePCo6jZOoeTmWyg=]
[upload|4kNM2z1kBC2+14ji64fxfE1OXJ0=]
I am new to embbeded Linux. I was able to copy the .dtb files from my system to my computer and decompiled them. The thing is, they look totally different than what i found on git. I searched for rpmsg and found that the status was set to “disabled”, so i changed it to “okay”, recompiled everything with the devicetreecompiler, which led me to this
error:
[upload|eA7GfADdlPcpi7tV9gVJeaY3bEQ=]
Now i found a blog post, about this problem here. I decided, that before i try their solution,
i could try the one here. So i downloaded the latest .dts, .dtsi files from the gitrepo.
I downloaded these files:
- imx8mm-pinfunc.h imx8mm-verdin.dtsi
- imx8mm-verdin-dahlia.dtsi
- imx8mm-verdin-dev.dtsi
- imx8mm-verdin-nonwifi.dtsi
- imx8mm-verdin-nonwifi-dahlia.dts
- imx8mm-verdin-nonwifi-dev.dts
- imx8mm-verdin-wifi.dtsi
- imx8mm-verdin-wifi-dahlia.dts
- imx8mm-verdin-wifi-dev.dts
I added this codesection in imx8mm-verdin-wifi-dev.dts:
&rpmsg{
/*
* 64K for one rpmsg instance:
* --0xb8000000~0xb800ffff: pingpong
*/
vdev-nums = <1>;
reg = <0x0 0xb8000000 0x0 0x10000>;
status = "okay";
};
and, again tried to recompile it with the devicetreecompiler. Which led to this error:
dtc -I dts -O dtb imx8mm-verdin-wifi-dev.dts > imx8mm-verdin-wifi-dev.dtb
Error: imx8mm-verdin-wifi-dev.dts:8.1-9 syntax error
FATAL ERROR: Unable to parse input tree
After that i tried it without the codesection and got the same Error. So right now, i am just
able to decompile and compile .dtb and .dts which i copied from the board to my PC.
My Questions:
1.) Why can’t i use the devicetree compiler for this?
2.) What is the proper workflow here? How did you download and compile the files? Which files over all did you download?
3.) I saw that there are .c and .h files included in the .dts files. Do i also have to download these?
4.) When i copied the .dtb files to my computer and then decompiled them it didn’t look like what is on git. Why is that?
I read the toradex article Build U-Boot and Linux Kernel from Source Code, but i didn’t get any further, i also checked the “Devicetree for dummies” mentioned a lot. But again, i am no step closer to get rpmsg to work.
I am new to this forum and to embedded Linux. Please excuse me if this is a stupid question.
Thanks a lot for taking the time to read this. And thanks even more if you decide to help me.
Have a nice day 