Trying to setup a serial console on my desktop

2008-01-18 Thread आशीष क्ल A shish Shukla
Hi,

I'm trying to setup serial console on my FreeBSD 7.0-BETA4, I'm facing
some issues.

88
[EMAIL PROTECTED] ~]$ cat /boot.config
-DP
[EMAIL PROTECTED] ~]$ cat /boot/loader.conf
sound_load=YES# Digital sound subsystem
snd_hda_load=YES  # Intel High Definition Audio (Controller)
snd_ds1_load=YES  # ds1
comconsole_speed=115200
boot_multicons=YES
boot_serial=YES
console=comconsole,vidconsole # A comma separated list of console(s)
[EMAIL PROTECTED] ~]$ cat /etc/ttys |grep -v ^# |fgrep -v none
ttyv0   /usr/libexec/getty Pc cons25  on  secure
ttyv1   /usr/libexec/getty Pc cons25  on  secure
ttyv2   /usr/libexec/getty Pc cons25  on  secure
ttyv3   /usr/libexec/getty Pc cons25  on  secure
ttyv4   /usr/libexec/getty Pc cons25  on  secure
ttyv5   /usr/libexec/getty Pc cons25  on  secure
ttyv6   /usr/libexec/getty Pc cons25  on  secure
ttyv7   /usr/libexec/getty Pc cons25  on  secure
ttyv8   /usr/local/bin/xdm -nodaemon  xterm   off secure
ttyd0   /usr/libexec/getty std.115200 vt220   on  secure
ttyd1   /usr/libexec/getty std.9600   dialup  off secure
ttyd2   /usr/libexec/getty std.9600   dialup  off secure
ttyd3   /usr/libexec/getty std.9600   dialup  off secure
dcons   /usr/libexec/getty std.9600   vt100   off secure
[EMAIL PROTECTED] ~]$ stty -a -f /dev/ttyd0
speed 115200 baud; 0 rows; 0 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = undef;
eol2 = undef; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
88

I've a desktop mobo (Intel D945GNTL) with onboard Intel Graphics. My
BIOS doesn't support redirecting its output to COM1.

Following are the issues:

1. comconsole_speed in /boot/loader.conf is not working. I wanted to
try 115200 baud rate, but its not working when set in loader.conf. If
I set comconsole_speed at
loader prompt, it works.

2. Keyboard doesn't work irrespective of '-P' being present in
/boot.config . So I can't login to any TTY or login to X via GDM.

I'm following 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html
.

TIA
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Kernel crashed due to pagefault while running net/avahi

2007-12-28 Thread आशीष क्ल A shish Shukla
Hi

I'm running FreeBSD 7.0-BETA4 (AMD64) on Intel Pentium 4 630
(EM64T/HT) on Intel D945GNTL motheboard. I'd this crash when I was
running in GNOME, playing with Avahi and nss_mdns to get mDNS over
IPv6 working.

88
[EMAIL PROTECTED] ~/crashes]$ kgdb /boot/kernel/kernel vmcore.0
[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol ps_pglobal_lookup]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as amd64-marcel-freebsd.

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xff0101880530
fault code  = supervisor read data, page not present
instruction pointer = 0x8:0x80594e8e
stack pointer   = 0x10:0xaf2807c0
frame pointer   = 0x10:0xff0001fe5700
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 953 (avahi-daemon)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1h7m27s
Physical memory: 2025 MB
Dumping 311 MB: 296 280 264 248 232 216 200 184 168 152 136 120 104 88
72 56 40 24 8

#0  doadump () at pcpu.h:194
194 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:194
#1  0x0004 in ?? ()
#2  0x80451c46 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:409
#3  0x80452072 in panic (fmt=0x104 Address 0x104 out of
bounds) at /usr/src/sys/kern/kern_shutdown.c:563
#4  0x8070bcfa in trap_fatal (frame=0xff00035869c0,
eva=18446742974254081128) at /usr/src/sys/amd64/amd64/trap.c:724
#5  0x8070c0a1 in trap_pfault (frame=0xaf280710,
usermode=0) at /usr/src/sys/amd64/amd64/trap.c:641
#6  0x8070c95f in trap (frame=0xaf280710) at
/usr/src/sys/amd64/amd64/trap.c:410
#7  0x806f383e in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:169
#8  0x80594e8e in ip6_setpktopts (control=0xff0001fe5700,
opt=0xaf280870, stickyopt=Variable stickyopt is not
available.
) at /usr/src/sys/netinet6/ip6_output.c:2813
#9  0x805a7083 in udp6_send (so=Variable so is not available.
) at /usr/src/sys/netinet6/udp6_usrreq.c:523
#10 0x804a0e77 in sosend_generic (so=0xff0003365ae0,
addr=0xff0003029560, uio=0xaf280a30,
top=0xff00034b3100, control=0xff0001fe5700, flags=Variable
flags is not available.
)
at /usr/src/sys/kern/uipc_socket.c:1240
#11 0x804a3866 in kern_sendit (td=0xff00035869c0, s=16,
mp=0xaf280af0, flags=0, control=0xff0001fe5700,
segflg=Variable segflg is not available.
) at /usr/src/sys/kern/uipc_syscalls.c:789
#12 0x804a6343 in sendit (td=0xff00035869c0, s=16,
mp=0xaf280af0, flags=0) at
/usr/src/sys/kern/uipc_syscalls.c:730
#13 0x804a63b4 in sendmsg (td=0xff00035869c0,
uap=0xaf280be0) at /usr/src/sys/kern/uipc_syscalls.c:922
#14 0x8070c30c in syscall (frame=0xaf280c70) at
/usr/src/sys/amd64/amd64/trap.c:852
#15 0x806f3a4b in Xfast_syscall () at
/usr/src/sys/amd64/amd64/exception.S:290
#16 0x0008011c114c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) frame 8
#8  0x80594e8e in ip6_setpktopts (control=0xff0001fe5700,
opt=0xaf280870, stickyopt=Variable stickyopt is not
available.
) at /usr/src/sys/netinet6/ip6_output.c:2813
2813cm = mtod(control, struct cmsghdr *);
(kgdb) print control
$2 = (struct mbuf *) 0xff0001fe5700
88

The crashdump is 311 MiB, and after bzip2-ing it comes to around 55
MiB, which is still too big for me to upload it somewhere. Any other
thing I can do to help developers troubleshoot this problem, please
let me know ?

Will FreeBSD 7.0-RELEASE be recommended for production systems. I'm
thinking to use it for my this machine (which is this desktop). I'm
thinking to switch to FreeBSD fulltime, is FreeBSD 7.0 recommended ?

TIA
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]