在OpenWRT上安装entware环境

  1. 创建磁盘镜像

cd /mnt/data
dd if=/dev/zero of=entware.img bs=1M count=1024
mkfs.ext4 entware.img
mkdir /opt
mount entware.img /opt
  1. 安装entware

cd /opt
wget http://bin.entware.net/aarch64-k3.10/installer/generic.sh
chmod +x generic.sh
./generic.sh
opkg update
  1. 修改环境变量

vim /etc/profile 
export PATH="/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin"
source /etc/profile 
opkg update
opkg install coreutils
  1. 添加开机启动

/opt/etc/init.d/rc.unslung start

作者:wangyeye
链接:https://www.jianshu.com/p/4061eeaccd13
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


Categories:

Tags: