Page 1 of 2

CS Lite: Shuts down, kernel panic

Posted: Fri Oct 12, 2018 11:58 am
by nurgle
Hi i wonder if someone could help me with my CS Lite build.

I've been following the wiki and have got to the stage of booting into tester mode after soldering the Pi Zero W to the board. After first boot it expanded the file system and on next boot it seems to be booting up OK and gets so far before automatically shutting down again and then ends up with a kernel panic. I've tried to capture it on video.

I'm not sure if its something I've done wrong. I've double checked everything, all the LEDs looked correct but no matter what I do I end up with the same result. I've tried different microSD cards and I've desoldered and tried a different Pi Zero W, with and without the back board and power switch board.

I've used PI Zero WH's sourced from The Pi Hut with pre-soldered headers. https://thepihut.com/products/raspberry ... red-header

I've recorded a video to try and capture the issue to see if anyone can help:



Many thanks,

Nurgle

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 9:14 am
by kite
Hi, where did you download the image exactly from? Or the filename of the .img file on your pc you used?

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 9:28 am
by nurgle
Hi,

I used the release from https://github.com/kiteretro/Circuit-Sw ... e/releases
https://github.com/kiteretro/Circuit-Sw ... 163519.zip

Unzipped and then used Win32DiskImager to write the img file to the microsd card.

I've attached a zip of the log files from /var/log to see if that might help.

From what I can tell it's running the safe shutdown after it's booted? Looking at auth.log

Mar 13 22:53:53 retropie systemd-logind[245]: New seat seat0.
Mar 13 22:53:57 retropie sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/cs_shutdown.sh
Mar 13 22:53:57 retropie sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 13 22:53:58 retropie sudo: pam_unix(sudo:session): session closed for user root
Mar 13 22:53:58 retropie sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/shutdown -h now
Mar 13 22:53:58 retropie sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Mar 13 22:54:00 retropie sudo: pam_unix(sudo:session): session closed for user root

I'm wondering if it's because I don't have a battery attached? As i don't have a battery to use yet, so i'm just powering via USB?

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 9:34 am
by kite
Ok, are you using the back board with power switch to turn it on, or using the built in button on the board?

EDIT: To answer your observations, image looks good, it has triggered a safe shutdown so has detected the power switch as off, which will be where my questions lead to next :) thanks for the logs btw, the syslog messages are really useful for anything to do with shutdown stuff

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 9:37 am
by nurgle
I've tried it with back board and power switch to turn it on. I've also tried it without the back board and power switch connected just holding in the power button on the board. End result is the same. Is there a way to disable the safe shutdown just to see if it will boot normally?

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 9:44 am
by kite
Hm not easily, although i do need to put that feature in the software!! It was in the Super AIO but i've forgotten to add it..

Does the "PGOOD" LED light up about 1-2 secs after you turn ON the power switch?

Can you check the soldering on this transistor:
img1.PNG
img1.PNG (82.2 KiB) Viewed 6662 times
Can you also check the soldering on these two pins (pic is from the TOP side, where the Pi is)
img2.PNG
img2.PNG (230.83 KiB) Viewed 6662 times
EDIT: The kernel panic is normal if you issue a shutdown command but then once 'complete' the power isn't removed. It shows that shutdown has fully completed, and in normal conditions the CS would cut all power to the pi (which it can't if the main switch is 'ON' because it shouldn't be getting in to this state!)

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 10:19 am
by nurgle
PGOOD doesn't light up at all and the transistor looks OK.

Checking the soldering there are some scratches of the surface around the SHDN pin. Would that be enough to cause the problem? If so this is going to be my fault :oops:
soldering.jpg
soldering.jpg (1.1 MiB) Viewed 6655 times

Re: CS Lite: Shuts down, kernel panic

Posted: Sat Oct 13, 2018 10:49 am
by kite
Right PGOOD is needed to be ON for everything to work good :) could you do the following with a multimeter:

1. With everything OFF, put in resistance mode and measure PGOOD PIN on the pin (both sides)
2. Measure the voltage at the PGOOD pin during the whole boot process.. does it go up/down/on/off?

Re: CS Lite: Shuts down, kernel panic

Posted: Sun Oct 14, 2018 2:31 am
by nurgle
So this morning I started from a fresh microsd card with the written image as before.

PGOOD LED is on now not sure why it wasn't before? It stays on until the shutdown process is complete.
I've noticed it does a disk check on every boot perhaps due to the kernel panic on shutdown?

1. in resistance mode on the multimeter on the PGOOD PIN between the top and bottom it reads zero. Continuity checks OK.
2. Measuring the voltage on the PGOOD pin to a ground pin it jumps from 0 to 3.3v during the boot process and then back to 0 once it's finished the shutdown process.

btw, appreciate the support!

Maybe a stupid question but should it power up OK without a battery connected? Does the safe shutdown trigger on low/flat battery condition? I noticed during the boot process the battery icon in the top right corner apppears towards the end of the boot process and during the shutdown process.
Capture.PNG
Capture.PNG (171.41 KiB) Viewed 6617 times

Re: CS Lite: Shuts down, kernel panic

Posted: Mon Oct 15, 2018 6:16 am
by kite
Ok, so does it power up fully normally now? It currently doesn't shutdown on low battery, but the bar being empty is because of no battery, might be worth connecting up a battery (assuming that you are waiting for one to arrive). What type/size SD card are you using?