OpenWrt Forum Archive

Topic: wr740n v4 USB mod! [AR9331] [FW compiled for all wr740/741 versions!]

The content of this topic has been archived between 6 Jun 2015 and 1 May 2018. Unfortunately there are posts – most likely complete pages – missing.

I know that the cable is really thicker than needed, but I want to remove impedence problem (before I used an alluminium cable and I had problems). But the strange think is that the green usb stick in the photo is well recognized. The resistors are at the back side of the board and they are 15 or 20kohm (I don't remember now). Tomorrow I'll buy a new port and smaller resistor (5/10kohm), but I'd like to understand why this strange think appened

No idea really, I guess something related to the power.
On my 741v2  and 740v4, all usb devices worked great, no matter if it was a pendrive, usb hard drive, keyboard, usb TV tuner....
You can try other method, could work better, use the original 12V adapter and use a step-down converter, that was what I used and always worked great.

Like this one:
http://www.ebay.com/itm/151873712316
http://i.ebayimg.com/images/g/Y1gAAOSwwbdWL4XP/s-l500.jpg

That type of converter isolate any noise coming from the power adapter and give a clean output.
Putting the 5V adapter directly could not be good if it's not good quality, any noise coming into the USB can make that errors.
Although the capacitor should filter that noise, who knows...
Check that your resistors are connected right, ensure that you are putting both lines to GND and they don't touch anything else.
Also ensure that the resistor value is near 15K.

(Last edited by dabyd64 on 4 Nov 2015, 00:56)

Good News for everyone, No more compilation required
recently i discovered TL-MR3220 v2 & TL-WR741 v4 Both uses AR9331 CPU
I have successfully tried these firmwares in my TL-WR741ND V4
15.05 Chaos Calmer https://downloads.openwrt.org/chaos_cal … pgrade.bin
14.07 Barrier Breaker https://downloads.openwrt.org/barrier_b … pgrade.bin
Install using mtd and force it

Everything just works fine
USB is working great with no errors at all
Install these packages if you want to mount usb storage
kmod-usb-storage-extras kmod-fs-vfat kmod-fs-ext4

Install these packages to enable tether your 3G and 4G USB dongles and Android tethering
usb-modeswitch kmod-usb-net-rndis kmod-usb-net-cdc-ether kmod-usb-net

For mounting your USB as rootfs or  extroot http://wiki.openwrt.org/doc/howto/extroot

dabyd64 wrote:

No idea really, I guess something related to the power.
On my 741v2  and 740v4, all usb devices worked great, no matter if it was a pendrive, usb hard drive, keyboard, usb TV tuner....
You can try other method, could work better, use the original 12V adapter and use a step-down converter, that was what I used and always worked great.

Like this one:
http://www.ebay.com/itm/151873712316
http://i.ebayimg.com/images/g/Y1gAAOSwwbdWL4XP/s-l500.jpg

That type of converter isolate any noise coming from the power adapter and give a clean output.
Putting the 5V adapter directly could not be good if it's not good quality, any noise coming into the USB can make that errors.
Although the capacitor should filter that noise, who knows...
Check that your resistors are connected right, ensure that you are putting both lines to GND and they don't touch anything else.
Also ensure that the resistor value is near 15K.

tried your sugestions (12v ali for the router and 5v from other ali for usb) tried no resistor, 4,7k,10k,15k resistors, but nothing worked. now i'im using 15k resistor (I'll post a pic if you want) and the green usb drive simply doesn't work, but an other drive before didn,'t worked, now blink, and the kernel log give me; 
[  134.580000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[  134.800000] usb 1-1: device descriptor read/64, error -71
[  135.120000] usb 1-1: device descriptor read/64, error -71
[  135.350000] usb 1-1: new full-speed USB device number 3 using ehci-platform
[  135.570000] usb 1-1: device descriptor read/64, error -71
[  135.890000] usb 1-1: device descriptor read/64, error -71
[  136.120000] usb 1-1: new full-speed USB device number 4 using ehci-platform
[  136.600000] usb 1-1: device not accepting address 4, error -71
[  136.720000] usb 1-1: new full-speed USB device number 5 using ehci-platform
[  137.200000] usb 1-1: device not accepting address 5, error -71
[  137.200000] usb usb1-port1: unable to enumerate USB device
other devices give me: usb usb1-port1: unable to enumerate USB device
I'm getting mad! I resoldered 3 times on the cpu, using flux and air soldering (I don't think that the problem is that), tried any combination for usb circuit, also the build suggested by shahid, but nothing I'm thinking that  it's not possible with my router to get a working usb... any ideas? I'd like to have a better schematics, I think that the problem is there
edit: https://photos.google.com/share/AF1QipN … luYXFub05n
ground e negative of usb are linked. what is wrong?

