Re: [android-porting] Modifying kernel to expose GPIOs to user apps

2014-10-29 Thread Shree Kumar
You will need to export the GPIOs to userspace. The changes for this can be included in the initrd, and thus into the kernel boot image. Look at the relevant file in kernel/Documentation. Next, you need to allow apps to access the exported GPIO. A chmod 777 works to test things. Once this is don

[android-porting] Re: Modifying kernel to expose GPIOs to user apps

2014-10-29 Thread Allen Curtis
If you follow standard Android/kernel development standards, the GPIOs should be exported via "sysfs". The only customization you may need in the init script is to enable write permissions for your application. -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://gro