Forums › Devices › OSD335x C-SiP › Device tree compile problem
Tagged: device tree
I have downloaded the files from https://github.com/octavosystems/OSD335x-Device-Tree/tree/master and copied to /opt/source/dtb-4.19-ti/src/arm with no modifications. Then, I run make and get the following output:
debian@beaglebone:/opt/source/dtb-4.19-ti$ make
DTC src/arm/osd3358-bsm-refdesign.dtb
Error: src/arm/am33xx-clocks.dtsi:337.46-47 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [Makefile:200: src/arm/osd3358-bsm-refdesign.dtb] Error 1
make: *** [Makefile:148: all_arm] Error 2
I have examined am33xx-clocks.dtsi at line 337 and do not see a problem. I have also searched on the web regarding this and found nothing.
I noticed that the src/arm directory in my image has an am335x-osd3358-sm-red.dts that seems to be compatible with the CSIP. My boards aren’t in yet so I can’t confirm it will actually work, but my plan is to modify that file to create my custom device tree for my custom board.
For what it’s worth I was able to get their dts to compile for 4.19-ti by changing the following:
1) Add #include <dt-bindings/pinctrl/am33xx.h> to the top of osd335x-sm.dtsi
2) At the bottom of osd335x-sm.dtsi change /include/ “am33xx-clocks.dtsi” to #include “am33xx-clocks.dtsi”
3) In bsm-refdesign.dts in the &rtc section change clkdiv32k_ick to clkdiv32k_ck
I ended up getting a lot of warnings and since my boards aren’t ready for testing yet so I don’t know if it will end up working as expected on an actual target.
Hello todd_peterson,
From the error messages, it looks like you’re using BeagleBone image and DTC v4.19 but the latest release of Device Tree source files on our git are for kernel v4.14 (picture attached). The syntax errors you’re seeing are probably because of the version mismatch.
If you’re using an Octavo Systems device, we recommend using OSD3358-SM-RED Linux Image (https://octavosystems.com/files/osd3358-sm-red-linux-image/). You can use this image to make custom modifications to your device tree files and rebuild them. This will help you prevent errors.
NOTE: While downloading the dts files from our git, use the “tags” under “switch branches” drop down to choose the right tag that matches your kernel version.
You could also use Robert Nelson’s Device Tree Rebuilder to rebuild your dts files – https://github.com/RobertCNelson/dtb-rebuilder (choose the branch version that matches your kernel). More info on this is given under section 1.3 of our Device Tree App Note – https://octavosystems.com/app_notes/osd335x-design-tutorial/osd335x-lesson-2-minimal-linux-boot/linux-device-tree/
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields