Port-alpha archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Self baked kernel panics


I am pretty new to netbsd and am failing to get my own kernel up and running 
and would desire some help - and maybe even some clue. 
My config file is a slightly modified version of what has been generated by 
the adjustkernel script from pkgsrc. 
However, upon boot, it panics, see boot log below. However, I am not sure, 
what may be missing, but then again, I am really not to familiar with all 
those options yet - audio configuration is failing for some strange reasons, 
too, but that will be another post... 
Veriexec did fail during compile, too, but that is not needed now, so I 
removed it again. 

It's an ordinary alphastation 500 with just an added Apdaptec SCSI Controller 
and some old Elsa Gloria GFX Card instead of the Powerstorm. And instead of 
the panic it should have detected two scsi harddrives and one tape device. 
However, no monitor nor keyboard is attached to the machine. 

I had to build the kernel "manually" as the buid.sh script fails due to some 
nbmake error (posted at the very end. When trying to build world it fails 
with an similar error). 
For the record, /usr/src is a link to /alt/usr/src (and will eventually be 
moved to an nfs file system)

Here's my boot sequence. Thanks for any assistance. 

>>>boot dka0 -file netbsd.neu
(boot dka0. -file netbsd.neu -flags A)
block 0 of dka0. is a valid boot block
reading 13 blocks from dka0.
bootstrap code read in
base = 14a000, image_start = 0, image_bytes = 1a00
initializing HWRPB at 2000
initializing page table at 13c000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code

NetBSD/alpha 4.0 FFS Primary Bootstrap
Jumping to entry point...

NetBSD/alpha 4.0 Secondary Bootstrap, Revision 1.13
(builds@wb27, Sat Dec 15 21:19:56 PST 2007)

VMS PAL rev: 0x1000000010114
OSF PAL rev: 0x1000000020116
Switch to OSF PAL code succeeded.

Boot file: netbsd.neu
Boot flags: A
5317536+226328 [278976+163492]=0x5b5e60

