Sunteți pe pagina 1din 25

2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog

http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 1/25
PhobosKsBlog
Mypersonalweblog
HowtoturnyourTPLinkTLWRT740Nrouterintoafullyfunctional
oneusingOpenWRT

i
6Votes
RecentlyidecidedtoacquireafullfunctionalwifirouterwithasmuchaspossibleextrafeatureslikeOpenVPNsupport,proxyrunning
supportetc.SoiboughtaverycheapandcommonTPLink150MbpsWirelessNRouterTLWR740N(http://www.tp
link.com/en/products/details/?categoryid=241&model=TLWR740N).
Itcomeswithmanyfeaturesbydefault,butnottheoneIneeded,soIflasheditwiththeOpenWRT(http://openwrt.org)firmware
images.HereIwilldescribethewholeprocedure.
Hardwarecharacteristics:
TheoneIboughtforaround$20turnedouttobev4.23.Ithasa400MhzAtherosAR9330rev1CPU,4MBFlashand32MBRAM.
Moreinfocanbefoundonitsproductpagehere(http://www.tplink.com/en/products/details/?categoryid=241&model=TLWR740N).
InstallingOpenWRT:
TheTLWR740Nv4.23worksperfectlywiththecurrentunmodifiedAttitudeAdjustment(12.09beta)genericWR740Nv4
(http://downloads.openwrt.org/attitude_adjustment/12.09beta/ar71xx/generic/openwrtar71xxgenerictlwr740nv4squashfs
factory.bin)andAttitudeAdjustment(12.09Final)genericWR740Nv4images
(http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrtar71xxgenerictlwr740nv4squashfsfactory.bin).
ThebestinstallationmethodisflashingitthroughthestockTPLinkwebinterface.Sofirstdownloadtheopenwrtar71xxgenerictl
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 2/25
wr740nv4squashfsfactory.binfilefromtheabovelinks(the12.09Finalpreferred).IfthereisanewerversionofOpenWRTatthe
timeyoureadthis,youmayuseit,butbesuretodownloadthefileendingin:tlwr740nv4squashfsfactory.bin,oryoumay
effectivelybrickyourrouter.
Note:Pleaseresetyourroutertofactorydefaultsifithasbeenpreviouslyconfigured/used.
1. Powerupyourrouterdevice.
2. ConnectthelocalPCtoanyoftheLANportsoftheRouter.
3. Browsetohttp://192.168.0.1(http://192.168.0.1)(alternativelyyoumayusetheURLhttp://tplinklogin.net
(http://tplinklogin.net)).
4. ChoosethemenuSystemToolsFirmwareUpgrade.
5. Uploadtheopenwrtar71xxgenerictlwr740nv4squashfsfactory.binfiletorouter.Besuretochosea.squashfsfactory.bin
file!
6. Waitfortheroutertoreboot.
7. MakesureyourrouterworksokasyouunplugtheLANcablefromyourPC,plugitinbackandbrowsetohttp://192.168.1.1
(http://192.168.1.1)
TheOpenWRTfirmwareyouvejustflashedisabasiconeandismissingthefunctionalityiwastalkingabout(likeOpenVPN,
proxyingetc).SoyouneedtoprepareyourownfirmwareandflashitoverthegenericOpenWRTfirmware.Hereishowyoudoit:
YouwillpreparethefirmwareimageusingAttitudeAdjustment12.09betaImageBuilder(r33312)
(http://downloads.openwrt.org/attitude_adjustment/12.09beta/ar71xx/generic/OpenWrtImageBuilderar71xx_genericfor
linuxi486.tar.bz2)orAttitudeAdjustment12.09FinalImageBuilder
(http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrtImageBuilderar71xx_genericforlinux
i486.tar.bz2).SinceTLWR740Nv4.23doesnthaveanystockUSB,anyUSBstuffshouldberemovedfromthedefaultgeneric
OpenWRTfirmwareimage.Wewilladdthefollowingfunctionality(incl.thewebbasedconfigurationinterfaceforthemLuCI):
QOS(incl.LuCIsupport)
OpenVPN(incl.LuCIsupportforAttitudeAdjustment12.09betar33312only,causeinthe12.09Finalversionitisbroken)
Tinyproxy(incl.LuCIsupport)
UPNP(incl.LuCIsupport)
So,afterdownloadingtheImageBuilder,extractingit,entertheextractionfolderandthencontinueissuingtherespectivecommand:
ForAttitudeAdjustment12.09betaImageBuilder(r33312):
make image PROFILE=TLWR740 PACKAGES="base-files busybox dnsmasq dropbear firewall
hotplug2 iptables iw jshn kernel kmod-ath kmod-ath9k kmod-ath9k-common kmod-cfg80211
kmod-crypto-aes kmod-crypto-arc4 kmod-crypto-core kmod-gpio-button-hotplug kmod-ipt-
conntrack kmod-ipt-core kmod-ipt-nat kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-
default-on kmod-ledtrig-netdev kmod-ledtrig-timer -kmod-ledtrig-usbdev kmod-lib-crc-
ccitt kmod-mac80211 kmod-nls-base kmod-ppp kmod-pppoe kmod-pppox -kmod-usb-core -
kmod-usb-ohci -kmod-usb2 kmod-wdt-ath79 libblobmsg-json libc libgcc libip4tc
libiwinfo libiwinfo-lua libjson liblua libnl-tiny libubox libubus libubus-lua libuci
libuci-lua libxtables lua luci luci-app-firewall luci-i18n-english luci-lib-core
luci-lib-ipkg luci-lib-lmo luci-lib-nixio luci-lib-sys luci-lib-web luci-mod-admin-
core luci-mod-admin-full luci-proto-core luci-proto-ppp luci-sgi-cgi luci-theme-base
luci-theme-openwrt mtd netifd opkg ppp ppp-mod-pppoe swconfig uboot-envtools ubus
ubusd uci uhttpd wireless-tools wpad-mini luci-app-qos luci-app-openvpn luci-app-
tinyproxy luci-app-upnp"
ForAttitudeAdjustment12.09FinalImageBuilder:
make image PROFILE=TLWR740 PACKAGES="base-files busybox dnsmasq dropbear firewall
hotplug2 iptables iw jshn kernel kmod-ath kmod-ath9k kmod-ath9k-common kmod-cfg80211
kmod-crypto-aes kmod-crypto-arc4 kmod-crypto-core kmod-gpio-button-hotplug kmod-ipt-
conntrack kmod-ipt-core kmod-ipt-nat kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-
default-on kmod-ledtrig-netdev kmod-ledtrig-timer -kmod-ledtrig-usbdev kmod-lib-crc-
ccitt kmod-mac80211 kmod-nls-base kmod-ppp kmod-pppoe kmod-pppox -kmod-usb-core -
kmod-usb-ohci -kmod-usb2 kmod-wdt-ath79 libblobmsg-json libc libgcc libip4tc
libiwinfo libiwinfo-lua libjson liblua libnl-tiny libubox libubus libubus-lua libuci
libuci-lua libxtables lua luci luci-app-firewall luci-i18n-english luci-lib-core
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 3/25
luci-lib-ipkg luci-lib-nixio luci-lib-sys luci-lib-web luci-mod-admin-core luci-mod-
admin-full luci-proto-core luci-proto-ppp luci-sgi-cgi luci-theme-base luci-theme-
openwrt mtd netifd opkg ppp ppp-mod-pppoe swconfig uboot-envtools ubus ubusd uci
uhttpd wpad-mini luci-app-qos luci-app-tinyproxy luci-app-upnp openvpn"
Thecommandlineweusedforthepreparationincludesalldefaultpackagesofthedefaultfirmwareimagesexcept:kmodledtrig
usbdev,kmodusbcore,kmodusbohci,kmodusb2andaddsthesepackages:luciappqos,luciappopenvpn(forAttitude
Adjustment12.09betar33312only,causeinthe12.09Finalversionitisbroken),luciapptinyproxy,luciappupnp.
Whentheprocessends,youshouldhavealltheneededfilesinthe<extractionfolder>/bin/ar71xx/folder.Fromthereyouneedonly
onefiletheopenwrtar71xxgenerictlwr740nv4squashfssysupgrade.binfile.Usethisfiletouploadittoyourrouterandflashit
withitusingtheLuCIinterface.Sofollowthesesteps:
1. Powerupyourrouterdevice.
2. ConnectthelocalPCtoanyoftheLANportsoftheRouter.
3. Browsetohttp://192.168.1.1(http://192.168.1.1).
4. LoginLuCIwiththedefaultuser:rootandpassword:password
5. ChoosethemenuSystemFirmwareFlash/Upgrade.
6. Uploadtheopenwrtar71xxgenerictlwr740nv4squashfssysupgrade.binfiletorouter.Besuretochosea.squashfs
sysupgrade.binfile!
7. DonotselecttokeepconfigurationfilesandclicktheFlashbutton.
8. Waitfortheroutertoreboot.
9. MakesureyourrouterworksokasyouunplugtheLANcablefromyourPC,plugitinbackandbrowsetohttp://192.168.1.1
(http://192.168.1.1)
10. Telnetto192.168.1.1andsetanewrootpassword,orbrowsetohttp://192.168.1.1(http://192.168.1.1)andchangethepassword
fromwithinLuCI.
11. Proceedwiththebasicconfigurationofyourrouter.YoumayusetherelevantdocumentationontheOpenWRTsite
(http://openwrt.org).
Thatisall.NowyouhaveachievedthetargetedextrafeaturesforyourTPLinkTLWR740Nv4.23
Note:IfyouarenotcomfortablewithbuildingyourownmodifiedimageintheImageBuilder,youmayusetheimagesIhaveprepared
andtested.Youcandownloadthemfromhere(http://gentoo.plexyplanet.org/openwrt/).Pleaseuseonlytheopenwrtar71xxgenerictl
wr740nv4squashfssysupgrade.bin(12.09beta)(http://gentoo.plexyplanet.org/openwrt/attitudeadjustment12.09beta/openwrt
ar71xxgenerictlwr740nv4squashfssysupgrade.bin)ortheopenwrtar71xxgenerictlwr740nv4squashfssysupgrade.bin(12.09
Final)(http://gentoo.plexyplanet.org/openwrt/attitudeadjustment12.09final/openwrtar71xxgenerictlwr740nv4squashfs
sysupgrade.bin)firmwareimagesfromthere!Thefactory.binoneshavenotbeentested,soyoumayeffectivelybrickyourrouter!
SerialcablefortheTLWR740N
IfforsomereasonyoubrickyourrouterandthefailsafemodeoftheOpenWRTfirmwaredoesntwork,youwillneedtodebrickyour
routerusingaserialcable.Hereishowyoudoit:
Thev4.23oftherouterusesthestandardTPLinkpinout,howevertheTXpinisnotconnectedtotheCPU.InordertomaketheTX
lineworking,thetwopointsonthebottomsideofthePCBmustbeconnectedwithasmallwire.ThepinattheSOCislabeledTP18,
theoneattheserialconnectorislabeledTP28.TheRXlineis5Vintolerant!Sotheconnectionneedsa3.3VRS232levelshifter.
Pinsontheconnectoroftheboard(lookatthephotosatthebottomofthispost)areTXRXGND3V3(VCC)(fromlefttoright).After
yousolderallconnections,youmayuseanUSBtoUARTTTLconvertorthatyouplugintoyourPCanduseforexamplethecutecom
applicationtoconnecttothe/dev/ttyUSB0deviceonyourPC.DonotforgetthatyouneedtoconnecttheTXpinoftheconvertorto
theRXpinoftheboardandtheRXpinoftheconvertortotheTXpinoftheboard.IncaseyouusetheUSBtoUARTTTLconvertor,
youdonotneedtoconnecttheVCCpin.Anotherimportantthingtodoistosettheconvertortoworkwith3.3Vifitcanworkboth
with5Vand3.3V!Formoreinfolookattheimagesatthebottomofthispost.
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 4/25
Afteryouarereadywithyourserialcable,youmayproceedwiththefollowingsteps:
1. Puttheoriginalopenwrtar71xxgenerictlwr740nv4squashfssysupgrade.bin(12.09beta)
(http://downloads.openwrt.org/attitude_adjustment/12.09beta/ar71xx/generic/openwrtar71xxgenerictlwr740nv4squashfs
sysupgrade.bin)oropenwrtar71xxgenerictlwr740nv4squashfssysupgrade.bin(12.09Final)
(http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrtar71xxgenerictlwr740nv4squashfs
sysupgrade.bin)toyourTFTPserver.
2. HookyourroutersWANEthernetportuptoyournetwork/PC.
3. Hookuptheserialcable/consoleasexplainedinthesectionSerialcablefortheTLWR740N,startyourcutecomapplication,
openthe/dev/ttyUSB0device,fireupyourrouterandsendatplcommandwhenyourroutershowsAutobootingin1seconds
togetconsoleaccess.
4. NowweneedtosetrouterandserverIPaddresses(herenamedROUTERIPandSERVERIP,substitutethesewiththerealIP
addresses).YoudbetterusetheseasIPs:ROUTERIP>192.168.1.111andSERVERIP>192.168.1.100.Typeintheconsole
(substituteasneeded):
setenv ipaddr ROUTERIP
setenv serverip SERVERIP
printenv
5. DoublecheckthattheoutputofprintenvliststheIPaddressesyoujustset.NowwecanloadthefirmwareoverTFTPwithtftpboot
080000000openwrtar71xxgenerictlwr740nv4squashfsfactory.bin:
ar7240> tftpboot 0x80000000 openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename 'openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-factory.bin'.
Load address: 0x80000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
done
Bytes transferred = 3932160 (3c0000 hex)
6. Notethe3c0000inthelastline(yournumbermaydiffer).Nowexecutethefollowingcommands,ifnecessaryreplacing
3c0000withthenumberyougotfromtftpboot:
erase 0x9f020000 +0x3c0000
cp.b 0x80000000 0x9f020000 0x3c0000
bootm 0x9f020000
7. Youreset,OpenWrtshouldnowbootandyoucansetitupasusual.
MoreresourcesonOpenWRTandTLWR740N
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 5/25
TLWR740Nv4.23casefront
TLWR740Nv4.23casebackwhen
opening
TLWR740Nv4.23caseback
TLWR740Nv4.23boardfront TLWR740Nv4.23boardback TLWR740Nv4.23boardbackwithpin
layout
TLWR740Nv4.23boardbackwith TLWR740Nv4.23withaserialcable
USBtoUARTTTLgadget
Ifyouneedmoreinfoaboutallthese,itisbesttolookattheofficialOpenWRTpages.
ThereisaspecializedpageaboutTLWR740N(http://wiki.openwrt.org/toh/tplink/tlwr740n)there,soyoucanstartwithitfirst.
FinalNotes
IhavetestedmyTLWR704Nv4.23routerwithGargoyle(http://www.gargoylerouter.com)andDDWRT(http://www.ddwrt.com)
too,butIamnotsatisfiedwiththeresultsatall.
Gargoyleversionswere1.5.7(http://www.gargoylerouter.com/downloads/images/ar71xx/gargoyle_1.5.7ar71xxgenerictl
wr740nv4squashfssysupgrade.bin)and1.5.10(http://www.gargoylerouter.com/downloads/images/ar71xx/gargoyle_1.5.10
ar71xxgenerictlwr740nv4squashfssysupgrade.bin),buttheywerealmosttwiceslowerthantheOpenWRTversion.The
interfaceisreallyquitecleanandisclosertoastockone,thusbeingsuitablefornoviceLinuxusersthatdonothavethatmuch
knowledgeabout*nixasawhole.AndthoughGargoylehassomeadditionalnicefeatures,theydonotreallyworthit.Youshould
alsohaveinmindthatithasnoOpenVPNsupportinthefirmwareforthisspecificmodel.
DDWRTwasatestingversion101212r20119testing(http://ddwrt.com/site/support/otherdownloads?
path=others%2Feko%2FBrainSlayerV24preSP2%2F2012%2F101212r20119testing%2Ftplink_tlwr740nv4%2F),anditwas
supposedtoworkok,butactuallyitbrickedmyrouter,soIneededtogototheserialconsoletofixit.Inaword,iwouldnot
adviceyoutotestDDWRTatall,ifyouarenotpreparedfordebricking
PhotosofTLWR740N
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 6/25
serialcablesoldered inthecase
YouMayLike
1.
21/10/2012PostedbyPhobosK|Linux,Tech,Tutorials|Linux,OpenWRT,Serialcable,TLWR740N,TPLink,Tutorial,USBto
UARTTTL,Wifirouter
50Comments
1.
0

i
RateThis
IamcomingfromDdwrt.CanIupgradestraighttoopenvpnorIneedtogobacktostock1st?
CommentbyChan|15/11/2012|Reply

i
RateThis
Wellyoudbettersticktotheddwrt>stock>OpenWRTprocedure.
Ihavedoneitthiswayandithadnoproblems.
Butifyouhaveaserialcable,youmaytry:
ddwrt>OpenWRT,andifthingsbreak,youcanalwaysfixthemthroughserial.Ifyoutryitthiswaypleaseleaveafeedback
here,sootheruserscanbenefit
CommentbyPhobosK|17/11/2012|Reply

Abouttheseads(http://en.wordpress.com/abouttheseads/)
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 7/25
i
RateThis
Sorrytobotheragain,foropenwrtar71xxgenerictlwr740nv4squashfsfactory.bin,doesitincludeLuCI?OrdoIneedto
telnet?
CommentbyChan|20/11/2012|Reply

i
RateThis
Youarenotbotheringatall
Andyesbothopenwrtar71xxgenerictlwr740nv4squashfsfactory.binandopenwrtar71xxgenerictlwr740nv4
squashfssysupgrade.bin(originalandthecustombuild)containtheLuCI
Thedifferenceisthatfactory.binistweaked,sotherealdefaultfactoryfirmwaretoacceptitasaregular
update/upgrade
CommentbyPhobosK|20/11/2012|Reply

i
RateThis
Thanks.
CommentbyChan|21/11/2012|Reply
2.
0

i
RateThis
MybadImeantOpenWRT..
CommentbyChan|16/11/2012|Reply
3.
0

i
RateThis
Thanxforthistutorialworkedlikecharm,althoughitdoesnotexplainhowtosetupatftpdhpaserver.Secondthingisireally
wouldneedhelptoimplementolsrdforameshnetwork,becausethereisnotenoughspacelefttoinstallitonthislastversion.If
youcouldhelpoutitwouldbereallygreat.
Sincereregardsd.
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 8/25
Commentbyd.|17/11/2012|Reply

i
RateThis
WelltheconfigurationofTFTPDisdifferentinthedifferentdistros,soidecidednottobloatthetutorialwithmoreinfoonit.
ConfiguringthetftpdhpainUbuntuisnothingspecialJustaptgetinstalltftpdhpa,editthe/etc/default/tftpdhpaifyou
need.InityouwillfindthefoldertheTFTPDservesthefilesfrom.Thefolderbydefaultis:/var/lib/tftpboot,sothisiswhere
youputyourOpenWRTfilesMoreinfocanbefoundhere:
http://processors.wiki.ti.com/index.php/Setting_Up_a_TFTP_Server#Using_tftpdhpa_in_Ubuntu
http://wiki.openwrt.org/doc/howto/generic.flashing.tftp
Asfarasolsrdisconcerned,toaddittotheimageyouneedtosacrificesomeotherpackagethatyouwillnotneedsomuch
suchasUPNP,QOSetcSadlyv4.23hasalimitof4MBflashasyouknow,sowecannotputeverythingweneedinthe
OpenWRTimage:S
AnywayIfyoudohavethesameTLWR740Nv4.23asmine,Icouldprepareanimageforyouandtestifitwillworkokon
myserialcabledrouterJusttellmewhatextrafunctionality(excepttheolsrd)youwillneedaddedtothedefaultOpenWRT
image.
CommentbyPhobosK|17/11/2012|Reply
4.
0

i
RateThis
ThanksforthegreattutPhobosk,itisacompleteguide.ButsinceIamanewbietoopenwrtIhavemanydoubtsIwilltrytoaskas
muchlessaspossible.hopeyoudontmindthenaivequestions.
Ihavegotanewwr740nv4.23
1)Afterinstallingopenwrtwhichisthesimplestwaytogobacktogobacktostockfirmware?
2)Doesopenwrtstorebandwidthstaticsevenafterrebootingtherouter?
CommentbyRick|08/01/2013|Reply

i
RateThis
Donotworrytoasklessormorequestionsitdoesntmattertome.IfIcan,Iwilltryansweringanyquestion
Andnowaboutyourspecificquestions:
1.TheeasiestwaytogobacktostockfirmwareistousetheupdatefirmwarepageofOpenWRTitself(System>Backup/Flash
Firmware>FlashnewfirmwareimageunchecktheKeepsettingsoptionbeforethat),andselectthestockimagethatyou
havepreviouslydownloadedfromtheoriginalvendorsiteInthisparticularcase(v4.23)thelinkis:http://www.tp
link.com/en/products/details/?categoryid=241&model=TLWR740N#down(lookatthesoftwaresectionanddownloadV4
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 9/25
Firmware).ThatisaviablesolutionONLYifyourOpenWRTinstallationworkswithoutanyproblems.IfyourOpenWRT
installationhassomeproblemsthenthismethodmaynothelpandyoushouldrefertothesectionsDebrickingyourrouter.
MoreonHowtoreverttotheoriginalfirmwarecanbefoundhere:http://wiki.openwrt.org/doc/howto/generic.uninstall(the
easiestmethodis#2andistheoneiamtalkingabouthere)
2.GenerallyspeakingthedefaultconfigurationofOpenWRTdoesnotpermanentlystoreanylogsorstats.Butifyouneed
someofthose,thatmaybealtered,thoughitwillrequiresomegoodknowledgeoftheprocessesandconfigoptionsof
OpenWRT.Asanextra,thereisanoptionintheWebUItodotheloggingonaremoteserverSystem>System>Logging
CommentbyPhobosK|08/01/2013|Reply
5.
1

i
RateThis
ThanksforthereplyPhobosk,
IhavedownloadedtherequiredfilesandreadytoflashitplssayifmyunderstandingiscorrectandcorrectmeifIamwrong
Ihavenamedandcheckedmd5
a)Unmodifiedfactory.bin==>1ab6b2d08ba49b5c2c97bfdb1f93f8fd
b)sysupgrade.bin==>faa342271647476e4b7e7e93b530e3e9
c)Alteredfactory.bin==>5527e0d42dd6e08b05eb91851f5ee2e8
1)Imustavoidc)alteredfactory.binsinceitmaybrickmyrouter
2)firstIshouldflasha)Unmodifiedfactory.binanditwillhaveluciinterface.Icanusethiswithoutflashingb)sysupgrade.bin
3)IfIneedQOS,OpenVPN,Tinyproxy,UPNPIcanflashb)sysupgrade.binafterflashing
a)Unmodifiedfactory.bin
4)Afterflashingb)sysupgrade.binifIfeelIdontneedthat4featurescanIflasha)Unmodifiedfactory.bin
5)b)sysupgrade.binshouldnotbeflasheddirectlyfromstockfirmware
6)SoforflashingthestockfirmwarecanIdoitdirectlyfromeithera)Unmodifiedfactory.binandb)sysupgrade.binorIshouldbe
inspecificfirmware
thanks
Commentbyrick|11/01/2013|Reply
6.
0

