Hi all,
I need a few serial port on Jetson TX1 and I do not want to use FTDI converter.
I’m currently using UART3 on J17 without problems and I would like to disable the console output on UART1 (Pin 8 and Pin 10 on J21) to use it to communicate with my devices.
Which is the file to modify to enable this feature?
I am unsure of what to edit or change, but beware that u-boot itself uses that port, and so during boot stage you may get serial port interaction unless you modify u-boot (otherwise the port would need to be disconnected during u-boot stages). The kernel command line does some configuration via the “APPEND” key/value pair in “/boot/extlinux/extlinux.conf”, but the firmware files would also need modification…the kernel APPEND part sets up port settings, but does not determine other aspects of pinmux which may need to change.
I didn’t make by my own but from what I read linuxdev gave you great leads.
For me to change the function (TK1 based experience, I don’t know if the flow is exactly the same for TX1) :
-download & extract driver packages + rootfs + kernel package from download section on your host.
-convert the .dtb to .dts with the compiler dtc (tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb file)
-play around with the modification you need to disable the unwanted UART and enable the one desired for example.
-convert back the new .dts to .dtb with the same name for ease of use (backup the old one is worthy I guess :) ).
DTC is in /Linux_for_Tegra/kernel/linux-headers-3.10.67-gcdddc52/scripts/dtc/.
DTB tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb included in /Linux_for_Tegra/bootloder
-search the options related to your modification in the .config at the root kernel and modify it(/Linux_for_Tegra/kernel).
-run apply_binaries.sh
-flash your new BSP with flash.sh (available at the root of L4T ie /Linux_for_Tegra/)
PS: to disable the console UART, maybe you need to delete it from extlinux.conf.emmc file in /Linux_for_Tegra/bootloader/t210ref/p2371-2180-devkit and other work I miss…
You can use “/dev/ttyTHS2” (J17) already, I just don’t know what else might want to use this. If you don’t use the camera you may be able to use J17 without any updates…I suggest just try it and you’ll know if it does the job.