在小米R1D上安装OPKG和IPKG

环境

用的小米R1d,从别人处收的,配上了个硬盘,安装的是”Tomato Firmware 1.28.0000 -3.4-140-X1.4 K26ARM USB Custom-64K”版本的固件,也就是个国内改版的tomato。

安装这个干啥

就是个包管理器,但是有的话想要安装aria2,想要安装某瘦身,想要安装各python什么的,用这些方便简单的多。

怎么装

opkg

首先我用的这个源“http://entware-3x.zyxmon.org/binaries/armv7/installer/install_std.sh

但是会有提示 FATAL: kernel too old

删除两个文件

1
2
rm /opt/libld-linux.so.3
rm /opt/liblibc.so.6

然后用下面这个源即可

http://pkg.entware.net/binaries/armv7/installer/entware_install.sh

下不到的话,之前我也用以下的内容成功过。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh

echo "Info: Checking for prerequisites and creating folders..."

if [ -d /opt ]
then
echo "Warning: Folder /opt exists!"
else
mkdir /opt
fi
for folder in bin etc include lib sbin share tmp usr var
do
if [ -d "/opt/$folder" ]
then
echo "Warning: Folder /opt/$folder exists!"
echo "Warning: If something goes wrong please clean /opt folder and try again."
else
mkdir /opt/$folder
fi
done
[ -d "/opt/lib/opkg" ] || mkdir -p /opt/lib/opkg
[ -d "/opt/var/lock" ] || mkdir -p /opt/var/lock
[ -d "/opt/var/log" ] || mkdir -p /opt/var/log
[ -d "/opt/var/run" ] || mkdir -p /opt/var/run

echo "Info: Opkg package manager deployment..."
cd /opt/bin
wget http://qnapware.zyxmon.org/binaries-armv7/installer/opkg
chmod +x /opt/bin/opkg
cd /opt/etc
wget http://qnapware.zyxmon.org/binaries-armv7/installer/opkg.conf
cd /opt/lib
wget http://qnapware.zyxmon.org/binaries-armv7/installer/ld-2.20.so
chmod +x ld-2.20.so
ln -s ld-2.20.so ld-linux.so.3
wget http://qnapware.zyxmon.org/binaries-armv7/installer/libc-2.20.so
ln -s libc-2.20.so libc.so.6

echo "Info: Basic packages installation..."
/opt/bin/opkg update
/opt/bin/opkg install glibc-opt
if [ ! -f /opt/usr/lib/locale/locale-archive ]
then
wget http://qnapware.zyxmon.org/binaries-armv7/installer/locale-archive -O /opt/usr/lib/locale/locale-archive
fi

echo "Info: Congratulations!"
echo "Info: If there are no errors above then Entware.arm successfully initialized."
echo "Info: Add /opt/bin & /opt/sbin to your PATH variable"
echo "Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware.arm services to start"
echo "Info: Found a Bug? Please report at https://github.com/zyxmon/entware-arm/issues"

ipkg

1
wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armeabi-ng-bootstrap.sh | sh
坚持原创技术分享,您的支持将鼓励我继续创作!