I've installed AArch64 on a raspberry pi zero 2 and replaced the kernel with linux-rpi since I need GPIO access.
$this->bbcode_second_pass_code('', '
[user@PC19 ~]$ uname -a
Linux PC19 5.15.28-2-rpi-ARCH #1 SMP PREEMPT Wed Mar 16 20:29:17 UTC 2022 aarch64 GNU/Linux
')
I installed picamera from python since I need to access my raspberry pi camera module. However running the following script
$this->bbcode_second_pass_code('', '
#/usr/bin/env python
import picamera
import time
camera = picamera.PiCamera()
try:
camera.start_preview()
time.sleep(2)
camera.capture("/home/user/cameratest.jpg")
except Exception as error:
print(error)
finally:
camera.stop_preview()
camera.close()
')
gives me the following error:
$this->bbcode_second_pass_code('', '
[user@PC19 ~]$ python test_camera.py
Traceback (most recent call last):
File "/home/user/test_camera.py", line 3, in <module>
import picamera
File "/usr/lib/python3.10/site-packages/picamera/__init__.py", line 72, in <module>
from picamera.exc import (
File "/usr/lib/python3.10/site-packages/picamera/exc.py", line 41, in <module>
import picamera.mmal as mmal
File "/usr/lib/python3.10/site-packages/picamera/mmal.py", line 49, in <module>
_lib = ct.CDLL('libmmal.so')
File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libmmal.so: cannot open shared object file: No such file or directory
')
This used to run fine on my old pi zero which was runnin armv6. Here's my config.txt which is the same as on my old pi zero:
$this->bbcode_second_pass_code('', '
[user@PC19 ~]$ cat /boot/config.txt
# See /boot/overlays/README for all available options
initramfs initramfs-linux.img followkernel
gpu_mem=128
temp_limit=70
hdmi_blanking=1
#dtoverlay=disable-wifi
dtoverlay=disable-bt
start_file=start_x.elf
fixup_file=fixup_x.dat
disable_camera_led=1
')
Any ideas why this is not working?