Differences
This shows you the differences between two versions of the page.
projects:gpio-bb:openwrt [2014/12/29 18:10] darron created |
projects:gpio-bb:openwrt [2017/01/12 22:44] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== GPIO bit-bang driver for OpenWRT ===== | ||
- | == Prepare to build OpenWRT == | ||
- | < | ||
- | mkdir -p / | ||
- | cd / | ||
- | git clone git:// | ||
- | chown -R nobody: | ||
- | cd / | ||
- | /bin/su nobody | ||
- | cp feeds.conf.default feeds.conf.default.orig | ||
- | echo " | ||
- | ./ | ||
- | ./ | ||
- | ./ | ||
- | </ | ||
- | |||
- | == Configure == | ||
- | < | ||
- | make menuconfig | ||
- | </ | ||
- | |||
- | == Enable some options == | ||
- | < | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | user's regdomain settings] | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | == Disable some options == | ||
- | < | ||
- | | ||
- | [Base system] [dnsmasq] | ||
- | [Base system] [firewall] | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | == Exit configuration == | ||
- | < | ||
- | | ||
- | </ | ||
- | |||
- | == Build == | ||
- | < | ||
- | make V=s | ||
- | [WAIT FOR A LONG TIME...] | ||
- | </ | ||
- | |||
- | == Install == | ||
- | < | ||
- | ls -1 bin/ | ||
- | bin/ | ||
- | bin/ | ||
- | bin/ | ||
- | bin/ | ||
- | bin/ | ||
- | bin/ | ||
- | bin/ | ||
- | </ | ||
- | From the router maintenance page upgrade the firmware using the correct image.\\ | ||
- | For this example, it's openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin | ||
- | |||
- | == Login == | ||
- | < | ||
- | telnet 192.168.1.1 | ||
- | Trying 192.168.1.1... | ||
- | Connected to 192.168.1.1. | ||
- | Escape character is ' | ||
- | === IMPORTANT ============================ | ||
- | Use ' | ||
- | this will disable telnet and enable SSH | ||
- | | ||
- | |||
- | |||
- | BusyBox v1.22.1 (2014-11-08 16:13:53 GMT) built-in shell (ash) | ||
- | Enter ' | ||
- | |||
- | _______ | ||
- | | ||
- | | ||
- | | ||
- | |__| W I R E L E S S F R E E D O M | ||
- | | ||
- | CHAOS CALMER (Bleeding Edge, r43216) | ||
- | | ||
- | * 1 1/2 oz Gin Shake with a glassful | ||
- | * 1/4 oz Triple Sec of broken ice and pour | ||
- | * 3/4 oz Lime Juice | ||
- | * 1 1/2 oz Orange Juice | ||
- | * 1 tsp. Grenadine Syrup | ||
- | | ||
- | </ | ||
- | |||
- | == Test GPIO-BB == | ||
- | < | ||
- | ssh -x root@192.168.1.1 | ||
- | rmmod leds_gpio | ||
- | modprobe gpio-bb && mknod / | ||
- | vi / | ||
- | | ||
- | ktest vpp 5 | ||
- | |||
- | TEST MODE VPP|PGD|PGC|PGM | ||
- | |||
- | VPP LOW (ICSP 1) (D-SUB-9 TX 3) [3 seconds] | ||
- | VPP HIGH (ICSP 1) (D-SUB-9 TX 3) [5 seconds] | ||
- | VPP LOW (ICSP 1) (D-SUB-9 TX 3) [3 seconds] | ||
- | |||
- | TEST DONE | ||
- | </ | ||
- | |||
- | == Update GPIO-BB == | ||
- | < | ||
- | cd / | ||
- | /bin/su nobody | ||
- | scripts/ | ||
- | Updating feed ' | ||
- | [WAIT FOR A WHILE...] | ||
- | make V=s | ||
- | [WAIT FOR A WHILE...] | ||
- | scp bin/ | ||
- | ssh -x root@192.168.1.1 | ||
- | sysupgrade -v / | ||
- | [WAIT FOR REBOOT] | ||
- | ssh -x root@192.168.1.1 | ||
- | |||
- | BusyBox v1.19.4 (2014-03-17 16:43:34 GMT) built-in shell (ash) | ||
- | Enter ' | ||
- | |||
- | _______ | ||
- | | ||
- | | ||
- | | ||
- | |__| W I R E L E S S F R E E D O M | ||
- | | ||
- | | ||
- | | ||
- | * 1/2 oz Galliano | ||
- | * 4 oz cold Coffee | ||
- | * 1 1/2 oz Dark Rum with crushed ice. Stir. | ||
- | * 2 tsp. Creme de Cacao | ||
- | | ||
- | </ |