(Last edited by Marras on 9 Nov 2015, 15:55)

Marras you should try any USB 2.0 Hub with 15K resistors.
the data wires shouldn't too long, ofcourse no problm with soldering. same was happened with me brother.
after experiencing these problems I ended up with this solution.
Use USB hub it will be detected quite easily. and whatever you connect to usb hub will work smoothly whether it is pen drive or eexternal hard drive or 3G dongle.

Hi friend!
Anyone ever managed to build OpenWrt 15.05 with USB storage support for WR740N v4?

I'll update soon with 15.05 release wink

I have added modules:
"kmod-usb-core kmod-usb-ohci kmod-scsi-core kmod-usb-storage kmod-usb2 block-mount kmod-fs-vfat kmod-ledtrig-usbdev kmod-nls-base kmod-lib-crc16 kmod-fs-ext4 kmod-crypto-hash"
Using the Image Builder 15.05 profile "TLWR740"
But USB drive is not detected. lsmod and dmesg reported -   modules is started succesfully.

Updated, see first post wink
Added wr743nd v1 and v2.
Also compiled all kmod packages.

drsmoll wrote:

I have added modules:
"kmod-usb-core kmod-usb-ohci kmod-scsi-core kmod-usb-storage kmod-usb2 block-mount kmod-fs-vfat kmod-ledtrig-usbdev kmod-nls-base kmod-lib-crc16 kmod-fs-ext4 kmod-crypto-hash"
Using the Image Builder 15.05 profile "TLWR740"
But USB drive is not detected. lsmod and dmesg reported -   modules is started succesfully.

Check first post! You need to download the source code, and compile yourself.
And edit few files...in chaos calmer, these files are located in the folder
build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.23/arch/mips/ath79

(Last edited by dabyd64 on 8 Dec 2015, 20:54)

dabyd64, Thank you. I did not pay attention, need to patch the kernel sources.

(Last edited by drsmoll on 9 Dec 2015, 06:18)

Thanks for the updated 15.05

15.05 740n v4 WiFi very low  power (18dBm max)
iw list
Frequencies:.................
                        * 2432 MHz [5] (18.0 dBm)
                        * 2437 MHz [6] (18.0 dBm)
.........
On 14.07 all ok
Frequencies:
........
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
.........

740 can't make 30dBm even with steroids!
Although it shows that value, it's not the real power.
Max output is 17-18dBm, no matter what you see, it's a hardware limitation, openwrt may request 30dBm to the WiFi soc, but it just won't go past 18dBm.
My 740n v4 were only capable of 17dBm.

(Last edited by dabyd64 on 15 Dec 2015, 16:33)

zabses wrote:

Hello!
Yesterday added to the router support memory cards. The truth is not so neatly turned out, but still:
http://img.radiokot.ru/files/28687/thumbnail/r1jz597dj.jpg http://img.radiokot.ru/files/28687/thumbnail/r9d6ptmdq.jpg http://img.radiokot.ru/files/28687/thumbnail/r9d66nbhn.jpg
http://img.radiokot.ru/files/28687/thumbnail/r9d5kbz23.jpg http://img.radiokot.ru/files/28687/thumbnail/r9d5k2vn2.jpg http://img.radiokot.ru/files/28687/thumbnail/r9d5qqe1g.jpg
http://img.radiokot.ru/files/28687/thumbnail/r9duhll3g.png
More of his negligence ripped the wires from the USB.I had to solder them again:
http://img.radiokot.ru/files/28687/thumbnail/r9docoj4p.jpg
P.S. Sorry for my English (Google translator)

Please share how to mod sd card. And share PCB.

hoatienii wrote:

Please share how to mod sd card. And share PCB.

MMC Mod
PCB in Sprint Layout 6 format
P.S. I could not raise the firmware sd mod in Chaos Calmer, Barrier Breaker at all going without errors.

(Last edited by zabses on 8 Jan 2016, 17:51)

Hello there... Just added a USB port on my TL-WR740N v2 (hardware exactly the same as v1, the only notable difference is the rounded chassis), and flashed your 15.05 image, it works flawlessly! You did a great job, thanks! big_smile

There's just one problem thou... Not sure if it's just me or not (some people do get this problem too...), but when I try to install some packages like luci-app-mwan3, It get some errors that are kernel-dependency kinda thingy related? Look...

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-mwan3:
 *      kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *         kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *         kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *         kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *
 * opkg_install_cmd: Cannot install package luci-app-mwan3.

Any ideas? I think you need to update your build...

Sorry i'm such a noob when it comes to Linux compiling stuffs lol! Thanks again thou XD

Hello ;

