Compile Go on MIPS/MIPS32
I’ve been trying to compile go programs on the gnubee which runs on the MIPS architecture.
Found this on github:
I have successfully cross compileed a go program into a mips32 binary with below command.
GOARCH=mips32
is for ar71xx, change to GOARCH=mips32le
if it is ramips.
cd
git clone https://github.com/gomini/go-mips32.git
cd go-mips32/src
export GOOS=linux
export GOARCH=mips32
sudo mkdir /opt/mipsgo
./make.bash
cd ..
sudo cp -R * /opt/mipsgo
export GOROOT=/opt/mipsgo
export PATH=/opt/mipsgo/bin:$PATH
vi helloworld.go
go build helloworld.go
Source https://github.com/bettermanbao
Hey! I'll happily receive your comments via email

Andreas Wagner
Freelance System Administrator from Tallinn, Estonia.