I have developed an application which runs on uClinux, i would like to have my application start by itself when i boot my device, and i would like to attach it to my serial terminal, so if i connect to it, i can see my app. By default uClinux starts up using my serial console, and i only run 1 application on this device, i simply launch it by typing its filename at the command prompt, it then uses the serial console to display information to me. I simply want to automate this, so when i power it up, it boots up and runs my app exactly the same was as it would if i typed the filename in the command prompt.
My build uses BusyBox's simple Init procedure, here is my inittab file:
# inittab for uClinux
my console is on ttyBF0:
Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 rw clkin_hz=25000000 earlyprintk=serial,uart0,115200 console=ttyBF0,115200
my app is simply called 'MyApp'
How can i add a line into this inittab file to run this?
If this was windows it would be an autoexec entry! Im having real problems getting this to work, can someone advise me how this is to be done?