USB Support

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
keyboardcowboy
Posts: 38
Joined: Tue Aug 17, 2010 11:09 am

USB Support

Post by keyboardcowboy »

will gargoyle USB support work with devices which do not have USB by default, for example Tplink TL-WR841ND does not come with USB but it can be modded to add a USB port. How to make it work with gargoyle?

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: USB Support

Post by BashfulBladder »

If the mod requires extra code, you would have to compile your own Gargoyle firmware. If its just hardware, I suppose it would work the same as for everybody else.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

keyboardcowboy
Posts: 38
Joined: Tue Aug 17, 2010 11:09 am

Re: USB Support

Post by keyboardcowboy »

According to the openwrt page regarding the mod couple of files need to be edited

http://wiki.openwrt.org/toh/tp-link/tl- ... port.on.v7

can you guide me to some tutorials on how to compile Gargoyle from sources and enable USB for this router

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: USB Support

Post by BashfulBladder »

http://www.gargoyle-router.com/wiki/dok ... umentation

You need to make patch files to make it work. When you compile, the virgin source is copied to the build directory. You change something in the build directory, it gets lost & overwritten before you can compile.

Make a patch via

Code: Select all

 diff -Naur old_file newfile > newpatchfile
You have to edit the filepaths at the start of the patchfile. Loot at other patchfiles to get a feel for it.

Also, the USB_large profile builds to over 6MB. Your router has 4MB.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

keyboardcowboy
Posts: 38
Joined: Tue Aug 17, 2010 11:09 am

Re: USB Support

Post by keyboardcowboy »

is it not possible to just edit the files in gargoyle like shown in openwrt page and keep the size within 4MB??

keyboardcowboy
Posts: 38
Joined: Tue Aug 17, 2010 11:09 am

Re: USB Support

Post by keyboardcowboy »

removing some features to make room would that be possible

Post Reply