We followed the build process as outlined in the S32G2_LinuxBSP_42.0_User_Manual.pdf to regenerate the device tree blob (DTB) file. Below is a summary of the steps we took:
Host Preparation:
We initiated the process with the following command:
$ ./sources/meta-alb/scripts/host-prepare.sh
NXP Setup:
After preparing the host, we set up the environment for the S32G274ARDB2 platform with the following command:
$ source nxp-setup-alb.sh -m s32g274ardb2
Build Execution:
We then triggered the build using BitBake:
$ bitbake fsl-image-auto
The dtsi file was generated as part of the build process and can be found in the following directory:
./build_s32g274ardb2/tmp/work/s32g274ardb2-fsl-linux/arm-trusted-firmware/2.10-r0/git/fdts/s32cc.dtsi.
Following the instructions provided in the BSP42 manual (specifically on page 128), we made the necessary modifications to the s32cc.dtsi file. After making the changes, we proceeded to rebuild the project using the same commands mentioned above in order to regenerate the updated dtb file.