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

pi zero w support #82

Open
olliephillips opened this issue Mar 16, 2017 · 2 comments
Open

pi zero w support #82

olliephillips opened this issue Mar 16, 2017 · 2 comments

Comments

@olliephillips
Copy link

olliephillips commented Mar 16, 2017

Noted that unless I build with GOARM=6 the compiled binary will not run on pi zero w, it outputs "Illegal Instruction". Happy to amend README, since I think other newcomers might find the same, and be deterred.

I have LED0 blinking, but should I expect embd library to work on pi zero w with existing Rasp Pi board definition files?

@danesparza
Copy link

danesparza commented Apr 7, 2017

Hmmm ... what version of Go are you using? With Go 1.8, I just needed to export GOOS=linux and
export GOARCH=arm in order to build the correct arm binary on Windows (that I then SCP'd to my Raspberry Pi Zero W).

@olliephillips
Copy link
Author

I'm cross compiling from a Mac on Go 1.8

It's like it is using GOARM=7 by default, since if I use 7 I also get same error as if GOARM env var omitted.

pi@pizero3:~ $ sudo ./simpleblinker
Illegal instruction

So I need to explicitly set GOARM=6 for it to work.

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

2 participants