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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

How to come in linux prompt without login?

Altera_Forum
Honored Contributor II
2,057 Views

Hello everyone, 

I want to come in linux prompt directly without input login name and password.How can I do?Ken is here?Pls help me? 

 

 

Tony Zhu
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
720 Views

If you want to use single user boot, you can also create a file (empty is fine I think) /etc/singleboot to force init to go into single user boot without passing command line args to the kernel. If you go this route you just need to add that file to the FileSystem project in the NIOS IDE and flash a new filesystem image to the board. 

 

Tuck
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

Take a look at this thread 

 

problems with busybox (http://www.niosforum.com/forum/index.php?act=st&f=2&t=396&hl=busybox

 

Let me know if it helps...
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

Ken, 

I am so sorry to renew you too late,because now in my term only have one board,we have to use it by turns. 

Yes,the busybox filesystem can bypass the login,and can come into linux prompt:"#".But there are two questions waiting for your answer ,pls help: 

The first:How can I let the linux system autorun without input "nios2-termal" in the console? 

And the second:How can I bypass "Please press Enter to activate this console",before come into linux prompt:"#"? 

 

Thanks again! 

 

 

Tony Zhu
0 Kudos
Altera_Forum
Honored Contributor II
720 Views

Take a look at thread: 

 

booting the linux (http://www.niosforum.com/forum/index.php?act=st&f=2&t=589&hl=serial,and,jtag

 

It has a basic answer to your first question. 

 

As for the booting straight to a shell prompt, according to the busybox documentation, you can switch 

 

::askfirst:-/bin/sh 

with 

::respawn:-/bin/sh 

and that should send you straight to the prompt. 

 

For more information, please take a look at the busybox documentation (http://www.busybox.net/downloads/busybox.html

 

There are other methods, but the above is my own personal preference.
0 Kudos
Reply