Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
projects:gpio-bb [2015/10/06 03:04] darron |
projects:gpio-bb [2023/11/05 16:20] darron [Raspberry Pi OS] |
||
---|---|---|---|
Line 7: | Line 7: | ||
GPIO bit-bang is well suited to PICMicro ICSP but not exclusively. | GPIO bit-bang is well suited to PICMicro ICSP but not exclusively. | ||
- | === Void Linux for Raspberry Pi === | + | === Build === |
- | First install development tools and the kernel headers. | + | This module is built out of kernel and depends on the header files and tools found locally or may be cross compiled. |
+ | |||
+ | For cross compilation, | ||
+ | |||
+ | If the linux source directory was cross compiled and then copied to the target system to build the module, `scripts.sh' | ||
+ | |||
+ | |||
+ | |||
+ | === Raspberry Pi OS=== | ||
+ | |||
+ | First install development tools and the kernel headers | ||
< | < | ||
- | xbps-install | + | apt-get install |
+ | </ | ||
+ | |||
+ | If you updated the kernel with rpi-update, install [[https:// | ||
+ | |||
+ | Now install headers for kernel installed with rpi-update. | ||
+ | < | ||
+ | rpi-source --skip-space | ||
</ | </ | ||
Line 18: | Line 35: | ||
hg clone http:// | hg clone http:// | ||
cd gpio-bb | cd gpio-bb | ||
- | ./ | + | make |
+ | make install | ||
</ | </ | ||
- | === Bananian for Banana Pi === | + | === Armbian |
- | Install development tools and the kernel headers and then install the kernel module. | + | ==BPI== |
< | < | ||
- | hg clone http:// | + | apt install |
- | cd gpio-bb | + | make |
- | ./bpi-bananian.sh | + | make install |
</ | </ | ||
- | === OpenWRT === | + | === Configuration |
- | [[projects: | + | |
- | + | ||
- | === Raspbian === | + | |
- | [[projects: | + | |
- | + | ||
- | === Linux Modprobe | + | |
Update the modprobe configuration to create the gpio-bb device node when the module is loaded. For example, add the following to / | Update the modprobe configuration to create the gpio-bb device node when the module is loaded. For example, add the following to / | ||
< | < | ||
- | install gpio-bb modprobe --ignore-install gpio-bb && modprobe gpio-bb && mknod / | + | install gpio-bb modprobe --ignore-install gpio-bb && modprobe gpio-bb && mknod / |
</ | </ | ||
+ | Lastly, add the following to / | ||
+ | < | ||
+ | gpio-bb | ||
+ | </ | ||
+ | |||
+ | === Obsolete documentation === | ||
+ | [[projects: | ||
+ | [[projects: | ||
+ | [[projects: | ||
+ | [[projects: | ||
+ | |||
+ | === Troubleshooting === | ||
+ | |||
+ | gpio-bb uses the kernel API to access pins, this API demands exclusive access to a pin per process. This means you cannot use gpio-bb and sysfs export simultaneously for a single pin. | ||
+ | === Resources === | ||
+ | [[https:// |