1 of 1 people found this helpful
I think the issue you are getting is because the gpio numbers are different between the Galileo Gen1 and the Galileo Gen2. For example, for the IO7, the Linux gpio number is 27 in the Galileo Gen1, but in the Galileo Gen2 it is the number 38.
My suggestion for you is to use the Yocto Image available here: Galileo Software Downloads, and then check the following site: EmutexLabs. In there you will find a good description about the pin configuration for the Galileo Gen2.
Seasons greetings from Ireland.
yes, I realise the pins and HW are different. I had a look at the emutex page, and parsed the source code for the arduino IDE. Now I think I have
a good grasp of the mapping. I have checked that my image indeed supports GEN2, so I don't need to build another one. I managed to get
a correct signal from the analog inputs via sysfs as well. This is looking good.
The only minor thing, and it is really minor, is that I can't seem to be able to turn on/off the on-board led (pin13, gpio7). Even though I can turn
it to 1 (Hi), and I see it is high on /sys/kernel/debug/gpio, the led does not light up. Do you know why that might be?
Thanks a lot for your reply.