I am having trouble with the relationship between the on board cross compiler, .dts/.dtb files and .ko files. I am using “https://github.com/SaadAhmad/beaglebone-black-cpp-PWM” as my tutorial, as I am not very experienced with either the BBB or Linux.
Here’s what I’m doing:
- Backup the old pwm_test.ko file
cd /lib/modules/<kernel version>/kernel/drivers/pwm/
cp pwm_test.ko pwm_test.ko.orig
-
Find the built pwm_test.ko file and copy it over to /lib/modules//kernel/drivers/pwm/
-
Copy over the build dtbo files to /lib/firmware
-
Youre done setting up the files! Do a reboot and you should be set
I am at step 4(but maybe it’s 3 that is stumping me?) and do not understand how to build the .dts from the .ko file. I understand that the .dts is the device tree source code file, and that when compiled, becomes the .dtb file. I am uncertain of how to make the .dts from the .ko file.
Can someone point me in the right direction? Thanks!