Page 1 of 1

Logging Boot messages

Posted: Sat Dec 29, 2018 9:14 am
by Linux.Researcher
Hi
How can log boot's start up messages into a text file in boot partition?
I use Raspberry Pi Zero Board with Raspbian Linux.

Re: Logging Boot messages

Posted: Sat Dec 29, 2018 11:44 am
by n67
1) dmesg may be enough. dmesg is pretty good, but doesn't get everything.

2) If you can hook up a serial console on another computer, then the messages will come out there, and there should be some sort of capture/save functionality in whatever program you run on the other computer to access the serial port.

Re: Logging Boot messages

Posted: Sun Dec 30, 2018 6:25 am
by Linux.Researcher
Thanks n67.
What program is the best for serial monitoring in Ubuntu Linux?
Could you number some of the best one?
I use Ubuntu 18.04 LTS.

Re: Logging Boot messages

Posted: Sun Dec 30, 2018 6:35 am
by n67
The one's I've used are Seyon (X Gui application) and screen. Either will do.

The more interesting part is hooking up the serial cable, which is particularly interesting on the Pi Zero, since it doesn't have GPIO pins to connect to - it just has "holes". So, to connect to the GPIO, you either have to solder in a header block (so that you get pins like in the other Pi models) or you have to jury rig something to connect the wires to the holes.

Re: Logging Boot messages

Posted: Sun Dec 30, 2018 7:24 am
by JamesPi123

Code: Select all

dmesg > bootlog

Re: Logging Boot messages

Posted: Sun Dec 30, 2018 8:12 am
by allfox
I recently bought a Pi Zero WH, it has GPIO pins soldered on.

Don't know if it's official. It works.

Re: Logging Boot messages

Posted: Sun Dec 30, 2018 12:21 pm
by andrum99
allfox wrote:
Sun Dec 30, 2018 8:12 am
I recently bought a Pi Zero WH, it has GPIO pins soldered on.

Don't know if it's official. It works.
Yes, the Raspberry Pi Zero WH is an official product, along with the Pi Zero and Pi Zero W, among others.