Subject: Re: How to change serial baud rate on already installed bootblocks (netbsd-3-0-RELEASE)
To: Job Hanssen <job.hanssen@xs4all.nl>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 09/02/2007 21:48:32
On Sun, Sep 02, 2007 at 10:05:14PM +0200, Job Hanssen wrote:
> Manuel Bouyer schreef:
> >On Sun, Sep 02, 2007 at 03:39:56PM +0100, David Laight wrote:
> >>On Sun, Sep 02, 2007 at 03:44:54PM +0200, Manuel Bouyer wrote:
> >>>You need to reinstall them but it's easy:
> >>>
> >>>installboot -o console=com0,speed=115200 /dev/rwd0a 
> >>>/usr/mdec/bootxx_ffsv1
> >>Actually this should work:
> >>
> >>installboot -e -o speed=115200 /dev/rwd0a
> >
> >netbsd-3 doens't have -e, AFAIK.

Hmmm, I didn't spot that it was netbsd 3.0 :-(

> testbak# installboot -e -o speed=115200 /dev/rwd0a
> installboot: unknown option -- e
> 
> That indeed seems to confirm the last comment.
> 
> Issueing
> installboot -o console=com0,speed=115200 /dev/rwd0a /usr/mdec/bootxx_ffsv1
> doesn't raise any complaints, but after rebooting, nothing appears to have 
> changed. I still need to set the baud rate of the terminal-emulation to 
> 38400 to 'unscramble' the console-output.
> 
> Any ideas?

If you look at offset 0x410 in /usr/mdec/bootxx_ffsv1 or the disk partition
You should see the baud rate, default is 80 25 (0x2580 == 9600),
38400 is 0x9600 and 115200 would be 0x1c200.

If those values are set correctly, but the initial kernel output is at
the wrong speed, then maybe the rate is capped - or the the serial
driver you have (for some reason) objects to the higher rates...

	David

-- 
David Laight: david@l8s.co.uk