Other Parts Discussed in Thread: AM5728
I am very stressfully trying to create/edit the .dts file for the BBAI, and I have gone through what pins that I need to configure, and the PinMux tool shows no errors. When I finish, there is a file called "devidetree.txt" that I would assume holds the textual data to overide the .dts base configuration file (am5729-beagleboneai.dts) and allow me to create my own .dtb after compiling that down.
What I get is a text file with two sections, both blank.
Enclosed is the source PinMux tool "save" file for my project, as well as the .txt file that I would assume holds the correct textual drop-in data for my override .dts
What am I doing wrong? I am not clear how to do this without having the devicetree.txt file reflect the work that I did in the tool!
2nd question -- I am using the Matrix image file from the SDK 6.03.00.106, and there are no tools there to create the dtb from the dts file. All of the references on the TI WiKi and any other TI site is just not clear, not what I see on the build on the platform, or just not findable. What I am using right now is the Cloud9 build, using their tools that are present in their latest image. Here is what I did to get where I am, but of course I do not have the "data" to drop into my override .dts, as I mentioned above.
- git clone github.com/.../BeagleBoard-DeviceTrees -b v4.14.x-ti
- create my own dts, using #include "am5729-beagleboneai.dts" at the top of my .dts file
- make src/arm/myfilename.dtb
- sudo cp src/arm/myfilename.dtb /boot/dtbs
- sudo nano /boot/uEnv.txt (however this is not in /boot, but in /run/media/mmcblk1p1/boot instead????)
This is the last step for me being able to write code to talk to my hardware, and it has been a very long road to get here, to again, have the documentation be sparse, not there, or just plain wrong.
Th3225.AM5728_SR2.0_20200423.zip
/** * Note: This file was auto-generated by TI PinMux on 4/25/2020 at 2:10:14 PM. * * \file devicetree.txt * * \brief This file should only be used as a reference! This file contains * register configuration information for the AM57xx Control Module. Two * formats are provided in this file. The device tree (.dts) format WHICH * MAY CHANGE BETWEEN LINUX KERNEL VERSIONS and a generic format. For * summarization and description of the pad register bits refer to the * "Control Module" chapter of the device Data Manual. This file should only * be used as a reference. Some pins and/or peripherals, depending on your * use case, may need additional configuration. Only MMC modes are exported * here. All other pad configuration must be done by u-boot. * **/ /* * DEVICE TREE FORMAT PADCONF * */ &dra7_pmx_core { }; /* * DEVICE TREE FORMAT IODELAY * */ &dra7_iodelay_core { // for linux kernel 4.4 / processor sdk 3.x }; /* * GENERIC FORMAT PADCONF * */ /* * GENERIC FORMAT IODELAY * */