i
RateThis
forgottoask7thpoint
7)Iamusingfirefoxbrowser,havereadsometimesitmaycauseproblemduringfirmwareflashingisthistrueifyeswhichbrowser
shouldIuse
Commentbyrick|11/01/2013|Reply

1
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 10/25

i
RateThis
NowbeforeIstartansweringIwouldliketogiveyousomewarningsandsomenotes:
1.Beawarethatinstalling/usingOpenWRTonyourrouter(althoughitmayhavethesameversionIdescribehereandalthough
youuseeverythingasdescribedabove),maybrickitandyoumayendupneedingtoprepareanduseaSerialcabletodebrick
it.Thismayhappenbecauseoflotsofreasonsincludingtheonethatyourv4.23routermayhavesomehardwarechangesmade
bythevendorandnotlistedanywhere.SoallwarningsthattheOpenWRTprojectgivesaboutusingtheirfirmwareshouldbe
considered.Forexample,ifyoureadtheNotessectiononhttp://wiki.openwrt.org/toh/tplink/tlwr740n,youwillseethat:
SometimearoundAugust2011(v4),TPLinkbegantouse16MBRAM/2MBflashfortheChineseversionsofmanyoftheir
devices.Internationalversionsretainthe32MBRAM/4MBflash.Butthatdoesntmeanthevendormayhavenotaltered
latelytheflashfortheInternationalversionstoo.SoabigfatWARNINGyoumaybrickyourrouterIfyouarenotreadyto
facethatconsequence,youdbetterreconsiderusinganyopensourcefirmwarefortherouternomatterifitisDDWRTor
OpenWrtoranyother
2.AlwaysflashfirmwareusingacableconnectionUsingwififortheflashisdangerous.
3.Thedifferencebetweenfactory.binandsysupgrade.binisthatinfactory.binthereissomeinfothatmakesthestockfirmware
upgradeutilitythinkitisanofficialstockupgradeThatiswhywhenyoufirststartflashingyourrouterfromastockfirmware,
youneedtostartwithfactory.bin,soyoumaycheattheofficialfirmwaretodotheupgrade.
Andnowaboutyourquestions:
Yourdownloadedsysupgrade.binisactuallymyalteredsysupgrade.bin,nottheofficialOpenWRTone.Notthatitmatters,butI
wantedtoclearthisoutSowhenIspeakinmyansweraboutsysupgrade.bin,Iwillmeanmyalteredsysupdgrade.bin
1.Youdbetteravoidthealteredfactory.binjustbecauseihavenottesteditifitworksok.Intheoryitshouldnothaveany
problems,butsinceihavenottestedthatIcannotadviceusingitinthefirstplace:)
2.Totallytrue.InfactIwouldadviceafterdoingthis(installingofficialOpenWRTfactory.bin),totestandplayabitwiththe
newOpenWRTluciinterface,soyoucangetthepictureofwhatitisallabout.
3.Totallytrue.YoushouldhaveinmindthatstockfirmwarehasUPNPandQOS(thoughnotthatconfigurableasin
OpenWRT)andthereason(oneofthereasonsinfact)youmaywanttousetheOpenWRTofficialimageisthebunchof
configurableoptionsithasThoughtheofficialOpenWRTdoesnthaveanyUPNPandQOS,buthereiswherethealtered
sysupgrade.binimagecomesinplace.
4.YesyoucanflashbacktheoriginalOpenWRTimageafteryouhaveusedthealteredsysupgrade.bin.Thatisverysimple
usingtheluciinterface.Infactyoumayusedirectlytheofficialsysupgrade.bininsteadoffactory.binwhenyouareflashing
back(seethemaindifferencebetweenthetwoimagesaboveinthisanswer).
5.Totallytrue.Thestockfirmwarewillactuallynotallowyouthis,asitwillspewsomemessagelike:Thisisnotafirmware
updateorsomethinglikethis.ButdonotrelyonthatJustusethefactory.binimagewhenyouhavestockfirmwareonthe
router.
6.Youcanflashbacktostockfirmwarefromanyversion(officialormodified)offactory.binorsysupgrade.binfirmware.You
candothisfromLUCIveryeasy.
7.IuseonlyFirefoxonmymachines,andhavedoneallthedescribedinthisarticleactionsbyFF(alllatestversions),andIhad
noproblemsatall,soFFisokinmyopinion.
SoifyoudecidetogiveatrytoOpenWRTandneedfurtherassistance,eitherusecommentshereoryoumaycontactmebyany
way(thoughIdonotuseSkypealot,soImaybeofflinetheremostly)listedinmyprofileonGravatar
(http://en.gravatar.com/phobosk).IfIamonlineIwilldomybesthelping
P.S.Andonefinalnote:Whenyouflashanynewfirmware(nomatterstock,factoryorsysupgradealteredorofficial)besure
thatyoudoNOTkeepyouroldsettings.Itmeansyoushouldcheck/unchecktherelevantoptionontheLUCIupgradefirmware
page.
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 11/25
CommentbyPhobosK|12/01/2013|Reply
7.
0

i
RateThis
ThankyouverymuchfortheanswersIinstalledtheUnmodifiedfactory.bin==>1ab6b2d08ba49b5c2c97bfdb1f93f8fd.Ittookjust
2minsandalliswell.
afterusingitfor2daysIfeelitsmuchrichinfeaturesandbetterthanthestockfirmwareandIamherewithanewsetofquestions
totroubleu.
1)Thewifilinkspeedinstockfirmwarewas135mbpsbutnowitshowsas65mbps.Doesthismeanthespeedisdecreasedandwill
affectvideostreaming?
2)IaccidentallychangedthelanprotocolfromstatictodhcpclientandIwasunabletoaccessrouter.Itriedtoresetusinghardware
resetbuttonanditdidntresetopenwrttodefaultsettings.LuckilyIgotanotherrouterandconfigureditasdhcpserverandgained
accessto740nandchangeditbacktostatic.Myquestioniswhileexperimentingandaccidentallychangingsomeconfigurationcan
weuseresthardwarebuttontoresetopenwrttodefaultsettingsincaseofnotabletoaccessitthroughbrowser.
3)Instockfirmwaretherewasanoptionindhcptogivestaticipbasedonmacaddresshowcanidothatinopenwrt.
4)Iwouldliketogetthebandwidthstatseitherstoredpermanentlyinrouterorinmypc.Icheckedsystem>system>loggingbut
couldnfigureouthowtouseitmoreoverithaswholesystem,debugetcoptionsbutIneedjustbandwidthstatistics.Iguessgaryole
candothatbutreadyourcommentaboutitbeingslow.Icametoknowaboutbmonandiftopbuthavenoideahowtoinstalloruse
them.
Commentbyrick|14/01/2013|Reply

