This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to borrow console UART?

Other Parts Discussed in Thread: OMAP-L138

Need to use the only UART (ttyS2 default console) on the OMAP-L138 EVM for I/O purpose.

Have an app. can (open, read, write) if I put it in /etc/init.d to run before console logo loads.

But same app. if run after login, will block at portfd=open(portname, O_RDWR | O_NOCTTTY)), no surprise since the ttyS2 is used as console at this point.

How to borrow the console UART port and surrender it afterward.

Understand ttyS2 is mapped to stdio and shell is monitoring it. And know the way in kernel change. But here need a live and recoverable change.

I did similar thing before but can't remember how, good is believe it's doable.

Any suggestion?

Thanks,