TP-Link TL-WR1043ND v2.1 install entware-ng

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
otomo14
DD-WRT Novice


Joined: 26 Nov 2016
Posts: 4

PostPosted: Sun Nov 27, 2016 10:54    Post subject: TP-Link TL-WR1043ND v2.1 install entware-ng Reply with quote
Hi,
i have a tl-wr1043nd v2.1 router with the latest beta of dd-wrt. I'm trying install entware-ng but when i lounch the command "opkg update" i get a permission denied message.
Can someone help me ?
Sponsor
zyxmon
DD-WRT User


Joined: 07 Sep 2011
Posts: 139

PostPosted: Tue Nov 29, 2016 9:51    Post subject: Reply with quote
Entware-ng has only mipsel feed, and wr1043nd is mips be.
Use Entware-3x + mips feed for this router.

_________________
My forum.
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Tue Nov 29, 2016 11:21    Post subject: Entware-3x on Atheros Reply with quote
Make sure you are using a
Use this repo: https://github.com/Entware-for-kernel-3x/Entware-ng-3x

Use this link to install it: http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh

Make sure you have a USB or Harddrive mounted to /opt first, or a partition/folder of it at least, the script will look for it.

The command to use in SSH/Telnet is (make sure to be logged in as root):
Code:
wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh install_std.sh [enter]


Then just run:
Code:

opkg update [enter and wait for it to finish downloading]
opkg upgrade [enter and may have to click y and enter to upgrade something]

Then just install software you want as per this list:
http://entware-3x.zyxmon.org/binaries/mips/Packages.html
Use the command
Code:

opkg update
opkg upgrade
opkg install [program name without version numbers]

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
marteline
DD-WRT Novice


Joined: 22 Dec 2015
Posts: 29

PostPosted: Tue Mar 14, 2017 18:06    Post subject: Reply with quote
Dear Ian,

I tried your step-by-step instructions, but I just got this:

Code:
login as: root
DD-WRT v3.0-r31571 std (c) 2017 NewMedia-NET GmbH
Release: 03/04/17
root@192.168.1.5's password:
==========================================================

     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/

                       DD-WRT v3.0
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.26.2 (2017-03-04 02:34:58 CET) built-in shell (ash)

root@WR1043ND:~# wget http://entware-3x.zyxmon.org/binaries/mips/installer/insta
ll_std.sh | sh install_std.sh
sh: can't open 'install_std.sh'
root@WR1043ND:~# cd opt
-sh: cd: can't cd to opt
root@WR1043ND:~# cd\opt
-sh: cdopt: not found
root@WR1043ND:~# cd..
-sh: cd..: not found
root@WR1043ND:~# cd ..
root@WR1043ND:/tmp# cd ..
root@WR1043ND:/# cd opt
root@WR1043ND:/opt# wget http://entware-3x.zyxmon.org/binaries/mips/installer/in
stall_std.sh | sh install_std.sh
sh: can't open 'install_std.sh'
root@WR1043ND:/opt# wget http://entware-3x.zyxmon.org/binaries/mips/installer/in
stall_std.sh | sh install_std.sh
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Info: Opkg package manager deployment...
Info: Basic packages installation...
install_std.sh: line 44: /opt/bin/opkg: not found
install_std.sh: line 45: /opt/bin/opkg: not found
install_std.sh: line 46: /opt/bin/opkg: not found
Info: Congratulations!
Info: If there are no errors above then Entware-3x was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x se                        rvices to start
Info: Found a Bug? Please report at https://github.com/Entware-for-kernel-3x/Ent                        ware-ng-3x/issues
root@WR1043ND:/opt# opkg update
-sh: opkg: not found
root@WR1043ND:/opt# wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh
root@WR1043ND:/opt# opkg update
-sh: opkg: Permission denied
root@WR1043ND:/opt# ^C
root@WR1043ND:/opt# opkg: Permission denied
-sh: opkg:: not found
root@WR1043ND:/opt# opkg: Permission denied
-sh: opkg:: not found
root@WR1043ND:/opt# opkg update
-sh: opkg: Permission denied
root@WR1043ND:/opt# wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh instal
l_std.sh
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Warning: Folder /opt/bin exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/etc exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/lib/opkg exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/tmp exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/var/lock exists!
Warning: If something goes wrong please clean /opt folder and try again.
Info: Opkg package manager deployment...
Info: Basic packages installation...
install_std.sh: line 44: /opt/bin/opkg: Permission denied
install_std.sh: line 45: /opt/bin/opkg: Permission denied
install_std.sh: line 46: /opt/bin/opkg: Permission denied
Info: Congratulations!
Info: If there are no errors above then Entware-3x was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x services to start
Info: Found a Bug? Please report at https://github.com/Entware-for-kernel-3x/Entware-ng-3x/issues
root@WR1043ND:/opt# wget -O - http://pkg.entware.net/binaries/mipsel/installer/installer.sh | sh
root@WR1043ND:/opt# opkg update
-sh: opkg: Permission denied
root@WR1043ND:/opt#
login as: root
DD-WRT v3.0-r31571 std (c) 2017 NewMedia-NET GmbH
Release: 03/04/17
root@192.168.1.5's password:
==========================================================

     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/

                       DD-WRT v3.0
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.26.2 (2017-03-04 02:34:58 CET) built-in shell (ash)