i
RateThis
okafterplayingmorewiththeluciinterfaceIfoundthesolutionfor
3)
forthebenefitofothernoviceusersitisunder
Network=>DHCPandDNS=>StaticLeases
Commentbyrick|14/01/2013|Reply

i
RateThis
1.StockfirmwarecomeswithproprietykerneldriversthatusethepoweroftheSoCbest.OntheothersideOpenWRTuses
opensource,sotheath5kmoduleforexampleisnotthatgoodinsupportingDraftNasthestockone.Sothetransferspeedis
reallyslower,butinmybasiccomparativeteststhatisnotthatmuchslowerthanthestockfirmware.Allyoucandoisjusttest
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 12/25
andcomparetherealtransfersusingstockandOpenWRT.
2.TheresetinOpenWRT(ofWRT740N)isdoneusingtheQSS(thesmallblackbuttonatthebackpanel).Afterpoweringon
therouterwhentheredledstartsblinking,pressandholdtheQSSbuttonwhiletheblinkingbecomesmorefrequent.Moreinfo
canbefoundhere:http://wiki.openwrt.org/toh/tplink/tlwr841nd#failsafe.modeandhere:
http://wiki.openwrt.org/doc/howto/generic.failsafe
4.Iveneverneededthat,soidonothaveexperiencewithit,butidiggedalittlebitandfoundacoupleofsolutions:
a)usingbmon,iftopetc(moreinfoon:http://wiki.openwrt.org/doc/howto/bwmon).Thesearethebestsolutionsintermsof
usefulinfocollectingandintermsofusage,buttheproblemisthatyouhavetoinstallthesepackagesinordertousethem.Best
wayisnotusingtheOpenWRTpackagemanager,becausetheinstallationtakestoomuchspaceandtheavailablememory
consideringWRT740Nisnotthatmuch(installingevensmalllookingpackagesonadefaultimagecanoftenbrickyourdevice
becauseofmemfullproblems).AllthatmeansyouneedtoprepareacustomimagethatincludestheutilityofyourchoiceBut
thisalsomeansthatifyoudecidetouseotherpackageslikeOpenVPN,QOSetc,youcannotaddthemalltotheimage,cause
youwillendupwithnospaceforthefilesystemthatholdstheconfigoptionsofyourrouterandthatarewithr/waccess.So
youhavetochoosewhatyouwilladdexactlytotheimage.
b)usingascriptboundtoacronjobtodetectandsavethestatistics.Thisistrickysincemostscriptsavailablewritetotheflash
tooofteninordertopreservethestatisticsbetweenreboots.Andthatisdefinitelynotagoodsolutionconsideringthelifeofyour
flashchipAnywayasImentionedinmypreviousanswersthoseavailablescriptscouldbealteredandtailoredforonesspecific
needsandmadetowriteto/tmpanduploadthatcontentsomewhere(orthestatisticstobedownloadedregularlyfromthe/tmp
fromanotherPC).Onecouldalsousesomeonlineservicesforstoringandlivemonitoringofthestatistics(likeincosm.comfor
example).Anotherproblemwiththescriptsisthatthemorecomplextheyarethemoretheyputloadontherouter,sotheycan
deteriorateitsspeeds.SoherearethesolutionsIfindvaluable,listedinmosttolesspreferred:
UsingCOSM.Moreinfohere:http://community.cosm.com/node/998
Usingtherouterentirelywrtbwmon:http://www.kallisti.net.nz/blog/2010/12/perusertrafficmonitoringonopenwrt
Ofcoursethesescriptsneedtobetailoredtoyourneeds,theyarenotcopyandrunready
Somaybeitisbettertodescribewhatexactlyyouneedandwecanfigureoutapropertailoringforyourneeds
CommentbyPhobosK|15/01/2013|Reply

