boot serial console speed

2004-11-14 Thread Danny Braniss
what's the magic encantation to set the console to 38400?
btw, i solved my problem by just commenting out that part of the code,
since i rely on the bios setting it.

from src/sys/boot/i386/boot0/Makefile:

# Comm settings for boot0sio.  0xE3 = 9600 8-N-1
# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
# command line
BOOT_BOOT0_COMCONSOLE_SPEED?=   0xE3



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: boot serial console speed

2004-11-14 Thread Ruslan Ermilov
On Sun, Nov 14, 2004 at 10:39:13AM +0200, Danny Braniss wrote:
 what's the magic encantation to set the console to 38400?
 btw, i solved my problem by just commenting out that part of the code,
 since i rely on the bios setting it.
 
 from src/sys/boot/i386/boot0/Makefile:
 
 # Comm settings for boot0sio.  0xE3 = 9600 8-N-1
 # XXX: We should create a build-tool or something to convert 
 BOOT_CONSOLE_SPEED
 # and BOOT_COMCONSOLE_PORT into the correct values to define on the build
 # command line
 BOOT_BOOT0_COMCONSOLE_SPEED?= 0xE3
 
This is the value passed in the AL register to the Int 14/AH=00h
BIOS function:

http://www.ctyme.com/intr/rb-0811.htm

: Bit(s) Description (Table 00300)
: 7-5data rate (110,150,300,600,1200,2400,4800,9600 bps)
: 4-3parity (00 or 10 = none, 01 = odd, 11 = even)
: 2  stop bits (set = 2, clear = 1)
: 1-0data bits (00 = 5, 01 = 6, 10 = 7, 11 = 8)

0xE3 = 111-00-0-11 = 9600 bps, no parity, 1 stop bit, 8 data bits

But I think it's not possible to set it to anything above 9600 bps
using this BIOS call.


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgp0g6jH8W9BY.pgp
Description: PGP signature


Re: boot serial console speed

2004-11-14 Thread Ruslan Ermilov
On Sun, Nov 14, 2004 at 11:38:50AM +0200, Ruslan Ermilov wrote:
 On Sun, Nov 14, 2004 at 10:39:13AM +0200, Danny Braniss wrote:
  what's the magic encantation to set the console to 38400?
  btw, i solved my problem by just commenting out that part of the code,
  since i rely on the bios setting it.
  
  from src/sys/boot/i386/boot0/Makefile:
  
  # Comm settings for boot0sio.  0xE3 = 9600 8-N-1
  # XXX: We should create a build-tool or something to convert 
  BOOT_CONSOLE_SPEED
  # and BOOT_COMCONSOLE_PORT into the correct values to define on the build
  # command line
  BOOT_BOOT0_COMCONSOLE_SPEED?=   0xE3
  
 This is the value passed in the AL register to the Int 14/AH=00h
 BIOS function:
 
   http://www.ctyme.com/intr/rb-0811.htm
 
 : Bit(s) Description (Table 00300)
 : 7-5data rate (110,150,300,600,1200,2400,4800,9600 bps)
 : 4-3parity (00 or 10 = none, 01 = odd, 11 = even)
 : 2  stop bits (set = 2, clear = 1)
 : 1-0data bits (00 = 5, 01 = 6, 10 = 7, 11 = 8)
 
 0xE3 = 111-00-0-11 = 9600 bps, no parity, 1 stop bit, 8 data bits
 
 But I think it's not possible to set it to anything above 9600 bps
 using this BIOS call.
 
Attached is the patch that converts supported BOOT_COMCONSOLE_SPEED
values into corresponding BOOT_BOOT0_COMCONSOLE_SPEED.  Unsupported
BOOT_COMCONSOLE_VALUES cause the boot0sio console speed to be set
to 9600.


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer
Index: Makefile
===
RCS file: /home/ncvs/src/sys/boot/i386/boot0/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile27 Aug 2004 00:18:03 -  1.30
+++ Makefile14 Nov 2004 10:04:36 -
@@ -21,11 +21,34 @@
 # unless you are glutton for punishment.
 BOOT_BOOT0_ORG?=   0x600
 