root@WR1043ND:~# wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh install_s
td.sh
sh: can't open 'install_std.sh'
root@WR1043ND:~# cd ..
root@WR1043ND:/tmp# cd ..
root@WR1043ND:/# cd opt
root@WR1043ND:/opt# wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh instal
l_std.sh
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Warning: Folder /opt/bin exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/etc exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/lib/opkg exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/tmp exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/var/lock exists!
Warning: If something goes wrong please clean /opt folder and try again.
Info: Opkg package manager deployment...
Info: Basic packages installation...
install_std.sh: line 44: /opt/bin/opkg: Permission denied
install_std.sh: line 45: /opt/bin/opkg: Permission denied
install_std.sh: line 46: /opt/bin/opkg: Permission denied
Info: Congratulations!
Info: If there are no errors above then Entware-3x was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x services to start
Info: Found a Bug? Please report at https://github.com/Entware-for-kernel-3x/Entware-ng-3x/issues
root@WR1043ND:/opt#
wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh instal
l_std.sh
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Warning: Folder /opt/bin exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/lib/opkg exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/tmp exists!
Warning: If something goes wrong please clean /opt folder and try again.
Warning: Folder /opt/var/lock exists!
Warning: If something goes wrong please clean /opt folder and try again.
Info: Opkg package manager deployment...
install_std.sh: cd: line 37: can't cd to /opt/lib
Info: Basic packages installation...
install_std.sh: line 44: /opt/bin/opkg: not found
install_std.sh: line 45: /opt/bin/opkg: not found
install_std.sh: line 46: /opt/bin/opkg: not found
Info: Congratulations!
Info: If there are no errors above then Entware-3x was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x services to start
Info: Found a Bug? Please report at https://github.com/Entware-for-kernel-3x/Entware-ng-3x/issues
root@WR1043ND:/opt# cd ..
root@WR1043ND:/# wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh install_s
td.sh
wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh install_std.sh
sh: can't open 'install_std.sh'
sh: can't open 'install_std.shwget'
root@WR1043ND:/#
wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh install_s
td.sh
sh: can't open 'install_std.sh'
root@WR1043ND:/# cd opt
root@WR1043ND:/opt# cd ..
root@WR1043ND:/#
cd opt
root@WR1043ND:/opt# wget http://entware-3x.zyxmon.org/binaries/mips/installer/install_std.sh | sh instal
l_std.sh
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Info: Opkg package manager deployment...
Info: Basic packages installation...
install_std.sh: line 44: /opt/bin/opkg: not found
install_std.sh: line 45: /opt/bin/opkg: not found
install_std.sh: line 46: /opt/bin/opkg: not found
Info: Congratulations!
Info: If there are no errors above then Entware-3x was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x services to start
Info: Found a Bug? Please report at https://github.com/Entware-for-kernel-3x/Entware-ng-3x/issues
root@WR1043ND:/opt#