Entering netbsd.neu at 0xfffffc0000301260...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.0_STABLE (NORDLICHT) #0: Sun Jan 20 13:59:37 CET 2008
Digital AlphaStation 500/500, 500MHz, s/n Nijmegen{J
8192 byte page size, 1 processor.
total memory = 256 MB
(2256 KB reserved for PROM, 253 MB used by NetBSD)
avail memory = 244 MB
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-0
cpu0: Architecture extensions: 1<BWX>
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (ALCOR/ALCOR2), pass 3
cia0: extended capabilities: 21<DWEN,BWEN>
cia0: using BWX for PCI config access
pci0 at cia0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
tlp0 at pci0 dev 6 function 0: DECchip 21040 Ethernet, pass 2.6
tlp0: interrupting at kn20aa irq 13
tlp0: Ethernet address 00:00:f8:25:36:7d
tlp0: 10baseT, 10baseT-FDX, 10base5, manual
ahc0 at pci0 dev 8 function 0: Adaptec 29160N Ultra160 SCSI adapter
ahc0: interrupting at kn20aa irq 16
ahc0: aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus0 at ahc0: 16 targets, 8 luns per target
isp0 at pci0 dev 9 function 0: QLogic 1020 Fast Wide SCSI HBA
isp0: interrupting at kn20aa irq 12
scsibus1 at isp0: 16 targets, 8 luns per target
pceb0 at pci0 dev 10 function 0: Intel 82375EB/SB PCI-EISA Bridge (rev. 0x15)
vga0 at pci0 dev 12 function 0: Texas Instruments TVP4020 Permedia 2 (rev. 
wsdisplay0 at vga0
eisa0 at pceb0
isa0 at pceb0
lpt0 at isa0 port 0x3bc-0x3bf irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
pckbc0 at isa0 port 0x60-0x64
attimer0 at isa0 port 0x40-0x43: AT Timer
pcppi0 at isa0 port 0x61
pcppi0: children must have an explicit unit
midi0 at pcppi0: PC speaker (CPU-intensive output)
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
pcppi0: attached to attimer0
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: 1.44MB, 80 cyl, 2 head, 18 sec
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...

CPU 0: fatal kernel trap:

CPU 0    trap entry = 0x4 (unaligned access fault)
CPU 0    a0         = 0xfffffe000c589a66
CPU 0    a1         = 0x2c
CPU 0    a2         = 0x1f
CPU 0    pc         = 0xfffffc00003d7280
CPU 0    ra         = 0xfffffc00003d7198
CPU 0    pv         = 0xfffffc00006b5d38
CPU 0    curlwp    = 0xfffffc000fc55ba0
CPU 0        pid = 3, comm = scsibus1

panic: trap
syncing disks... done

halted CPU 0

halt code = 5
HALT instruction executed
PC = fffffc0000300118

CPU 0 booting

Well, and now for the Kernel config:

include         "arch/alpha/conf/std.alpha"
options         INCLUDE_CONFIG_FILE
maxusers 32
options         DEC_KN20AA      # KN20AA:       AlphaStation 500 and 600
options         KTRACE
options         NTP
file-system     FFS
file-system     MFS
file-system     CD9660
file-system     MSDOSFS
file-system     NFS
file-system     NULLFS
file-system     KERNFS
file-system     FDESC
file-system     PORTAL
file-system     UMAPFS
file-system     PROCFS
file-system     UNION
file-system     PTYFS

options         SOFTDEP
options         NFSSERVER
options         UFS_DIRHASH
options         INET
options         INET6
options         COMPAT_43
options         COMPAT_BSDPTY
options         SYSVMSG
options         SYSVSEM
options         SYSVSHM
options         P1003_1B_SEMAPHORE
options         LKM
options         EISAVERBOSE
options         PCIVERBOSE
options         MIIVERBOSE
options         SCSIVERBOSE
options         TCVERBOSE
options         FIX_UNALIGNED_VAX_FP
options         USERCONF
options         SYSCTL_INCLUDE_DESCR 
options         FONT_GALLANT12x22
options         NFS_BOOT_DHCP
options         WSEMUL_VT100
config          netbsd  root on ? type ?
mainbus0 at     root
cpu*    at      mainbus0
cia*    at      mainbus?
pci*    at      cia?
ahc*    at      pci? dev ? function ?
isp*    at      pci? dev ? function ?
pceb*   at      pci? dev ? function ?
tlp*    at      pci? dev ? function ?
vga*    at      pci? dev ? function ?
isa*    at      pceb?
eisa*   at      pceb?
mcclock* at     isa? port 0x70
pckbc*  at      isa?
attimer* at     isa?
pcppi*  at      isa?
spkr0   at      pcppi?
isabeep0 at     pcppi?
com*    at      isa? port 0x3f8 irq 4
com*    at      isa? port 0x2f8 irq 3
fdc0    at      isa? port 0x3f0 irq 6 drq 2
lpt*    at      isa? port 0x3bc irq 7
scsibus* at     scsi?
sd*     at      scsibus? target ? lun ?         # SCSI disk drives
ses*    at      scsibus? target ? lun ?         # SCSI SES/SAF-TE
st*     at      scsibus? target ? lun ?         # SCSI tape drives
ss*     at      scsibus? target ? lun ?         # SCSI scanners
fd*     at      fdc? drive ?
midi*   at      pcppi?
wsdisplay*      at      vga?
pseudo-device   crypto
pseudo-device   swcrypto
pseudo-device   bpfilter
pseudo-device   ccd             4
pseudo-device   cgd             4
pseudo-device   fss             4
pseudo-device   loop            1
pseudo-device   md              1
pseudo-device   ppp
pseudo-device   pty
pseudo-device   sl
pseudo-device   strip
pseudo-device   tun
pseudo-device   tap
pseudo-device   vnd
pseudo-device   gif 
pseudo-device   stf
pseudo-device   vlan
pseudo-device   bridge
pseudo-device   agr
pseudo-device   sequencer       1
pseudo-device   rnd
pseudo-device   nsmb
pseudo-device   clockctl
pseudo-device   wsfont
pseudo-device   wsmux
pseudo-device   ksyms

Finally, the build.sh problem, albeit manual compile works:

cc  -O -o nbmake *.o
===> TOOLDIR path:     /alt/usr/src/tooldir.NetBSD-4.0-alpha
===> DESTDIR path:     /alt/usr/src/destdir.alpha
===> RELEASEDIR path:  /alt/usr/src/releasedir
===> Created /alt/usr/src/tooldir.NetBSD-4.0-alpha/bin/nbmake
===> makewrapper:      /alt/usr/src/tooldir.NetBSD-4.0-alpha/bin/nbmake-alpha
===> Updated /alt/usr/src/tooldir.NetBSD-4.0-alpha/bin/nbmake-alpha
===> Building kernel without building new tools
===> Building kernel:  NORDLICHT
===> Build directory:  /alt/usr/src/sys/arch/alpha/compile/obj/NORDLICHT
rm -f a.out [Ee]rrs mklog core *.core .gdbinit
./build.sh: /alt/usr/src/tooldir.NetBSD-4.0-alpha/bin/nbconfig: not found

ERROR: nbconfig failed for NORDLICHT

Home | Main Index | Thread Index | Old Index