Hi Nisarg,
The process is fairly similar:
-
Generate the pinmux, gpio and padvoltage files, as the documentation states.
-
In your yocto build, create a custom layer to append the add these modified files:
bitbake-layers create-layer ../meta-custom
bitbake-layers add-layer ../meta-custom
3. Create the .bbappend file and move the custom .dtsi files to the layer:
mkdir -p ../meta-custom/recipes-bsp/tegra-binaries/files
touch ../meta-custom/recipes-bsp/tegra-binaries/tegra-binaries_%.bbappend
cp tegra234-mb1-bct-pinmux-p3767-custom.dtsi
../meta-custom/recipes-bsp/tegra-binaries/files/
cp tegra234-mb1-bct-padvoltage-p3767-custom.dtsi
../meta-custom/recipes-bsp/tegra-binaries/files/
cp tegra234-mb1-bct-gpio-p3767-custom.dtsi
../meta-custom/recipes-bsp/tegra-binaries/files/
4. Add the following content to the .bbappend:
FILESEXTRAPATHS:prepend := “${THISDIR}/files:”
SRC_URI:append = "
file://tegra234-mb1-bct-pinmux-p3767-custom.dtsi
file://tegra234-mb1-bct-padvoltage-p3767-custom.dtsi
file://tegra234-mb1-bct-gpio-p3767-custom.dtsi
"
do_install:append() {
install -m 0644 ${WORKDIR}/tegra234-mb1-bct-pinmux-p3767-custom.dtsi
${D}${datadir}/tegraflash/bootloader/generic/BCT/
install -m 0644 ${WORKDIR}/tegra234-mb1-bct-padvoltage-p3767-custom.dtsi \
${D}${datadir}/tegraflash/bootloader/generic/BCT/
install -m 0644 ${WORKDIR}/tegra234-mb1-bct-gpio-p3767-custom.dtsi \
${D}${datadir}/tegraflash/bootloader/
}
5, In the local.conffor your machine, or in the local configuration file, add the following override lines:
TEGRA_FLASHVAR_PINMUX_CONFIG = “tegra234-mb1-bct-pinmux-p3767-custom.dtsi”
TEGRA_FLASHVAR_PMC_CONFIG = “tegra234-mb1-bct-padvoltage-p3767-custom.dtsi”
6. Clean and build the image:
bitbake -c cleansstate tegra-binaries
bitbake
After that, flash the board as usual and verify that the change was applied by running the following command in the board:
sudo cat /sys/kernel/debug/gpio
gpioinfo
If you have any other questions, I will be pleased to help. I hope you find this helpful!
Fabian Munoz
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com