Few days ago started my wr740n ver2.1 usb mode, pin soldering chapter was successfully, already using openwrt 12.09 lucy

more times. I forcing wr703n firmware to /tmp  and install as mantioned "dabyd64" and of the end router being bricked.

check the link is led behaviour => https://youtu.be/G0IKbZvOisE

- Failsave mode not working

- More people have ver4x, can't use UART can't find rx-tx pin on my router ver2.1

firstly try unbrick: do you have any idea or solution ?

http://i.hizliresim.com/pBE8An.jpg

http://i.hizliresim.com/NrkgRQ.jpg

http://i.hizliresim.com/QZQYjG.jpg

http://i.hizliresim.com/RoQo0a.jpg

(Last edited by david_off on 9 Jan 2016, 13:14)

david_off wrote:

- More people have ver4x, can't use UART can't find rx-tx pin on my router ver2.1

firstly try unbrick: do you have any idea or solution ?

RX&TX
https://wiki.openwrt.org/toh/tp-link/tl-wr741nd

zabses wrote:

MMC Mod
PCB in Sprint Layout 6 format
P.S. I could not raise the firmware sd mod in Chaos Calmer, Barrier Breaker at all going without errors.

Thank you very much!

mrchezco1995 wrote:

Hello there... Just added a USB port on my TL-WR740N v2 (hardware exactly the same as v1, the only notable difference is the rounded chassis), and flashed your 15.05 image, it works flawlessly! You did a great job, thanks! big_smile

There's just one problem thou... Not sure if it's just me or not (some people do get this problem too...), but when I try to install some packages like luci-app-mwan3, It get some errors that are kernel-dependency kinda thingy related? Look...

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-mwan3:
 *      kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *         kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *         kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *         kernel (= 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66) *
 * opkg_install_cmd: Cannot install package luci-app-mwan3.

Any ideas? I think you need to update your build...

Sorry i'm such a noob when it comes to Linux compiling stuffs lol! Thanks again thou XD

You can't install the kmod packaged from the openwrt repository, as it will differ.
You have to install them manually from the packages I posted in the ZIP file.

Check https://wiki.openwrt.org/doc/techref/opkg

zabses wrote:
david_off wrote:

- More people have ver4x, can't use UART can't find rx-tx pin on my router ver2.1

firstly try unbrick: do you have any idea or solution ?

RX&TX
https://wiki.openwrt.org/toh/tp-link/tl-wr741nd

Sorry, but you got totally confused.
703's firmware can be flashed on 740 v4...but 741 v2(same as 740 v1) is totally different hardware from 740 v4 or 703!!

Where did I say that they could be flashed that way? If so, just tell me to correct it right now!

For now, you have a half-bricked router, however I guess that the boot is still ok, you can repair by using a serial cable.

(Last edited by dabyd64 on 19 Jan 2016, 16:52)

Hi everyone ;

recently succeed rescue operation via TFTP now working perfectly.

dabyd64 wrote:

Sorry, but you got totally confused.
703's firmware can be flashed on 740 v4...but 741 v2(same as 740 v1) is totally different hardware from 740 v4 or 703!!
Where did I say that they could be flashed that way? If so, just tell me to correct it right now!
For now, you have a half-bricked router, however I guess that the boot is still ok, you can repair by using a serial cable.

Dear dabyd64
You are right; it is totally my mistake, how i learned it? when struggle unbrick and TFTP connection read more document and discover hardware, being aware of wr740n on the board using ar7240-ar9285 chipset, then understand what i did wrong !
i apologize.

now ;
i want build firmware for my wr740n v2.1(ar7240-ar9285) will finish in few days prepare ubuntu-12.04LTS

- probably i must work on wr741nd ver1.6 v1.9 v2.4 v3.1  https://wiki.openwrt.org/toh/tp-link/tl-wr741nd  for (ar7240-ar9285) isn't right?

- how can i define which kernel and how will should patch ?

- somebody can write to me step by step what should i do?

thanks

Have you tried with the already compiled firmware listed on the first post?
I've built for all 740-741versions

dabyd64 wrote:

Have you tried with the already compiled firmware listed on the first post?
I've built for all 740-741versions

yes tryed before all  due version your software...  now forcing again 12.09 Attitude Adjustment  740n v1   factory.bin  but...
Luci interface not work, can connect via putty openwrt work perfectly but when try connect with web browser get fail message  "err_conecction_refused"

i am sure wire soldered perfect and precision measurement and change D+ D- but not respond,
now working on Luci web interface fail, do you have any idea?

(Last edited by david_off on 22 Jan 2016, 19:55)

Why force? Use 741 v2 firmware!

Can anybody confirm problem with Luci? I no longer have these routers to test

(Last edited by dabyd64 on 28 Jan 2016, 00:29)