Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
projects:gpio-bb [2022/08/01 14:04]
darron [OpenWRT]
projects:gpio-bb [2023/11/05 16:20]
darron [Raspberry Pi OS]
Line 6: Line 6:
  
 GPIO bit-bang is well suited to PICMicro ICSP but not exclusively. 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, an example Makefile named `cross-compile.mk' is provided which should work for Raspberry PI OS as explained [[:tools:raspbian#kernel|here]].
 +
 +If the linux source directory was cross compiled and then copied to the target system to build the module, `scripts.sh' is provided to rebuild certain kernel header scripts locally. This is needed because some scripts are actually binary files on the foreign architecture.
 +
 +
  
 === Raspberry Pi OS=== === Raspberry Pi OS===
Line 29: Line 39:
 </code> </code>
  
 +=== Armbian ===
 +
 +==BPI==
 +
 +<code>
 +apt install  linux-headers-current-sunxi
 +make
 +make install
 +</code>
  
 === Configuration === === Configuration ===
Line 45: Line 64:
 [[projects:gpio-bb:openwrt|OpenWRT]] [[projects:gpio-bb:openwrt|OpenWRT]]
 [[projects:gpio-bb:raspbian|Raspbian]] [[projects:gpio-bb:raspbian|Raspbian]]
- 
-=== Raspbian for Raspberry Pi (obsolete) === 
-[[projects:gpio-bb:raspbian|GPIO bit-bang driver for Raspbian]] 
  
 === 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://www.pedalpc.com/blog/program-pic-raspberry-pi/#gpio-bb|Using gpio-bb]] [[https://www.pedalpc.com/blog/program-pic-raspberry-pi/#gpio-bb|Using gpio-bb]]