I have uboot working with debug output on ttyS0. I have another device that I want to send some bytes to attached to ttyS2. In other words, I need access to two serial ports at the same time while running uboot. Is there any example of modifying the source to have access to that serial port? Or, even better, a way to do something from the uboot environment commands. Something like
echo "foo\n" > ttyS2
would be ideal (like one could do in userspace).
In terms of the uboot source, I’ve poked around a bit and there seems to be these device model serial ports that can be configured, but with all of the various configurations, I am not sure where/how I need to configure these.