Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我的路由器是armv7l架构的,请问我应该如何在上面使用 #427

Closed
Zmincrix opened this issue Nov 16, 2022 · 6 comments
Closed

Comments

@Zmincrix
Copy link

Zmincrix commented Nov 16, 2022

问题描述

  • 没有找到对应我的架构的版本,我尝试了arm6和arm64版本想碰碰运气,但都分别报了不同的错,已附图。

是否已搜索同类问题

  • [⭕️] 未搜索

环境

截图

armv6:
截屏2022-11-16 10 03 50

arm64:
截屏2022-11-16 10 07 32

@jeessy2
Copy link
Owner

jeessy2 commented Nov 16, 2022

有可能不支持arm7i.
golang交叉编译arm只有CGO_ENABLED=0 GOOS=linux GOARCH=arm go build CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build 如果不能运行那也没啥法了

@lxjxxxxxxxx
Copy link

我也是v7的,现成的包都运行不了,要下载源码项目重新编译,我用的是goland,编译环境设置为GOARCH=arm;GOARM=5;GOOS=linux
最关键的就是GOARM=5这一项

@jeessy2
Copy link
Owner

jeessy2 commented Nov 19, 2022

我也是v7的,现成的包都运行不了,要下载源码项目重新编译,我用的是goland,编译环境设置为GOARCH=arm;GOARM=5;GOOS=linux 最关键的就是GOARM=5这一项

方便的话来个PR,用的goreleaser, 参考 https://goreleaser.com/customization/build/
我没arm7的cpu,不好测

@lxjxxxxxxxx
Copy link

我是用windows的goland交叉编译的,没有接触过pr构建,我只手动设置了三个变量,其余的变量应该都是默认的
GOARCH=arm
GOARM=5
GOOS=linux
以下是我的路由器信息
`

主机名 OpenWrt
型号 Netgear R6250 V1 (BCM4708)
架构 ARMv7 Processor rev 0 (v7l)
目标平台 bcm53xx/generic
固件版本 OpenWrt 22.03.2 r19803-9a599fee93 / LuCI openwrt-22.03 branch git-22.288.45147-96ec0cd
内核版本 5.10.146
`

@jeessy2
Copy link
Owner

jeessy2 commented Nov 20, 2022

@lxjxxxxxxxx
Copy link

lxjxxxxxxxx commented Nov 20, 2022

fixed. Try with https://github.com/jeesy2/ddns-go/releases/tag/v4.2.1

经测试,4.2.1 armv5在我的路由器可以运行,没有问题

@jeessy2 jeessy2 closed this as completed Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants