150balbes / Jetson-Nano

Kernel Jetson Nano
Other
147 stars 125 forks source link

GPIO/UART access once booted #3

Closed ClosetGeek-Git closed 5 years ago

ClosetGeek-Git commented 5 years ago

Not sure if this is the right place to post, but I would like to use the UART interface of my X96 mini in Linux userspace. Long story short I would like to use the GPIO for a dedicated serial link between the X96 and an arduino pro mini. How would this be possible?

ClosetGeek-Git commented 5 years ago

I would like low-level access to the RX/TX pins, but other docs that I've read hint that Armbian uses the GPIO for a serial terminal once booted. Is this true?

150balbes commented 5 years ago

I'm not sure that's possible with this equipment. After starting Armbian, the UART console can be used for management.

isjerryxiao commented 5 years ago

If what you want is just an UART, just stop getty@ttySX.service, and you'll be able to use /dev/ttySX to perform your serial connection. To make it persistent, remove console=ttySX from your kernel cmdline and probably disable getty@ttySX.service

isjerryxiao commented 5 years ago

Unless you compile and flash your own uboot, there's no way you can tell uboot not to write lines through the built-in serial.