Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:gpio-bb:raspbian [2016/07/21 18:41] – external edit 127.0.0.1 | projects:gpio-bb:raspbian [2022/08/01 13:59] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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. | ||
+ | |||
< | < | ||
uname -a | uname -a | ||
Line 13: | Line 16: | ||
Examples. | Examples. | ||
+ | |||
< | < | ||
Linux pi3 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/ | Linux pi3 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/ | ||
Line 24: | Line 28: | ||
Determine the kernel hash for the firmware. | Determine the kernel hash for the firmware. | ||
+ | |||
< | < | ||
wget -q https:// | wget -q https:// | ||
Line 31: | Line 36: | ||
Examples. | Examples. | ||
+ | |||
< | < | ||
3.6.11+ | 3.6.11+ | ||
Line 42: | Line 48: | ||
On the build host fetch the raspberry pi build tools. | On the build host fetch the raspberry pi build tools. | ||
+ | |||
< | < | ||
mkdir -p / | mkdir -p / | ||
Line 49: | Line 56: | ||
Fetch the kernel source for the previously determined hash. | Fetch the kernel source for the previously determined hash. | ||
+ | |||
< | < | ||
rm -Rf / | rm -Rf / | ||
Line 59: | Line 67: | ||
Prepare to build kernel and copy over configuration. | Prepare to build kernel and copy over configuration. | ||
+ | |||
< | < | ||
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. | ||
+ | |||
< | < | ||
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. | ||
+ | |||
< | < | ||
hg clone http:// | hg clone http:// | ||
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+). | ||
+ | |||
< | < | ||
mkdir -p / | mkdir -p / | ||
Line 91: | Line 103: | ||
Load modules on target machine. | Load modules on target machine. | ||
+ | |||
< | < | ||
/ | / |