From owner-freebsd-sparc64@FreeBSD.ORG Wed Jan 28 14:38:51 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBFE216A4CE for ; Wed, 28 Jan 2004 14:38:50 -0800 (PST) Received: from ahmler5.mail.eds.com (ahmler5.mail.eds.com [192.85.154.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03EFC43D3F for ; Wed, 28 Jan 2004 14:38:46 -0800 (PST) (envelope-from jim.small@eds.com) Received: from ahmlir3.mail.eds.com (ahmlir3-2.mail.eds.com [192.85.154.133]) by ahmler5.mail.eds.com (8.12.10/8.12.9) with ESMTP id i0SMcjYO019507 for ; Wed, 28 Jan 2004 17:38:45 -0500 Received: from ahmlir3.mail.eds.com (localhost [127.0.0.1]) by ahmlir3.mail.eds.com (8.12.10/8.12.10) with ESMTP id i0SMcjX4022631 for ; Wed, 28 Jan 2004 17:38:45 -0500 Received: from USAHM101.amer.corp.eds.com (usahm101.exmi01.exch.eds.com [207.37.138.189])i0SMcjoY022626 for ; Wed, 28 Jan 2004 17:38:45 -0500 Received: by usahm101.exmi01.exch.eds.com with Internet Mail Service (5.5.2657.72) id ; Wed, 28 Jan 2004 17:38:45 -0500 Message-ID: <8AA870658244D4119AF600508BDF0A3607319459@usahm014.exmi01.exch.eds.com> From: "Small, Jim" To: freebsd-sparc64@freebsd.org Date: Wed, 28 Jan 2004 17:38:43 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Subject: 5.2 Panic, willing to help debug but need gdb for kernel debuggin g X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 22:38:51 -0000 I am interested in using FreeBSD 5.2 on an Ultra 60 with a PCI qfe card. I want to use the bridging and dummynet functionality. I installed FreeBSD 5.2 with not problems. I added options BRIDGE to a custom kernel conf file and rebuilt/installed the kernel according to procedure 1 at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-build ing.html I then reboot and do the following: test60# sysctl -w net.link.ether.bridge.enable=1 net.link.ether.bridge.enable: 0 -> 1 test60# ifconfig hme1 up test60# ifconfig -a hme0: flags=8843 mtu 1500 inet 192.168.234.208 netmask 0xffffff00 broadcast 192.168.234.255 inet6 fe80::a00:20ff:fe9a:e692%hme0 prefixlen 64 scopeid 0x1 ether 08:00:20:9a:e6:92 media: Ethernet autoselect (100baseTX) status: active hme1: flags=8843 mtu 1500 inet6 fe80::a00:20ff:fe9a:e692%hme1 prefixlen 64 scopeid 0x2 ether 08:00:20:9a:e6:92 media: Ethernet autoselect (100baseTX ) status: active (rest cut...) test60# sysctl -w net.link.ether.bridge.config=hme0,hme1 net.link.ether.bridge.config: -> hme0,hme1 Consistently within a few seconds I see the following while watching on Serial Port A: FreeBSD/sparc64 (test60) (ttya) login: Jan 28 15:28:58 test60 kernel: hme0: promiscuous mode enabled Jan 28 15:28:58 test60 kernel: hme1: promiscuous mode enabled panic: trap: memory address not aligned cpuid = 0; syncing disks, buffers remaining... 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 563 giving up on 455 buffers So I thought instead of blindly asking for help I'd try to provide more useful information. I read the following articles on kernel debugging: http://www.onlamp.com/pub/a/bsd/2002/03/21/Big_Scary_Daemons.html http://www.onlamp.com/pub/a/bsd/2002/04/04/Big_Scary_Daemons.html Thinking I would be all cool and step through the crash dump I started up gdb only to realize I don't have gdb. However, I do have the kernel with debugging info and the crash dump (all 2GB!). I looked through the archives and it doesn't appear there is a FreeBSD Sparc64 gdb. Is there? If not, how do I help debug the crash dump? I really like FreeBSD and would like to do this using FreeBSD 5.2. Can someone throw me a bone? <> Jim I am also providing the following in case it's helpful: uname -a output: test60# uname -a FreeBSD test60 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Wed Jan 28 14:59:57 EST 2004 root@test60:/usr/obj/usr/src/sys/MYKERN sparc64 dmesg: Copyright (c) 1992-2004 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 5.2-RELEASE #0: Wed Jan 28 14:59:57 EST 2004 root@test60.mitry.us.eds.com:/usr/obj/usr/src/sys/MYKERN Preloaded elf kernel "/boot/kernel/kernel" at 0xc045a000. Timecounter "tick" frequency 360000218 Hz quality 0 real memory = 2147483648 (2048 MB) avail memory = 2065440768 (1969 MB) cpu0: Sun Microsystems UltraSparc-II Processor (360.00 MHz CPU) nexus0: pcib0: on nexus0 pcib0: Psycho, impl 0, version 4, ign 0x7c0, bus B pcib0: [FAST] pcib0: [FAST] pcib0: [FAST] initialializing counter-timer Timecounter "counter-timer" frequency 1000000 Hz quality 0 DVMA map: 0xfc000000 to 0xffffffff pci0: on pcib0 ebus0: revision 0x01 ebus0: mem 0x71000000-0x717fffff,0x70000000-0x70ffffff at device 1.0 on pci0 ebus0: addr 0x140072f000-0x140072f003,0x140072c000-0x140072c003,0x140072a000-0x140072a00 3,0x1400728000-0x1400728003,0x140072 6000-0x1400726003 (no driver attached) ebus0: addr 0x1400724000-0x1400724003 (no driver attached) ebus0: addr 0x1400504000-0x1400504002 (no driver attached) ebus0: addr 0x1400500000-0x1400500007 (no driver attached) sab0: addr 0x1400400000-0x140040007f irq 43 on ebus0 sab0: [FAST] sabtty0: on sab0 sabtty0: console 9600,8,n,1,- sabtty1: on sab0 ebus0: addr 0x14003083f8-0x14003083ff irq 41 (no driver attached) ebus0: addr 0x14003062f8-0x14003062ff irq 42 (no driver attached) ebus0: addr 0x1400700000-0x140070000f,0x1400300398-0x1400300399,0x14003043bc-0x14003043c b irq 34 (no driver attached) ebus0: addr 0x1400720000-0x1400720003,0x1400706000-0x140070600f,0x14003023f0-0x14003023f 7 irq 39 (no driver attached) eeprom0: addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 eeprom0: hostid 809ae692 ebus0: addr 0x1000000000-0x10000fffff (no driver attached) ebus0: addr 0x1400722000-0x1400722003,0x1400704000-0x140070400f,0x1400702000-0x140070200 f,0x1400200000-0x14002000ff ir q 36,35 (no driver attached) hme0: mem 0x8900000-0x8907fff at device 1.1 on pci0 hme0: Ethernet address: 08:00:20:9a:e6:92 miibus0: on hme0 qsphy0: on miibus0 qsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sym0: <875> port 0x1000-0x10ff mem 0x8909000-0x8909fff,0x8908000-0x89080ff at device 3.0 on pci0 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym1: <875> port 0x1400-0x14ff mem 0x890b000-0x890bfff,0x890a000-0x890a0ff at device 3.1 on pci0 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking pcib1: at device 5.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) hme1: mem 0x2800000-0x2807fff at device 0.1 on pci1 pcib1: slot 0 INTB is routed to irq 29 hme1: Ethernet address: 08:00:20:9a:e6:92 miibus1: on hme1 qsphy1: on miibus1 qsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: at device 1.0 (no driver attached) hme2: mem 0x4800000-0x4807fff at device 1.1 on pci1 pcib1: slot 1 INTB is routed to irq 30 hme2: Ethernet address: 08:00:20:9a:e6:92 miibus2: on hme2 qsphy2: on miibus2 qsphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: at device 2.0 (no driver attached) hme3: mem 0x6800000-0x6807fff at device 2.1 on pci1 pcib1: slot 2 INTB is routed to irq 31 hme3: Ethernet address: 08:00:20:9a:e6:92 miibus3: on hme3 qsphy3: on miibus3 qsphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci1: at device 3.0 (no driver attached) hme4: mem 0x8800000-0x8807fff at device 3.1 on pci1 pcib1: slot 3 INTB is routed to irq 28 hme4: Ethernet address: 08:00:20:9a:e6:92 miibus4: on hme4 qsphy4: on miibus4 qsphy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib2: on nexus0 pcib2: Psycho, impl 0, version 4, ign 0x7c0, bus A pci2: on pcib2 nexus0: , type display (no driver attached) Timecounters tick every 10.000 msec Waiting 15 seconds for SCSI devices to settle GEOM: create disk da0 dp=0xfffff80000f53468 GEOM: create disk da1 dp=0xfffff80000f53068 GEOM: create disk cd0 dp=0xfffff8000083de98 da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da0: 8637MB (17689267 512 byte sectors: 255H 63S/T 1101C) da1 at sym0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da1: 17274MB (35378533 512 byte sectors: 255H 63S/T 2202C) cd0 at sym0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: cd present [1177024 x 512 byte records] Mounting root from ufs:/dev/da1a