linux automatic logging and automatic script execution

2 messages, 2 authors, 2008-10-28 · open the first message on its own page

linux automatic logging and automatic script execution

From: florent manni <hidden>
Date: 2008-10-28 08:06:47

Hi everyone,
I'm working on linux (last xilinx git version 2.6.27) on Virtex4 FX12 board
from memec.
I'm using buildroot with uclibc  and busybox to create the cross compiler
and the rootfs (everything set up within one elf file with initrd).

I try to make my embedded linux auto-logging and auto-executing a program
after kernel loads thus I haven't got to use the terminal to logging and
start my embedded program.

does anyone has got a clue where I should look to set this option (I think
it might be around /etc/initrd but I'm not sure).

thanks a lot.

florent

Re: linux automatic logging and automatic script execution

From: Chris Skepper <hidden>
Date: 2008-10-28 11:53:03

On Tue, 28 Oct 2008, florent manni wrote:
I try to make my embedded linux auto-logging and auto-executing a program
after kernel loads thus I haven't got to use the terminal to logging and
start my embedded program.

does anyone has got a clue where I should look to set this option (I think
it might be around /etc/initrd but I'm not sure).
Hi Florent,

You might be thinking of the file /etc/inittab or /etc/init.d/.  These 
file(s) control what process are started by /sbin/init in different 
run-levels.  Look at "man init" on a Linux system for more info, or read 
the documentation for the version of init on the system.  That should 
enable you to start whatever you want on bootup.

If init is too heavyweight you can start any other application with the 
the init= kernel parameter, but that's probably not recommended unless you 
know what you are doing.

Chris.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help