Skip to content

Getting bin file to run on Pi zero w #63

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

Open
cjscottcjscott opened this issue Apr 25, 2017 · 5 comments
Open

Getting bin file to run on Pi zero w #63

cjscottcjscott opened this issue Apr 25, 2017 · 5 comments

Comments

@cjscottcjscott
Copy link

I read the thread on getting to run on Pi3. Any chance of updating for executing bins on Pi Zero w?

@me-no-dev
Copy link
Owner

Uhmmm is it not working? I'm hoping to get one soon, but I expected it to already work. What is the error you are getting?

@microbrewer
Copy link
Contributor

microbrewer commented Jun 11, 2017

Hello, I have the same problem. Can't seem to run a sketch on the Zero W. The issue seems ti be similar to the one in #49. I get the following error:
UNKNOWN_REVISION: 0x009000C1

This is the content of /proc/cpuinfo on my Zero W v1.1:

# cat /proc/cpuinfo 
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 697.95
Features	: half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7
 
Hardware	: BCM2835
Revision	: 9000c1
Serial		: 00000000dd0865c4

So 9000c1 seems to be an unknown revision. Hope that helps. I would very much like to get this to work. :)

@microbrewer
Copy link
Contributor

Ok, so I tried to understand what @me-no-dev did in 89dd03f to support the Pi3, and if I'm not mistaken, all we need to do is update the revision detection lib from https://github.com/AndrewFromMelbourne/raspberry_pi_revision which already supports the Zero W, and modify one line in wiring.c:181

if (info.model == RPI_MODEL_B_PI_3 || info.model == RPI_MODEL_B_PI_2 || info.model == RPI_MODEL_ZERO || info.model == RPI_MODEL_ZERO_W) {

since the pin masks on the Zero and Zero W are the same. Am I missing anything?

@me-no-dev
Copy link
Owner

Nope! that is exactly what needs to be done

@beilpig
Copy link

beilpig commented Jul 10, 2017

Thanks heaps that worked a treat!

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

4 participants