Alternative install vs standard - Entware/entware GitHub Wiki
There are two levels of native filesystem integration supported by Entware, each with its own installation script: standard (or generic) and alternative. The fundamental distinction between the two is found in the management of user/group accounts.
In the standard installation, Entware links to and uses the device firmware's user account database. However in alternative installations, Entware's users/groups are independent (and sometimes duplicates) of the firmware's.
Alternative installations have their own root user account, whose default
password is 12345. To edit user accounts, their passwords and group
memberships, Entware includes in its integrated BusyBox utilities bundle its
own copies of the users/passwd/groups, adduser/moduser/deluser and
addgroup/modgroup/delgroup binaries and read/write account information to
and from files kept within the Entware filesystem, instead of those used by the
firmware. The primary advantage of an alternative installation comes not from
the separation of these users and groups from the firmware, but rather that they
are persistent, since most devices do not store theirs in non-volatile memory
and revert to preset defaults at the start of each boot cycle.
The ability to add users and groups that survive a power loss or reboot is
useful for packages that require dedicated system accounts in order to run, such
as znc, stubby, tor and gerbera. For
some devices, notably those that run Android as well as Keenetic routers,
alternative installation is the only known method for Entware to function
correctly.
| Architecture | Receiving updates | Kernel Version | GNU C Library Version | Standard Install script | Alternative Install script |
|---|---|---|---|---|---|
| aarch64 | โ | 3.10 | 2.27 | generic.sh | alternative.sh |
| mipssf | โ | 3.4 | 2.27 | generic.sh | alternative.sh |
| mipselsf | โ | 3.4 | 2.27 | generic.sh | alternative.sh |
| armv7sf | โ | 3.2 | 2.27 | generic.sh | alternative.sh |
| x86_64 | โ | 3.2 | 2.27 | generic.sh | alternative.sh |
| armv5sf | โ (EoS) | 3.2 | 2.27 | generic.sh | alternative.sh |
| armv7sf | โ (EoS) | 2.6 | 2.23 | generic.sh | alternative.sh |
| x86 | โ (EoS) | 2.6 | 2.23 | generic.sh | alternative.sh |
๐ Older mips/mipsel kernel 2.6 repositories โฎ (click to expand) โฎ
In addition, there's:
- Entware-ng repository archive, useful for old mipsel routers (kernel 2.6.22, uClibc-ng 1.0.17; last updated 2017.)
- Entware mipsel and mips repository archive for older mipsel routers (uClibc 0.9.32 from 2011; last updated 2015.)
- To gain the majority of advantages offered by alternative installation, it is
recommended to install an Entware package which provide a standalone SSH
server, e.g.
dropbearoropenssh-server, and configure it to run at boot on a non-standard port. Doing this, combined with an alternative installation, fixes console screen blinking on ARM-based QNAP NASes, for example. - The Entware
busyboxpackage can also be installed on standard (generic) installations; it has many utilities that are commonly missing on the device's firmware that can be useful. Use caution, though, since the BusyBox version from Entware will almost certainly also contain many utilities which are present in the firmware and can, in some rare cases, interfere with firmware. This is usually because the BusyBox provided by the firmware and the Entware version are compiled with different options that control default behaviors, and can sometimes be resolved by manipulating thePATHenvironment variable so that none of the Entware directories appear ahead of their firmware counterparts. - The technical differences between standard and alternative installations are
quite minor and simple to understand. Standard installations symlink their
/opt/etc/passwdand/opt/etc/groupfiles to the firmware's/etc/passwdand/etc/groupfiles, while alternative installs create normal files for both that live in the Entware filesystem. This distinction also applies to the shadow file and some others. - End-of-Service (EoS) repositories are frozen and don't receive updates.