Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:gpio-bb [2021/07/12 14:22] – darron | projects:gpio-bb [2024/05/16 10:54] (current) – [GPIO bit-bang driver for Linux] darron | ||
---|---|---|---|
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. | ||
- | === Raspbian | + | WARNING: The underlying kernel API this module uses may have been removed from your running kernel. |
+ | === 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 when using a regular kernel. | First install development tools and the kernel headers when using a regular kernel. | ||
Line 15: | Line 26: | ||
If you updated the kernel with rpi-update, install [[https:// | If you updated the kernel with rpi-update, install [[https:// | ||
- | </ | ||
- | Install | + | Now install |
< | < | ||
rpi-source --skip-space | rpi-source --skip-space | ||
Line 30: | Line 40: | ||
</ | </ | ||
- | === Void Linux for Raspberry Pi === | + | === Armbian |
- | First install development tools and the kernel headers. | + | ==BPI== |
- | < | + | |
- | xbps-install mercurial make gcc rpi-kernel-headers | + | |
- | </ | + | |
- | + | ||
- | Now install the kernel module. | + | |
- | < | + | |
- | hg clone http:// | + | |
- | cd gpio-bb | + | |
- | ./ | + | |
- | </ | + | |
- | + | ||
- | === Bananian for Banana Pi === | + | |
- | + | ||
- | Install development tools and the kernel headers and then install the kernel module. | + | |
- | + | ||
- | < | + | |
- | hg clone http:// | + | |
- | cd gpio-bb | + | |
- | ./ | + | |
- | </ | + | |
- | + | ||
- | === Armbian for Orange Pi Zero === | + | |
- | + | ||
- | Install development tools and then install the kernel module. | + | |
< | < | ||
+ | apt install linux-headers-current-sunxi | ||
hg clone http:// | hg clone http:// | ||
cd gpio-bb | cd gpio-bb | ||
Line 75: | Line 62: | ||
</ | </ | ||
- | === OpenWRT | + | === Obsolete documentation |
- | [[projects: | + | [[projects: |
- | + | [[projects: | |
- | === Raspbian for Raspberry Pi (obsolete) === | + | [[projects: |
- | [[projects: | + | [[projects: |
=== Troubleshooting === | === Troubleshooting === | ||
- | gpio-bb uses the kernel API to access pins, this API demands | + | 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. |
- | exclusive access to a pin per process. This means you cannot use | + | |
- | gpio-bb and sysfs export simultaneously for a single pin. | + | |
=== Resources === | === Resources === | ||
[[https:// | [[https:// |