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.

Absolutely no idea, may have I been touched by some divine force? xD
It worked the first time for me... but still nobody has achieved it? Nobody?

I had to open the router to add a suction cup to put it on my window.
I also tried to take better pics, so there they are !
I edited the first post with the new pics, I hope you can understand better the connections.

I also added a firmware which works out-of-the-box, just flash and try the USB!
I have just attached my 320GB external HDD and it works too!!
I had to add an external power source of course, the router can't power such thing by itself tongue
Regards

(Last edited by dabyd64 on 20 Aug 2012, 20:14)

Thanks dabyd64 for providing the firmware, unfortunately the problem persists.
USB Full Speed device (usb 1.1) works but non Hi-Speed (usb 2.0). Tested usb flash, hdd, wifi, only usb sound works.

Maybe it's very depending of the thin cable length of the data cables, mine is appr. 10 cm (4 inch)?

I had some problems when using too long thin wires, the USB had a strange behaviour, like if I was connecting and disconnecting it, dissapearing and reappearing a bit later, in fact I could see that it was happening in the logs.
After that, I cutted and used the thin wire just to join another thicker cables to end the connection with the usb socket.
Actually you can see that in my photos, maybe 2-3cm of thin wire, the rest is thick. At the moment everything is fine.
Can you post some photos of the setup? it would be nice and easier to check. That enumeration error could be a bad power source, not able to power correctly the usb device.
I mean, it may provide 5V when you check with the voltmeter, but if it isn't able to supply the current needed, it may go down and fail.
Try getting the 5V source from a phone charger or other adapter that can provide at least 500mA. Check the voltage first with the voltmeter!!
Sometimes they say 5V, and they put 7 or 8V easily.

(Last edited by dabyd64 on 20 Aug 2012, 20:06)

SUCCESS

wire length (D- and D+) is most important keep them as short as possible.

Thanks guys especially dabyd64 for research on chinese websites smile

Speed is great FTP/ext3 7,7 MB/s write 9,5 MB/s read.

Firmware and Hardware is wr741nd v4 with kernel usb patch, all working lan, wan etc.

http://img341.imageshack.us/img341/5928/wr741ndusb.th.jpg
http://img269.imageshack.us/img269/2780/741ndusb.th.jpg

(Last edited by fr4nk on 21 Aug 2012, 16:10)

Glad you succeed!! smile

BTW I'm trying to compile the FW to include all the modules, but I'm getting lost tongue
Can you list the packages you installed? Thanks

(Last edited by dabyd64 on 22 Aug 2012, 15:55)

Sure that's what I've selected

