Differences

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

Link to this comparison view

Next revision
Previous revision
projects:gpio-bb:raspbian [2014/12/29 18:08]
darron created
projects:gpio-bb:raspbian [2016/10/23 14:56]
darron
Line 1: Line 1:
-==== GPIO-BB 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 kernel build tools ==+=== Build ===
  
 +On the build host fetch the raspberry pi build tools.
 <code> <code>
-mkdir -p /embedded/raspbian/build/ +mkdir -p /embedded/rpi 
-cd /embedded/raspbian/build/+cd /embedded/rpi
 git clone git://github.com/raspberrypi/tools.git git clone git://github.com/raspberrypi/tools.git
 </code> </code>
  
-== Fetch the kernel source for the previously determined hash == +Fetch the kernel source for the previously determined hash.
 <code> <code>
-cd /embedded/raspbian/build+rm -Rf /embedded/rpi/linux 
-rm -Rf /embedded/raspbian/build/linux+cd /embedded/rpi
 git clone https://github.com/raspberrypi/linux.git git clone https://github.com/raspberrypi/linux.git
-cd /embedded/raspbian/build/linux/+cd /embedded/rpi/linux/
 git checkout 94a382fed1a5ec303eef9e1f3439df8f759ba60c git checkout 94a382fed1a5ec303eef9e1f3439df8f759ba60c
 git reset --hard git reset --hard
 </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
-make ARCH=arm CROSS_COMPILE=/embedded/raspbian/build/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi- -j 8+make ARCH=arm CROSS_COMPILE=/embedded/rpi/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi- -j 8
 </code> </code>
  
-== Build the gpio bit-bang module from the k8048 build directory and copy to target machine == +Build the GPIO bit-bang module and copy to target machine.
 <code> <code>
-cd $HOME/k8048/Src/gpio-bb/raspbian+hg clone http://hg.kewl.org/pub/gpio-bb 
 +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 84: 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 94: Line 99:
 modprobe gpio-bb modprobe gpio-bb
 </code> </code>
 +