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/07 22:40]
darron
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 === 
 + 
 +Determine the running kernel and its config on the Raspberry Pi target machine.
  
-== Determine the running kernel and it's config on the Raspberry Pi target machine == 
 <code> <code>
 uname -a uname -a
Line 10: Line 15:
 </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 25:
 </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 35:
 </code> </code>
  
-== Examples ==+Examples
 <code> <code>
 3.6.11+  d4f5315cfac4e   1587f775d0a3c437485262ba951afc5e30be69fa 3.6.11+  d4f5315cfac4e   1587f775d0a3c437485262ba951afc5e30be69fa
Line 35: Line 45:
 </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 73:
 </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 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>
Line 85: Line 100:
 </code> </code>
  
-== Load modules on target machine ==+=== Modprobe === 
 + 
 +Load modules on target machine.
  
 <code> <code>
Line 95: Line 112:
 modprobe gpio-bb modprobe gpio-bb
 </code> </code>
 +