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
Last revision Both sides next revision
boards:wr841nd [2016/01/19 11:45]
darron
boards:wr841nd [2018/12/07 17:36]
darron
Line 1: Line 1:
 ==== TP-Link TL-WR841ND v8.4 ==== ==== TP-Link TL-WR841ND v8.4 ====
 +
 <wrap right> <wrap right>
 {{:boards:tplink.jpg?200}} {{:boards:tplink.jpg?200}}
 </wrap> </wrap>
  
-=== OpenWRT ===+=== OpenWRT LEDE ===
  
 ==Check-out== ==Check-out==
 +
 <code> <code>
 mkdir -p /embedded/openwrt/ mkdir -p /embedded/openwrt/
-cd /embedded/openwrt/ +cd /embedded/openwrt 
-git clone git://git.openwrt.org/openwrt.git openwrt.git +git clone git://github.com/openwrt/openwrt.git openwrt-wr841.git 
-chown -R nobody:nogroup /embedded/openwrt/openwrt.git +cd /embedded/openwrt/openwrt-wr841.git 
-/bin/su nobody +git checkout v17.01.6
-cd /embedded/openwrt/openwrt.git+
 </code> </code>
  
 ==Set up standard feeds== ==Set up standard feeds==
 +
 <code> <code>
 ./scripts/feeds update -a ./scripts/feeds update -a
 </code> </code>
  
-== Or, set up feeds for Microchip PIC ICSP and NFS==+== Or, set up feeds for Pickle Microchip PIC ICSP and NFS== 
 <code> <code>
 cp feeds.conf.default feeds.conf.default.orig cp feeds.conf.default feeds.conf.default.orig
 echo "src-git openwrtfiles git://github.com/GBert/openwrt-files" >> feeds.conf.default echo "src-git openwrtfiles git://github.com/GBert/openwrt-files" >> feeds.conf.default
 +echo "src-git openwrtmisc git://github.com/GBert/openwrt-misc" >> feeds.conf.default
 +./scripts/feeds clean
 ./scripts/feeds update -a ./scripts/feeds update -a
-./scripts/feeds install kmod-bit-bang-gpio picprog-new+./scripts/feeds install pickle bit-bang-gpio 
 +./scripts/feeds install ath-hs-uart
 ./scripts/feeds install nfs-utils ./scripts/feeds install nfs-utils
 </code> </code>
  
 == Configure a standard build== == Configure a standard build==
 +
 <code> <code>
 make menuconfig make menuconfig
Line 40: Line 47:
 </code> </code>
  
-== Or, configure for Microchip PIC ICSP and NFS (with I2C support)==+== Or, configure for Pickle Microchip PIC ICSP and NFS (build I2C support)== 
 <code> <code>
 make menuconfig make menuconfig
  
  [Target System  = Atheros AR7xxx/AR9xxx]  [Target System  = Atheros AR7xxx/AR9xxx]
- [Target Profile = TP-LINK TL-WR841N/ND]+ [Target Profile = TP-LINK TL-WR841N/ND v8]
  
 ENABLE: <M> ENABLE: <M>
Line 54: Line 62:
  
 ENABLE: <*> ENABLE: <*>
