-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Raspberry Pi 3: how do I enable UART and GPIO access? #100620
Comments
For GPIO, see if the commands from |
I marked this as stale due to inactivity. → More info |
will this work for orange Pi 5 plus also? |
Not sure what exactly are you asking about but both |
Looks very dated and no sure if there's anything actionable here, feel free to reopen if needed. |
I'm working on a project with a Raspberry 3 Model B where I need to use SPI, UART and the GPIO pins. I'm building a bootable image by importing
<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix>
.By some help of @sorki, I've managed to get SPI up and running by applying a device-tree overlay on
linuxPackages_4_19
using #79370. But thus far I've had no success with UART or GPIO.When using
boot.kernelPackages = pkgs.linuxPackages_rpi3
(the only kernel tried where the expected/dev/ttyAMA0
appears), a UART loopback test (shorting the UART TX/RX pins and usingscreen /dev/ttyAMA0 115200
to enter some bytes) fails.I haven't digged as much into GPIO support yet: thus far I have tried to use gpiozero which fails because it tries to parse out a "Revision\t:" field from
/proc/cpuinfo
that does not exist.Is there a known way to properly enable GPIO and UART access?
For sake of context, my NixOS configuration can be found here.
The text was updated successfully, but these errors were encountered: