Linux.Researcher
Posts: 3
Joined: Sat Dec 29, 2018 6:36 am

Logging Boot messages

Sat Dec 29, 2018 9:14 am

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.

n67
Posts: 938
Joined: Mon Oct 30, 2017 4:55 pm

Re: Logging Boot messages

Sat Dec 29, 2018 11:44 am

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.
"L'enfer, c'est les autres"

G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:

Epmu Sn!

J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!

Linux.Researcher
Posts: 3
Joined: Sat Dec 29, 2018 6:36 am

Re: Logging Boot messages

Sun Dec 30, 2018 6:25 am

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.

n67
Posts: 938
Joined: Mon Oct 30, 2017 4:55 pm

Re: Logging Boot messages

Sun Dec 30, 2018 6:35 am

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.
"L'enfer, c'est les autres"

G fytc hsqr rum umpbq rm qyw rm rfc kmbq md rfgq dmpsk:

Epmu Sn!

J lnacjrw njbruh-carppnanm vxm rb mnuncrwp vh yxbcb!

JamesPi123
Posts: 111
Joined: Fri Sep 23, 2016 10:02 pm
Location: Inside my Pi
Contact: Website

Re: Logging Boot messages

Sun Dec 30, 2018 7:24 am

Code: Select all

dmesg > bootlog

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Logging Boot messages

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.

andrum99
Posts: 823
Joined: Fri Jul 20, 2012 2:41 pm

Re: Logging Boot messages

Sun Dec 30, 2018 12:21 pm

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.

Return to “General discussion”