base-files - 115-r33162
blkid - 2.21.2-1
block-mount - 0.2.0-8
busybox - 1.19.4-3
dnsmasq - 2.62-1
dropbear - 2011.54-2
e2fsprogs - 1.42.4-1
ethtool - 3.4.1-1
fdisk - 2.21.2-1
firewall - 2-53
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
iptables-mod-nat-extra - 1.4.10-4
iw - 3.3-1
jshn - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
kernel - 3.3.8-1-f49d4cd9ff8b3f899a9c973ed941069d
kmod-ath - 3.3.8+2012-07-16-1
kmod-ath9k - 3.3.8+2012-07-16-1
kmod-ath9k-common - 3.3.8+2012-07-16-1
kmod-cfg80211 - 3.3.8+2012-07-16-1
kmod-crypto-aes - 3.3.8-1
kmod-crypto-arc4 - 3.3.8-1
kmod-crypto-core - 3.3.8-1
kmod-fs-ext4 - 3.3.8-1
kmod-gpio-button-hotplug - 3.3.8-1
kmod-input-core - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nat-extra - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-leds-gpio - 3.3.8-1
kmod-ledtrig-default-on - 3.3.8-1
kmod-ledtrig-netdev - 3.3.8-1
kmod-ledtrig-timer - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-lib-crc16 - 3.3.8-1
kmod-mac80211 - 3.3.8+2012-07-16-1
kmod-nls-base - 3.3.8-1
kmod-ppp - 3.3.8-1
kmod-pppoe - 3.3.8-1
kmod-pppox - 3.3.8-1
kmod-scsi-core - 3.3.8-1
kmod-scsi-generic - 3.3.8-1
kmod-sound-core - 3.3.8-1
kmod-usb-audio - 3.3.8-1
kmod-usb-core - 3.3.8-1
kmod-usb-storage - 3.3.8-1
kmod-usb-storage-extras - 3.3.8-1
kmod-usb2 - 3.3.8-1
kmod-wdt-ath79 - 3.3.8-1
libblkid - 2.21.2-1
libblobmsg-json - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libc - 0.9.33.2-1
libcom_err - 1.42.4-1
libelf - 0.8.13-1
libext2fs - 1.42.4-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.10-4
libjson - 0.9-2
libncurses - 5.7-5
libnl-tiny - 0.1-3
libpthread - 0.9.33.2-1
libubox - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libuci - 2012-03-28.1-1
libuuid - 2.21.2-1
libxtables - 1.4.10-4
minicom - 2.3-1
mtd - 18
netifd - 2012-08-11-9411d498c46fe3f1c4d79eb8fa0b7c97dd32a990
opkg - 618-2
ppp - 2.4.5-6
ppp-mod-pppoe - 2.4.5-6
pure-ftpd - 1.0.32-3
swap-utils - 2.21.2-1
swconfig - 10
terminfo - 5.7-5
uboot-envtools - 2012.04.01-1
ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
uci - 2012-03-28.1-1
wireless-tools - 29-5
wpad-mini - 20120428-2

fr4nk wrote:

Sure that's what I've selected
...
...

DarkSky wrote:

I also have a tplink wr740n, version 4.21. I did the mod, I modified "mach-tl-wr741nd-v4.c" to enable USB, but devices aren't enumerated. I also force-flashed 703n's firmware, but the same happens. sad
To enable usb on 740n, just add #include "dev-usb.h" at the top of the file and ath79_register_usb(); before ath79_register_m25p80(&tl_wr741ndv4_flash_data);. It also needs "select ATH79_DEV_USB" in Kconfig, under "config ATH79_MACH_TL_WR741ND_V4". All these files are in <linux source>/arch/mips/ath79.

Thanks a lot DarkSky and fr4nk!! I finally was able to compile it smile

Lovely updates!
Im gonna retry with shortening the wires. As for the power, i trialtested with a standard usb port from my laptop to power the usb.
Will update when finished.

I had to break my microscope toy and paste the lens to my phone, to take that awesome macros lol

Hi fr4nk,

Please, I'd like pics from your pins connections (closer). I have the same 741nd v4 and I need a USB connection too. And two questions:

1 - Does it works with a USB hub??

2 - Did you try a wifi radio (http://mightyohm.com/blog/2008/10/build … roduction/)??

Thanks in advance ;-)

Is that a joke? Did you see the first post on this thread?
there is a big and close pic of the usb pins!
The 740n v4 and 741n v4 are the same, the only difference is the detachable antenna.

(Last edited by dabyd64 on 8 Dec 2012, 14:10)

dabyd64,

Sorry. I didn't that were the same. Thanks a lot ;-)

dabyd64, really great work, thanks!
A question about accessing pins/traces in the chip: Are the ones you used near the edge or on the inner set?
Does it make any difference?
I ask because I'm wondering about accessing more pins/pads that aren't used.
And how - or should I say what tools did you use? Hand tools? "Dremel"?
Regards.

hi im new here i want to know can i use externale source of power for usb ?? and how to do it  ??? can you plz make picture of wires links thx

robthebrew wrote:

dabyd64, really great work, thanks!
A question about accessing pins/traces in the chip: Are the ones you used near the edge or on the inner set?
Does it make any difference?
I ask because I'm wondering about accessing more pins/pads that aren't used.
And how - or should I say what tools did you use? Hand tools? "Dremel"?
Regards.

