xorbit / LiFePO4wered-Pi

Access library, command line tool and daemon for the LiFePO4wered/Pi module
GNU General Public License v2.0
132 stars 31 forks source link

Reboot of the RPI blocked with the LiFePO4wered/Pi+ abd CLI #57

Closed Lunik971 closed 2 years ago

Lunik971 commented 2 years ago

hello,

I have a issue with the LiFePO4wered/Pi+ and the programm, when I send a reboot command the system just shutdown and do not comme up. Does I have a setting to chagne for that ?

Issue : 1 : Send Reboot command 2 : The system power off 3 : The RPI never power on, need to press the button to power on again.

xorbit commented 2 years ago

Most likely the issue can be fixed using the SHDN_DELAY register. The problem most likely is that the newer Pis take much more time in the bootloader than old Pis. The default value for SHDN_DELAY was appropriate for the older Pis but is too short for the newer ones. The delay basically sets a wait time after the kernel shut down before power is removed, and a reboot can set TX high again to keep the system running through a reboot, if it waits long enough.

If you run lifepo4wered-cli get SHDN_DELAY you can see the current value of the register. Most likely it's the old default value of 40. Use lifepo4wered-cli set SHDN_DELAY 64 to set it to the new higher default value and see if that fixes the issue. If you want to make it permanent by writing it to flash, also run lifepo4wered-cli set CFG_WRITE 70.

xorbit commented 2 years ago

Did this fix your issue? If so, please close this issue.

Lunik971 commented 2 years ago

Hello, Sorry for the late answer, ans yes this solved m'y issue. Many thanks