Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:gpio-bb [2017/01/12 22:44] – external edit 127.0.0.1 | 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 for Raspberry Pi === | + | WARNING: The underlying kernel API this module uses may have been removed from your running kernel. |
+ | === 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 | ||
< | < | ||
apt-get install raspberrypi-kernel-headers | apt-get install raspberrypi-kernel-headers | ||
</ | </ | ||
- | Now install | + | If you updated |
- | < | + | |
- | hg clone http://hg.kewl.org/pub/gpio-bb | + | |
- | cd gpio-bb | + | |
- | make | + | |
- | make install | + | |
- | </ | + | |
- | + | ||
- | === Void Linux for Raspberry Pi === | + | |
- | First install | + | Now install headers |
< | < | ||
- | xbps-install mercurial make gcc rpi-kernel-headers | + | rpi-source --skip-space |
</ | </ | ||
Line 33: | Line 36: | ||
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:// | + | |
- | 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 67: | 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:// |