Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12648 Discussions

How to Startup application automatically?

Altera_Forum
Honored Contributor II
2,269 Views

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.
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
540 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

Thank you, dcurry. 

 

It works fine! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif  

 

By the way, where can I find this information? 

In uCLinux manual? or Common sense? 

 

Thank you.
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

m_isshiki, 

 

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

 

Doug
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

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&#39;m trying to let down the nios terminal and connect to my board through an ssh connection. 

 

Warm Regards
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

 

--- Quote Start ---  

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

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 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
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

The application cann&#39;t automatically startup even though I set the serial on. 

 

why? 

 

 

Thank you!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
540 Views

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
0 Kudos
Reply