- [Kernel modules] [Wireless Drivers] [kmod-ath] [Force Atheros drivers to respect the user's regdomain settings] 
  [Utilities] [Filesystem] [nfs-utils]  [Utilities] [Filesystem] [nfs-utils]
- [Utilities] [picprog-new]+ [Utilities] [pickle]
  
 DISABLE: < > DISABLE: < >
- [Global build settings] [Enable IPv6 support in packages] 
  [Base system] [dnsmasq]  [Base system] [dnsmasq]
  [Base system] [firewall]  [Base system] [firewall]
 + [Network] [Firewall] [ip6tables]
  [Network] [Firewall] [iptables]  [Network] [Firewall] [iptables]
 + [Network] [odhcp6c]
  [Network] [odhcpd]  [Network] [odhcpd]
  [Network] [ppp]  [Network] [ppp]
Line 74: Line 82:
 == Build == == Build ==
  
-This will take a long time.+This can take half an hour. 
 <code> <code>
-make V=s+chown -R nobody /embedded/openwrt/openwrt-wr841.git 
 +su nobody -c 'make V=s -j 4'
 </code> </code>
  
-==Upgrade==+==Inspect== 
 + 
 +<code> 
 +ls -1 bin/targets/ar71xx/generic/*wr841*bin 
 +bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr841-v8-squashfs-factory.bin 
 +bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr841-v8-squashfs-sysupgrade.bin 
 +</code> 
 + 
 +==Install== 
 <code> <code>
-ls -1 bin/ar71xx/*factory* +scp bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr841-v8-squashfs-factory.bin root@192.168.1.1:/tmp/
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr841nd-v1.5-squashfs-factory.bin +
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr841nd-v3-squashfs-factory.bin +
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr841nd-v5-squashfs-factory.bin +
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr841nd-v7-squashfs-factory.bin +
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin +
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v9-squashfs-factory.bin +
-bin/ar71xx/openwrt-ar71xx-generic-tl-wr847n-v8-squashfs-factory.bin +
-scp bin/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin root@192.168.1.1:/tmp/+
 ssh root@192.168.1.1 ssh root@192.168.1.1
-sysupgrade -v /tmp/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin+sysupgrade -v /tmp/lede-ar71xx-generic-tl-wr841-v8-squashfs-factory.bin
 </code> </code>
  
-==Re-initialise==+==Login== 
 <code> <code>
 ssh root@192.168.1.1 ssh root@192.168.1.1
 +
 +BusyBox v1.25.1 () built-in shell (ash)
 +
 +     _________
 +    /        /\      _    ___ ___  ___
 +   /  LE    /  \    | |  | __|   \| __|
 +  /    DE  /    \   | |__| _|| |) | _|
 + /________/  LE  \  |____|___|___/|___|                      lede-project.org
 +        \   DE /
 +  \    LE  \    /  -----------------------------------------------------------
 +    DE    \  /    Reboot (17.01.6, r3979-2252731af4)
 +    \________\/    -----------------------------------------------------------
 +
 +</code>
 +
 +==Re-initialise (optional)==
 +
 +<code>
 firstboot firstboot
-reboot -f+reboot -f</code> 
 + 
 +== NFS == 
 + 
 +Copy the packages to the router's tmp directory, Eg. 
 +<code> 
 +scp bin/ar71xx/packages/base/kmod-dnsresolver_4.1.15-1_ar71xx.ipk root@192.168.1.1:/tmp 
 +scp bin/ar71xx/packages/base/kmod-fs-nfs-common_4.1.15-1_ar71xx.ipk root@192.168.1.1:/tmp 
 +scp bin/ar71xx/packages/base/kmod-fs-nfs_4.1.15-1_ar71xx.ipk root@192.168.1.1:/tmp 
 +</code> 
 + 
 +Then, on the router install the packages. 
 +<code> 
 +opkg install kmod-dnsresolver_4.1.15-1_ar71xx.ipk  
 +opkg install kmod-fs-nfs-common_4.1.15-1_ar71xx.ipk  
 +opkg install kmod-fs-nfs_4.1.15-1_ar71xx.ipk 
 </code> </code>
  
Line 110: Line 155:
  
 === GPIO === === GPIO ===
-<code> +<code>
       1   2 GND       1   2 GND
 GPIO1 3   4 GND GPIO1 3   4 GND
Line 131: Line 176:
 Pickle configuration. Pickle configuration.
 <code> <code>
 +DEVICE=/dev/gpio-bb
 +BITRULES=0x1000
 +SLEEP=1
 +BUSY=0
 VPP=2 VPP=2
 PGM=1 PGM=1
 PGC=3 PGC=3
 PGD=0 PGD=0
 +DEBUG=1
 </code> </code>
 +
 === Resources === === Resources ===
 [[http://wiki.openwrt.org/toh/tp-link/tl-wr841nd|OpenWRT]]\\ [[http://wiki.openwrt.org/toh/tp-link/tl-wr841nd|OpenWRT]]\\
 [[https://wikidevi.com/wiki/TP-LINK_TL-WR841ND_v8.x|Specifications]] [[https://wikidevi.com/wiki/TP-LINK_TL-WR841ND_v8.x|Specifications]]