Closed robynjayqueerie closed 6 years ago
Can you provide the output of pd-check? Reboot from the menu or the command line should work exactly the same. For me with a 3B or 3B+ reboot either way takes just seconds before the Pi Desktop top LED stops flashing.
First thing I would check is if you have the latest Raspian Stretch kernel and matching firmware via pd-check
and you should see dates after March. If you see March or earlier you should:
sudo apt update
sudo apt full-upgrade
And try pd-check
again to see the new dates.
Here is what I see:
OS & Firmware versions:
raspberrypi-firmware soc:firmware: Attached to firmware from 2018-04-16 18:16 Linux 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 GNU/Linux
Hi, sorry for the delay, I have been trying to get node and sqlite working
I have attached the output from the pd-check, it has not line breaks but hopefully you will find what you want.
It was all the latest stretch Raspbian installed and pd-check shows todays date
Kind regards
Robyn
Robyn Hannah PhD BE (Hons 1) Grad Dip Counselling.
http://nrie.com.au/NRIEWB9Version/index.html NRIE Logo
NRI Electronics Pty. Ltd.
PO Box 20, Alstonville, NSW, 2477.
Phone: 02 6628 7961 or 0427 068 257
email: mailto:contact@nrie.com.au mailto:contact@nrie.com.auWeb www.nrie.com.au
From: hoopsurfer [mailto:notifications@github.com] Sent: Thursday, 24 May 2018 14:36 To: hoopsurfer/pidesktop Cc: robynjayqueerie; Author Subject: Re: [hoopsurfer/pidesktop] Reboot on Pi 3B not working (#18)
Can you provide the output of pd-check? Reboot from the menu or the command line should work exactly the same. For me with a 3B or 3B+ reboot either way takes just seconds before the Pi Desktop top LED stops flashing.
First thing I would check is if you have the latest Raspian Stretch kernel and matching firmware via pd-check and you should see dates after March. If you see March or earlier you should:
sudo apt update sudo apt full-upgrade
And try pd-check again to see the new dates.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoopsurfer/pidesktop/issues/18#issuecomment-391585329 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEuiTAafNjjVovXYA4ttSnCk0biqhkJks5t1jjAgaJpZM4UIINH . https://github.com/notifications/beacon/AFEuiQVqejyImzrepMUzSkzwetyKPBZfks5t1jjAgaJpZM4UIINH.gif
OS & Firmware versions:
raspberrypi-firmware soc:firmware: Attached to firmware from 2018-04-16 18:16 Linux 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 GNU/Linux pidesktop
Script files:
/usr/share/pidesktop/python: total 36 drwxr-xr-x 2 pi pi 4096 May 22 17:11 . drwxr-xr-x 4 pi pi 4096 May 22 17:11 .. -rwxr-xr-x 1 pi pi 1700 Apr 11 14:43 pd-bootssd.py -rwxr-xr-x 1 pi pi 1125 Apr 11 14:43 pd-clonessd.py -rwxr-xr-x 1 pi pi 4393 Apr 11 15:01 pd-fixrtc.py -rwxr-xr-x 1 pi pi 970 Apr 11 14:43 pd-powerkey.py -rwxr-xr-x 1 pi pi 866 Apr 11 14:43 pd-reboot.py -rwxr-xr-x 1 pi pi 1690 Apr 11 14:43 pd-shutdown.py
/usr/share/pidesktop/script: total 20 drwxr-xr-x 2 pi pi 4096 May 22 17:11 . drwxr-xr-x 4 pi pi 4096 May 22 17:11 .. -rwxr-xr-x 1 pi pi 621 Apr 11 16:38 pd-check -rwxr-xr-x 1 pi pi 175 Apr 11 14:43 pd-clonessd -rwxr-xr-x 1 pi pi 70 Apr 11 14:43 pd-rtcsync
Links to commands:
lrwxrwxrwx 1 root root 41 May 22 17:11 /usr/bin/pd-bootssd -> /usr/share/pidesktop/python/pd-bootssd.py lrwxrwxrwx 1 root root 36 May 22 17:11 /usr/bin/pd-check -> /usr/share/pidesktop/script/pd-check lrwxrwxrwx 1 root root 39 May 22 17:11 /usr/bin/pd-clonessd -> /usr/share/pidesktop/script/pd-clonessd lrwxrwxrwx 1 root root 40 May 22 17:11 /usr/bin/pd-fixrtc -> /usr/share/pidesktop/python/pd-fixrtc.py
Systemd services:
pidesktop-powerkey.service enabled pidesktop-reboot.service enabled pidesktop-shutdown.service enabled
System and hardware clocks:
Local time: Fri 2018-05-25 15:26:28 AEST
Universal time: Fri 2018-05-25 05:26:28 UTC RTC time: Fri 2018-05-25 05:26:29 Time zone: Australia/Sydney (AEST, +1000) Network time on: yes NTP synchronized: yes RTC in local TZ: no
Package status:
Package: pidesktop-base Status: install ok installed Priority: optional Section: free Maintainer: hoopsurfer Architecture: all Version: 0.1.6 Description: Pi DeskTop Case Power+RTC+mSATA Support
It looks like you have the correct firmware, I'm expecting when you say it works with the 3B+ you are using the same mSATA SSD with the exact same raspian image on it just changing the underlying board correct?
IF that is true, one possibility is you have /boot/config.txt setup to be board specific, check to make sure this line is in your config.txt and it is not specific to any one model using what are called section headers. You should see the gpio option in your config.txt and it must be executed to turn off the flashing from the power management controller (else it shuts the system down after ~30 seconds as you are seeing)
gpio=6=op,pn,dl
When this happens during boot (early stage boot), it causes the case top LED to stop flashing. I will do some retesting on a 3B myself when I get a chance.
Yes, all I am doing is swapping the underlying board from a 3B to a 3B+
I will run the thing up and do the tests on Monday, thanks for your help
Robyn
Robyn Hannah PhD BE (Hons 1) Grad Dip Counselling.
http://nrie.com.au/NRIEWB9Version/index.html NRIE Logo
NRI Electronics Pty. Ltd.
PO Box 20, Alstonville, NSW, 2477.
Phone: 02 6628 7961 or 0427 068 257
email: mailto:contact@nrie.com.au mailto:contact@nrie.com.auWeb www.nrie.com.au
From: hoopsurfer [mailto:notifications@github.com] Sent: Saturday, 26 May 2018 14:33 To: hoopsurfer/pidesktop Cc: robynjayqueerie; Author Subject: Re: [hoopsurfer/pidesktop] Reboot on Pi 3B not working (#18)
It looks like you have the correct firmware, I'm expecting when you say it works with the 3B+ you are using the same mSATA SSD with the exact same raspian image on it just changing the underlying board correct?
IF that is true, one possibility is you have /boot/config.txt setup to be board specific, check to make sure this line is in your config.txt and it is not specific to any one model using what are called section headers. You should see the gpio option in your config.txt and it must be executed to turn off the flashing from the power management controller (else it shuts the system down after ~30 seconds as you are seeing)
gpio=6=op,pn,dl
When this happens during boot (early stage boot), it causes the case top LED to stop flashing. I will do some retesting on a 3B myself when I get a chance.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoopsurfer/pidesktop/issues/18#issuecomment-392235833 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEuiSMrtR3EJKS6H9bXNnJBAZkqRG3Cks5t2Nr1gaJpZM4UIINH . https://github.com/notifications/beacon/AFEuiYQy0JT2ykS11J7F36Ae0HY4-cqlks5t2Nr1gaJpZM4UIINH.gif
Just checked, the config.txt is attached, it looks as you are expecting it.
Robyn
Robyn Hannah PhD BE (Hons 1) Grad Dip Counselling.
http://nrie.com.au/NRIEWB9Version/index.html NRIE Logo
NRI Electronics Pty. Ltd.
PO Box 20, Alstonville, NSW, 2477.
Phone: 02 6628 7961 or 0427 068 257
email: mailto:contact@nrie.com.au mailto:contact@nrie.com.auWeb www.nrie.com.au
From: hoopsurfer [mailto:notifications@github.com] Sent: Saturday, 26 May 2018 14:33 To: hoopsurfer/pidesktop Cc: robynjayqueerie; Author Subject: Re: [hoopsurfer/pidesktop] Reboot on Pi 3B not working (#18)
It looks like you have the correct firmware, I'm expecting when you say it works with the 3B+ you are using the same mSATA SSD with the exact same raspian image on it just changing the underlying board correct?
IF that is true, one possibility is you have /boot/config.txt setup to be board specific, check to make sure this line is in your config.txt and it is not specific to any one model using what are called section headers. You should see the gpio option in your config.txt and it must be executed to turn off the flashing from the power management controller (else it shuts the system down after ~30 seconds as you are seeing)
gpio=6=op,pn,dl
When this happens during boot (early stage boot), it causes the case top LED to stop flashing. I will do some retesting on a 3B myself when I get a chance.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoopsurfer/pidesktop/issues/18#issuecomment-392235833 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEuiSMrtR3EJKS6H9bXNnJBAZkqRG3Cks5t2Nr1gaJpZM4UIINH . https://github.com/notifications/beacon/AFEuiYQy0JT2ykS11J7F36Ae0HY4-cqlks5t2Nr1gaJpZM4UIINH.gif
dtparam=audio=on
dtoverlay=i2c-rtc,pcf8563 gpio=6=op,pn,dl
Interesting, if I run the unit up and do a reboot it works, reboots fine but then second time always goes to shutdown.
Robyn
Robyn Hannah PhD BE (Hons 1) Grad Dip Counselling.
http://nrie.com.au/NRIEWB9Version/index.html NRIE Logo
NRI Electronics Pty. Ltd.
PO Box 20, Alstonville, NSW, 2477.
Phone: 02 6628 7961 or 0427 068 257
email: mailto:contact@nrie.com.au mailto:contact@nrie.com.auWeb www.nrie.com.au
From: hoopsurfer [mailto:notifications@github.com] Sent: Saturday, 26 May 2018 14:33 To: hoopsurfer/pidesktop Cc: robynjayqueerie; Author Subject: Re: [hoopsurfer/pidesktop] Reboot on Pi 3B not working (#18)
It looks like you have the correct firmware, I'm expecting when you say it works with the 3B+ you are using the same mSATA SSD with the exact same raspian image on it just changing the underlying board correct?
IF that is true, one possibility is you have /boot/config.txt setup to be board specific, check to make sure this line is in your config.txt and it is not specific to any one model using what are called section headers. You should see the gpio option in your config.txt and it must be executed to turn off the flashing from the power management controller (else it shuts the system down after ~30 seconds as you are seeing)
gpio=6=op,pn,dl
When this happens during boot (early stage boot), it causes the case top LED to stop flashing. I will do some retesting on a 3B myself when I get a chance.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoopsurfer/pidesktop/issues/18#issuecomment-392235833 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEuiSMrtR3EJKS6H9bXNnJBAZkqRG3Cks5t2Nr1gaJpZM4UIINH . https://github.com/notifications/beacon/AFEuiYQy0JT2ykS11J7F36Ae0HY4-cqlks5t2Nr1gaJpZM4UIINH.gif
Are you seeing any LEDs blink on the Pi board? If that still won't boot, perhaps try:
sudo touch /forcefsck
And shutdown/start to repair a possible damaged boot partition. I have seen reboot failures from crashes and from my observations the 3B+ appears to be more sensitive.
Another approach to force fsck at boot is to add the following to /boot/cmdline.txt. I have seen both the sudo touch /forcefsck
and this approach fix a system that didn't boot.
...fsck.mode=force fsck.repair=yes
more info at: https://www.freedesktop.org/software/systemd/man/systemd-fsck@.service.html
Thanks, I will try it, sorry to have been a bit slack on this, there has been so much to do here. I will report the results
Robyn
Robyn Hannah PhD BE (Hons 1) Grad Dip Counselling.
http://nrie.com.au/NRIEWB9Version/index.html NRIE Logo
NRI Electronics Pty. Ltd.
PO Box 20, Alstonville, NSW, 2477.
Phone: 02 6628 7961 or 0427 068 257
email: mailto:contact@nrie.com.au mailto:contact@nrie.com.auWeb www.nrie.com.au
From: hoopsurfer [mailto:notifications@github.com] Sent: Saturday, 16 June 2018 17:17 To: hoopsurfer/pidesktop Cc: robynjayqueerie; Author Subject: Re: [hoopsurfer/pidesktop] Reboot on Pi 3B not working (#18)
Another approach to force fsck at boot is to add the following to /boot/config.txt and just comment them when not needed. I have seen both the sudo touch /forcefsck and this approach fix a system that didn't boot.
fsck,mode=force fsck.repair=yes
more info at: https://www.freedesktop.org/software/systemd/man/systemd-fsck@.service.html
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoopsurfer/pidesktop/issues/18#issuecomment-397793466 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFEuiZOli2zaCDTOik4ZX7ZTLulDRYmkks5t9LDdgaJpZM4UIINH . https://github.com/notifications/beacon/AFEuiT9N1sF2xo_ZGNitQtK1x7z4f8lzks5t9LDdgaJpZM4UIINH.gif
**NOTE: CHECK THAT FIRMWARE IN pd-check
IS DATED 2018-06-29 OR NEWER! A needed firmware update that we requested has been made that dramatically improves reboot reliability. You can wait for the patch to make it into a formal release or if you do want to use the pre-release firmware you can run rpi-update
to install the newest firmware build. Shutdown and restart and recheck that you have newer firmware with the pd-check
command again.
after reboot the Version is 0.1.6 which is what it was before the upgrade, I think. I did not write it down though. However the Pi3B is now rebooting reliably so something must have changed. Thanks robyn
If you updated to firmware dated 2018-06-29 or later then you have a specific reboot fix that would explain the improvement, otherwise what I've found is there are some Pi devices that tend to work on boot (without that new fix) and some that do not. Glad it is working for you.
Thank you for cleaning up this Pi Desktop. I was struggling with the original before I found your fork. Just one issue that I can see. I started with a Pi 3B and the Desktop. Eventually I did get the latest Raspian Stretch installed on a SSD and got it booting up without SD card. I installed the pidesktop as instructed from the .deb file. Whenever I use Reboot from the GUI Shutdown menu, it goes through the exercise of 30 seconds of flashing then shuts down. If I replace the Pi 3B with a Pi 3B+ the reboot function works as expected. I am using a cheaper Vaseky 1.8" 32GB MSATA drive but I don't think that is the issue as the Pi 3B+ works fine. BTW a sudo reboot shows the same behaviour on both Pi's Do you have any ideas? Thanks