如何在aarch64的系统上执行armhf程序

之前买了一片友善之臂NEO2做NAS,配置了aria2远程服务,下载百度云盘的资源,速度还不错。
但需要下载迅雷链接时,就没有办法了。
以前用Raspberry Pi 1代时,可以用迅雷的嵌入式版本Xware_armel_v5te_glibc.tar.gz
后来用pi3, neo2这种arm64处理器的板子时就无法使用了。

会提示“-bash: ./portal: No such file or directory” 。

今天突然想到,完全可以安装armhf的运行时呀。就好像在Ubunt下安装的一系列i386库一样。

root@neo2:~# dpkg --add-architecture armhf
root@neo2:~# apt-get update
root@neo2:~# apt-get install libc6:armhf zlib1g:armhf
root@neo2:~# ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3

再执行

root@neo2:~/Xware# ./portal
initing...

try stopping xunlei service...
killall: ETMDaemon: no process killed
killall: EmbedThunderManager: no process killed

setting xunlei runtime env...
port: 9000 is usable.

YOUR CONTROL PORT IS: 9000


starting xunlei service...
execv: /root/Xware/lib/ETMDaemon.

getting xunlei service info...
Connecting to 127.0.0.1:9000 (127.0.0.1:9000)
xunlei_portal.tmp        0T --:--:-- ETA
the active key is not valid.

try again...(has tried 1 time(s)).
getting xunlei service info...
Connecting to 127.0.0.1:9000 (127.0.0.1:9000)
xunlei_portal.tmp        0T --:--:-- ETA

THE ACTIVE CODE IS: xxxxxx

go to http://yuancheng.xunlei.com, bind your device with the active code.
finished.

搞定,登陆http://yuancheng.xunlei.com,输入激活码,再一次成功出现哈哈。
运行环境 Armbian https://www.armbian.com/download/

原创文章,转载请注明: 转载自贝壳博客

本文链接地址: 如何在aarch64的系统上执行armhf程序

1 评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据