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 [2015/01/10 16:42]
darron
projects:gpio-bb:raspbian [2016/10/23 14:56]
darron
Line 1: Line 1:
-==== GPIO bit-bang driver for Raspbian ====+==== GPIO bit-bang driver for Raspbian (obsolete) ====
  
-== Determine the running kernel and it'config on the Raspberry Pi target machine ==+=== Kernel Config === 
 + 
 +Determine the running kernel and its config on the Raspberry Pi target machine.
 <code> <code>
 uname -a uname -a
Line 10: Line 12:
 </code> </code>
  
-== 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 19: Line 21:
 </code> </code>
  
-== Determine the kernel hash for this firmware ==+=== Kernel Hash === 
 + 
 +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 26: Line 30:
 </code> </code>
  
-== Examples ==+Examples.
 <code> <code>
 3.6.11+  d4f5315cfac4e   1587f775d0a3c437485262ba951afc5e30be69fa 3.6.11+  d4f5315cfac4e   1587f775d0a3c437485262ba951afc5e30be69fa
Line 35: Line 39:
 </code> </code>
  
-== On the build host fetch the raspberry pi build tools ==+=== Build ===
  
 +On the build host fetch the raspberry pi build tools.
 <code> <code>
 mkdir -p /embedded/rpi mkdir -p /embedded/rpi
Line 43: Line 48:
 </code> </code>
  
-== 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 54: Line 58:
 </code> </code>
  
-== 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 60: Line 64:
 </code> </code>
  
-== Build the kernel using the cross compiler tools == +Build the kernel using the raspberry pi build tools.
 <code> <code>
 make ARCH=arm oldconfig make ARCH=arm oldconfig
Line 67: Line 70:
 </code> </code>
  
-== 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
-cd gpio-bb/raspbian+cd gpio-bb/rpi-raspbian
 make  make 
 scp ../module/src/gpio-bb.ko pi@pi: scp ../module/src/gpio-bb.ko pi@pi:
 </code> </code>
  
-== Install the module on the Raspberry Pi target machine (Eg. 3.12.28+) ==+=== Install ===
  
 +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 85: Line 88:
 </code> </code>
  
-== Load modules on target machine ==+=== Modprobe ===
  
 +Load modules on target machine.
 <code> <code>
 /etc/modprobe.d/modprobe.conf: /etc/modprobe.d/modprobe.conf:
Line 95: Line 99:
 modprobe gpio-bb modprobe gpio-bb
 </code> </code>
 +