mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

No boot after reboot command

Wed Mar 26, 2014 1:10 pm

Hi use

Code: Select all

sudo shutdown -r now
to reboot my raspberry (after firmware update as example).
Often it hangs, no ssh connectivity, all the led on, nothing on the screen (no signal).
I must unplug and plug the power cord.
Why?
Is above command the right choice to gently reboot the raspberry?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: No boot after reboot command

Wed Mar 26, 2014 1:59 pm

mcgyver83 wrote:Hi use

Code: Select all

sudo shutdown -r now
to reboot my raspberry (after firmware update as example).
Often it hangs, no ssh connectivity, all the led on, nothing on the screen (no signal).
I must unplug and plug the power cord.
Why?
Is above command the right choice to gently reboot the raspberry?
That should be fine - I either use sudo shutdown - h now to shutdown completely (and then only remove the power after all green led ACTivity has ceased for several seconds) or sudo shutdown - r now to re-boot (which will, of course, stop the ssh server and require a re-connection to that). One possibility is that you have a "marginal" booting system due to power supply issues (what's the voltage between testpoints TP1 & TP2?) or an SDHC card that might require a "boot-delay"** to ensure reliable booting.
Trev.
** There are quite a few threads that refer to this issue - it "re-surfaces" every few weeks or so.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Wed Mar 26, 2014 2:24 pm

Power issue I think no, I'm running fine xbmc and jdownloader in the same time, performed some Overclock test to stress 100% cpu for a couple of hours.
Could be SDHC issue related.
Coul you give me more details regarding "boot_delay"?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: No boot after reboot command

Wed Mar 26, 2014 2:42 pm

mcgyver83 wrote:Power issue I think no, I'm running fine xbmc and jdownloader in the same time, performed some Overclock test to stress 100% cpu for a couple of hours.
Could be SDHC issue related.
Coul you give me more details regarding "boot_delay"?
It's a config.txt option - see http://elinux.org/RPi_config.txt#Boot
(Some folks have needed an explicit "boot_delay=1" IIRC)
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Sun Apr 13, 2014 10:06 am

I added boot_delay=3 to config.txt but the rasp doesn't reboot :(

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Sat Apr 19, 2014 9:14 am

No hints?

User avatar
DougieLawson
Posts: 38885
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: No boot after reboot command

Sat Apr 19, 2014 9:54 am

mcgyver83 wrote:No hints?
You need to give some hints as to what you're seeing when it fails. What you've done to try to remedy it?

One simple option is go and get a brand new 8GB SDCard, copy a new download of NOOBS on to it and try that.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: No boot after reboot command

Sat Apr 19, 2014 10:06 am

Does your Pi have Micron memory? (The only case I'm aware of that might need BOOT_DELAY=1)

Are you using NOOBS? If so, it's possible you have the BOOT_DELAY=3 in the "wrong" directory.
(Not 100% sure about that - I don't use NOOBS)

Is your SD card making solid contact? Try gently squeezing the card up to make good contact in the card slot.

When the Pi does reboot, do you see any "unusual" error messages (especially to do with /dev/mmcblk0p1)?

Is it a Rev 1 or Rev 2 board? Anything else connected to any GPIO pins?

Carefully look at your config.txt file - Errors are silently ignored.
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Sat Apr 19, 2014 12:04 pm

The SD si a sandisk class10 sdhc.
I'm not using NOOBS.
I have no connection on the GPIO, I have a rev2 board.
I'm going to check if I have Micron memory, is it possible via ssh or I have to check phisically on the board?
When I run sudo reboot or sudo shutdown -r now the rpi shutdown but it doesn't reboot automatically but stays down.
I'll check if, after reboot, unplug and replug the power cord some strange message are showed during the cold restart.

MaxK1
Posts: 1043
Joined: Sun Aug 26, 2012 11:34 pm

Re: No boot after reboot command

Sat Apr 19, 2014 12:38 pm

I think you have to visually check to see what brand of memory you have: Samsung, Hynix or Micron.
I'm not aware of any other way of checking for it.

When you issue the shutdown command pay attention to the ACT(green) LED - Anything going on there? (It's kind of difficult to tell from a distance whether it is not completing the shutdown or if it's failing to reboot) Maybe you need to wait a few seconds longer before "pulling the plug"?

Some class 10 cards have been reported in the past as having "issues"

And finally, do have anything connected to the reset header?
You are in a maze of twisty little passages, all alike.
When General Failure and Major Disaster get together, Private Parts usually suffers.

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Thu May 01, 2014 4:57 pm

I have samsung memory.
I run "sudo reboot" and leds blinked for some seconds, after only the power one remains on, after 2 seconds they return all on but no ssh connectivity or HDMI signal.

I have an usb wifi dongle, an ethernet cable to connect the tv, a bridge is set up to allow tv to be connected to internet.

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Sun Jul 06, 2014 9:21 am

No one could help me ?

User avatar
Cancelor
Posts: 775
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: No boot after reboot command

Sun Jul 06, 2014 10:18 am

What stage are you at now? Can you boot the RPi if you remove power?
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Sun Jul 06, 2014 12:08 pm

Yes, removing power makes the rpi boot (obviously with error checking)

mcgyver83
Posts: 361
Joined: Fri Oct 05, 2012 11:49 am

Re: No boot after reboot command

Sat Jul 26, 2014 12:48 pm

I still have the same issue each time I reboot.
:roll:

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: No boot after reboot command

Sun Jul 27, 2014 3:37 pm

Have you tried using a different power supply and/or a different SD card yet?

StNick
Posts: 18
Joined: Tue Sep 26, 2017 6:46 pm

Re: No boot after reboot command

Tue Sep 26, 2017 6:52 pm

Hi guys,

My board is Rasberry Pi3

Have similar symptomsm, BUT I boot Raspbian from SSD,

I was able to boot system from only ONE of my three SATA to USB adapters!!!

And with this one adaptor I'm unable to reboot system.

after reboot command:

Just Black screen
RED LEN ON
GREEN LED OFF all time.

Any ideas what's wrong with boot process from SSD?
Some restrictions or limitations on which SATA - USB adaptors to use?

StNick
Posts: 18
Joined: Tue Sep 26, 2017 6:46 pm

Re: No boot after reboot command

Wed Sep 27, 2017 7:28 pm

Some additional details about my problem:

I just take else one(its fourth already ) SATA-USB adapter which has it's own power for hard disk.

And it allows to reboot raspberry correctly.

But it's obvious that some limitations exist,
as soon as I can't take ANY SATA-USB adapter and attach boot HDD(SSD) to raspberry
and after this expect that RPI board will reboot correctly.

gkaiseril
Posts: 679
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: No boot after reboot command

Wed Sep 27, 2017 7:40 pm

I would take a fresh SD card and install Raspbarian or NOOBs and try to boot the system.

If you just added the SSD drive, did you remove the code in config.txt to set the boot bit for the USB boot before restarting?

If not you may need to remove that line of code from the config.txt file inorder for the SSD drive to boot properly.
Last edited by gkaiseril on Wed Sep 27, 2017 8:38 pm, edited 1 time in total.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

StNick
Posts: 18
Joined: Tue Sep 26, 2017 6:46 pm

Re: No boot after reboot command

Wed Sep 27, 2017 8:29 pm

Actually I did all steps according to doc:
Starting with the 2017-04-10 release of Raspbian you can install a working Raspbian system to a USB mass storage device by copying the operating system image directly onto your USB device, in the same way that you would for an SD card.
At first time I setup program_usb_boot_mode=1 and boot raspbian from SdCARD.

Then I just dd raspbian on SSD and SDCARD was removed from slot - and now it boots from SSD just fine(except mentioned above issue).

So answer is YES, config.txt is in it factory state.

gkaiseril
Posts: 679
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: No boot after reboot command

Wed Sep 27, 2017 8:41 pm

Is it possible that you did not get the OS properly loaded onto the SSD?

With the newer versions of Raspbarian or NOOBS one can use the SD Copy or piclone utility to move and resize the OS from the boot device to a different SD card, USB drive or SSD device.

Carefully review the screen for any error messages.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

StNick
Posts: 18
Joined: Tue Sep 26, 2017 6:46 pm

Re: No boot after reboot command

Wed Sep 27, 2017 9:18 pm

I would like emphasize, that I have ONLY one SATA-USB adaptor with which raspberry boot and reboot well.

With others it' boots but reboots fails.

I have HDMI monitor, but messages scroll very fast,
can I somehow enable dump of boot process messages(bypassing console) to log file on boot partition to learn through them offline?

Are there some logs stored on boot partition?
How can I find out(dump, logs, debug serial port e.t.c.) where is the reboot process get stuck?

GREEN LED after reboot is constantly OFF.

StNick
Posts: 18
Joined: Tue Sep 26, 2017 6:46 pm

Re: No boot after reboot command

Thu Sep 28, 2017 7:44 pm

Just emphasize my previous post:

Are there some logs stored on boot partition?
How can I find out(dump, logs, debug serial port e.t.c.) where is the reboot process get stuck?

User avatar
DougieLawson
Posts: 38885
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: No boot after reboot command

Thu Sep 28, 2017 10:08 pm

/boot is read-only unless you're running sudo upgrade or sudo dist-upgrade and there's a new kernel to download. Nothing is logged there. All logging is in /var/log on the ext2 root filesystem. (You can read that with any other working Linux system (for example, a RPi booted from another SDCard).)

Don't be tempted to run rpi-update for 999.999999 folks out of 1000 it's not needed.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

StNick
Posts: 18
Joined: Tue Sep 26, 2017 6:46 pm

Re: No boot after reboot command

Fri Sep 29, 2017 6:25 am

Thanks for the hint,

I will try to look into
/var/log on the ext2 root filesystem

BUT as soon as I have GREEN LED constantly OFF after reboot,
this means Raspbian kernel even doesn't get a chance to start.

How Can I debug phase of boot sequence described here?
Boot sequence details
Booting on a Pi is multi-phased: the majority of the boot process is executed by a small dedicated processing unit (CPU) inside the VideoCore GPU and consist of several stages. The Broadcom SoC contains a very small permanent memory which obtains the code to boot the device. First, it uses simple USB code to try to read a file pushed to it through the USB hardware. If this is unsuccessful, the code aborts, and uses its MMC hardware to attempt to read a file from a MMC compatible device

Return to “Troubleshooting”