-# Comm settings for boot0sio.  0xE3 = 9600 8-N-1
-# XXX: We should create a build-tool or something to convert BOOT_CONSOLE_SPEED
-# and BOOT_COMCONSOLE_PORT into the correct values to define on the build
-# command line
-BOOT_BOOT0_COMCONSOLE_SPEED?=  0xE3
+# Comm settings for boot0sio.
+# Bit(s) Description
+# 7-5data rate (110,150,300,600,1200,2400,4800,9600 bps)
+# 4-3parity (00 or 10 = none, 01 = odd, 11 = even)
+# 2  stop bits (set = 2, clear = 1)
+# 1-0data bits (00 = 5, 01 = 6, 10 = 7, 11 = 8)
+.if !defined(BOOT_BOOT0_COMCONSOLE_SPEED)
+BOOT_COMCONSOLE_SPEED?=9600
+.if ${BOOT_COMCONSOLE_SPEED} == 9600
+BOOT_BOOT0_COMCONSOLE_SPEED=   7  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 4800
+BOOT_BOOT0_COMCONSOLE_SPEED=   6  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 2400
+BOOT_BOOT0_COMCONSOLE_SPEED=   5  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 1200
+BOOT_BOOT0_COMCONSOLE_SPEED=   4  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 600
+BOOT_BOOT0_COMCONSOLE_SPEED=   3  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 300
+BOOT_BOOT0_COMCONSOLE_SPEED=   2  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 150
+BOOT_BOOT0_COMCONSOLE_SPEED=   1  5 + 3
+.elif ${BOOT_COMCONSOLE_SPEED} == 110
+BOOT_BOOT0_COMCONSOLE_SPEED=   0  5 + 3
+.else
+BOOT_BOOT0_COMCONSOLE_SPEED=   7  5 + 3
+.endif
+.endif
 
 CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
-DTICKS=${BOOT_BOOT0_TICKS} \


pgpPATDGXUoKS.pgp
Description: PGP signature


Re: boot serial console speed

2004-11-14 Thread Danny Braniss
[...]
 This is the value passed in the AL register to the Int 14/AH=3D00h
 BIOS function:
 
   http://www.ctyme.com/intr/rb-0811.htm
 
 : Bit(s) Description (Table 00300)
 : 7-5data rate (110,150,300,600,1200,2400,4800,9600 bps)
 : 4-3parity (00 or 10 =3D none, 01 =3D odd, 11 =3D even)
 : 2  stop bits (set =3D 2, clear =3D 1)
 : 1-0data bits (00 =3D 5, 01 =3D 6, 10 =3D 7, 11 =3D 8)
 
 0xE3 =3D 111-00-0-11 =3D 9600 bps, no parity, 1 stop bit, 8 data bits
 
 But I think it's not possible to set it to anything above 9600 bps
 using this BIOS call.

yes, you are probably correct. Assuming then, that if we want speeds above
9600bps,  and assuming that the bios set the bauds correctly,
how about setting BOOT_BOOT0_COMCONSOLE_SPEED=0 and if so
in boot0.S

#if defined(SIO)  COMSPEED != 0
/*
 * Initialize the serial port.  bioscom preserves the driver number in DX.
 */
movw COMSPEED,%ax   # defined by Makefile
callw bioscom
#endif


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


gcc3.4 broken

2004-11-14 Thread Josef Grosch
I'm trying to build eclipse on a 5.2.1 box. When the build gets to gcc 3.4
it fails.  

## UNAME
berkeley% uname -a
FreeBSD berkeley.mooseriver.com 5.2.1-RELEASE-p11 FreeBSD 5.2.1-RELEASE-p11 #2: 
Sat Nov 13 13:34:12 PST 2004 [EMAIL 
PROTECTED]:/usr/obj/usr/src/sys/BERKELEY  i386

