This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Startup Program for Linux

Other Parts Discussed in Thread: TSC2007

Hi,

For my DM6446EVM based project, I want to run an application at startup. In order to do that, I think, initially I have to disable the login request. How can I disable the login request and start an application at startup?

Thanks and best regards

Ferhat

 

  • Hi Ferhat,

    I have not worked on DM6446 specific LSP, but from other devices and platform experience, i can suggest you the following solution.

    In your root filesystem for the target, go and edit /etc/init.d/rcS

    At the bottom of this file, you can add your startup execution script or steps. This will file will be executed during the startup initialization and hence your program will be automatically executed without login.

    You need not remove the login prompt to have an autostart of your application.

    Regards,

    Anshuman

    PS: Please mark this post as verified if you think it answers your question.

  • Hi Anshuman,

    I think, for running the initialization scripts on startup, we need to write the executable scripts/commands in   /etc/bashrc .

    Please correct me if I am wrong.

    Thanks and Regards,

    Sid

  • Sorry for the above post,

    bashrc is used to run scrips on shell startup, i read the question wrongly.

    Regards,

    Sid

  • Thank you Anshuman,

    I did what you have suggested but still have some problems that the application does not run as it run after login. It shows some unexpected behaviours.

    What I heve done is to make a file as "/etc/rc.d/rc.local" which includes some exports, module installations, make logical lnks, run scripts and finally run application as below:

    ***********************************************

    export TSLIB_PLUGINDIR=/usr/lib/ts

    /sbin/insmod /lib/modules/2.6.10_mvl401/kernel/drivers/input/touchscreen/tsc2007.ko

    /sbin/modprobe davinci_capture device_type=0

    /bin/ln /dev/fb/0 /dev/fb0

     

    /opt/dvsdk/trinity/bin/davinci6446_ce_loadmodules_256.sh

    ***********************************************

    What may be the differences on the system parameters at this level and after login which makes the application behaves unexpextedly? Do I need to add some PATH ?

    Note: I had to give exact location of the binary files in "rc.local" otherwise they do not work. Could it be the reason?

    Regards,

    Ferhat

    /opt/dvsdk/application/bin/YT -qws