From owner-freebsd-current Sun Mar 4 10:16:47 2001 Delivered-To: freebsd-current@freebsd.org Received: from pozo.com (pozo.com [216.101.162.50]) by hub.freebsd.org (Postfix) with ESMTP id F26B337B719; Sun, 4 Mar 2001 10:16:40 -0800 (PST) (envelope-from null@pozo.com) Received: from dual.pozo.com (dual.pozo.com [216.101.162.51]) by pozo.com (8.11.3/8.11.3) with ESMTP id f24IGXJ06101; Sun, 4 Mar 2001 10:16:34 -0800 (PST) (envelope-from null@pozo.com) Message-Id: <5.0.2.1.2.20010304101245.00a6bbb0@pozo.com> X-Sender: null@pozo.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sun, 04 Mar 2001 10:16:33 -0800 To: The Hermit Hacker , John Baldwin From: Manfred Antar Subject: RE: Using serial console to debug system hangs ... Cc: In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 01:48 PM 3/4/2001 -0400, The Hermit Hacker wrote: >On Sun, 4 Mar 2001, John Baldwin wrote: > >> >> On 04-Mar-01 The Hermit Hacker wrote: >> > On Sat, 3 Mar 2001, John Baldwin wrote: >> > >> >> >> >> On 04-Mar-01 The Hermit Hacker wrote: >> >> > >> >> > Wow, that was painful ... after 2 hrs, I got as far as: >> >> >> >> Yeah, it spews out a lot of crap. :-/ You prolly want to use a 115200 >> >> serial >> >> console if at all possible. Should've mentioned that earlier.. >> > >> > Okay, reading NOTES, it says that 9600 is the default ... does that mean I >> > should be able to attach at 115200 and it should auto-upgrade, or do I >> > have to recompile kernel iwth CONSPEED=115200 for this? >> >> Either recompile or use the loader tunable 'machdep.conspeed' I think. >> However, you'll probably want the bootstrap to work on teh serial console as >> well, in which case you need to set the speed in make.conf (see >> /etc/defaults/make.conf) and recompile and reinstall boot2 and the loader. > >Okay, now you are going beyond my experiences :( > >First, I changed CONSPEED to 115200, but sysctl is still registering 9600: > >thelab# sysctl machdep.conspeed >machdep.conspeed: 9600 > >manually doing 'sysctl -w machdep.conspeed=115200' appears to work though >... > >But, after modifying my make.conf, what do I have to recompile? Are we >just talking a rebuild and install of the kernel itself? I'm going to try >that ... > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message You have to recompile the boot stuff also, after changing the line in make.conf: # The default serial console speed is 9600. Set the speed to a larger value # for better interactive response. # BOOT_COMCONSOLE_SPEED= 57600 Then cd /sys/boot ; make depend all install. I forget if you then need to relabel the disk or not. ie : disklabel -B da0 ================================== || null@pozo.com || || Ph. (415) 681-6235 || ================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message