Open leighghunt opened 8 months ago
Could be a 32/64 bit issue?
Comparing the 2 x 2W Pis:
pi@sediment-pi-zero-2w-b:~$ ls -la /usr/bin/pijuice*
lrwxrwxrwx 1 root root 22 Mar 14 2023 /usr/bin/pijuiceboot -> /usr/bin/pijuiceboot32
-rwxr-xr-x 1 root root 22732 Jan 30 2022 /usr/bin/pijuiceboot32
-rwxr-xr-x 1 root root 23904 Jan 31 2022 /usr/bin/pijuiceboot64
lrwxrwxrwx 1 root root 22 Mar 14 2023 /usr/bin/pijuice_cli -> /usr/bin/pijuice_cli32
-rwsr-xr-x 1 pijuice pijuice 9096 Dec 18 2018 /usr/bin/pijuice_cli32
-rwsr-xr-x 1 pijuice pijuice 14872 Jan 31 2022 /usr/bin/pijuice_cli64
-rw-r--r-- 1 pijuice pijuice 101552 May 17 2021 /usr/bin/pijuice_cli.py
-rwxr-xr-x 1 root root 11275 Jan 31 2022 /usr/bin/pijuice_log.py
-rwxr-xr-x 1 root root 15664 Jan 31 2022 /usr/bin/pijuice_sys.py
pi@sediment-pi-zero-2w-b:~$ dpkg --print-architecture armhf
pi@sediment-pi-zero-2w-b:~$ uname -a Linux sediment-pi-zero-2w-b 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
- sediment-pi-zero-2w-a - bookeworm 64 bit, *NOT* working
pi@sediment-pi-zero-2w-a:~$ ls -la /usr/bin/pijuice* lrwxrwxrwx 1 root root 22 Feb 14 17:12 /usr/bin/pijuiceboot -> /usr/bin/pijuiceboot64 -rwxr-xr-x 1 root root 22732 Jan 30 2022 /usr/bin/pijuiceboot32 -rwxr-xr-x 1 root root 23904 Jan 31 2022 /usr/bin/pijuiceboot64 lrwxrwxrwx 1 root root 22 Feb 14 17:12 /usr/bin/pijuice_cli -> /usr/bin/pijuice_cli64 -rwsr-xr-x 1 pijuice pijuice 9096 Dec 18 2018 /usr/bin/pijuice_cli32 -rwsr-xr-x 1 pijuice pijuice 14872 Jan 31 2022 /usr/bin/pijuice_cli64 -rw-r--r-- 1 pijuice pijuice 101552 May 17 2021 /usr/bin/pijuice_cli.py -rwxr-xr-x 1 root root 11275 Jan 31 2022 /usr/bin/pijuice_log.py -rwxr-xr-x 1 root root 15664 Jan 31 2022 /usr/bin/pijuice_sys.py
pi@sediment-pi-zero-2w-a:~$ dpkg --print-architecture arm64
pi@sediment-pi-zero-2w-a:~$ uname -a Linux sediment-pi-zero-2w-a 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
Looks like i2c wasn't enabled.
Enabled in raspi-config
and everything OK again.
pi@sediment-pi-zero-2w-a:~$ ls -la /dev/i2c*
crw-rw---- 1 root i2c 89, 2 Feb 15 12:17 /dev/i2c-2
pi@sediment-pi-zero-2w-a:~$ i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory
pi@sediment-pi-zero-2w-a:~$ ls -la /dev/i2c*
crw-rw---- 1 root i2c 89, 1 Feb 15 13:07 /dev/i2c-1
crw-rw---- 1 root i2c 89, 2 Feb 15 12:17 /dev/i2c-2
pi@sediment-pi-zero-2w-a:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Another error in startup.sh.out
...
AttributeError: 'Picamera2' object has no attribute '_preview'
Looks like this is caused by the lack of camera on this Pi.
Scripts not working in bookworm branch, and
pijuice_cli
fails with following error when going to Status page:PiJuice is indicating charging via LED. OS was recently reflashed to Bookworm.