Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:wr841nd [2016/01/19 13:24] – [OpenWRT] darronboards:wr841nd [2018/12/07 18:57] (current) – [OpenWRT LEDE] 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
Line 22: Line 24:
  
 == Or, set up feeds for Pickle 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 clean
 ./scripts/feeds update -a ./scripts/feeds update -a
-./scripts/feeds install pickle+./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 42: Line 48:
  
 == Or, configure for Pickle Microchip PIC ICSP and NFS (build 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 55: 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] [pickle]  [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 75: 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
-firstboot + 
-reboot -f+BusyBox v1.25.1 () built-in shell (ash) 
 + 
 +     _________ 
 +    /        /\      _    ___ ___  ___ 
 +   /  LE    /  \    | |  | __|   \| __| 
 +  /    DE  /    \   | |__| _|| |) | _| 
 + /________/  LE  \  |____|___|___/|___|                      lede-project.org 
 +        \   DE / 
 +  \    LE  \    /  ----------------------------------------------------------- 
 +    DE    \  /    Reboot (17.01.6, r3979-2252731af4) 
 +    \________\/    ----------------------------------------------------------- 
 </code> </code>
 +
 +==Re-initialise (optional)==
 +
 +<code>
 +firstboot
 +reboot -f</code>
  
 == NFS == == NFS ==
Line 106: Line 134:
 Copy the packages to the router's tmp directory, Eg. Copy the packages to the router's tmp directory, Eg.
 <code> <code>
-scp bin/ar71xx/packages/base/kmod-dnsresolver_4.1.15-1_ar71xx.ipk root@192.168.1.1:/tmp +scp bin/targets/ar71xx/generic/packages/kmod-dnsresolver_4.4.153-1_mips_24kc.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/targets/ar71xx/generic/packages/kmod-fs-nfs-common_4.4.153-1_mips_24kc.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+scp bin/targets/ar71xx/generic/packages/kmod-fs-nfs_4.4.153-1_mips_24kc.ipk root@192.168.1.1:/tmp
 </code> </code>
  
 Then, on the router install the packages. Then, on the router install the packages.
 <code> <code>
-opkg install kmod-dnsresolver_4.1.15-1_ar71xx.ipk  +opkg install kmod-dnsresolver_4.4.153-1_mips_24kc.ipk 
-opkg install kmod-fs-nfs-common_4.1.15-1_ar71xx.ipk  +opkg install kmod-fs-nfs-common_4.4.153-1_mips_24kc.ipk 
-opkg install kmod-fs-nfs_4.1.15-1_ar71xx.ipk +opkg install kmod-fs-nfs_4.4.153-1_mips_24kc.ipk
 </code> </code>
 +
 === Serial === === Serial ===
 <code> <code>
Line 126: Line 155:
  
 === GPIO === === GPIO ===
-<code> +<code>
       1   2 GND       1   2 GND
 GPIO1 3   4 GND GPIO1 3   4 GND
Line 157: Line 186:
 DEBUG=1 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]]