Look at the photos, yeah they are on the edges. This is not a really BGA, it has pins only on the border.
Those tracks go from the border to inside of the AR9331, the processor.
I used a small screwdriver, scratching by hand. Slow and patienly, it only takes 5 minutes.
With the dremel it would take 2 seconds, but you will destroy the small copper tracks very easily.
The trick is to locate those pins and start scratching the corner from inside to outside, always with the flat side of the screwdriver or other tool.
The tracks are at about 1-1,5mm deep.
Once you see any copper, be careful and don't scratch that part again,  only parts that are still covered.
You will end with a small furrow and the cooper tracks nicely seen.

Now you will need to solder on those 2 small tracks......its a bit hard, because they are so close, that once you achieved to solder one, when you solder the next it's very easy to touch the other, and you'll have to start again.


@ysf.zer
Look at the photos...get a phone charger or something that puts 5v, MEASURE it vith a voltmeter before anything!
Valid values are between 4,5 and 5,5V.
Check the first post, I uploaded a new image smile

(Last edited by dabyd64 on 13 Dec 2012, 23:55)

@dabyd64  thank you very mush  smile now i know what i have to do smile

Hello,

I have TL-WR740N 4.23 and made your mod dabyd64, but your link to http://minus.com/m1sq8QKn8 doesn't run. Could you repair this link?

Thanks

Damn links,always dying.. sure,wait a bit.
Tomorrow I'll compile the latest trunk and upload the image.
Cheers!

OK.
I will wait for new image from you.

Sorry for the waiting, got a lot of work and no free time but to eat and sleep lol ...

*edit*
New firmware compiled and uploaded, see first post smile

(Last edited by dabyd64 on 16 Apr 2013, 23:46)

Hi.

Can you please help me, how can I make my own build with usb support (741nd v4)? I have just one problem with your build, that is, it's not based on Attitude Adjustment sad, and the free space, but it isn't a big problem. I found Attitude Adjustment better (more stable) than Barrier Breaker...

Thanks for your time.

dabyd64 wrote:

Sorry for the waiting, got a lot of work and no free time but to eat and sleep lol ...

*edit*
New firmware compiled and uploaded, see first post smile

If I remember ok, the files that you have to modify are the same.
Check the first post, there it's explained how to do it yourself.

(Last edited by dabyd64 on 24 May 2013, 10:29)

Thanks for your fast reply, but of course I already tried everything from your first post, unfortunately without success.

I followed this:

Then go to build_dir/linux-ar71xx_generic/linux-3.3.8/arch/mips/ath79
Edit this files:

        mach-tl-wr741nd-v4.c
add        #include "dev-usb.h"           at the top of the file
add        ath79_register_usb();          before ath79_register_m25p80(&tl_wr741ndv4_flash_data)

        Kconfig
add        select ATH79_DEV_USB           under "config ATH79_MACH_TL_WR741ND_V4"

The problem, I found mach-tl-wr741nd-v4.c, but it is in /target/linux/ar71xx/files/arch/mips/ath79 directory (not in build_dir/linux-ar71xx_generic/linux-3.3.8/arch/mips/ath79), anyway, I made the modifications, but I can't find Kconfig with config ATH79_MACH_TL_WR741ND_V4, so I don't know how should I insert "select ATH79_DEV_USB ".

If you have time, please help me, or if you can (I'll be very grateful), build it for me, and others.

Thank you very much


dabyd64 wrote:

If I remember ok, the files that you have to modify are the same.
Check the first post, there it's explained how to do it yourself.

Did you compile first, BEFORE doing changes?
Otherwise that folder/files will not be generated
After the first compilation, modify and compile again

(Last edited by dabyd64 on 24 May 2013, 11:43)

No I didn't :S. I think that was the problem, now it is building wink

Thanks again wink

dabyd64 wrote:

Did you compile first, BEFORE doing changes?
Otherwise that folder/files will not be generated
After the first compilation, modify and compile again