Can you help me?

My setup: WR1043ND v1 + DD-WRT v3.0-r31571 std
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Wed Mar 15, 2017 7:48    Post subject: Reply with quote
@marteline, make sure you follow ian5142's instruction, i.e. "Make sure you have a USB or Harddrive mounted to /opt first, or a partition/folder of it at least, the script will look for it."

The /opt directory that is on the flash is not writable and you have to mount and bind a folder on an external drive to /opt, or labeling the partition to opt may allow the router to automatically mount it when it is detected. You may have to format the external drive in ext format.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Wed Mar 15, 2017 8:27    Post subject: Reply with quote
well i have troubles with mounting USB especially the last builds on 1043nd v2 no JFFS no OPT is possible with ext2 or ext3 and only FAT32 and NTFS is calmed to work or im doing something terribly wrong and cant mount anything...

code:
df -h --- it shows that mount is there but its not working at all i need jffs to run a start up script but it's
not working as expected

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Wed Mar 15, 2017 8:43    Post subject: Reply with quote
How about ext4? Did you get jffs or opt working on FAT32 or NTFS?
catch22
DD-WRT User


Joined: 26 May 2014
Posts: 67
Location: Italy

PostPosted: Wed Mar 15, 2017 10:28    Post subject: Reply with quote
js1662 wrote:
How about ext4? Did you get jffs or opt working on FAT32 or NTFS?


I am on r31571 on a 1043nd v2 and ext4 is working. 4 disks mounted and working.

/dev/sda1 ext4 480589520 103590824 352579420 23% /tmp/mnt/sda1
/dev/sdb1 ext4 961301832 537865688 374598104 59% /tmp/mnt/sdb1
/dev/sdd1 ext4 466796 2318 435858 1% /opt
/dev/sdc1 ext4 1922728752 899401128 925651952 49% /tmp/mnt/sdc1


However, I'm experiencing the same problem marteline is having when attempting to install Entware-3x.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Wed Mar 15, 2017 11:55    Post subject: Reply with quote
huh i tried ext2 and ext3 but someone commented only FAT32 and NTFS ware working, and i need ext partition to run a script i will try ext4 at the end....
but do you run jffs ?? can you run it on NTFS, (impossible)???

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Wed Mar 15, 2017 11:58    Post subject: Reply with quote
huh i tried ext2 and ext3 but someone commented only FAT32 and NTFS ware working, and i need ext partition to run a script i will try ext4 at the end....
but do you run jffs ?? can you run it on NTFS, (impossible)???

Detection wrote:
Detection wrote:
Router: TPLINK TL-WR2543
Errors: Yes

Will not mount EXT2/3 USB drives
Will only mount FAT32 and NTFS USB drives


Could people with similar routers check if they can only mount FAT32/NTFS too?

I wouldn't mind switching from EXT2 to FAT32 but the transfer speed is shockingly bad with NTFS/FAT32

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Thu Mar 16, 2017 0:54    Post subject: Reply with quote
catch22 wrote:
js1662 wrote:
How about ext4? Did you get jffs or opt working on FAT32 or NTFS?


I am on r31571 on a 1043nd v2 and ext4 is working. 4 disks mounted and working.

/dev/sda1 ext4 480589520 103590824 352579420 23% /tmp/mnt/sda1
/dev/sdb1 ext4 961301832 537865688 374598104 59% /tmp/mnt/sdb1
/dev/sdd1 ext4 466796 2318 435858 1% /opt
/dev/sdc1 ext4 1922728752 899401128 925651952 49% /tmp/mnt/sdc1