i
RateThis
1)WellIhavealimitedinternetplan.Ihaveinstallednetworxinmypcanditsenoughtomonitorthebandwidthusagein
thelocalpcbutifIusetheinternetinmymobileoranotherlaptopusingwifiIdonotknowhowmuchofthebandwidthI
use.soIthoughtthatgettingthebandwidthusagefromtherouterwillbemoreaccurate.IwentthroughthelinkandIguessit
notgoodtowritetotheflashoftensoIthinkIcanlivewiththissetup.
2)Ihavescheduledthepppoetoredialatcertaintimesusingcrontabusingthecommandifupwanandifdownwan.Is
thereawaytowriteascriptandsaveitindesktopsothatIcandoitmanuallywheneverIwantasIdontlikeleavingmy
internetconnectionONallthetime.IcandothisviaputtybutIwouldlikeaoneclicksolutionlikeabatchfileorsomething
ifitpossibleinsteadoftypingallthecredentialsinputty.
3)AlsowhatistheequivalentcommandofifupwanandifdownwantoturnonoroffwirelessItriedifupwirelessbut
itdidntwork.
thankyou
Commentbyrick|17/01/2013|Reply

2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 13/25
0

i
RateThis
1.Gettingthetrafficfromtheeth1interfaceoftherouteristhebestwaytowatchyourtrafficreally.Anotheroptionis
justtologintoyourISPproviderspageandseethetrafficthere.Iwroteaverysimplebashscripttouploadstatisticsto
COSMbutitrequiresadditionalcurlpackageintheOpenWRTimageandthatmakestheimagetoolargetooperate
wellwithOpenVPN,QOSetc,sowhenIhavemorefreetimeIwilltrytofindasolutionthatdoesntrequiretoomuch
spaceandadditionalpackages.ThenIwillletyouknowofthesolution.
2.ConsideringyouaretalkingaboutusingputtyIassumeyouuseWindowsasamainoperatingsystem.Soyoudonot
needanyadditionalscripttoautomate.Justcreateansshkeywithputty,uploadthepublicpartofyourkeytotherouter
usingLuCIsdropbearconfigpage,andthenconfigureasessionwithputtytostartthenecessarycommand
(Connection>SSH>Executecommand:ifdownwanImaybewrongaboutthepathwhereyoucanfindthese
optionsinputtybutihaventuseditforsometimebutiguessyouwillfindtheseoptionsifiamwrong:)).Next
createaWindowsshortcutwithacommandline:puttyloadSESSIONNAMEYOUVEUSEDandyouwillhavea
oneclicksolutionforturningoffroutersWANaccess.Youcancreateashortcuttoifupwanthesameway
3.Thewirelessshouldbecontrolledusingifconfig,sinceithasnotgotanymapping.I.eyoushoulduseacommand
like:ifconfigwlan0down.
CommentbyPhobosK|19/01/2013|Reply
8.
0

