Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2002 19:37:15 -0600
From:      tyler spivey <tspivey8@telus.net>
To:        freebsd-questions@freebsd.org
Subject:   serial console speeds
Message-ID:  <20020602013715.WPJR10810.priv-edtnes10-hme0.telusplanet.net@a7a42593>

next in thread | raw e-mail | index | archive | help
ok, i've been here before but totally forgot what to do.
how do i set my serial console speed to 19200 bps?
i went into the handbook and put:
BOOT_COMCONSOLE_SPEED=19200
in /etc/make.conf, and did:
cd /usr/src/sys/boot/i386/boot2
make
and the make output follows. any suggestions would help.
uname output's there too.

Script started on Sat Jun  1 17:47:55 2002
# cd /usr/src/sys
# cd boot/i386
# cd boot2
# uname -a
FreeBSD .bc.hsia.telus.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Sat Jun  1 15:38:04 GMT 2002     root@.bc.hsia.telus.net:/usr/src/sys/compile/FAST  i386
# make
as  --defsym FLAGS=0x80 boot1.s -o boot1.o
ld -nostdlib -static -N -e start -Ttext 0x7c00 -o boot1.out boot1.o
objcopy -S -O binary boot1.out boot1
dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null
nm -t d boot1.out | awk '/([0-9])+ T xread/  { x = $1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }'  ORG1=`printf "%d" 0x7c00` > boot2.h
cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I.  -Os -fno-builtin -fforce-addr -fdata-sections  -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd  -mpreferred-stack-boundary=2  -Wall -Waggregate-return -Wbad-function-cast -Wcast-align  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs  -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -mpreferred-stack-boundary=2    -c boot2.c
as  --defsym SIOPRT=0x3f8  --defsym SIOFMT=0x3  --defsym SIOSPD=19200  sio.s -o sio.o
ld -nostdlib -static -N -Ttext 0x1000 -o boot2.out  /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o
/usr/libexec/elf/ld: cannot open /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o: No such file or directory
*** Error code 1

Stop in /usr/src/sys/boot/i386/boot2.
# cd
# ^Dexit

Script done on Sat Jun  1 17:48:45 2002

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020602013715.WPJR10810.priv-edtnes10-hme0.telusplanet.net>