Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
--- 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 ?
- Altera_Forum
Honored Contributor
Please check this directory,
altera\kits\nios2\examples\software\linux\apps Regards, wentao