1.修改LibreELEC系统镜像
LibreELEC系统镜像为只读,无法创建opt文件夹。
mac系统下安装brew,然后brew install squashfs
插入SD卡在终端中输入如下:
cd /Volumes/LIBREELEC
mkdir -p new/opt
mksquashfs new SYSTEM -all-root
rm -rf new
现在LibreELEC系统镜像就会生成一个opt文件夹,每次LibreELEC升级都需要重新创建这个opt文件夹。
2.启动LIbreELEC系统并登入SSH
在LibreELEC的系统设置中开启ssh,然后在终端中输入ssh root@LibreELEC.local
输入密码后登入LibreELEC
3.安装Entware
尽管/根目录还是只读,但是/storage是可读写的,所以先创建/storage/opt,然后把/opt挂载到/storage/opt,然后安装opkg,在终端中输入如下:
mkdir -p /storage/opt
mount -o bind /storage/opt /opt
wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh
export PATH=$PATH:/opt/bin:/opt/sbin
opkg update
opkg install coreutils-expr
这里面的安装脚本需要根据你的设备来修改
可以到http://bin.entware.net/来查看支持的设备类型