- 创建磁盘镜像
cd /mnt/data
dd if=/dev/zero of=entware.img bs=1M count=1024
mkfs.ext4 entware.img
mkdir /opt
mount entware.img /opt
- 安装entware
cd /opt
wget http://bin.entware.net/aarch64-k3.10/installer/generic.sh
chmod +x generic.sh
./generic.sh
opkg update
- 修改环境变量
vim /etc/profile
export PATH="/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin"
source /etc/profile
opkg update
opkg install coreutils
- 添加开机启动
/opt/etc/init.d/rc.unslung start