## Compile error
/usr/ports/lang/gcc34/work/build/gcc/xgcc 
-B/usr/ports/lang/gcc34/work/build/gcc/ 
-B/usr/local/i386-portbld-freebsd5.2.1/bin/ 
-B/usr/local/i386-portbld-freebsd5.2.1/lib/ -isystem 
/usr/local/i386-portbld-freebsd5.2.1/include -isystem 
/usr/local/i386-portbld-freebsd5.2.1/sys-include -c -DHAVE_CONFIG_H -O2 -O 
-pipe -mcpu=pentiumpro -I. -I../.././..//gcc-3.4-20041112/libiberty/../include  
-W -Wall -Wtraditional -pedantic 
../.././..//gcc-3.4-20041112/libiberty/fibheap.c -o fibheap.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
../.././..//gcc-3.4-20041112/libiberty/fibheap.c: In function `fibheap_union':
../.././..//gcc-3.4-20041112/libiberty/fibheap.c:166: warning: implicit 
declaration of function `free'
../.././..//gcc-3.4-20041112/libiberty/fibheap.c: In function 
`fibheap_delete_node':
../.././..//gcc-3.4-20041112/libiberty/fibheap.c:285: error: `LONG_MIN' 
undeclared (first use in this function)
../.././..//gcc-3.4-20041112/libiberty/fibheap.c:285: error: (Each undeclared 
identifier is reported only once
../.././..//gcc-3.4-20041112/libiberty/fibheap.c:285: error: for each function 
it appears in.)
../.././..//gcc-3.4-20041112/libiberty/fibheap.c: In function 
`fibheap_consolidate':
../.././..//gcc-3.4-20041112/libiberty/fibheap.c:395: warning: implicit 
declaration of function `memset'
gmake[2]: *** [fibheap.o] Error 1
gmake[2]: Leaving directory 
`/usr/ports/lang/gcc34/work/build/i386-portbld-freebsd5.2.1/libiberty'
gmake[1]: *** [all-target-libiberty] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gcc34.
*** Error code 1

Stop in /usr/ports/java/eclipse.


-- 
Josef Grosch   | Another day closer to a | FreeBSD 5.2.1
[EMAIL PROTECTED] |   Micro$oft free world  | Berkeley, Ca.


pgpp40X2Odb2w.pgp
Description: PGP signature


Re: Mysql - Linuxthreads : Still needed?

2004-11-14 Thread jesk
 This is unfortunate, since 4.1.7 is the recommended release from MySQL
 AB.  Does anyone know why 4.0 is faster, or is it only faster in some
 cases (anybody have any benchmarks?) ?

 50% is quite a large margin and I'm sure most people, myself included,
 are looking for maximum performance.

I cant repeat my tests to show you topically benchmark results at the
moment.
But why dont you find out how it performance in your own conditions and then
share your experiences with us?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tcsh fix

2004-11-14 Thread Andrew Lankford
'csh' is an interactive shell, not a programming language.  Anyone trying
to write portable scripts in 'csh' should know why Csh Programming
Considered Harmful http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
I vote that FreeBSD import a free version of the Windows command line, 
cmd.exe.  Show them the real meaning of pain! ;)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gcc3.4 broken

2004-11-14 Thread Giorgos Keramidas
On 2004-11-14 03:28, Josef Grosch [EMAIL PROTECTED] wrote:
 I'm trying to build eclipse on a 5.2.1 box. When the build gets to gcc 3.4
 it fails.

 ## Compile error
 /usr/ports/lang/gcc34/work/build/gcc/xgcc
 -B/usr/ports/lang/gcc34/work/build/gcc/
 -B/usr/local/i386-portbld-freebsd5.2.1/bin/
 -B/usr/local/i386-portbld-freebsd5.2.1/lib/ -isystem
 /usr/local/i386-portbld-freebsd5.2.1/include -isystem
 /usr/local/i386-portbld-freebsd5.2.1/sys-include -c -DHAVE_CONFIG_H
 -O2 -O -pipe -mcpu=pentiumpro
 -I. -I../.././..//gcc-3.4-20041112/libiberty/../include -W -Wall
 -Wtraditional -pedantic
 ../.././..//gcc-3.4-20041112/libiberty/fibheap.c -o fibheap.o `-mcpu='
 is deprecated. Use `-mtune=' or '-march=' instead.

Hmmm, you have both -O and -O2 in there.  Have you by any chance set
CFLAGS to anything in your environment *before* trying to install the
gcc34 port?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]