Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CNg8
Novice
2,360 Views

How to automatically run program on Intel Galileo startup?

Hi all,

Anyone did this before?

I am using Eclipse to debug and run program on Intel Galileo gen2.

However every time after I reboot the board the program will not start.

I believe this need some start-up scripts to run it. But I don't have the know how.

Please advice.

Tags (1)
0 Kudos
4 Replies
Juan_M_Intel
Employee
54 Views

Hi firmwarengineer,

Have you already seen this post /thread/48558 https://communities.intel.com/thread/48558 ? It is on how to run scripts / programs at startup and they use cronie which you can download from AlexT repo. The information on how to use opkg is right here: http://alextgalileo.altervista.org/package-repo-configuration-instructions.html http://alextgalileo.altervista.org/package-repo-configuration-instructions.html and cronie is in the i586 repo. I hope you find this helpful.

Regards,

 

JPMontero_Intel
Juan_M_Intel
Employee
54 Views

I installed cronie successfully. These are the steps I followed.

  1. Used a fresh new install of the SD card image provided in here: /docs/DOC-22226 https://communities.intel.com/docs/DOC-22226
  2. Setup wireless connection by following this guide http://www.malinov.com/Home/sergey-s-blog/intelgalileo-addingwifi http://www.malinov.com/Home/sergey-s-blog/intelgalileo-addingwifi
  3. Configured opkg to fetch packages from AlexT repo. I followed this guide http://alextgalileo.altervista.org/package-repo-configuration-instructions.html http://alextgalileo.altervista.org/package-repo-configuration-instructions.html
  4. Updated the list of packages with the command opkg update
  5. Updated uclibc to avoid having errors due to libc0 with the command opkg install --force-overwrite uclibc
  6. Installed package group with opkg install packagegroup-core-buildessential
  7. Installed cronie with the command opkg install cronie
  8. Installed cronie's debugging tools with opkg install cronie-dbg
  9. Installed cronie's development tools by using the command opkg install cronie-dev
  10. Installed cronie's documentation with the command opkg install cronie-doc

Additionally you check this site for reference on how does cron work https://wiki.archlinux.org/index.php/cron https://wiki.archlinux.org/index.php/cron. Let me know if this is what you are looking for.

Regards,

 

JPMontero_Intel
CNg8
Novice
54 Views

Hi,

I has successfully run my program using a start-up script in /etc/init.d.

It will run my program in the sd card.

The cronie is a good for scheduling jobs at specified time. Will install in future. Currently ok with my start-up script now.

CT2
Novice
54 Views

Hi firmwarenginer,

How to create start-up script for Intel Galileo Gen 2.

Reply