Entware Optware-NG and build 32597 on WRT1900ACS v1 [SOLVED]

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
pizzulicchio
DD-WRT User


Joined: 16 Dec 2009
Posts: 83
Location: Florence (ITALY)

PostPosted: Sun Jul 09, 2017 22:38    Post subject: Entware Optware-NG and build 32597 on WRT1900ACS v1 [SOLVED] Reply with quote
Hi to all,
how it's possible to install one of the package manager listed into the subject of this topic ?
I have switched from kong build to the brainslayer build in March,and i have noticed a bug with busybox and entware install script.

The bug (closed) is here :
https://github.com/Entware-ng/Entware-ng/issues/595

Today i have updated my WRT1900ACS v1 to build 32597, hoping in an update of busybox version... but nope..

IS IT AVAIBLE A WORKAROUND? or a step by step guide, for an install from zero of entware on my new usb drive connected to the router?
Have a nice day

This is the output error of the installation

******************************
root@WRT1900ACS:~# wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh
Connecting to pkg.entware.net (81.4.123.217:80)
Info: Checking for prerequisites and creating folders...
Warning: Folder /opt exists!
Info: Opkg package manager deployment...
Connecting to pkg.entware.net (81.4.123.217:80)
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
Connecting to pkg.entware.net (81.4.123.217:80)
wget: error getting response: Invalid argument
chmod: ld-2.23.so: No such file or directory
Info: Basic packages installation...
sh: /opt/bin/opkg: not found
sh: /opt/bin/opkg: not found
Connecting to pkg.entware.net (81.4.123.217:80)
wget: can't open '/opt/usr/lib/locale/locale-archive': No such file or directory
Info: Congratulations!
Info: If there are no errors above then Entware-ng 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-ng services to start
Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues
********************************


Last edited by pizzulicchio on Mon Jul 17, 2017 8:55; edited 2 times in total
Sponsor
shmike
DD-WRT Novice


Joined: 11 Jul 2017
Posts: 3

PostPosted: Tue Jul 11, 2017 10:49    Post subject: Reply with quote
I too faced this same issue with my WRT1900AC v1. The problem is with wget included in the BusyBox version in build 32597.

It does look like Brainslayer is preparing a fix for the next build as can be seen here http://svn.dd-wrt.com/changeset/32633/src/router/busybox/networking/wget.c

But if you're looking for a work-around, here's what I did. When it comes to Linux I'm very much just a novice, so you may find a more preferred and better way to do this. I would have replied sooner, but I had problems trying to register to the forum. Basically, these instructions will let you install a different, working wget to then get the installation and setup working.

If you do a:
which wget

You're going to get:
/usr/bin/wget

Based on your console output, you already have an /opt folder. Download a compiled BusyBox binary and place it in your /opt folder (that's on your USB drive you've got plugged into your router that you're using for Entware). I downloaded this version here: https://busybox.net/downloads/binaries/1.21.1/busybox-armv7l

SSH into your router and make sure the BusyBox binary is executable, and create a symbolic link as wget using the following:
cd /opt
chmod +x busybox-armv7l
ln -s busybox-armv7l wget


Next, you'll need to modify your $PATH variable so that you pre-append your /opt folder at the front of it. To see what's currently set, you can:
echo $PATH

You should see something like:
/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin

To update the variable:
export PATH=/opt:$PATH

Now when you perform which wget, you should see /opt/wget

You should now be able to run wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh and it should complete successfully.

My recommendation (and what I did) was install wget from Entware using:
opkg install wget

This now gives the full version of wget in /opt/bin. You should now update your $PATH variable to have /opt/bin at the start of it, not just /opt.

Also, once you logout of our SSH session, the $PATH variable resets to what it was originally. If you want the change to be permanent, you can add /opt/etc/profile as a start-up command to Administration --> Command in the DD-WRT web interface.

Hope this helps!
pizzulicchio
DD-WRT User


Joined: 16 Dec 2009
Posts: 83
Location: Florence (ITALY)

PostPosted: Mon Jul 17, 2017 8:52    Post subject: Reply with quote
GREAT!
You have solved my problem.

I have spent many days searching for a precompiled wget/busybox for use the same workaround!

Thank you very much for sharing.

Have a nice day
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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