Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi GreateWhite.DK,
I have done this work by putting the app to be started into /etc/rc for standard filesystem, or into /etc/init.d/rcS for busybox based filesystem. For example, my /etc/rc file looks like as the following: <div class='quotetop'>QUOTE </div> --- Quote Start --- #!/bin/sh# # system startup. # set up the hostname /usr/apps/mytestapp /bin/hostname Nios2 . . .[/b] --- Quote End --- By this way mytestapp is started immediatly after the root filesystem is mounted. Anyway, what do you mean exactly when you say that inittab is not called when the kernel boots ? The inittab should looks like <div class='quotetop'>QUOTE </div> --- Quote Start --- # inittab for uClinux# Format:# ttyline:termcap-entry:getty-command ttyS0:vt100:/bin/agetty 115200 ttyS0 . .[/b] --- Quote End --- If the inittab is not executed I think that you are also unable to get the login prompt on the console. If you have modified the inittab or rc file, make sure to use dos2unix cmd before building the filesystem. Fab