Subject: Re: How to change serial baud rate on already installed bootblocks
To: None <job.hanssen@xs4all.nl>
From: Job Hanssen <job.hanssen@xs4all.nl>
List: port-i386
Date: 09/05/2007 18:43:32
Job Hanssen schreef:
> Thor Lancelot Simon schreef:
>> On Tue, Sep 04, 2007 at 10:35:14PM +0200, Job Hanssen wrote:
>>> Thor Lancelot Simon schreef:
>>>> On Tue, Sep 04, 2007 at 10:24:04PM +0200, Job Hanssen wrote:
>>>>> I just tried that. Even after setting the speed in the bootblocks 
>>>>> to 9600 (and reboot the system), the kernel messages are still 
>>>>> being output with a speed of 38400 baud.
>>>> Does, or did, this system have a RAIDframe root filesystem?
>>> No, not that I'm aware of.
>>
>> Does this system have console redirection in its BIOS?  If so, is the
>> BIOS console redirection set to "Redirect console after OS Boot" or
>> "Always" or something along those lines?
> 
> Nope. It's just a simple desktop machine: a Dell Optiplex G1.

Problem solved...

Suddenly it hit me: I shouldn't have reinstalled the bootblocks on /dev/rdw0a, but 
on /dev/rdw0d, as this is wat the disklabel looks like:

testbak# disklabel /dev/rwd0
# /dev/rwd0d:
type: ESDI
disk: WDC WD2500JB-00E
label: netbsd
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 484521
total sectors: 488397168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

13 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
  a:   2097152        63     4.2BSD   2048 16384 21848  # (Cyl.      0*-   2080*)
  b:   8388608   2097215       swap                     # (Cyl.   2080*-  10402*)
  c: 488397105        63     unused      0     0        # (Cyl.      0*- 484520)
  d: 488397168         0     unused      0     0        # (Cyl.      0 - 484520)
  e:   4194304  10485823     4.2BSD   2048 16384 21848  # (Cyl.  10402*-  14563*)
  f:  20971520  14680127     4.2BSD   2048 16384 28088  # (Cyl.  14563*-  35368*)
  g:  20971520  35651647     4.2BSD   2048 16384 28088  # (Cyl.  35368*-  56173*)
  h:  20971520  56623167     4.2BSD   2048 16384 28088  # (Cyl.  56173*-  76978*)
  i:  20971520  77594687     4.2BSD   2048 16384 28088  # (Cyl.  76978*-  97783*)
  j:  20971520  98566207     4.2BSD   2048 16384 28088  # (Cyl.  97783*- 118589*)
  k:  20971520 119537727     4.2BSD   2048 16384 28088  # (Cyl. 118589*- 139394*)
  l:  20971520 140509247     4.2BSD   2048 16384 28088  # (Cyl. 139394*- 160199*)
  m:  41943040 161480767     4.2BSD   2048 16384 28088  # (Cyl. 160199*- 201809*)

testbak# hexdump -x -s0x418 -n4 /dev/rwd0a
0000418    c200    0001
000041c
testbak# hexdump -x -s0x418 -n4 /dev/rwd0d
0000418    9600    0000
000041c
testbak# installboot -o console=com0,speed=115200 /dev/rwd0d /usr/mdec/bootxx_ffsv1
testbak# hexdump -x -s0x418 -n4 /dev/rwd0d
0000418    c200    0001
000041c
testbak# reboot

Now the kernel-messages are being output in 115200 baud.

Thank you all for being so patient with me!

Regards,

Job Hanssen