i
RateThis
Hiitsmeagain,thanksfortherepliesPhobosk.Ihaveacouplemorequestions.
1)Aftertestingwithvanillaopenwrt,Iflashedyoursysupgrade.binitsniceandlikedtheQOSfeature.Iwanttoenablespeedlimit
forWANforacertainperiodoftimeonlyifpossible.ForexampleIwouldliketomakewanspeedlimitof1024Kbitsfrom9amto
11amthenmakeisunlimitedfortherestofthetime.Isearchedbutcouldnotfindanysuchoptionliketimebasedconnectwithin
theinterface.IfthereisacommandtoenableanddisableQOSIcansheduleitusingcronjustlikeifupandipdowncommands.
2)IhavedownloadedTftpandconfiguredittorunasasyslogserverandwhenIcheckedthelogsIfounditshowingwrong
bandwithstatssometimesforexampleinoneparticularinstanceIhavedownloadedabout5gbanduploadedaround500mbandin
thelogitisshowinguploadvaluescorrectbutdownloadvaluesarevastlydifferentthishappensmanytimesduringlargedownloads
whereasshortconnecttimeswithlowbandwithusagearecorrectlyloggedandIamsureaboutthedownloadeddata.Toverifythis
isnotaproblemwithtftpIcheckedintherouteritselfusinglucianditshowedexactlywhatwaslogged.
fordownload~5GBandupload~490MB.itshowswrongvaluesfordownloadsasonlynear1GB
pppd[3033]:Connecttime429.9minutes.
pppd[3033]:Sent465702676bytes,received999776246bytes.
Thisissuewassamewithfactory.binalso
3)EventhoughthebetaaltitudeadjustmentisprettystableandIammorethanhappywithit.Iwouldliketoknowwhenisthestable
releasegoingtocomeIhopeyouwillmakeacustomsysupgrade.binimageinthestableversiontoo.
Thankyou
CommentbyRick|27/01/2013|Reply

2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 14/25
0

i
RateThis
1.Theeasiestwaytoenable/disableQOSatascheduleisusethecommands/etc/init.d/qosstartor/etc/init.d/qosstop.In
yourspecificcase,youshouldfollowthesesteps:
MakesureyouhaveNetwork>QOS>Interfaces>WAN>Enableischecked.
FillinthenecessaryvaluesforUploadandDownloadspeedsinNetwork>QOS>Interfaces>WAN
MakesureinSystem>Startup>qosisdisabled
Thenputthesetwolinesinthecronfield(System>ScheduledTasks)
09***/etc/init.d/qosstart
011***/etc/init.d/qosstop
Thatisallanditshouldworkoknow.TheproblemisthatyouwillhaveQOSenabledonlybetween911ameveryday.Ifyou
needonlythebandwidthrestrictiontoapplybetween911amandtheQOSrunningatalltime,youwillneedtoprepareascript
tochangethevalueofNetwork>QOS>Interfaces>WAN>Enableandapplythechanges+starttheqosserviceagain.The
startscriptthatyouuseasacroncommandshouldlooksomethinglikethis:
ucisetqos.wan.enabled=1
ucicommitqos
/etc/init.d/qosstart
Andthestopscriptthatyouuseasacroncommandshouldlooklike:
ucisetqos.wan.enabled=0
ucicommitqos
/etc/init.d/qosstart
Haveinmindthatthe/etc/init.d/qosstartactuallydoesastopfirstandthenconfigureseverythingtherightway.Moreinfo
aboutQOShere:http://wiki.openwrt.org/doc/uci/qos
DontforgetthatQOSputsloadonyourrouterandintimeitmayslowitifyoudonotreset/restarttherouter.
2.PPPDcalculationsdifferfromkernelsinterfaceones,causeitusescompressionwhencommunicating,soitsbytesmaybe
lessthantheonereportedbythekernel.Inyourparticularcaseitturnsoutthatyouhavereceived0.98MBwhichisstrange
anyway.Bestwaytogettherealbytessent/receivedistolookatthenumbersforthespecificinterfaceonNetwork
>Interfaces>RX/TXorifyouareloggedinusingSSHuseifconfigcommandandchecketh1interface(whichactually
istheWAN.
3.Idunnowhenthestablewillbeout,sinceIamnotanOpenWRTdeveloperRightnowthereisalreadyanRC1release,but
Ihavenottestedit,sinceidonotseeanybigchangescomparedtothebetaButwhenthestableisout,Iwilldefinitelytestit
andmakecustomimages.Imayprepareanycustomimageyouwillneedtoo.Justkeepintouch.
CommentbyPhobosK|30/01/2013|Reply
9.
0

i
RateThis
Thankyouverymuchforyourreplies..ItisonlybecauseofyouIhaveconfidentiallyinstalledopenwrtinmyrouterandmadeit
workingasIwantedandIthankyousincerelyforyourhelp.continueyourgoodworkkeepintouch.
CommentbyRick|03/02/2013|Reply
10.
0

0
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 15/25

i
RateThis
Hi,verynicethatpost..Ihaveaquestion:soundslikethatIdidsomethingwrong:Icrashedthefirmware(so,Icantgetaccess
viaweb,telnetorpingthetherouterInoticedthisafterIranthedeletefirmawareallcommandonubootCLIIstheresome
tooltorecoverytheWR740Nfirmware?
CommentbyJohn|12/02/2013|Reply

i
RateThis
Idonotquitegetwhatyouhaddoneexactly,butIassumeyoumeanyoudidusetheOpenWRTBusyBoxshell(nottheU
BootCLI)withthecommandmtderasefirmware???Iftheanswerisyes,itmeansthiswouldhaveerasedallOpenWRT
firmwarefrommtd5(kernelandrootfs>seetheTPLinkWR1043NDFlashLayouttableon:
http://wiki.openwrt.org/doc/techref/flash.layout#partitioning.of.squashfsimages)andwouldhavemaderecoveringusingthe
failsafemodeofOpenWRT(seemycomment#2here>http://phobosk.wordpress.com/2012/10/21/howtoturnyourtplinktl
wrt740nrouterintoafullyfunctionaloneusingopenwrt#comment78)impossible.
Soifthatisyourcase,youronlyviableandeasysolutionoftheproblemistouseaSerialcableasdescribedinmymain
articlehere.Thereisnoarecoverytoolintermsofanapplicationorwhateverlikeit.Inaword,youneedtogetanUSBto
UARTTTLconverter,soldersomewirestoyourrouterandthenconnectallthistoyourPCandthusflashanyofthestockor
OpenWRTfirmwareagain.
OfcoursetheJTAGsolutionisalsoavailable,butitismuchmorecomplicatedtobedoneandrequiresmoregadgetsand
knowledge
Moreinfoavailablehere:
http://wiki.openwrt.org/doc/howto/generic.debrick
http://wiki.openwrt.org/doc/hardware/port.jtag
http://wiki.openwrt.org/doc/start
IfyouhadsuccessfullyappliedtheSerialcablesolution,pleaseremembertomakeabackupofyourrouterMTDs,for
resolvingfuturepossibleproblems>http://wiki.openwrt.org/doc/howto/generic.backup
CommentbyPhobosK|12/02/2013|Reply
11.
1

i
RateThis
ThankyouverymuchPhobosK.
IvemanagedtoinstallOpenWRTeasilyreadingyourtut.
Haveaniceday.
CommentbyNick|22/02/2013|Reply
12.
0
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 16/25

i
RateThis
hey,beenreadingthisgiudeforsomedaysnow,installedthegenericopenwrttrunkimageonmyrouterallisrunninggoodexcept
,itriedremovingtheusbthingsanditwontletmethenfoundoutcantremovepackagesfromsquashfssothenthinkingabout
makingmyowncustomimage,
caniuseimagebuilderonwindowsorispecificallyneedlinuxforthat??
whichismorestablethebarrierbreakeroratttitudeadjustment
Commentbyeddy|04/03/2013|Reply

i
RateThis
Youneedlinux.AttitudeAdjustmentforwr740n
Commentbydj2tusk|07/03/2013|Reply

i
RateThis
Iamsorryforthelateresponse
InthisarticleIhavedescribedhowtoprepareyourownOpenWRTimagewithorwithoutthemodules/packagesyouwish
(especiallytheUSBmodulesyoudonotneedonWR740Nv4.23).JustaveryimportantWARNING:Beverycarefulwhat
modules/packagesyouremove,becauseyoumayendupwithabrickedrouterthatwillneedaserialcabletobedebricked
Neverremovekmodledsgpiooranyhotplugmodule/packageTheyarecriticaltothedevice
AsfortheOSyouneedforthebuilderYesitisLinuxandIhavetestedAttitudeAdjustmentr33312(asstatedinthe
article)SoIcannotgiveyouanypredictionifanypreviousorlaterversion/revisionwillworkasexpectedGenerally
speakingBarrierBreakeristrunk/bleedingedge,sonotthatwelltestedandisexpectedtohavealotofbugssoIwouldnot
adviceusing/testingitwithouthavingasecurewaytodebrick
FornowtherevisionofOpenWRTIvetestedworksperfectlywithonly12veryminorbugsinLuCIthatdonotrequire
updatetolaterversion
ThereisanewbetaandanRC1version(http://downloads.openwrt.org/attitude_adjustment/12.09rc1/)butIamwaitingforthe
finalreleasetobepublishedandthenIwilltestthatfinalandaddtheinfohere
CommentbyPhobosK|07/03/2013|Reply
13.
1

i
RateThis
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 17/25
Thankyouforthetutorial
Ididmyownimageaddingluciappmultiwan,flashokbutnojssf2partition.
Changesonlysucceedinram.
SoIdidanotherwithoutluciappqos.Itworkedfine,150kbfreespace.
Configured1WANrepeater(client+master)2WAN(adslviaeth1port,pppoe)deliveringinternetatthesametime.
http://img201.imageshack.us/img201/1855/open1.png
http://imageshack.us/photo/myimages/201/open1.png/
http://img22.imageshack.us/img22/4378/open2.png
http://imageshack.us/photo/myimages/22/open2.png/
Commentbyjamce|08/03/2013|Reply
14.
0

i
RateThis
ThankyouforthetutorialIhavedonelikethisasyouguidedtounbrickmyTPLINKtlwr740nrouter.
Link:http://phobosk.wordpress.com/2012/10/21/howtoturnyourtplinktlwrt740nrouterintoafullyfunctionaloneusing
openwrt
AllthisstepsworksandatlaststepsIamfacingproblemwithloadingfirmware.IhavetriedSomeapplicationasPuttyand
terminalonWindows7.
ThisiswhatIhavedonelikethis:
Afteryouarereadywithyourserialcable,youmayproceedwiththefollowingsteps:
1.HookyourroutersWANEthernetportuptoyournetwork/PC.
2.Hookuptheserialcable/consoleasexplainedinthesectionSerialcablefortheTLWR740N,startyourPuttyapplication,
openthe/dev/ttyUSB0device,fireupyourrouterandsendatplcommandwhenyourroutershowsAutobootingin1seconds
togetconsoleaccess.
3.NowweneedtosetrouterandserverIPaddresses(herenamedROUTERIPandSERVERIP,substitutethesewiththerealIP
addresses).YoudbetterusetheseasIPs:ROUTERIP>192.168.1.111andSERVERIP>192.168.1.100.Typeintheconsole
(substituteasneeded):
setenvipaddrROUTERIP
setenvserveripSERVERIP
printenv
4.DoublecheckthattheoutputofprintenvliststheIPaddressesyoujustset.NowwecanloadthefirmwareoverTFTPwith
tftpboot080000000openwrtar71xxgenerictlwr740nv4squashfsfactory.bin:
5.ar7240>tftpboot080000000openwrtar71xxgenerictlwr740nv4squashfsfactory.bin
6.Usingeth0device
7.TFTPfromserver192.168.1.100ourIPaddressis192.168.1.111
8.Filenameopenwrtar71xxgenerictlwr740nv4squashfsfactory.bin.
Loadaddress:080000000
Loading:TTTTTTTTTTTTTT
ANDerroroccursasethlinkdownretryboot.
Pleaseguideme
Regards
CommentbySumanThapa|07/04/2013|Reply

2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 18/25
0

i
RateThis
ThissoundstomelikeaproblemwithyourPCsethdeviceconnection.
FirstofallIhavetosaythatallthesearebestdoneonaLinuxbox(thetftpserverpart,theserialconsoleappetc).Yousaidyou
usedPuttywhichmakesmethinkyouaredoingitonaWinbox?(thoughthereisactuallyaputtyportto*nix)Ifso,itmaybe
thatyourEthernetdeviceofyourPCdisconnectsatsomestage,ortheTFTPyouareusingbringssomeproblem.Anywayif
youareonWinandcannotchangetoUbuntuforexample(theeasiestLinuxdistroIMHO)Youneedtohaveinmindthese:
1.SettheEthernetdeviceofthePCwhichyouwillconnecttotherouteraSTATICIP(intheexampleaboveitshouldbe
192.168.1.100)
2.Installagoodtftpserverlikethisone:http://tftpd32.jounin.net/
3.Addtheopenwrtar71xxgenerictlwr740nv4squashfsfactory.bininitsGUI(youdbetterrenamethefilebeforethatto
somethingmoreconvenientforwritinglikefirmware.bin)
4.StartyourPutty(Ithinkyoudbetteruse:https://sites.google.com/site/terminalbpp/)preparingitwiththesevalues:
Bitspersecond:115200
Databits:8
Stopbits:1
Parity:None
Flowcontrol:None
5.Connecttherouterandfireitup
6.Connecttheterminal(putty)andsendthetplwhenneeded
7.Issuetheprintenvcommandandensuretheresultissomethingsimilartothis:
bootargs=console=ttyS0,115200root=31:02rootfstype=jffs2init=/sbin/initmtdparts=ar7240nor0:256k(uboot),64k(uboot
env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
bootcmd=bootm0x9f020000
baudrate=115200
8.Thenagaintrytransferringthefile
Ifallthatfails,youmayhavearouterwithadifferenthardware(lessRAM,diffmemlayoutetc),ortrywatchingthestabilityof
theeth0ontherouterwithoutanydatatransfer
Alternativelyiftheproblempersists,youmayaskintheOpenWRTForumsformorehelp:https://forum.openwrt.org/
P.S.BTWhowdidyougetyourrouterbricked?
CommentbyPhobosK|08/04/2013|Reply
15.
1

i
RateThis
thanksalotforyourguide&activelyreplyingtocomments.AtlastItookaleapandinstalledOpenWrt(satisfiedwithjust
factory.bin).ButrecentlyIrantoproblemoffreespacewhen,evenafteruninstallingpackages(bmon,lucithemesetc..junk)
installedvialuciinterfacecurrentfreespaceisonly36%(420.00KB)fromoriginalfreespaceof912kb.
SoinordertoregainfreespacecanIagainREFlashwithsquashfsfactory.binfilefromOpenwrt
PS:asofnoweverythingisworkinggreatbutrunninglowonspaceinordertoinstallwshaperforlimitingspeedonguest
WLAN.
CommentbyOpenwrtRocks|15/04/2013|Reply
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 19/25

i
RateThis
Thanksforthenicewordsaboutthisblogentry
Anywaybacktoyourquestions
RegardingtheuninstallofthepackagesthatgowiththeofficialimageThoughtheyareuninstalledthespaceisnever
regainedbackThatiswhycustomimagesaremadeThereyoujustremovethatpackagesyoudonotneedandyouget
extraspace
Butsinceyouaretalkingaboutextrainstalledpackages(aftertheofficialimagehasbeeninstalled),thesituationisabit
differenttheyjustleavetracesin/overlayincldbfilesoftheopkg,soanoptionwouldbetogomanuallythroughthatdir
anddeletetheleftoversBewarnedthatsomethingmaygetcorrupted,butyoustillhavetheoptiontorecovereasilywithout
theneedoftheserialconnection(thesocalledfailsafemodeandmoreinfoonopkgleftoverscanbefoundhere:
http://wiki.openwrt.org/doc/techref/opkg#troubleshooting)
Oneofthegoodwaystorecoverbacktheinitialspaceyouhadisreallyuseanofficialimagefile(butany.squashfs
sysupgrade.binfilewillsufficei.e.youdonotneedthe.squashfsfactory.binfileonceyouhaveupgradedtoOpenWRT
fromstock)Butintheprocessofflashingbacktheoriginalimage,besurethatyoudoNOTselecttokeepconfigurationfiles
andthenclicktheFlashbutton.Youwillloseallconfigurationsyouhadmade,butthiswayyouwillhavetheinitialfreespace
untouched
Onthecontrary..ifyoukeeptheconfigfilestheflashingbackwillnotgainanyadditionalspaceSothatsthetrick
Ofcoursethereisaneveneasierwaytogainbackyourspace(butstilllosingallyourconfigs)bygoingintofailsafemode(if
youcannotstartnormally)andissue:
firstbootcommand
Thiscommandmaybedoneinnormaltelnet/sshsessiontotheroutertooMoreinfo:
http://wiki.openwrt.org/doc/howto/generic.failsafe#in.failsafe.mode
Donotforgettoreboottherouterafterthechanges
CommentbyPhobosK|15/04/2013|Reply

i
RateThis
thanksforprovidingsuchadetailedreply:),ImcompletelynewtoOpenWrt.Canyoupleaseclarifythesetome
1.Afterflashingbackusingsquashfssysupgrade.binwithoutkeepingsettingsandifItrytorestoreusingOpenWrtRouter
20130415.tar.gzisfreespaceagainlost?
2.Canweuseattitudeadjustment12.09rc2fromherehttp://downloads.openwrt.org/attitude_adjustment/12.09
rc2/ar71xx/generic/openwrtar71xxgenerictlwr740nv4squashfssysupgrade.bin?
3.Ifagaintrytoreflashwithsquashfactory.binfromopenwrtwillmyroutergetbricked?(readthatsquashfactory.binis
aspeciallymodifiedsothatitcanbeflashedbyskippingchecksfromStockFWtoOpenWrt)
4.weshouldneverusejffs2squash/factory.binfileforflashing
CommentbyOpenwrtRocks|16/04/2013|Reply

2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 20/25
0

i
RateThis
onemorethingthatIforgottoask.WhatdoesnumbersmeanLoad:0.000.010.05onbanner
CommentbyOpenwrtRocks|16/04/2013|Reply

i
RateThis
1.Thebackupkeepsonlytheconfigsettingsin/etc(fromtheoverlay)sogenerallyitshouldregainthespace,butif
youhappentouselargeconfigfiles(likeifyourfirewallrulesarealotetc)itmaytakesomemorespacethanusual
butthatshouldnotbetoomuchsinceallisstoredcompressedanyway
2.Ihavenottriedtherc2yet,becausemygeneralruleofathumbisthatwhensomethingworksforme,idonottouch
itIintendwhentheofficialreleaseisout(notthenextrcetc)totestthatofficialreleaseontherouterIhaveaserial
lineonSoyoucantesttherc2,butyoudbetterbepreparedforabrickofyourrouteri.e.ifyoudecidetodoit,you
shouldbepreparedwithaserialconnectionfordebrickingcausethingsmaynotworkasexpectedwiththerc2
3.Usingfactory.binorsysupgrade.binisallthesamewhenyoudoitfrominsideanalreadyinstalledOpenWRT.As
youvealreadysaidthefactory.binisonlyusedwhenyougofromstocktoanyOpenWRTreleaseSoyoucannot
brickyourrouterwithafactory.binifthesamereleaseofsysupgrade.binisworkingokforyou
4.Youdbetternotusethosesincetheyareforadvanceduseandtakemuchmorespacethanusual
5Theloadthingislikethestatsyougetwhenyouusethetoporhtopcommandsinany*nixboxformoreinfo
lookhereforexample:http://www.linuxjournal.com/article/9001orGooglefortop/htopresults.
Andjustonemorenotethemoreyouwritetotheflash(includingdifferentconfigs,likefrequentlychangingthe
configoftherouteretc),thelesslifeoftheflashremains
CommentbyPhobosK|17/04/2013|Reply
16.
1

i
RateThis
Ivegottheversion4.23.Ineedtogobacktofactoryfirmware.IvetriedallthreeversionsTPLinkhasfortheTLWRT740NV
4.23.OpenWRTfailstoupdatethefirmware.Lucitellsme:
Theuploadedimagefiledoesnotcontainasupportedformat.Makesurethatyouchoosethegenericimageformatforyour
platform.
Thoughts?
CommentbyBobDole|18/04/2013|Reply

0
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 21/25

i
RateThis
FirstofallIhopeyouareuploadingthebinfiletotherouternotthezipone.(sorryjustaremindernobadthoughtsonyour
skills)
Secondthereasonwhyyoumaygetthiserror,isthatallthethreefirmwareslistedatTPLinkrightnowcontainabootupdate
tooSoyouwillnotbeabletoactuallyusethoseimagesrightawayfromOpenWRTInsteadyouhavetwooptions:
1.YouneedtocutoutthebootupdatefromthefirmwareSeethislinkhttp://wiki.openwrt.org/toh/tplink/tl
wr1043nd#back.to.original.firmware(butfirstreadthegeneralpagehere:http://wiki.openwrt.org/doc/howto/generic.uninstall)
2.Alternativelythebestwayistousetheiroriginalfirstfirmwareforthe4.23seriesSadlytheyveremoveditfromtheir
downloadpages(itwasthisoriginalfirstthatihadused.IdonothaveanyexperiencewiththenowavailableupdatesandI
thinkitisverystupidfromthemtoremoveit)SoGooglearoundforthefile:TLWR740N_V4_111130.zip(md5sum
7b14146cb107182af42cf25bbc087481)andinsideittheoriginalfirmwarefileis:wr740nv4_en_3_12_11_up(111130).bin
(md5sumd7ac664066bd294ffb9b2b2288863fc7)Thisfirmwareshouldworkok.ForlegalityreasonsIcannotpostthefile
oranylinkstoithere.Thisoption(ofusingtheoldestavailablefirmware)isthebestone.
SoImaytestbothoptionsforyouiftheyworkokandcanposttheresultshereOntheotherhandifyoualreadyhavea
seriallineattachedtoyourrouter,andyouareabletodebricktherouteryoumaytestthemyourself
Pleaseletmeknow
CommentbyPhobosK|19/04/2013|Reply

i
RateThis
Justanupdate.IfoundthelinktotheTLWR740N_V4_111130.zipdeepburiedinsidesomeoldsiteoftheirs
http://www.tplink.com/Resources/software/TLWR740N_V4_111130.zip
PleasetryitfromwithinOpenWRTLuci
CommentbyPhobosK|19/04/2013|Reply
17.
0

i
RateThis
cooltutorial,whatIwaswanderingisif740niscompatiblewiththefinalreleasefromopenwrt.Caretotry?Idonthaveaserial
cableandIdontwanttoriskbrickingmyrouter.Thanx.
Commentbyunualtu|11/05/2013|Reply

i
RateThis
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 22/25
Sorrybeingakindalateinmyanswer
Ihavetestedthe12.09Final(AttitudeAdjustment12.09Final)anditupgradesandworksjustfine(incl.withkeepingtheold
configurationfiles).
Therearesomebugsfixedandsometweaksforeasierconfigurationdone.Thewirelesstoolspackageismissingandtheluci
appopenvpnisremovedasbroken(thatisifyouprepareyourowncustomizedimage).
IvetestedthenewGargoyle1.5.10version(thatusesAttitudeAdjustment12.09Final)anditisawayfasterthantheolder
versionsbutstillIdonotfindanygreatadvantagescomparedtotheoriginalOpenWRT.
Ihaveupdatedthearticleasneeded,soitreflectsboth12.09betaand12.09FinalversionsofOpenWRT.
CommentbyPhobosK|26/05/2013|Reply
18.
0

i
RateThis
followthislink:http://wiki.openwrt.org/toh/tplink/tlwr740n#debricking,itwashelpful,thanksalotforwriter
Commentbyftoweren|26/05/2013|Reply
19.
1

i
RateThis
Thankyousomuchforreleasingmodifiedimagesbasedonthefinalrelease12.09.Youquitecatchupwiththelatesttrends,
hehe^^.Iamsogoingtoinstallittoday,againthanksalot!
Commentbykaiomatico|28/05/2013|Reply

i
RateThis
Thanksforthenicewords.
PleasehaveinmindthattheOpenVPNLuCIGUIisbrokeninOpenWRT12.09Final,sotheluciappopenvppackageis
totallymissing(incl.inmymodified12.09Finalimage).ThatmeansthatyouwillnothaveaconvenientGUIforOpenVPN
andyouwillbeonlyabletocontroltheopenvpnservicestart/stop/disablethroughtheLuCI.Itmeansalsothatyouwillneed
tocontroltheOpenVPNconfigurationthroughthessh/telnetconsole(usinguciorvi).
OntheotherhandifyouhavealreadyconfiguredOpenVPNusingmyoldmodifiedimage(the12.09betaone)andyou
upgradetothe12.09Finalone(keepingtheoldOpenWRTconfigfiles),everythingwillworkokusingtheoldconfiguration,so
youwillnotneedtomodifyanyOpenVPNsettings(exceptforcopingyourVPNproviders.cafilebackto
/overlay/lib/uci/uploadthoughIstronglysuggestmovingthe.cafileto/overlay/etc/openvpnandfixingtheoptioncain
yourVPNconfigtothenewpath).StillforfuturechangesofOpenVPNconfigyouwillneedthessh/telnetconsole(likeusing
forexampleucishowopenvpn,ucisetopenvpn.NAME_OF_VPN)
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 23/25
CommentbyPhobosK|28/05/2013|Reply

i
RateThis
Thatsnoproblematall.Idontmindusingopenvpn.Isuccesfullyinstalledandconfiguredyourfirmwareonmy740n
v4.23andImveryhappywithit.Everythingworksasexpected.TheonlycosmeticissueIfoundwasthatbydefaulton
theSystem>StartuptabitsaysUSBisenabledbydefault,tinyproxyisenabledbydefault(eventhoughitisntinthe
servicestab)andminiupnpdisdisabledbydefault.
Butthatsureisnothingserious^^thanksalotforthefirmware
Commentbykaiomatico|28/05/2013|Reply
20.
0

i
RateThis
HelloFolks,
Ihaveabitofasituationthatrequiressomeattention
.
IboughtthisrouterwiththepurposetheruntheAAPscript,orAutoAp,
Itsascriptthatusestherouterasabridgethatcontinousscansforopenwifisourcesandconnectstothem
Afterconnectingavpnclientshouldmakeaconnectiontomyvpnserver@home.
thankstothispageinowknowhowtoinstallopenwrtontherouter,butihaventgotacluehowtoproceedwithinstallingthe
openap/aapscript
Cananyonehelpmewiththis?
yourhelpisappriciated
Commentbycor|29/05/2013|Reply

i
RateThis
Hi,
asfarasmyknowledgegoesAAPisascriptforDDWRT.Ifyouarespeakingaboutit(http://www.dd
wrt.com/wiki/index.php/Autoap)thenyoucannotuseitinOpenWRTwithoutarewritefromscratchsinceitusescommands
specifictoDDWRT.
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 24/25
ForOpenWRTversionyoumaychecktheselinks:https://forum.openwrt.org/viewtopic.php?id=26116and
https://forum.openwrt.org/viewtopic.php?id=21636orrunasearchinsidetheOpenWRTforum:https://forum.openwrt.org.
AlternativelyaskforhelpintheOpenWRTforum
CommentbyPhobosK|29/05/2013|Reply
21.
0

i
RateThis
Hi,
IwanttotryyourmodbutImnotsureifitworksfor4.27(sameas4.21).Doyouhappentohavethisinformation?
Thanks.
Commentbypythonsnake|15/10/2013|Reply
22.
0

i
RateThis
HI,
IupgademyTplinkwr740Nroutertoopenwrtandnowicannotopenmyrouteradminpanalbyclicking192.168.1.1
Plshelpme,
CommentbyJigar|10/01/2014|Reply

i
RateThis
Hi,
Couldyoupleasegivemesomemoreinfoonhowexactlyyoudidupgradeyourrouter
1.IsitaTLWR740Nv4.23ortheversionoftherouterisdifferent?
2.Whatproceduredidyouusetoupgrade?
3.WhatimageofOpenWRTdidyouchoose?
4.Howdoyoutrytoconnecttothenewfirmwareoftherouter?IsitfromWindowsorLinux?Areallothernetwork
connectionsdisabled?IsyourcablepluggedintheLANportsorintheWLANport?
5.HaveyoutriedotherIPsfortherouterlike:192.168.0.1,192.168.10.1etc
CommentbyPhobosK|11/01/2014|Reply

i
2/12/2014 How to turn your TP Link TL-WRT740N router into a fully functional one using OpenWRT PhobosKs Blog
http://phobosk.wordpress.com/2012/10/21/how-to-turn-your-tp-link-tl-wrt740n-router-into-a-fully-functional-one-using-openwrt/ 25/25
RateThis
Hey,NowIconnectedtoopenwrtadminproblemandtrytorestoreorigionalTPLINKfirmware,
ButnowwhenipoweronmyrouterallLEDscontiniouslyblinkingexceptpowerLED(meansitnotblinksitsalwaysstay
on),
ImusingTLWR740Nv4.23router,
Pleasehelpme,
ThankYou
CommentbyJigar|12/01/2014|Reply
Aboutme
Iamaniceandlovingpersonwhenyougettoknowme
Askmeformore
Toerrishuman,toforgivedivine
AlexanderPope
Ifyoulovesomeone,sethimfree.
Ifhecomesbackhesyours
Ifhedoesntheneverwas.
RichardBach
____________________________
Siteinfo
PhobosKsBlog
TheAndreas04Theme.
Follow
FollowPhobosK'sBlog
PoweredbyWordPress.com

S-ar putea să vă placă și