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
projects:gpio-bb:raspbian [2016/07/21 18:41]
127.0.0.1 external edit
projects:gpio-bb:raspbian [2022/08/01 13:59] (current)
Line 1: Line 1:
-==== GPIO bit-bang driver for Raspbian ====+==== Raspbian (obsolete) ==== 
 + 
 +GPIO bit-bang driver for Raspbian.
  
 === Kernel Config === === Kernel Config ===
  
 Determine the running kernel and its config on the Raspberry Pi target machine. Determine the running kernel and its config on the Raspberry Pi target machine.
 +
 <code> <code>
 uname -a uname -a
Line 13: Line 16:
  
 Examples. Examples.
 +
 <code> <code>
 Linux pi3 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux  d4f5315cfac4e Linux pi3 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux  d4f5315cfac4e
Line 24: Line 28:
  
 Determine the kernel hash for the firmware. Determine the kernel hash for the firmware.
 +
 <code> <code>
 wget -q https://raw.github.com/raspberrypi/firmware/53d1ae311226b5c/extra/git_hash -O /tmp/hash wget -q https://raw.github.com/raspberrypi/firmware/53d1ae311226b5c/extra/git_hash -O /tmp/hash
Line 31: Line 36:
  
 Examples. Examples.
 +
 <code> <code>
 3.6.11+  d4f5315cfac4e   1587f775d0a3c437485262ba951afc5e30be69fa 3.6.11+  d4f5315cfac4e   1587f775d0a3c437485262ba951afc5e30be69fa
Line 42: Line 48:
  
 On the build host fetch the raspberry pi build tools. On the build host fetch the raspberry pi build tools.
 +
 <code> <code>
 mkdir -p /embedded/rpi mkdir -p /embedded/rpi
Line 49: Line 56:
  
 Fetch the kernel source for the previously determined hash. Fetch the kernel source for the previously determined hash.
 +
 <code> <code>
 rm -Rf /embedded/rpi/linux rm -Rf /embedded/rpi/linux
Line 59: Line 67:
  
 Prepare to build kernel and copy over configuration. Prepare to build kernel and copy over configuration.
 +
 <code> <code>
 make ARCH=arm mrproper make ARCH=arm mrproper
Line 65: Line 74:
  
 Build the kernel using the raspberry pi build tools. Build the kernel using the raspberry pi build tools.
 +
 <code> <code>
 make ARCH=arm oldconfig make ARCH=arm oldconfig
Line 71: Line 81:
  
 Build the GPIO bit-bang module and copy to target machine. Build the GPIO bit-bang module and copy to target machine.
 +
 <code> <code>
 hg clone http://hg.kewl.org/pub/gpio-bb hg clone http://hg.kewl.org/pub/gpio-bb
Line 81: Line 92:
  
 Install the module on the Raspberry Pi target machine (Eg. 3.12.28+). Install the module on the Raspberry Pi target machine (Eg. 3.12.28+).
 +
 <code> <code>
 mkdir -p /lib/modules/3.12.28+/kernel/local/ mkdir -p /lib/modules/3.12.28+/kernel/local/
Line 91: Line 103:
  
 Load modules on target machine. Load modules on target machine.
 +
 <code> <code>
 /etc/modprobe.d/modprobe.conf: /etc/modprobe.d/modprobe.conf: