Forum Discussion

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

Serial Console

I have been trying to get a RS232 console to work for a couple of days now. The kernel I have works great, but I can only use USB-Blaster as terminal. I though it would be as simple as enabling the "Support for console on Nios UART" in the Device Driver -> Character Dev -> Serial Drivers. When I select this, the kernel will build properly, but neither the USB-Blaster or the RS232 dumb terminal worked. Any help would be appreciated.

Thanks,

rppolicy

3 Replies

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

    --- Quote Start ---

    originally posted by rppolicy@Oct 27 2006, 03:18 PM

    i have been trying to get a rs232 console to work for a couple of days now. the kernel i have works great, but i can only use usb-blaster as terminal. i though it would be as simple as enabling the "support for console on nios uart" in the device driver -> character dev -> serial drivers. when i select this, the kernel will build properly, but neither the usb-blaster or the rs232 dumb terminal worked. any help would be appreciated.

    thanks,

    rppolicy

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

    --- quote end ---

    --- Quote End ---

    Hi,

    u have to do another configuration : in your file system, edit /etc/inittab and :

    --> comment line begining by ttyJ0

    --> uncomment line begining by ttyS0

    your file should look like the following :

    # inittab for uClinux#  Format:#  ttyline:termcap-entry:getty-command
    ttyS0:vt100:/bin/agetty 115200 ttyS0#  ttyS1:vt100:/bin/agetty 115200 ttyS1# ttyJ0:vt100:/bin/agetty 115200 ttyJ0

    Regards. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks! Only one problem... I don&#39;t have "inittab" anywhere on the file system. Could this be why I can&#39;t inlcude "init" in my file system? How can I get the builder to make one or where can I get a template?

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

    --- Quote Start ---

    originally posted by rppolicy@Oct 28 2006, 02:24 AM

    thanks! only one problem... i don&#39;t have "inittab" anywhere on the file system. could this be why i can&#39;t inlcude "init" in my file system? how can i get the builder to make one or where can i get a template?

    thanks,

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

    --- quote end ---

    --- Quote End ---

    Relax.

    Life is easier on Linux.

    Throw the Microtronix&#39;s uClinux guide away.

    Take some time browing the nios wiki for uClinux.

    And try out the pre-build image.