Forum Discussion

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

How to Startup application automatically?

Hello.

I use Nios2 dev kit(Stratix2).

I want to start application after power on without PC.

(The application controls LED only.)

I checked the following post,

http://www.niosforum.com/forum/index.php?showtopic=409&hl= (http://www.niosforum.com/forum/index.php?showtopic=409&hl=)

But the application doesn't startup automatically.

When I input "nios2-terminal" from SDK shell, then application start.

But if nios2-terminal is not executed, the application doesn't start.

How should I do to startup my application after power on without PC ?

Thank you.

9 Replies

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

    m_isshiki,

    Turn off Altera JTAG UART support under

    Device Drivers ---> Character Devices ---> Serial drivers --->

    With this compiled into your kernel, it will sit there waiting for a response from the SDK shell. You can use the ethernet port for logging into your system.

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

    m_isshiki,

    If you ever use the debugger, you'll notice the kernel hangs out waiting for the Nios terminal login. I have also picked it up reading this forum.

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

    Hi dcurry,

    --- Quote Start ---

    originally posted by dcurry@Nov 10 2005, 02:14 PM

    m_isshiki,

    turn off altera jtag uart support under

    device drivers ---> character devices ---> serial drivers --->

    with this compiled into your kernel, it will sit there waiting for a response from the sdk shell. you can use the ethernet port for logging into your system.

    --- Quote End ---

    can you please explain "use the ethernet port for logging..." a little bit more.

    I'm trying to let down the nios terminal and connect to my board through an ssh connection.

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

    Use inetd and telnetd to get into your system. I haven't seen an ssh server, but maybe you can look into it.

    Just use busybox to compile inetd and telnetd, and then you can telnet into your board once it has an IP.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jdhar@Apr 5 2006, 01:06 AM

    use inetd and telnetd to get into your system. i haven't seen an ssh server, but maybe you can look into it.

    just use busybox to compile inetd and telnetd, and then you can telnet into your board once it has an ip.

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

    --- quote end ---

    --- Quote End ---

    Hi jdhar,

    I&#39;m wondering how is that done !

    Does uClinux start automatically when the board is powered on so I can connect to via telnet.

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

    --- Quote Start ---

    originally posted by jdhar@Apr 4 2006, 06:06 PM

    use inetd and telnetd to get into your system. i haven&#39;t seen an ssh server, but maybe you can look into it.

    just use busybox to compile inetd and telnetd, and then you can telnet into your board once it has an ip.

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

    --- quote end ---

    --- Quote End ---

    Hi:

    I successed compile inetd and telnetd use busybox.

    Then I run:

    # inetd&# telnetd&

    But I can&#39;t telnet my dvb. My dvb net config is ok,because I can ping it.

    How can I do? Thank you
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi alex,

    I had same problem. But now it is running successfully.

    Please, don&#39;t select configuration of inetd, telnetd through busybox.

    Select inetd, telnetd in uClinux-dist and compile and put the romfs dir

    file in rootfs dir respectively.

    Remove the ~/rootfs/etc/securetty file.

    Now you are able to login through telnet as root without any passwd required.

    I hope this will help you.

    with bless,

    Goutam