Re: cdboot troubles; 6.0 kernel hanging

2005-12-23 Thread Juergen Lock
On Thu, Dec 22, 2005 at 10:55:58PM +0100, Juergen Lock wrote:
 On Wed, Dec 21, 2005 at 11:15:30PM +0100, Juergen Lock wrote:
  I have this box that apparently no longer likes FreeBSD's cdboot,
  it prints something about BOOT/LOADER and then just reboots.
  Any ideas how to debug something like that?  The box already has
  FreeBSD installed (5.3 with some patches), and i tried copying the
  6.0 kernel from disc1 and loading it manually at the loader prompt.
  It hangs after printing (boot -v):
  GEOM: new disk ad0
  GEOM: new disk ad4
  
  ad0 is on oboard pata (the board is a via kt400), ad4 is a single disk
  on a Promise Fasttrack tx2200 sata controller.  I guess i could try
  to build a 6.0 kernel with ddb, but what would i be looking for then
  to find out why its hanging?  [...]

Nevermind, 6.0 boots now... (pilot error :)

 Leaving only the problem of the rebooting cdboot...
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cdboot troubles; 6.0 kernel hanging

2005-12-22 Thread Juergen Lock
On Wed, Dec 21, 2005 at 11:15:30PM +0100, Juergen Lock wrote:
 I have this box that apparently no longer likes FreeBSD's cdboot,
 it prints something about BOOT/LOADER and then just reboots.
 Any ideas how to debug something like that?  The box already has
 FreeBSD installed (5.3 with some patches), and i tried copying the
 6.0 kernel from disc1 and loading it manually at the loader prompt.
 It hangs after printing (boot -v):
   GEOM: new disk ad0
   GEOM: new disk ad4
 
 ad0 is on oboard pata (the board is a via kt400), ad4 is a single disk
 on a Promise Fasttrack tx2200 sata controller.  I guess i could try
 to build a 6.0 kernel with ddb, but what would i be looking for then
 to find out why its hanging?  [...]

