kuoruan / openwrt-kcptun

kcptun for OpenWrt
MIT License
108 stars 29 forks source link

用的这个版本加 1.5.0-1,客户端版本显示客户端文件配置有误。 #2

Closed Skyearn closed 5 years ago

Skyearn commented 5 years ago

硬件是斐讯 k3,系统用的 Lean 的 OpenWrt。路径什么的都配置了,换 client_linux_arm7 也一样。

kuoruan commented 5 years ago

你在 ssh 里边执行一下 /usr/bin/kcptun-client -v 看看有输出吗

Skyearn commented 5 years ago

Illegal instruction

在 2019年4月8日,18:31,Xingwang Liao notifications@github.com 写道:

/usr/bin/kcptun-client -v

kuoruan commented 5 years ago
cat /usr/lib/os-release
Skyearn commented 5 years ago

文件我反复确认了几次。

在 2019年4月8日,18:34,Xingwang Liao notifications@github.com 写道:

cat /usr/lib/os-release — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480777651, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7SwZhUTPjgMS6YrHLou9P3Yh5HWmxks5vexsxgaJpZM4ch1XS.

kuoruan commented 5 years ago

上面那个命令的输出,贴出来看看

Skyearn commented 5 years ago

都在这里。

我也确认了下目录里确实有这个文件。

在 2019年4月8日,18:39,Xingwang Liao notifications@github.com 写道:

上面那个命令的输出,贴出来看看

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480779261, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S3gEZXq7J-wTnZ5BbvoYu9fH9bTjks5vexxxgaJpZM4ch1XS.

kuoruan commented 5 years ago

内容呢?我先看看你路由器什么架构的

Skyearn commented 5 years ago

额,我发的图片,可能没发出去。arm_cortex-a9 的。 root@Al:~# cat /usr/lib/os-release NAME="OpenWrt" VERSION="SNAPSHOT" ID="openwrt" ID_LIKE="lede openwrt" PRETTY_NAME="OpenWrt SNAPSHOT" VERSION_ID="snapshot" HOME_URL="http://openwrt.org/" BUG_URL="http://bugs.openwrt.org/" SUPPORT_URL="http://forum.lede-project.org/" BUILD_ID="r1263-b9a261dc" LEDE_BOARD="bcm53xx/generic" LEDE_ARCH="arm_cortex-a9" LEDE_TAINTS="no-all" LEDE_DEVICE_MANUFACTURER="OpenWrt" LEDE_DEVICE_MANUFACTURER_URL="http://openwrt.org/" LEDE_DEVICE_PRODUCT="Generic" LEDE_DEVICE_REVISION="v0" LEDE_RELEASE="OpenWrt SNAPSHOT r1263-b9a261dc"

在 2019年4月8日,18:43,Xingwang Liao notifications@github.com 写道:

内容呢?我先看看你路由器什么架构的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480780274, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S-7B0a14sBmeRTVc3PtENXJOz4f7ks5vex07gaJpZM4ch1XS.

kuoruan commented 5 years ago

https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk

这个文件装进去不行吗?

/usr/bin/kcptun-client -v

也是 Illegal instruction ?

Skyearn commented 5 years ago

稍等,我试试。

在 2019年4月8日,18:47,Xingwang Liao notifications@github.com 写道:

https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk 这个文件装进去不行吗?

/usr/bin/kcptun-client -v 也是 Illegal instruction ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480781562, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S_GT8VFd67Mr4kVNjfy1zQpwLTnZks5vex5EgaJpZM4ch1XS.

Skyearn commented 5 years ago

嗯,是的。

在 2019年4月8日,18:47,Xingwang Liao notifications@github.com 写道:

https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk 这个文件装进去不行吗?

/usr/bin/kcptun-client -v 也是 Illegal instruction ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480781562, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S_GT8VFd67Mr4kVNjfy1zQpwLTnZks5vex5EgaJpZM4ch1XS.

Skyearn commented 5 years ago

我把之前的删了重装一遍也是一样的 Illegal instruction。

在 2019年4月8日,18:47,Xingwang Liao notifications@github.com 写道:

https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk https://github.com/kuoruan/openwrt-kcptun/releases/download/v20190401-1/kcptun-client_20190401-1_arm_cortex-a9.ipk 这个文件装进去不行吗?

/usr/bin/kcptun-client -v 也是 Illegal instruction ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480781562, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S_GT8VFd67Mr4kVNjfy1zQpwLTnZks5vex5EgaJpZM4ch1XS.

kuoruan commented 5 years ago

官方的编译呢? https://github.com/xtaci/kcptun/releases/download/v20190401/kcptun-linux-arm-20190401.tar.gz

这里边的编译文件都不行吗?

Skyearn commented 5 years ago

Permission denied

在 2019年4月8日,18:53,Xingwang Liao notifications@github.com 写道:

官方的编译呢? https://github.com/xtaci/kcptun/releases/download/v20190401/kcptun-linux-arm-20190401.tar.gz https://github.com/xtaci/kcptun/releases/download/v20190401/kcptun-linux-arm-20190401.tar.gz 这里边的编译文件都不行吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480783331, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S8GO15TXgVT24OIfoAeFJQ3KosKOks5vex-jgaJpZM4ch1XS.

kuoruan commented 5 years ago

先给文件加执行权限,再运行

Skyearn commented 5 years ago

加了 chmod 777 client_linux_arm7

在 2019年4月8日,19:00,Xingwang Liao notifications@github.com 写道:

先给文件加执行权限,再运行

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480785133, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S-X_xLSXVd1Z7Iwc6FRmNorS1BTUks5veyE8gaJpZM4ch1XS.

Skyearn commented 5 years ago

root@Al:~# ls -l client_linux_arm7 -rwxrwxrwx 1 root root 4239976 Apr 8 18:54 client_linux_arm7 root@Al:~#

在 2019年4月8日,19:00,Xingwang Liao notifications@github.com 写道:

先给文件加执行权限,再运行

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480785133, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S-X_xLSXVd1Z7Iwc6FRmNorS1BTUks5veyE8gaJpZM4ch1XS.

kuoruan commented 5 years ago
./client_linux_arm7 -v
Skyearn commented 5 years ago

root@Al:~# ./client_linux_arm7 -v Illegal instruction

在 2019年4月8日,19:02,Xingwang Liao notifications@github.com 写道:

./client_linux_arm7 -v

kuoruan commented 5 years ago

压缩包里的所有文件都这样吗?

以前可以吗?哪个版本开始不行的?

Skyearn commented 5 years ago

以前我不清楚,我是今天才找到这个项目的。

在 2019年4月8日,19:04,Xingwang Liao notifications@github.com 写道:

压缩包里的所有文件都这样吗?

以前可以吗?哪个版本开始不行的?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480786517, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S0rE0HEnn7MCWVoZtksW7ijYfi0rks5veyJSgaJpZM4ch1XS.

Skyearn commented 5 years ago

我试一下其他的两个文件。

在 2019年4月8日,19:04,Xingwang Liao notifications@github.com 写道:

压缩包里的所有文件都这样吗?

以前可以吗?哪个版本开始不行的?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480786517, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S0rE0HEnn7MCWVoZtksW7ijYfi0rks5veyJSgaJpZM4ch1XS.

Skyearn commented 5 years ago

root@Al:~# ./client_linux_arm5 -v kcptun version 20190401 root@Al:~# ./client_linux_arm6 -v Illegal instruction root@Al:~# 貌似 arm5 能用……

在 2019年4月8日,19:04,Xingwang Liao notifications@github.com 写道:

压缩包里的所有文件都这样吗?

以前可以吗?哪个版本开始不行的?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480786517, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S0rE0HEnn7MCWVoZtksW7ijYfi0rks5veyJSgaJpZM4ch1XS.

Skyearn commented 5 years ago

我试了下,arm5 的的确可以用……非常感谢您的帮助。

在 2019年4月8日,19:04,Xingwang Liao <notifications@github.com mailto:notifications@github.com> 写道:

压缩包里的所有文件都这样吗?

以前可以吗?哪个版本开始不行的?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480786517, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S0rE0HEnn7MCWVoZtksW7ijYfi0rks5veyJSgaJpZM4ch1XS.

kuoruan commented 5 years ago

你先用着官方的版本吧,我找一下原因

Skyearn commented 5 years ago

好的,谢谢。

在 2019年4月8日,19:13,Xingwang Liao notifications@github.com 写道:

你先用着官方的版本吧,我找一下原因

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480789037, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S9aOqUtmifPkh_VORu-hwAW4asiFks5veyRdgaJpZM4ch1XS.

kuoruan commented 5 years ago

你测试一下这个文件 https://github.com/kuoruan/openwrt-frp/releases/download/v0.25.3-1/frpc_0.25.3-1_arm_cortex-a9.ipk

在你机器上能跑起来吗?装好之后,运行

/usr/bin/frpc -v
Skyearn commented 5 years ago

不行。 root@Al:/usr/bin# kcptun-client -v Illegal instruction root@Al:/usr/bin# frpc -v Illegal instruction root@Al:/usr/bin#

在 2019年4月8日,19:19,Xingwang Liao notifications@github.com 写道:

你测试一下这个文件 https://github.com/kuoruan/openwrt-frp/releases/download/v0.25.3-1/frpc_0.25.3-1_arm_cortex-a9.ipk https://github.com/kuoruan/openwrt-frp/releases/download/v0.25.3-1/frpc_0.25.3-1_arm_cortex-a9.ipk 在你机器上能跑起来吗?装好之后,运行

/usr/bin/frpc -v — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kuoruan/openwrt-kcptun/issues/2#issuecomment-480790651, or mute the thread https://github.com/notifications/unsubscribe-auth/AcM7S01KTX5Crz54nUs1HfWcR2tM4mV3ks5veyWvgaJpZM4ch1XS.

ghost commented 5 years ago

您好,我看了整个issue,是不是K3 A9的芯片因为golang的原因无法运行kcptun-client呢?

kuoruan commented 5 years ago

@MagicKeegan 具体原因未知,但是应该是 OpenWrt 的 Golang 编译过程中,确定 K3 的架构有误。 我这里没有K3,无法确定具体问题,等待有缘人解决。