Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Cannot Change ISO C Library Default console to ...

Hey Guys,

Help! I cannot Change ISO C Library Default console to anything other than "/dev/ttydiag"

I have currently jtag_uart and a uart_0 setup in SOPC builder for nios2.

I setup tty0 to use uart_0.

using cyg_io_lookup and cyg_io_write, I can write to the /dev/tty0. But when I change the ISO C library default console to /dev/tty0, nothing gets outputted to my serial port?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by kevw201@Sep 28 2005, 12:10 PM

    hey guys,

    help! i cannot change iso c library default console to anything other than "/dev/ttydiag"

    i have currently jtag_uart and a uart_0 setup in sopc builder for nios2.

    i setup tty0 to use uart_0.

    using cyg_io_lookup and cyg_io_write, i can write to the /dev/tty0. but when i change the iso c library default console to /dev/tty0, nothing gets outputted to my serial port?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=10023)

    --- quote end ---

    --- Quote End ---

    What is the correct way to do this ? I too want to use the console for my app and diag_* for diagnostics.

    Thanks Robert.