barish Posted May 12, 2016 Posted May 12, 2016 Hi there, I've been trying for a few hours now to get the GPIOs working with the mainline kernel (ARMBIAN Debian GNU/Linux 8 (jessie) 4.5.2-sunxi). According to the board layout photo, I am using PG0, PG1, PG2 and PG3. With the legacy kernel, they export as GPIO1-PG0 a.s.o. accordingly and work perfectly. So I calculate the GPIO pin number: G is 7th letter, 7 - 1 is 6, 6 * 32 is 192. GPIO192 exports fine, I can set it to output, change the value to 1 but there's no voltage! Can anyone help me, please?
barish Posted May 12, 2016 Author Posted May 12, 2016 Could this be due to configuration differences between Olinuxino A20 Lime and A20 Micro?
barish Posted May 14, 2016 Author Posted May 14, 2016 I found out now that on GPIO port 3, the PH0 works when addressed as GPIO224. Could it be that the LCD is activated by default and thus PGxxx are not working? If so, how could I deactivate LCD? Thanks for any help.
Recommended Posts