Somehow, it looks like the indentation has changed in 720-....patch, maybe tabs have been changed to whitespaces. Double check, that your text editor doesn't do this kind of conversion.
Topic: [SOLVE] USB Mod on TLWR941v5 (TL-WR940v2)
The content of this topic has been archived on 17 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.
Somehow, it looks like the indentation has changed in 720-....patch, maybe tabs have been changed to whitespaces. Double check, that your text editor doesn't do this kind of conversion.
Would you please make two patch files for me?
I try to compiled many times and taked much time but had error.
thank you so much.
Here is a patch to be applied to 14.07, which is basically a backport of the regular port of TL-WR941ND V5:
https://www.file-upload.net/download-12 … patch.html
I only copy 0001-ar71xx-add-support-for-TL-WR941ND-V5 file to openwrt-14.07/target/linux/ar71xx/patches-3.10 directory(do not change 01-led, 02_network....) and run
./scripts/feeds update -a
/scripts/feeds install -a
make -i1 V=s
and ater that
Applying patch platform/0001-ar71xx-add-support-for-TL-WR941ND-V5.patch
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Subject: [PATCH] ar71xx: add support for TL-WR941ND V5
|
|Add support for the TL-WR941ND V5
|---
| target/linux/ar71xx/base-files/etc/diag.sh | 3 +-
| .../ar71xx/base-files/etc/uci-defaults/01_leds | 3 +-
| .../ar71xx/base-files/etc/uci-defaults/02_network | 1 +
| target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 ++
| .../ar71xx/base-files/lib/upgrade/platform.sh | 1 +
| .../files/arch/mips/ath79/mach-tl-wr841n-v8.c | 60 ++++++++++++++++++++++
| target/linux/ar71xx/image/Makefile | 3 +-
| .../610-MIPS-ath79-openwrt-machines.patch | 3 +-
| .../720-MIPS-ath79-add-Tube2H-support.patch | 2 +-
| 9 files changed, 74 insertions(+), 5 deletions(-)
|
|diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
|index 1864b11..e2dfbe6 100755
|--- a/target/linux/ar71xx/base-files/etc/diag.sh
|+++ b/target/linux/ar71xx/base-files/etc/diag.sh
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 34
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
|index d3b766d..9549a18 100755
|--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
|+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 48
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
|index c5cfd67..6cd8563 100755
|--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
|+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 60
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
|index 1e96b6d..c54a0ad 100755
|--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
|+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 74
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
|index 846954c..4bee28e 100755
|--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
|+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 86
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
|index 0099b15..305e077 100644
|--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
|+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c
--------------------------
No file to patch. Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 168
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
|index 683c238..17dd52a 100644
|--- a/target/linux/ar71xx/image/Makefile
|+++ b/target/linux/ar71xx/image/Makefile
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 189
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch b/target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch
|index 3669f26..b3aad00 100644
|--- a/target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch
|+++ b/target/linux/ar71xx/patches-3.10/610-MIPS-ath79-openwrt-machines.patch
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 209
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/ar71xx/patches-3.10/720-MIPS-ath79-add-Tube2H-support.patch b/target/linux/ar71xx/patches-3.10/720-MIPS-ath79-add-Tube2H-support.patch
|index c4aa70c..51b5eac 100644
|--- a/target/linux/ar71xx/patches-3.10/720-MIPS-ath79-add-Tube2H-support.patch
|+++ b/target/linux/ar71xx/patches-3.10/720-MIPS-ath79-add-Tube2H-support.patch
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch platform/0001-ar71xx-add-support-for-TL-WR941ND-V5.patch does not apply (enforce with -f)
Makefile:24: recipe for target '/home/huy/Downloads/diendan/14.07/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49/.quilt_checked' failed
make[4]: *** [/home/huy/Downloads/diendan/14.07/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49/.quilt_checked] Error 1
make[4]: Leaving directory '/home/huy/Downloads/diendan/14.07/target/linux/ar71xx'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/huy/Downloads/diendan/14.07/target/linux'
target/Makefile:21: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/huy/Downloads/diendan/14.07'
target/Makefile:16: recipe for target '/home/huy/Downloads/diendan/14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_compile' failed
make[1]: *** [/home/huy/Downloads/diendan/14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/huy/Downloads/diendan/14.07'
/home/huy/Downloads/diendan/14.07/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2
(Last edited by dktn on 18 Mar 2017, 04:55)
No, you need to apply it to directory openwrt-14.07.
patch -p1 < 0001-ar71xx-add-support-for-TL-WR941ND-V5.patch
Please tell me, I run as:
cd openwrt-14.07
patch -p1 < 0001-ar71xx-add-support-for-TL-WR941ND-V5.patch
Does it?
Do i need modify some files more?
Thanks your help.
(Last edited by dktn on 18 Mar 2017, 14:08)
Well, yes, you put the patch into the directory openwrt-14.07 and run those commands.
This only adds the support for the 941 V5, like the commit I referenced previously. You still need to do changes to access the servers at kernel.org via https instead of ftp, and the changes to add USB support.
Thank MBS help me
I compile openwrt-14.07 with USB mod sucessfull.
But I do not know I only compile 14.07 in old computer (chipset GM965, duo to core) and not work on ( CPU i3, 4 core H55 I test by using only one Harddisk and use DEBIAN adm64 not use vmware).
+ I installed package: xupnpd but it not found this file.
- I download udpxy.1.0.23-9-prod.tar.gz file then put in openwrt-14.07/dl directory but it can not install.
if [ -f /home/Downloads/openwrt-14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/uboot-envtools.default.install.clean ]; then rm -f /home/huy/Downloads/openwrt-14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/uboot-envtools.default.install /home/huy/Downloads/openwrt-14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/uboot-envtools.default.install.clean; fi; echo "uboot-envtools" >> /home/Downloads/openwrt-14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/uboot-envtools.default.install
make[3]: Leaving directory '/home/Downloads/openwrt-14.07/package/boot/uboot-envtools'
make[3]: Entering directory '/home/Downloads/openwrt-14.07/feeds/packages/multimedia/xupnpd'
mkdir -p /home/Downloads/openwrt-14.07/dl
echo "Checking out files from the svn repository..."; mkdir -p /home/huy/Downloads/openwrt-14.07/tmp/dl && cd /home//Downloads/openwrt-14.07/tmp/dl && rm -rf xupnpd-399 && [ \! -d xupnpd-399 ] && ( svn help export | grep -q trust-server-cert && svn export --non-interactive --trust-server-cert -r399 http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/ xupnpd-399 || svn export --non-interactive -r399 http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/ xupnpd-399 ) && echo "Packing checkout..." && /bin/tar czf /home/Downloads/openwrt-14.07/tmp/dl/xupnpd-399.tar.gz xupnpd-399 && mv /home/huy/Downloads/openwrt-14.07/tmp/dl/xupnpd-399.tar.gz /home/huy/Downloads/openwrt-14.07/dl/ && rm -rf xupnpd-399;
Checking out files from the svn repository...
svn: E160013: Unable to connect to a repository at URL 'http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src'
svn: E160013: '/svn/trunk/xupnpd/src' path not found
svn: E160013: Unable to connect to a repository at URL 'http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src'
svn: E160013: '/svn/trunk/xupnpd/src' path not found
Makefile:72: recipe for target '/home/huy/Downloads/openwrt-14.07/dl/xupnpd-399.tar.gz' failed
make[3]: *** [/home/Downloads/openwrt-14.07/dl/xupnpd-399.tar.gz] Error 1
make[3]: Leaving directory '/home/Downloads/openwrt-14.07/feeds/packages/multimedia/xupnpd'
package/Makefile:173: recipe for target 'package/feeds/packages/xupnpd/compile' failed
make[2]: *** [package/feeds/packages/xupnpd/compile] Error 2
make[2]: Leaving directory '/home/Downloads/openwrt-14.07'
package/Makefile:170: recipe for target '/home/Downloads/openwrt-14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/Downloads/openwrt-14.07/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/huy/Downloads/openwrt-14.07'
/home/Downloads/openwrt-14.07/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2
@debian:~/Downloads/openwrt-14.07$
(Last edited by dktn on 18 Apr 2017, 15:17)
What about installing it as a ready package? It is right here.
You just need to make sure to have the packages feed enabled in /etc/opkg.conf.
However, if you insist on building it yourself, you can put a copy of xupnpd-399, that I found on the net, in your dl directory.
Although things are getting off topic for this thread.
Very sorry about off topic.
I had already put in dl directory but iI do not known it searched xupnpd file .
echo "Checking out files from the svn repository..."; mkdir -p /home/huy/Downloads/openwrt-14.07/tmp/dl && cd /home/huy/Downloads/openwrt-14.07/tmp/dl && rm -rf xupnpd-399 && [ \! -d xupnpd-399 ] && ( svn help export | grep -q trust-server-cert && svn export --non-interactive --trust-server-cert -r399 http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/ xupnpd-399 || svn export --non-interactive -r399 http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/ xupnpd-399 ) && echo "Packing checkout..." && /bin/tar czf /home/huy/Downloads/openwrt-14.07/tmp/dl/xupnpd-399.tar.gz xupnpd-399 && mv /home/huy/Downloads/openwrt-14.07/tmp/dl/xupnpd-399.tar.gz /home/huy/Downloads/openwrt-14.07/dl/ && rm -rf xupnpd-399;
Checking out files from the svn repository...
svn: E160013: Unable to connect to a repository at URL 'http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src'
svn: E160013: '/svn/trunk/xupnpd/src' path not found
svn: E160013: Unable to connect to a repository at URL 'http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src'
svn: E160013: '/svn/trunk/xupnpd/src' path not found
may be
Checking out files from the svn repository...
?
I compile with "build the openwrt Image buider" in menuconfig then make firmware by "image builder" when I flash firmware it reboot repeat again.
(Last edited by dktn on 20 Mar 2017, 13:45)
After many times to compile with help from MSB I had TLWR941V5 mod USB now.
+ With Openwrt :
add line
ath79_register_usb();
in target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c file like this
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr941nd_v5_leds_gpio),
tl_wr941nd_v5_leds_gpio);
ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
tl_wr841n_v8_gpio_keys);
ath79_register_usb();
}
MIPS_MACHINE(ATH79_MACH_TL_WR941ND_V5, "TL-WR941ND-v5", "TP-LINK TL-WR941N/ND v5",
tl_wr941nd_v5_setup)
add line
PACKAGES:=kmod-usb-core kmod-usb2
in target/linux/ar71xx/generic/profiles/tp-link.mk file like this
define Profile/TLWR842/Description
Package set optimized for the TP-LINK TL-WR842N/ND.
endef
$(eval $(call Profile,TLWR842))
define Profile/TLWR941
NAME:=TP-LINK TL-WR941N/ND
PACKAGES:=kmod-usb-core kmod-usb2
endef
define Profile/TLWR941/Description
Package set optimized for the TP-LINK TL-WR941N/ND.
endef
$(eval $(call Profile,TLWR941))
define Profile/TLWR1041
NAME:=TP-LINK TL-WR1041N
PACKAGES:=
endef
+ with LEDE
add line
ath79_register_usb();
in target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr841n-v8.c file like this
tatic void __init tl_wr941nd_v5_setup(void)
{
tl_ap123_setup();
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr941nd_v5_leds_gpio),
tl_wr941nd_v5_leds_gpio);
ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
tl_wr841n_v8_gpio_keys);
ath79_register_usb();
}
MIPS_MACHINE(ATH79_MACH_TL_WR941ND_V5, "TL-WR941ND-v5", "TP-LINK TL-WR941N/ND v5",
tl_wr941nd_v5_setup);
add line
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
in target/linux/ar71xx/image/tp-link.mk like this
define Device/tl-wr941nd-v5
$(Device/tplink-4mlzma)
DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
BOARDNAME := TL-WR941ND-v5
DEVICE_PROFILE := TLWR941
TPLINK_HWID := 0x09410005
all compile in DEBIAN 8.7 OK.
Thank help from MBS so much.
(Last edited by dktn on 18 Apr 2017, 15:14)
The discussion might have continued from here.