However, I'm experiencing the same problem marteline is having when attempting to install Entware-3x.


You have four drives connected to your router. Are you using a usb hub to do that? Can you try again with only one drive namely the one with opt preferably without the usb hub and install Entware-3x again? Clean up the opt drive first by reformat it. Try wget the install_std.sh file to the tmp folder and then run sh install_std.sh from tmp. Then check if you have any files installed to the opt drive.
catch22
DD-WRT User


Joined: 26 May 2014
Posts: 67
Location: Italy

PostPosted: Fri Mar 17, 2017 12:33    Post subject: Reply with quote
Alozaros wrote:
huh i tried ext2 and ext3 but someone commented only FAT32 and NTFS ware working, and i need ext partition to run a script i will try ext4 at the end....
but do you run jffs ?? can you run it on NTFS, (impossible)???


I tried a NTFS usb stick: it was normally mounted as /mnt/sda1, but refused to mount it on /jffs, neither manually or using UUID at boot time.
Tried the same thing with an ext4 stick, and it was mounted as /jffs at boot time with UUID. I also run a script from there.
catch22
DD-WRT User


Joined: 26 May 2014
Posts: 67
Location: Italy

PostPosted: Fri Mar 17, 2017 12:38    Post subject: Reply with quote
js1662 wrote:
catch22 wrote:
js1662 wrote:
How about ext4? Did you get jffs or opt working on FAT32 or NTFS?


I am on r31571 on a 1043nd v2 and ext4 is working. 4 disks mounted and working.

/dev/sda1 ext4 480589520 103590824 352579420 23% /tmp/mnt/sda1
/dev/sdb1 ext4 961301832 537865688 374598104 59% /tmp/mnt/sdb1
/dev/sdd1 ext4 466796 2318 435858 1% /opt
/dev/sdc1 ext4 1922728752 899401128 925651952 49% /tmp/mnt/sdc1


However, I'm experiencing the same problem marteline is having when attempting to install Entware-3x.


You have four drives connected to your router. Are you using a usb hub to do that? Can you try again with only one drive namely the one with opt preferably without the usb hub and install Entware-3x again? Clean up the opt drive first by reformat it. Try wget the install_std.sh file to the tmp folder and then run sh install_std.sh from tmp. Then check if you have any files installed to the opt drive.


Thanks for your help js1662. I tried, but it did not work. Just to be more precise, when I rin the installation script all the directories are created and files are downloaded. In particur opkg is in /opt/bin, as an executable files. But when I try /opt/bin/opkg I receive the opkg not found shell message.

Everything worked fine until r31533, same problem with the last two releases. I have also a something not found error message when attempting to install yamon.
js1662
DD-WRT Guru


Joined: 23 Jul 2014
Posts: 1237
Location: BC, CA

PostPosted: Fri Mar 17, 2017 23:36    Post subject: Reply with quote
Since it was working before, I am sure you know what you are doing. Apparently Entware-3x is not compatible after r31533 on WR-1043ND v2. Hope that zyxmon is watching this thread and meanwhile my suggestion is to downgrade your router back to build r31533 if Entware is important to you.
zyxmon
DD-WRT User


Joined: 07 Sep 2011
Posts: 139

PostPosted: Sun Mar 19, 2017 7:35    Post subject: Reply with quote
Latest dd-wrt firmwares use busybox 1.26.2. wget from this version of busybox downloads truncated files from servers running nginx.
There is a fix (from busybox mailing list) that should be applied for wget to download correctly - https://github.com/Entware-ng/Entware-ng/blob/6b829b35c2553c3a97d5d12c0d53bce5dfb60040/package/utils/busybox/patches/510-fix_for_brain-damaged_HTTP_servers.patch

Entware (any version) cannot be installed when wget downloads corrupted files!

_________________
My forum.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum