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++

How to cancel the login?

Altera_Forum
Honored Contributor II
1,456 Views

Hi, 

How can cancel the login and password when uclinux start up!
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
486 Views

The first program kernel starts is /sbin/init. If you put your shell there with that name, you'll bypass the rc, inittab stuff. 

 

Or, you can let agetty starts up your shell directly, not the dummy login, by modifying the agetty.
0 Kudos
Altera_Forum
Honored Contributor II
486 Views

If you add "single" to the kernel command line, init should exec /bin/sh without executing the 

startup script (/etc/rc). This will allow you to bypass the getty/login without changing the 

filesystem. When init starts in single mode you should see something like this from the console: 

 

Booting to single user mode. 

 

Unfortunately, the current microtronix linux port does not support command lines passed 

by a boot loader. Also, u-boot does not pass "bootargs" to the kernel yet either. 

So you'll have to rebuild the kernel. 

 

I'll update u-boot and submit a kernel patch to support boot loader command 

lines -- once I find some time 8-( 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
486 Views

 

--- Quote Start ---  

originally posted by wentao@Oct 18 2004, 07:50 AM 

the first program kernel starts is /sbin/init.  if you put your shell there with that name, you'll bypass the rc, inittab stuff. 

 

or, you can let agetty starts up your shell directly, not the dummy login, by modifying the agetty. 

--- Quote End ---  

 

I can not find the source code of the agetty.exe.Tell me how to correct it ?
0 Kudos
Altera_Forum
Honored Contributor II
486 Views

Please check this directory, 

 

altera\kits\nios2\examples\software\linux\apps 

 

Regards, 

wentao
0 Kudos
Reply