On 8/18/2023 12:14 PM, Philippe Leduc wrote:
Hello,

I am currently in the process of porting NuttX to the i.MX8MP (Cortex-M7) SoC
from NXP. I managed to have a POC that boot and the serial seems to work
properly. However the console seems to behave strangely: I need to configure my
client to handle the echo and to transform input and output. An example with
picocom client:
picocom -b 115200 --omap crlf --imap lfcrlf --echo /dev/ttyUSB2

This seems to be unnecessary on other targets (I tried on a picopi and on an
xmc4700).

Is it a normal behavior? If not is someone have any clues to track this bug?

Thank you in advance,

Best regards,
Sounds like the console device is in RAW mode.  For proper NSH behavior, the console TTY must be configured in COOKED mode.  That configuration should occur automatically if the uart was configured as the serial console.  I suppose that could use the termios interfaces to force COOKED mode, but should not be necessary.

Do you have a serial port configured as console device (in drivers/serial)?  Do you have picocom connected to that uart port? If so then you probably have some error in your configuration so that the uart is not recognized as the console device in drivers/serial/serial.c

Is /dev/ttyUSB2 a USB serial adaptor?  Or are you trying to use a USB port for console?

Reply via email to