βttyTHS1β has address 70006040 (β0x70006040β).
There has been no mislabel of the same device (same address) with two different device special serial numbers. Meaning udev did as it should and gave the next UART name βtty...1β rather than giving a single piece of hardware names βtty...0β and simultaneously something like βtty...1β.
Note that βbootconsoleβ for uart8250 is from the bootloader, and uses the legacy driver (thus, once in Linux, it is β/dev/ttyS0β).
The kernel command line does as expected, and names ttyS0 to be the serial console.
Then, for some unknown reason, I see ttyS0 console disabled, followed by enabling it again, but naming is still valid as ttyS0 remains as an alias to address β70006000β. βttyTHS1β has not yet been mentioned, so everything is normal to this point.
After the above ttyTHS1 is assigned its name and bound to address 0x70006040, but this is just UART setup and does not yet associate this with serial console. In fact the dmesg log never tells us that ttyTHS1 is ever assigned as a console.
So far as the operating system goes during boot, using its configuration files, there is no error. It is like some other software adds ttyTHS1 to serial console without the operating system itself ever doing this. If there have been no changes by you, then you have found a bug. A possible exception to this though is that if console did actually switch, and it isnβt just a mislabel of the device, then a log line would have been lost during the changeover, and the old device might have stopped logging.
There is a lot going on in the thread, and I might have asked before, but wanted to ask (or ask again) the following:
Is there any modification which might have been made which is related to any UART?
If you use a serial terminal program (could be PuTTY, minicom, gtkterm, so on) from directly on the booted Jetson, and name either β/dev/ttyS0β or β/dev/ttyTHS1β as the related UART, which one will work as a serial console? You can use βsudoβ if needed. Errors trying to open either device (with sudo) would be of interest.
Is there any modification which might have been made which is related to any UART?
No. Just flashed the downloaded MicroSD card image into a MicroSD card and boots up from the SD card.
If you use a serial terminal program (could be PuTTY, minicom, gtkterm, so on) from directly on the booted Jetson, and name either β /dev/ttyS0 β or β /dev/ttyTHS1 β as the related UART, which one will work as a serial console? You can use β sudo β if needed. Errors trying to open either device (with sudo ) would be of interest.
I Canβt open /dev/ttyS0 and /dev/ttyTHS1 with putty as normal user. look at the screen captued below:
In the case of opening either ttyS0 or ttyTHS1 with sudo, do both function as a console? Meaning that not only is connection allowed, but that it functions as a console?
Did you create an SD card image yourself with JetPack/SDK Manager? Did you also flash the Jetson with the same release version which created the SD card? Iβm looking to see if the modules QSPI memory (used in boot) is working with a rootfs partition (the SD card content) of a compatible release (strange things could happen if you mix QSPI from one release with an SD card rootfs of another release).
I did not create my own SD card image and also not use JetPack/SDK manager to create / install the SD card.
I just follow the steps below to flash the SD card