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

Attempted to kill init!

Altera_Forum
Honored Contributor II
988 Views

Hi 

 

I'm having some trouble with the init script after the kernel start using microtronix default uclinux. 

Whenever I specify an initfile to the kernel command string like init=/etc/init2.rc  

the "Kernel panic - not syncing: Attempted to kill init!" appears after it has run the script. 

 

If I remove the kernel command string and run the script manually at the prompt,  

everything works OK. 

 

The script : 

 

# attach the interfaces /bin/ifattach eth0 /bin/dhcpcd -NRY exit 0 

 

Any ideas?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
315 Views

Hi MadMartigan, 

 

> I specify an initfile to the kernel command string like init=/etc/init2.rc 

 

This tells the kernel that the init process is the script /etc/init2.rc. When the script exits, 

or completes its execution, the init process goes away. 

 

The init parameter is used to specify the application that is used as the initial process when you want 

something other than /sbin/init to be used as the initial process. Or in the case of the Nios-II 

uClinux kernel, something other than one of the following: 

 

/sbin/init 

/etc/init 

/bin/init 

/bin/sh 

 

The kernel will attempt to run the above in the order listed. If you want the init process to run 

a script at startup, add /etc/rc to your filesystem. 

 

Regards, 

--Scott
0 Kudos
Reply