How to autorun applications in uClinux

Good day to all,

Hi, in my previous question I asked how one can configure u-boot to automatically load the kernel (uimage) after booting in my BF537 board. Thanks to the help that I received I was able to do so. However, another problem arose. After doing some research and readings from different sources, I still haven't found the answer to how one can configure the uimage to automatically run the application I have done. As an example, say I want to run the simple "Hello World" application written in C, I need to do lrz to transfer it to the board then run ./helloworld (or whatever file name I have set it); now I am wondering what are the methods I need to do in order for my "Hello World" application to run after the uimage has boot without me having to manually input the commands to run it.

As added info, I believe that one can incorporate the application to the image file through 'make', but still the question remains how I can have that application run automatically. Also, I am unsure if etc/rc or etc/inittab is the right way to go, if so are there any documents that can guide me to set this up? Any form of help would be greatly appreciated!

Thank you in advance!

-Angelo

Parents
  • Very nice, I have looked on these documents, and I have figured out how the rc dot file works. so let's say I tried adding the command, "./hello" to my rc dot file, I assumed it would run the "hello" executable I incorporated to my board (Analog devices BF537), but it didn't. obviously I am not doing this correctly. I don't really know where else to look for guides on the proper way to write an init code to automatically call the program/application I put in my board through 'make' . I'm hoping someone could help me. Thank you!

Reply
  • Very nice, I have looked on these documents, and I have figured out how the rc dot file works. so let's say I tried adding the command, "./hello" to my rc dot file, I assumed it would run the "hello" executable I incorporated to my board (Analog devices BF537), but it didn't. obviously I am not doing this correctly. I don't really know where else to look for guides on the proper way to write an init code to automatically call the program/application I put in my board through 'make' . I'm hoping someone could help me. Thank you!

Children
No Data