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.

Disable Console messages on UART2 of AM1808

Other Parts Discussed in Thread: AM1808

Hi,

I am using AM1808 custom developed board, my requirement is to disable console messages on UART2 in all the stages (ie ubl, u-boot, linux and file system), so that i can use that serial port to connect other peripherals.

 may i get any suggestions on this requirement.

  • Hi,

    How you will test your custom board whether it is booting good or not  after you booted the board (modifying source code & done all the stuffs mentioned below).

    When you are facing any runtime problem (run time errors or run time warnings) then you cant debug it and we cant predict/say the problem where is coming from.

    I assume that you want to access the serial port (ttyS2 : which is default for console) for some other purpose (serial devices) like connecting UART/serial modem, serial printer, etc.,

    Please respond for this ,

    In U-Boot

    You have to disable all the console related declarations in u-boot source code.

    In kernel

    1) You have to disable console mode in board file and respective files (uncompress.h),

    2) You have to do pinmux to enable all the UART2 pins at board file.

    Better to do install "minicom"  package on filesystem and we can see the logs through applicaton.

    For your peripheral access,

    You can try whether the linux support any software serial port through GPIO's

  • Hi,

    Thanks for the reply,

    what you said was correct i cannot do runtime debug, for this problem is there any way to redirect all these messages to a particular file, and i just need the log messages from kernel and file system.

    And for this UART2 i want to connect serial printer.

    I have enabled the pinmux of UART2 in board file.

  • Hi,

    Titus said:

    You can try whether the linux support any software serial port through GPIO's

    This idea also wont work in linux because UART is it is required lot of irq's based stuffs and it could lead to stall the CPU.

    Is it possible to use USB to UART converter on your design !

    I have enabled the pinmux of UART2 in board file.

    I have to do some experiments for this and will come to you ASAP.

    mean while try yourself with your ideas and update here and could help others too.