Hi
I’d like to change a GPIO pin’s internal pull-down to internal pull-up.
The GPIO pin is GPIO17_MDM2AP_READY. This pin is internal pull up on TX1, but it is changed to internal pull down as a default on TX2.
So, I refered to the chapter “TX2 Configuring Pinmux GPIO and PAD” in the document “NVIDIA Tegra Linux Driver Package Development Guide 28.1 Release”. According to this document, I created dtsi files, converted to cfg files, and placed them to /bootloader/t186ref/BCT on the host PC. Placed files are following.
I’ve already generated the cfg files at posting the first message. After then, what should I do to flash?
Should I do the following command?
$ ./flash.sh jetson-tx2 mmcblk0p1
Because this command overwrites rootfs, I would not like to use this command.
If possible, I’d like to flash a part about pinmux.
Could you please tell me such a method?
You can clone your rootfs first. Then flash everything with the clone in place via the “-r” option. E.G., if you have backup.img from a clone, then:
cp backup.img /where/ever/it/is/Linux_for_Tegra/bootloader
sudo flash.sh -r jetson-tx2 mmcblk0p1
…everything will be flashed fresh except for the rootfs…this too will be flashed, but since the source is from a matching clone the net effect is no change (other than a lot of time being used).
hi linuxdev
Your method works well. Thank you very much!
However, … this method costs a long time for image backup.
Is not there more efficient method to change configuration of pins? ===> NVIDIA team
Best Regards,
Additional info.
When I tried linuxdev-san’s method, the following files which are described in NVIDIA document were useless.
tegra186-quill-p3310-1000-a00-pinmux-gpio.cfg
tegra186-mb1-bct-pad-quill-char-e3301-1080-a00.cfg
So, I changed the file /bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg directly and flash TX2.
This way works well.
So far as I know “.dtsi” does not convert into “.cfg”. “.dtsi” files are just combined in the kernel build target “dtbs” depending on the configuration for the kernel. Several device tree source files and their include files are combined and then converted to binary “.dtb” format. I doubt that is what you were asking about, but I have no advice if you are interested in modifying the config file.