Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
1,078 Views

Arduino code does not start on board boot up - Galileo gen 2.0

My blinky code or any other code that I load on Galileo does not start on boot up.

Please can u tell me the process so that the code starts as soon as i power up my board.

Regards,

 

Parth Desai
0 Kudos
11 Replies
FTinetti
Honored Contributor I
55 Views

Hi Parth,

Loop wrote:

My blinky code or any other code that I load on Galileo does not start on boot up.

Please can u tell me the process so that the code starts as soon as i power up my board.

You should start with a Linux image in an SD card, and load the code you want to run. Step-by-step guide for windows is at https://software.intel.com/en-us/get-started-galileo-windows-step1 IoT - Step 1: Make a bootable micro SD card | Intel® Software , I suggest the manual method.

Did you already upgraded the firmware? Actually, the whole process guide starts at https://software.intel.com/en-us/get-started-galileo-windows IoT - Getting Started with the Intel® Galileo Board on Windows* | Intel® Software for Windows, and it contains links to other OSs too.

HTH,

Fernando.

idata
Community Manager
55 Views

Hey Fernando,

I followed the exact steps mentioned on the website. I did upgrade the firmware too but the code does not load on boot up.

root@galileo:~# cat /etc/version

201606081532

This is the version I am using. I flashed the latest image from intel site on to the SD card manually.

Regards,

Parth Desai

FTinetti
Honored Contributor I
55 Views

hmmm... maybe the card is not booting from the SD card... just in case, please send the output of the commands

df

ls -la /

If you don't have access to a Linux console in your Intel Galileo just let me know and I'll send a sketch to see the output of those commands.

Fernando.

idata
Community Manager
55 Views

That's the output of the commands you said

root@galileo:/# df

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/root 1668912 1361012 221756 86% /

devtmpfs 118248 0 118248 0% /dev

tmpfs 118440 0 118440 0% /dev/shm

tmpfs 118440 8536 109904 8% /run

tmpfs 118440 0 118440 0% /sys/fs/cgroup

tmpfs 118440 0 118440 0% /tmp

tmpfs 118440 12 118428 1% /var/volatile

/dev/mmcblk0p1 50412 2288 48124 5% /media/card

root@galileo:/# ls -la

total 84

drwxr-xr-x 23 root root 4096 Jan 11 17:27 .

drwxr-xr-x 23 root root 4096 Jan 11 17:27 ..

drwxr-xr-x 2 root root 4096 Jun 8 2016 bin

drwxr-xr-x 2 root root 4096 Jun 8 2016 boot

drwxr-xr-x 14 root root 4040 Jan 11 18:23 dev

drwxr-xr-x 89 root root 4096 May 12 2016 etc

drwxr-xr-x 4 root root 4096 Jun 8 2016 home

drwxr-xr-x 9 root root 4096 Jun 8 2016 lib

drwxr-xr-x 2 root root 4096 Jun 8 2016 lib32

drwx------ 2 root root 16384 Jun 9 2016 lost+found

drwxr-xr-x 3 root root 4096 Jun 8 2016 media

drwxr-xr-x 2 root root 4096 May 12 2016 mnt

lrwxrwxrwx 1 root root 25 May 12 2016 node_app_slot -> /home/root/.node_app_slot

drwxr-xr-x 4 root root 4096 Jun 8 2016 opt

dr-xr-xr-x 67 root root 0 Jan 1 2001 proc

drwxr-xr-x 12 root root 340 Jan 11 18:23 run

drwxr-xr-x 3 root root 4096 Jun 8 2016 sbin

drwxr-xr-x 2 root root 4096 Jan 11 17:27 sketch

dr-xr-xr-x 12 root root 0 Jan 1 2001 sys

drwxrwxrwt 8 root root 160 Jan 11 18:23 tmp

drwxr-xr-x 11 root root 4096 May 12 2016 usr

drwxr-xr-x 8 root root 4096 Jan 1 2001 var

drwxr-xr-x 3 root root 4096 Jun 8 2016 www

drwxr-xr-x 3 root root 4096 Jun 8 2016 wyliodrin

FTinetti
Honored Contributor I
55 Views

Hi,

Everything seems to be fine.

Please run

rm -rf /sketch/*

ls -la /sketch

(should show only . and ..)

Then, load the sketch and after the IDE message of the sketch being successfully loaded please run

ls -la /sketch

(should show a file named sketch.elf)

In case you think the sketch is not running after restarting the card please send the sketch so maybe we can figure out what could be the problem.

HTH,

Fernando.

idata
Community Manager
55 Views

Hey Fernando,

I am able to run the blinky code on boot-up.

https://github.com/knolleary/pubsubclient.git GitHub - knolleary/pubsubclient: A client library for the Arduino Ethernet Shield that provides support for MQTT.

I am trying to run the example mqtt_basic from the examples. I have my version of code which is tweaked with a bit and can email you the same if you can provide me your email id.

Thanks,

Parth Desai

FTinetti
Honored Contributor I
55 Views

Hi Parth,

Loop wrote:

Hey Fernando,

I am able to run the blinky code on boot-up.

...

Then, the problem "Arduino code does not start on board boot up - Galileo gen 2.0" is solved, I think.

...

https://github.com/knolleary/pubsubclient.git GitHub - knolleary/pubsubclient: A client library for the Arduino Ethernet Shield that provides support for MQTT.

I am trying to run the example mqtt_basic from the examples. I have my version of code which is tweaked with a bit and can email you the same if you can provide me your email id.

Thanks,

Parth Desai

Then I think the problem es running that specific library... I suggest you open another thread for that specific problem.

Searching in the forum, there are several threads on mqtt, but I don't have enough time to follow them in deep, take a look at:

(and maybe there are other threads too).

HTH,

Fernando.

idata
Community Manager
55 Views

Thanks Fernando,

Will do open a new discussion,

Regards,

Parth

FTinetti
Honored Contributor I
55 Views

Loop wrote:

Thanks Fernando,

...

Parth

You are welcome,

Fernando.

idata
Community Manager
55 Views

Hello Parth,

 

 

I'm glad Fernando could help you solve your issue.

 

 

Fernando, thank you very much for your contribution and assistance.

 

 

Regards,

 

Andres
FTinetti
Honored Contributor I
55 Views

Hi Andrés,

You are welcome,

Fernando.

Reply