I have now done that, here is a boot -v and ddb `ps' and `show thread'
log of the hanging RELENG_6_0 GENERIC with ddb, does that tell anyone
anything?  (i dunno if the `call boot' crash at the end is important,
probably not.)  I need help...

 Oh, would it help if i retried this with a -current kernel?
(I don't want to actually put -current on this box because it
is my router and i want it to be stable, i just wanted to upgrade
it to 6.0...)

snip-
OK boot -v -s
/boot/kernel/acpi.ko text=0x3fbfc data=0x1c04+0x112c 
syms=[0x4+0x72f0+0x4+0x97c7]
KDB: debugger backends: ddb
KDB: current backend: ddb
SMAP type=01 base= len=0009a000
SMAP type=02 base=000f len=0001
SMAP type=02 base=fec0 len=1000
SMAP type=02 base=fee0 len=1000
SMAP type=02 base= len=0001
SMAP type=02 base=0009a000 len=6000
SMAP type=01 base=0010 len=1fef
SMAP type=03 base=1fff3000 len=d000
SMAP type=04 base=1fff len=3000
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE-p1 #1: Thu Dec 22 21:47:15 CET 2005
[EMAIL PROTECTED]:/usr/obj/usr/home/nox/src6/src/sys/GENERICDB
Preloaded elf kernel /boot/kernel/kernel.60db at 0xc0a98000.
Preloaded elf module /boot/kernel/acpi.ko at 0xc0a9825c.
link_elf: symbol ioapic_enable_mixed_mode undefined
KLD file acpi.ko - could not finalize loading
MP Configuration Table version 1.1 found at 0xc00f1400
APIC: Using the MPTable enumerator.
MPTable: OEM0 PROD
Calibrating clock(s) ... i8254 clock: 1193267 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter i8254 frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 2075028490 Hz
CPU: AMD Athlon(tm) XP 2600+ (2075.03-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x681  Stepping = 1
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
  AMD Features=0xc0400800SYSCALL,MMX+,3DNow+,3DNow
Data TLB: 32 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 536805376 (511 MB)
Physical memory chunk(s):
0x1000 - 0x00099fff, 626688 bytes (153 pages)
0x0010 - 0x003f, 3145728 bytes (768 pages)
0x00c25000 - 0x1f6b7fff, 514404352 bytes (125587 pages)
avail memory = 516055040 (492 MB)
bios32: Found BIOS32 Service Directory header at 0xc00faf00
bios32: Entry = 0xfb370 (c00fb370)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf+0xb3a0
pnpbios: Bad PnP BIOS data checksum
Other BIOS signatures found:
ioapic0: Assuming intbase of 0
ioapic0: Routing external 8259A's - intpin 0
ioapic0: intpin 0 - ExtINT (edge, high)
ioapic0: intpin 1 - ISA IRQ 1 (edge, high)
ioapic0: intpin 2 - ISA IRQ 2 (edge, high)
ioapic0: intpin 3 - ISA IRQ 3 (edge, high)
ioapic0: intpin 4 - ISA IRQ 4 (edge, high)
ioapic0: intpin 5 - ISA IRQ 5 (edge, high)
ioapic0: intpin 6 - ISA IRQ 6 (edge, high)
ioapic0: intpin 7 - ISA IRQ 7 (edge, high)
ioapic0: intpin 8 - ISA IRQ 8 (edge, high)
ioapic0: intpin 9 - ISA IRQ 9 (edge, high)
ioapic0: intpin 10 - ISA IRQ 10 (edge, high)
ioapic0: intpin 11 - ISA IRQ 11 (edge, high)
ioapic0: intpin 12 - ISA IRQ 12 (edge, high)
ioapic0: intpin 13 - ISA IRQ 13 (edge, high)
ioapic0: intpin 14 - ISA IRQ 14 (edge, high)
ioapic0: intpin 15 - ISA IRQ 15 (edge, high)
ioapic0: intpin 16 - PCI IRQ 16 (level, low)
ioapic0: intpin 17 - PCI IRQ 17 (level, low)
ioapic0: intpin 18 - PCI IRQ 18 (level, low)
ioapic0: intpin 19 - PCI IRQ 19 (level, low)
ioapic0: intpin 20 - PCI IRQ 20 (level, low)
ioapic0: intpin 21 - PCI IRQ 21 (level, low)
ioapic0: intpin 22 - PCI IRQ 22 (level, low)
ioapic0: intpin 23 - PCI IRQ 23 (level, low)
ioapic0: intpin 16 bus ISA
ioapic0: Routing IRQ 10 

cdboot troubles; 6.0 kernel hanging

2005-12-21 Thread Juergen Lock
I have this box that apparently no longer likes FreeBSD's cdboot,
it prints something about BOOT/LOADER and then just reboots.
Any ideas how to debug something like that?  The box already has
FreeBSD installed (5.3 with some patches), and i tried copying the
6.0 kernel from disc1 and loading it manually at the loader prompt.
It hangs after printing (boot -v):
GEOM: new disk ad0
GEOM: new disk ad4

ad0 is on oboard pata (the board is a via kt400), ad4 is a single disk
on a Promise Fasttrack tx2200 sata controller.  I guess i could try
to build a 6.0 kernel with ddb, but what would i be looking for then
to find out why its hanging?  I'll append 5.3's boot -v dmesg.
(btw i see a lot more of the
ata4-master: stat=0xa0 err=0xa0 lsb=0xa0 msb=0xa0
lines with the 6.0 kernel than with 5.3...)

 Thanx,
Juergen

---snip
penalty:   480   480   530  5480  5480  5480  5480  5480 50480 
50480100480
pcib0: slot 9 INTA routed to irq 11 via \\_SB_.PCI0.LNKB
found- vendor=0x105a, dev=0x3571, revid=0x02
bus=0, slot=9, func=0
class=01-04-00, hdrtype=0x00, mfdev=0
cmdreg=0x0007, statreg=0x0230, cachelnsz=1 (dwords)
lattimer=0x40 (1920 ns), mingnt=0x04 (1000 ns), maxlat=0x12 (4500 ns)
intpin=a, irq=11
powerspec 2  supports D0 D1 D3  current D0
map[10]: type 1, range 32, base e812, size 17, enabled
map[14]: type 1, range 32, base e814, size 17, enabled
map[18]: type 4, range 32, base a800, size  6, enabled
pcib0: matched entry for 0.10.INTA (src \\_SB_.PCI0.LNKC)
pcib0: possible interrupts:  1  3  4  5  6  7 10 11 12 14 15
ACPI PCI link arbitrated settings:
\\_SB_.PCI0.LNKA (references 12, priority 257160):
interrupts: 10 51112 7 6 4 315  
  14 1
penalty:   960  1010  1080  5960  5960  5960  5960  5960 50960 
50960100960
\\_SB_.PCI0.LNKC (references 12, priority 257160):
interrupts: 10 51112 7 6 4 315  
  14 1
penalty:   960  1010  1080  5960  5960  5960  5960  5960 50960 
50960100960
\\_SB_.PCI0.LNKD (references 12, priority 257160):
interrupts: 10 51112 7 6 4 315  
  14 1
penalty:   960  1010  1080  5960  5960  5960  5960  5960 50960 
50960100960
pcib0: slot 10 INTA routed to irq 10 via \\_SB_.PCI0.LNKC
found- vendor=0x8086, dev=0x1076, revid=0x00
bus=0, slot=10, func=0
class=02-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0007, statreg=0x0230, cachelnsz=8 (dwords)
lattimer=0x20 (960 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
intpin=a, irq=10
powerspec 2  supports D0 D3  current D0
MSI supports 1 message, 64 bit
map[10]: type 4, range 32, base ac00, size  8, enabled
map[14]: type 1, range 32, base e8181000, size  8, enabled
map[18]: type 1, range 32, base e8182000, size 12, enabled
pcib0: matched entry for 0.11.INTA (src \\_SB_.PCI0.LNKD)
pcib0: possible interrupts:  1  3  4  5  6  7 10 11 12 14 15
ACPI PCI link arbitrated settings:
\\_SB_.PCI0.LNKA (references 12, priority 263050):
interrupts:  5111012 7 6 4 315  
  14 1
penalty:  1490  1560  1560  6440  6440  6440  6440  6440 51440 
51440101440
\\_SB_.PCI0.LNKD (references 12, priority 263050):
interrupts:  5111012 7 6 4 315  
  14 1
penalty:  1490  1560  1560  6440  6440  6440  6440  6440 51440 
51440101440
pcib0: slot 11 INTA routed to irq 11 via \\_SB_.PCI0.LNKD
found- vendor=0x1000, dev=0x000f, revid=0x26
bus=0, slot=11, func=0
class=01-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords)
lattimer=0x20 (960 ns), mingnt=0x11 (4250 ns), maxlat=0x40 (16000 ns)
intpin=a, irq=11
powerspec 1  supports D0 D3  current D0
pci0:12:0: Transition from D2 to D0
map[10]: type 4, range 32, base b000, size  6, enabled
pcib0: matched entry for 0.12.INTA (src \\_SB_.PCI0.LNKA)
pcib0: possible interrupts:  1  3  4  5  6  7 10 11 12 14 15
ACPI PCI link arbitrated settings:
\\_SB_.PCI0.LNKA (references 12, priority 268941):
interrupts:  5101112 7 6 4 315  
  14 1
penalty:  1970  2040  2160  6920  6920  6920  6920  6920 51920 
51920101920
pcib0: slot 12 INTA routed to irq 10 via \\_SB_.PCI0.LNKA
found- vendor=0x1274, dev=0x1371, revid=0x08
bus=0, slot=12, func=0
class=04-01-00, hdrtype=0x00, mfdev=0
cmdreg=0x0105, statreg=0x0410, cachelnsz=0 (dwords)
lattimer=0x20 (960 ns), mingnt=0x0c (3000 ns), maxlat=0x80 (32000 ns)
intpin=a, irq=10
powerspec 1  supports D0 D2 D3  current D0
map[20]: type 4, range 32, base b400, size  5,