GPIO and SPI with Android

Post subject says it all. The following are my current questions. Any and all help is appreciated.

SPI:

Does anyone have experience enabling spidev in the kernel? If so, how did you go about doing it?

Once spidev is enabled and the pins are free for SPI communication, how do I control this through an Android application? I can write in C through the NDK using JNI. Do I just use the read() writed() spidev functions from there?

GPIO:

Will I have to modify the pin muxing in board header in the U-Boot source and rebuild so there are no kernel conflicts? If so are there any instructions on how to do that? I found this page (https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:gpio-sysfs) describing how to do this from userspace. Anyone know if that method works/should work?

Hi

Regarding enabling SPI I guess this one gives you some pointers:
http://groups.google.com/group/beagleboard/browse_thread/thread/3a70ecefa643754a/
I was using rowboat. I assume you do so too?

As far as I have read, you should be able to use the NDK for the whole ioctrl stuff needed to access spidev and make it through this path available to your android app.

At least that's what I will try to do the next few weeks...

Regards
Ueli

Quoting Mark <mmeisner204@gmail.com>: