Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

请问下载编译的mips和mipsle版本是32位的吗 #82

Closed
kkstun opened this issue Feb 17, 2017 · 7 comments
Closed

请问下载编译的mips和mipsle版本是32位的吗 #82

kkstun opened this issue Feb 17, 2017 · 7 comments

Comments

@kkstun
Copy link

kkstun commented Feb 17, 2017

请问下载编译的mips和mipsle版本是32位的吗,我在我的openwrt上没有运行成功system type : MediaTek MT7620N ver:2 eco:3
mipsle版本:Illegal instruction
mips版本:line 1: syntax error: unexpected "("

@vzex
Copy link
Owner

vzex commented Feb 17, 2017

你好, 是32位的,不过我没有测试过

@kkstun
Copy link
Author

kkstun commented Feb 17, 2017

我看了下是32位了. 使用go哪个版本编译的 1.4还是1.5呢

@vzex
Copy link
Owner

vzex commented Feb 17, 2017

go 1.8 加入了32位mips的原生支持,但是有限制
Go now supports 32-bit MIPS on Linux for both big-endian (linux/mips) and little-endian machines (linux/mipsle) that implement the MIPS32r1 instruction set with FPU or kernel FPU emulation. Note that many common MIPS-based routers lack an FPU and have firmware that doesn't enable kernel FPU emulation; Go won't run on such machines.
低版本的可能需要openwrt-go进行编译,而且需要专门的kernel固件支持,所以如果即使32位的mips平台可能也会无法运行

@vzex
Copy link
Owner

vzex commented Feb 17, 2017

golang/go#18880

@kkstun kkstun closed this as completed Feb 18, 2017
@seatrix
Copy link

seatrix commented Feb 21, 2017

我编译了一个openwrt mt7620A的可以用

@koolwiki
Copy link

我下载@vzex编译的版本能够正常使用。我路由器固件是老毛子的Padavan。

@kkstun
Copy link
Author

kkstun commented Feb 22, 2017

我重新编译可以在openwrt下使用.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants