Euan,

To get the program to run automatically after startup you need to have a
script in /etc/rc.d/rc#.d where # is the run level you are booting to.
In the case of DaVinci # is run level 3.  If you look at the
/etc/rc.d/rc3.d/S88demo script on the DaVinci hard drive file system you
will see that it is a copy of the dvevmdemo script in /etc/init.d

In fact, if you want your application to run at any run level the best
thing to do is to put it in /etc/rc.d/rcS.d

Another thing to note is that convention is usually to put the script
that will kick off your application in /etc/init.d (like the dvevmdemo
script) and then make a symlink in the proper rc.d directory to point to
your script (do an ls -l /etc/rc.d/rcS.d for examples).

The S## value, where ## is a number, indicates the order in which these
scripts are run.  The higher the number the later it is run.  For your
cast you should probably make it high like 89-99 since you want to make
sure that everything else that your application might use is loaded
first.

Let me know if you have other questions.

Sincerely,
Chase Maupin
Software Applications
Catalog DSP Products
e-mail: [EMAIL PROTECTED]
phone: (281) 274-3285

-----Original Message-----
From:
[EMAIL PROTECTED]
om
[mailto:[EMAIL PROTECTED]
ncidsp.com] On Behalf Of Cochrane, Euan
Sent: Thursday, December 13, 2007 5:20 AM
To: Mukherjee, Somnath; Davinci-Linux-Open-Source (E-mail)
Subject: RE: boot and load app without host machine

The dvevmdemo script doesn't seem to be running at startup and it is
still in the /etc/init.d dir and I have added my own script to that dir
and it doesn't run either. I'll keep trying and let you know if I find
out how its done.
Thanks,
Euan

-----Original Message-----
From: Mukherjee, Somnath [mailto:[EMAIL PROTECTED]
Sent: 13 December 2007 10:52
To: Cochrane, Euan; Davinci-Linux-Open-Source (E-mail)
Subject: RE: boot and load app without host machine


I'm not a Linux expert but I think, if you drop a script in that dir it
runs the script automatically. Am I terribly mistaken?? 
So, are you able to load and run your app now?

Thanks,
Somnath

-----Original Message-----
From: Cochrane, Euan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 13, 2007 4:13 PM
To: Mukherjee, Somnath; Davinci-Linux-Open-Source (E-mail)
Subject: RE: boot and load app without host machine

Thanks again Somnath, I can see the script in the /etc/init.d dir on my
dvevm hard drive which is my current file system and the script looks
like I expected but it does not run when I boot my DVEVM, what I really
wanted to know was how such a script is set to run after boot completes.
Thanks,
Euan

-----Original Message-----
From: Mukherjee, Somnath [mailto:[EMAIL PROTECTED]
Sent: 13 December 2007 10:26
To: Cochrane, Euan; Davinci-Linux-Open-Source (E-mail)
Subject: RE: boot and load app without host machine


Hi Euan,
DVEVM demo works out of the box because there's a small script
"dvevmdemo" that runs at boot-up. And the script is located at
/etc/init.d/ dir in your DVEVM file system.
The app also is located somewhere on the DVEVM file system. 

With the above information, you should be able to figure out how to load
and run you app automatically.

Thanks,
Somnath

-----Original Message-----
From: Cochrane, Euan [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 13, 2007 3:49 PM
To: Mukherjee, Somnath; Davinci-Linux-Open-Source (E-mail)
Subject: RE: boot and load app without host machine

Thanks, I followed that app note and I now have my uImage on the flash
and my DVEVM boots without the Ethernet connection to the host. now I
want to have the board load my app once it finishes booting i.e. so I
don't have to login as root and load the app manually over the serial
connection. I'm sure this can be done as this is how the board behaves
out of the box with the TI demo apps (encode, decode, encodedecode etc
in the menu interface). how do I set this up for my app?
Thanks
Euan

-----Original Message-----
From: Mukherjee, Somnath [mailto:[EMAIL PROTECTED]
Sent: 13 December 2007 09:30
To: Cochrane, Euan; Davinci-Linux-Open-Source (E-mail)
Subject: RE: boot and load app without host machine


Why don't you burn the uImage on the flash itself? 
Did you see the attached doc before?

Thanks,
Somnath

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Cochrane, Euan
Sent: Thursday, December 13, 2007 2:48 PM
To: Davinci-Linux-Open-Source (E-mail)
Subject: boot and load app without host machine

Hey, at the moment I boot my DVEVM via TFTP and launch my app from the
command line using minicom. I now need to do some testing with a machine
in another part of the site and I don't want to have to bring my host
machine with me. What I want to do is have the DVEVM boot using my boot
image that I created and then load my app once the boot has completed so
that I don't need to have the DVEVM connected to my host. How can I do
this? Currently the uImage I want to use is on the host PC hard drive in
/tftpboot and my app I want to run is on the DVEVM hard drive in
/opt/dvevm.
Thanks,
Euan
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to