-
Notifications
You must be signed in to change notification settings - Fork 151
Install on Android
Entware-arm installation was checked on Tronsmart CX-919 TV stick with Finless ROM 1.6b (Android 4.2.2). The other Cortex-A9 based devices fits too.
- Cortex-A7 (or higher) based device with rooted Android firmware,
- Busybox and SSHDroid applications for command line access,
-
/etc/init.d
scripts support to start Entware-ng services automatically after boot (optional).
We need the /opt
folder to be writeable for installing packages and /bin/sh
symlink for executing shell scripts:
/system/bin/mount -o rw,remount /
mkdir /opt
mkdir /bin
ln -s /system/bin/sh /bin/sh
/system/bin/mount -o ro,remount /
It's safer to keep read-only access to rootfs, so /opt
folder will be mounted from external SD card:
mkdir /mnt/external_sd/entware.arm
mount -o bind /mnt/external_sd/entware.arm /opt
Run installation script:
wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh
You may add /opt/bin
and /opt/sbin
to the PATH
variable to make a console session more comfortable (optional). Make /data/data/berserker.android.apps.sshdroid/home/.profile
file with the following contents:
#!/system/bin/sh
. /opt/etc/profile
This changes will take effect on next SSH login.
You may run Entware-ng services automatically after reboot if custom firmware supports /etc/init.d
scripts (this is optional too). Put the following contents to /etc/init.d/100-Entware.sh
file:
#!/system/bin/sh
sleep 3
/system/bin/mount -o rw,remount /
sleep 1
/system/bin/chmod 777 /mnt/external_sd
/system/bin/mkdir /opt
/system/bin/mkdir /bin
ln -s /system/bin/sh /bin/sh
/system/bin/mount -o ro,remount /
sleep 3
/system/bin/mount -t ext2 -o rw /dev/block/mmcblk0p1 /mnt/external_sd
/system/bin/mount -o bind /mnt/external_sd/entware.arm /opt
sleep 2
/opt/etc/init.d/rc.unslung start
Log-on to SSH console, configure and install desired packages:
opkg update
opkg install mc