Install on Padavan - ProBackup-nl/Entware-ng-3x GitHub Wiki

Disable built-in entware-ng

In Padavan RT-N56U firmware there is a built-in script that installs Entware-ng. We need to disable that, to install Entware-3x manually.

Before installation, make sure that on the tab "Advanced Settings > USB Application > Common Setting" at the drop-down list "Allow Run Optware?", option "No" is selected.

Prepare the media according to the instructions formatting the USB disk drive on the router with Padavan firmware until (not including) section "Using Entware".

After the media with the correct file system (ext2, ext3 or ext4) is connected to the router and mounted, create the /opt/bin folder and the /opt/bin/opkg file on it. If the label of the sda1 section is "Main", the corresponding command is:

# mkdir -p /media/Main/opt/bin;touch /media/Main/opt/bin/opkg

This will block the installation of Entware-ng.

Unmount the device using command:

# ejusb

being outside device directories, or unmount via WebGUI ("Network Map > Select USB group > push Eject button") before going to the next step.

Now "Enable Entware" in the web interface ("USB Applications > General Settings > Enable Optware? - Entware"). Restart (reboot) the router, and check (mount) that the drive is mounted in /opt:

/opt/home/admin # mount | grep /opt
/dev/sda1 on /opt type ext4 (rw,noatime,data=ordered)

Delete the file created by the firmware scripts:

# rm /opt/etc/profile

Busybox is recommended for unification with Entware-3x installations on other devices. The action is not mandatory. (??? Firmware already contains busybox)

Install entware-3x

Standard installation:

# wget -O - http://entware-3x.zyxmon.org/binaries/mipsel/installer/install_std.sh | /bin/sh

Tries to symlink /opt/etc/{passwd|group|shells|shadow|gshadow} to their /etc counterparts when it exists, otherwise creates new ones.

Alternative installation (recommended):

# wget -O - http://entware-3x.zyxmon.org/binaries/mipsel/installer/install_alt.sh | /bin/sh

Always installs separate versions of /opt/etc/{passwd|group|shells} (no symbolic linking here), completely skips /opt/etc/{shadow|gshadow} creation, symlinks to localtime to /etc/localtime.

Optional install openssh server

In case you used the alternative installation, it is recommended to install ssh server openssh. Read the brief instructions below heading "Installing openssh (Entware)". Restart (reboot) the router, then use port 2222 for ssh, root login, password 12345. You can change the password after login, add additional users.

Set the time zone for your region (see the FAQ in the topic). For Amsterdam it is done this way:

# ln -sf /opt/share/zoneinfo/Europe/Amsterdam /opt/etc/localtime

The installation is complete.

Ignore

The installation script ends with two instructions:

  1. Add /opt/bin & /opt/sbin to your PATH variable

  2. Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-3x services to start

These instructions can be ignored for padavan firmware because the build-in /usr/bin/opt-start.sh already extends PATH and start all services named S* in directory /opt/etc/init.d.

Verify

Entware-3x $ file /opt/bin/opkg should return something with interpreter /opt/lib/ld.so.1 like:

/opt/bin/opkg: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked, interpreter /opt/lib/ld.so.1, for GNU/Linux 3.2.0, stripped

Entware-ng would return:

/opt/bin/opkg: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, stripped

And May 2018 entware returns:

/opt/bin/opkg: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked, interpreter /opt/lib/ld.so.1, for GNU/Linux 3.2.0, stripped