Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
projects:gpio-bb [2015/01/03 15:51] darron [Void Linux for Raspberry Pi] |
projects:gpio-bb [2022/08/01 15:31] darron [Build] |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== GPIO bit-bang driver for Linux ==== | ==== GPIO bit-bang driver for Linux ==== | ||
- | ==== Void Linux for Raspberry Pi ==== | + | The GPIO bit-bang driver creates an interface to Linux GPIOs using the IOCTL API. |
- | First install development tools and the kernel headers. | + | Basic 1-bit input and output is available along with accelerated multiple bit shift I/O. |
+ | |||
+ | GPIO bit-bang is well suited to PICMicro ICSP but not exclusively. | ||
+ | |||
+ | === Build === | ||
+ | |||
+ | 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 | ||
</ | </ | ||
Now install the kernel module. | Now install the kernel module. | ||
< | < | ||
- | hg clone http:// | + | hg clone http:// |
- | cd k8048/Src/gpio-bb | + | cd gpio-bb |
- | ./install.sh | + | make |
+ | make install | ||
</ | </ | ||
- | == / | + | |
- | Update modprobe configuration to create the gpio-bb device node when the module is loaded. | + | === Configuration === |
+ | Update | ||
+ | < | ||
+ | install gpio-bb modprobe --ignore-install gpio-bb && modprobe gpio-bb && mknod / | ||
+ | </ | ||
+ | Lastly, add the following to / | ||
< | < | ||
- | install | + | gpio-bb |
</ | </ | ||
- | ==== OpenWRT ==== | + | === Obsolete documentation |
- | [[projects: | + | [[projects: |
+ | [[projects: | ||
+ | [[projects: | ||
+ | [[projects: | ||
- | ==== Raspbian ==== | + | === Troubleshooting |
- | [[projects:gpio-bb: | + | gpio-bb |
+ | === Resources === | ||
+ | [[https:// |