PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://uk.pi-supply.com/collections/pijuice/products/pijuice-portable-power-raspberry-pi
GNU General Public License v3.0
437 stars 104 forks source link

Cannot auto startup from guide using latest bullseye (includes my fix) #1043

Open quitmeyer opened 10 months ago

quitmeyer commented 10 months ago

As of a fresh install of bullseye from the pi disk imager (default "legacy" option) just following the quick startup guide does not get the pijuice functioning for me. It could not start itself up and its options in the GUI would reset. to fix this i found some issues in the github, and this seemed to work for me (As of nov 2023 you have to run these lines to make work because of 64 bit things https://github.com/PiSupply/PiJuice/issues/1000#issuecomment-1676382133) $ sudo rm /usr/bin/pijuice_gui $ sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_gui sudo rm /usr/bin/pijuice_cli sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_cli

sudo rm /usr/bin/pijuiceboot sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuiceboot

You need to go to pijuice GUI go to config set EEPROM to 0x52 add dtoverlay=i2c-rtc,ds1307 to /boot/config.txt.

tvoverbeek commented 10 months ago

You wrote:

$ sudo rm /usr/bin/pijuice_gui
$ sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_gui
sudo rm /usr/bin/pijuice_cli
sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuice_cli     <---- A

sudo rm /usr/bin/pijuiceboot
sudo ln -s /usr/bin/pijuice_gui32 /usr/bin/pijuiceboot     <---- B

Line A should be sudo ln -s /usr/bin/pijuice_cli32 /usr/bin/pijuice_cli Line B should be sudo ln -s /usr/bin/pijuiceboot32 /usr/bin/pijuiceboot

The dtoverlay line in /boot/config.txt and setting the EEPROM addres to 0x52 is not necessary (unless you want to avoid OS interference with the RTC Alarm function when connected to the internet)