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

adafruit-pitft.py not working on Pi5 #335

Open
caternuson opened this issue Feb 19, 2025 · 0 comments
Open

adafruit-pitft.py not working on Pi5 #335

caternuson opened this issue Feb 19, 2025 · 0 comments

Comments

@caternuson
Copy link
Contributor

Raspberry Pi5
TFT = https://www.adafruit.com/product/2097
OS = 2024-11-19-raspios-bookworm-armhf.img.xz

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

Following the easy install instructions from here:
https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2
results in the following when running the script:

pi@raspberrypi:~ $ source env/bin/activate
(env) pi@raspberrypi:~ $ cd Raspberry-Pi-Installer-Scripts/
(env) pi@raspberrypi:~/Raspberry-Pi-Installer-Scripts $ sudo -E env PATH=$PATH python3 adafruit-pitft.py
Unable to compile driver because kernel space is 64-bit, but user space is 32-bit.
Add parameter to /boot/config.txt to use 32-bit kernel? [y/n] 

Saying "yes" to this adds an arm_64bit=0 line to config.txt to attempt to set 32bit mode. However, this does not work for a Pi5.

https://www.raspberrypi.com/documentation/computers/config_txt.html#arm_64bit

Flagship models since Raspberry Pi 5, Compute Modules since CM5, and Keyboard models since Pi 500 only support the 64-bit kernel. Models that only support a 64-bit kernel ignore this flag.

So there is no way to proceed with the script on a Pi5.

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

1 participant