Customizing device tree
Help on customizing the device tree
I installed my starter package according to instructions at https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_Package
And the developer package following instructions at https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package
Then on developing my projects, I realized that I need a different device tree than what was provided in those two packages, because the CAN bus is not defined in those installations, and that is the core of my project.
Then I read this blog
https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package
Somewhere, it requires to navigate to "Device Drivers - Generic Driver Options"
- select "Size in Megabytes"
- modify its value to 256
- exit and save the new configuration
The problem is: if you follow those instructions, there is no option to select “Size in Megabytes,�? which left in darkness!!
Somewhere in the next page it advises to change directory to the <Linux kernel build directory> as
PC $> cd <Linux kernel build directory>
Problem is that no clear information on what this <Linux kernel build directory> is!
Again, on the next page there is this instruction
PC $> cd <Linux kernel source directory>
The following several pages keep jumping between <Linux kernel source directory> which is not clearly defined, and the <Linux kernel build directory> and then comes
PC $> cd <tag>/sources/arm-<distro>-linux-gnueabi
Where the so called <tag> and <distro> are not clearly defined
On modifying u-boot, there is the command
PC $> cd <U-Boot source directory>
and I have no idea what the <U-Boot source directory> directory is. I believe If I gent into that directory, the following instructions should be easy to fulfil, but I don’t know where that directory is. Finally there is this command with a similar problem about <TF-A source directory>
PC $> cd <TF-A source directory>
Another document I read is this
https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package
Section 3 states the prerequisistes which are in agreement with my prior process of installing of the Starter package and Developer package. However, Section 4 suggests something that I have to reinstall the developer package again, which is what I fail to understand why if I have already met the prerequisites of Section 3. If I skip Section 4, then it seems that Section 5 does not work at all.
This document relies on WORKDIR, which in my case (following instructions at https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package) would be
$HOME/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package
But unfortunately it does not work, which means the instructions at
https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package
are different from those at
https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package
which bothers me.
Can I get any help on how to customize my device tree?
