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

videocore: failed to open the mailbox to the GPU: open /dev/vcio: no such file or directory #429

Open
mpictor opened this issue May 8, 2022 · 3 comments

Comments

@mpictor
Copy link

mpictor commented May 8, 2022

I'm able to toggle GPIOs on and off, but when I try PWM I get this error:

bcm283x-gpio (GPIO20): videocore: failed to open the mailbox to the GPU: open /dev/vcio: no such file or directory

some googling led me to raspberrypi/linux#4620, so applying the linked patches may fix it.
These look to be the latest from pelwell:
vcio driver raspberrypi/linux@ac4fd05
dts raspberrypi/linux@aa901b4

On rpi3b+

@stapelberg
Copy link
Contributor

AFAICT, the vcio driver is not upstreamed to Linux, and only available in the Raspberry Pi Foundation’s linux kernel fork.

gokrazy uses the upstream Linux kernel, and I’m not sure if there is a way to use PWM with it. Are you using periph.io, or which library are you using to use GPIOs?

If you want to use the Raspberry Pi foundation kernel instead of gokrazy’s kernel, there is a community-supported repository for it: https://gokrazy.org/platforms/#community-supported-raspberry-pi-os-32-bit-kernelfirmware

@mpictor
Copy link
Author

mpictor commented May 8, 2022

I am using periph.io - specifically, bcm283x.Pin.PWM() from periph.io/x/host/v3 v3.7.2

I'd tried a while back to add a patch for vcio, but couldn't get its device to show up. It hadn't occurred to me that the device tree would also need updating, as device trees aren't something I've done much with.

I'll try to find and update that patch, and figure out what files are needed for dt. I hope I can just copy over the bcm*-rpi* dts files without breaking anything...

@willgorman
Copy link

@mpictor Were you ever able to get PWM working with the standard gokrazy kernel?

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