1 |
Since as Dale and others have pointed out, I posted my first message on |
2 |
this subject by using an existing message as a template which doesn't |
3 |
work because it gets added to the existing thread. So here goes |
4 |
again. (I have also just noticed some replies that I had missed for the |
5 |
same reason: lesson learned! Rich's response looks very useful.) |
6 |
|
7 |
I posted about this on the Gentoo forums (see [1]) but didn't get any |
8 |
response so I'll try my luck here! The post explains everything but. |
9 |
briefly, normally when I boot a kernel I initially get some messages |
10 |
in a large clunky font, and then the frame-buffer module loads and |
11 |
everything is hi-res and fills the entire monitor. On my new box the |
12 |
first messages are video-static until the frame-buffer takes over. I |
13 |
have an error in a new root partition I have built and need to read |
14 |
those messages! What of all the numerous parameters in various places |
15 |
should I try tweaking? |
16 |
|
17 |
Thanks |
18 |
Robin |
19 |
|
20 |
1. http://forums.gentoo.org/viewtopic-t-1114668-highlight-.html |
21 |
|
22 |
> From: "Sid Spry" <sid@××××.us> |
23 |
> To: gentoo-user@l.g.o |
24 |
> Subject: Re: [gentoo-user] Initial console messages garbled |
25 |
> Date: Sun, 28 Jun 2020 11:03:12 -0500 |
26 |
> Reply-to: gentoo-user@l.g.o |
27 |
> User-Agent: |
28 |
> Cyrus-JMAP/3.3.0-dev0-543-gda70334-fm-20200618.004-gda703345 |
29 |
> X-Mailer: MessagingEngine.com Webmail Interface |
30 |
> |
31 |
> > On Thu, Jun 25, 2020 at 2:55 AM Robin Atwood <robin@×××××.org> |
32 |
> > wrote: |
33 |
> > > |
34 |
> > > On Wed, 24 Jun 2020 13:31:30 -0400 |
35 |
> > > tedheadster <tedheadster@×××××.com> wrote: |
36 |
> > > |
37 |
> > > > Robin, |
38 |
> > > > are you comfortable just going with a bare-bones console and |
39 |
> > > > build a new kernel where you _disable_ CONFIG_FB? That might do |
40 |
> > > > it. |
41 |
> > > > |
42 |
> > > > Alternately, you can hook up a serial cable to another computer |
43 |
> > > > and set "console=ttyS0,115200n8". |
44 |
> > > |
45 |
> > > I will try that, if it works it will at least give me a chance to |
46 |
> > > look at the error messages. |
47 |
> > > |
48 |
> > > I don't think I have any serial cables! |
49 |
> > > |
50 |
> > |
51 |
> |
52 |
> Well, you may need to buy a cable one way or another if your issue is |
53 |
> very early in the boot process, typically qualified as "before the |
54 |
> console comes up." Netconsole may help you though. |
55 |
> |
56 |
> Most motherboards used to have potentially unpopulated serial port |
57 |
> headers on them. Those seen to be disappearing. |
58 |
> |
59 |
> The replacement is |
60 |
> https://www.kernel.org/doc/html/v5.4/driver-api/usb/usb3-debug-port.html. |
61 |
> Most (all?) desktop xHCI controllers support a device mode that is |
62 |
> essentially a very high speed CBC ACM serial port. This is especially |
63 |
> useful for debugging laptops. |
64 |
> |
65 |
> You do need to either make or buy the special A to A cable. |
66 |
|
67 |
|
68 |
> From: Rich Freeman <rich0@g.o> |
69 |
> To: gentoo-user@l.g.o |
70 |
> Subject: Re: [gentoo-user] Initial console messages garbled |
71 |
> Date: Sun, 28 Jun 2020 10:51:26 -0400 |
72 |
> Reply-to: gentoo-user@l.g.o |
73 |
> |
74 |
> On Thu, Jun 25, 2020 at 2:55 AM Robin Atwood <robin@×××××.org> wrote: |
75 |
> > |
76 |
> > On Wed, 24 Jun 2020 13:31:30 -0400 |
77 |
> > tedheadster <tedheadster@×××××.com> wrote: |
78 |
> > |
79 |
> > > Robin, |
80 |
> > > are you comfortable just going with a bare-bones console and |
81 |
> > > build a new kernel where you _disable_ CONFIG_FB? That might do |
82 |
> > > it. |
83 |
> > > |
84 |
> > > Alternately, you can hook up a serial cable to another computer |
85 |
> > > and set "console=ttyS0,115200n8". |
86 |
> > |
87 |
> > I will try that, if it works it will at least give me a chance to |
88 |
> > look at the error messages. |
89 |
> > |
90 |
> > I don't think I have any serial cables! |
91 |
> > |
92 |
> |
93 |
> While serial consoles are one solution, I'd take a look at network |
94 |
> consoles. They're FAR easier to manage on commodity hardware. All |
95 |
> you really need is another host on the network that can run netcat. |
96 |
> |
97 |
> I stick this in my /etc/grub/default - or otherwise get it onto the |
98 |
> command line in the bootloader: |
99 |
> netconsole=@/,6666@192.168.1.1 |
100 |
> |
101 |
> That tells the kernel to send all console output over UDP to |
102 |
> 192.168.1.1:6666. If you have multiple interfaces/etc you might need |
103 |
> to expand that command line a bit. I have no idea how it comes up |
104 |
> with the sending IP - if you care about that you can specify it. I'm |
105 |
> guessing it doesn't run DHCP - but this is just plain UDP so it is |
106 |
> one-way and there is no need for acks to get back to the sender. |
107 |
> |
108 |
> On the destination host I run: |
109 |
> nc -u -l -p 6666 |
110 |
> |
111 |
> (nc is provided by the netcat package - a very basic tool that should |
112 |
> be available everywhere - probably on non-linux operating systems |
113 |
> also) |
114 |
> |
115 |
> Start up the reception part before you try booting the host you're |
116 |
> troubleshooting, because it is just going to send packets blind into |
117 |
> the ether and if nothing is listening they're gone. Obviously |
118 |
> netconsole is a very simple implementation so that it can run during |
119 |
> early boot. It is very good for capturing panics/etc. |
120 |
> |
121 |
> I don't know how it compares with serial console in terms of how early |
122 |
> it starts. I think it does capture stuff very early in boot though - |
123 |
> both systems require a degree of hardware initialization before they |
124 |
> can work, but both are also very simple. |
125 |
> |
126 |
> This does need to be enabled in the kernel. |
127 |
> |
128 |
> You can also enable this on a running kernel but of course that does |
129 |
> no good for issues during boot. Full docs are at: |
130 |
> https://www.kernel.org/doc/Documentation/networking/netconsole.txt |
131 |
|
132 |
|
133 |
-- |