Hi,
I apologize for the delay in my response. I think the problem is that when you build your own image you lose the Arduino side of the Galileo, If you are uploading that sketch from the IDE it won’t work. I hope you find this helpful.
Regards,
JPMontero_Intel.