From owner-freebsd-current@FreeBSD.ORG Sun Oct 31 12:11:14 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7011A16A4CE for ; Sun, 31 Oct 2004 12:11:14 +0000 (GMT) Received: from smtp006.bizmail.sc5.yahoo.com (smtp006.bizmail.sc5.yahoo.com [66.163.175.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 9535043D39 for ; Sun, 31 Oct 2004 12:11:13 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@70.240.208.193 with login) by smtp006.bizmail.sc5.yahoo.com with SMTP; 31 Oct 2004 12:11:12 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id A6B4D61B1; Sun, 31 Oct 2004 06:11:11 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03381-02; Sun, 31 Oct 2004 06:11:07 -0600 (CST) Received: from www.noacks.org (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 5CC9D612D; Sun, 31 Oct 2004 06:11:07 -0600 (CST) Received: from 69.53.57.66 (SquirrelMail authenticated user noackjr); by www.noacks.org with HTTP; Sun, 31 Oct 2004 06:11:07 -0600 (CST) Message-ID: <7300.69.53.57.66.1099224667.squirrel@69.53.57.66> In-Reply-To: <20041031194121.FE2D.DSNOFE@yahoo.com.cn> References: <417046E9.7090506@alumni.rice.edu> <20041031194121.FE2D.DSNOFE@yahoo.com.cn> Date: Sun, 31 Oct 2004 06:11:07 -0600 (CST) From: "Jon Noack" To: "Deng XueFeng" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at noacks.org cc: current@freebsd.org Subject: Re: instant reboot when trying to load recent RELENG_5 kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2004 12:11:14 -0000 Deng XueFeng wrote: >> Updated my RELENG_5 machines today and one of them did not survive the >> reboot. When the loader tries to load the kernel, the machine instantly >> reboots. I thought it might be due to using CPUTYPE?=athlon-xp in >> /etc/make.conf, but it still happens on a kernel compiled with CPUTYPE >> commented out. I also tried versions of the loader compiled with and >> without CPUTYPE; both loaders were able to successfully load a kernel >> from 3 days ago but neither of them succeeded with various kernels >> compiled today. >> > same thing with me. > when update my src today, then do make world. make kernel. > after reboot. the loader will instantly reboot (with a flash info seems > loading kernel) > > then i try the old loader. loader worked, and the new kernel can load. > but after i type "boot" > system hang. only show "/". > I MUST TO manually power it. > > PS: MY box is HP NX7000 LAPTOP. By any chance are you defining CPUTYPE? I've narrowed down my problem to building the loader (as part of world) with CPUTYPE?=athlon-xp. I figured this out by grabbing the 5.3-RC1 mini-iso and doing a binary upgrade to clean up the system. I then did a full buildworld + kernel (my custom config) + installworld without CPUTYPE defined. Everything worked great. I then defined CPUTYPE and rebuilt only the kernel. Again, everything fine. Finally, I did a full buildworld + kernel + installworld with CPUTYPE defined and suddenly I got instant reboots... HOWEVER, restoring *just* the old loader got rid of the reboots and everything worked great again. I'm not sure if it's just the loader that can't be compiled with CPUTYPE or if gcc is actually being corrupted when it is compiled with CPUTYPE. I just did another binary upgrade to clean up the system and I'm in the middle of a full buildworld + kernel + installworld without CPUTYPE defined. My next step is to build just the loader with CPUTYPE defined (but with a gcc binary that was compiled without defining CPUTYPE). Hopefully that will clarify things... Jon >> This machine has an Asus A7N266 motherboard and an Athlon XP 1800 >> processor. For a while now it has needed ACPI disabled as it will >> instantly reboot with ACPI enabled. I was using the latest BIOS (1004) >> but updated the latest beta (1005.005) after this started happening. >> The beta doesn't appear to change anything that I can tell. >> >> The machine also recently developed the annoying habit of not coming >> back up after a reboot. I have to go power cycle it or press reset. >> This is similar to behavior I've seen on motherboards with dying >> capacitors, but the difference here is that it *always* succeeds when I >> manually power it up/reset it. Machines with dying capacitors would >> sometimes fail at that time too. >> >> Jon >> >> $ 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.3-BETA7 #4: Tue Oct 12 14:36:37 CDT 2004 >> root@proxy.concordiacrusaders.org:/usr/obj/usr/src/sys/PROXY >> Timecounter "i8254" frequency 1193182 Hz quality 0 >> CPU: AMD Athlon(TM) XP 1800+ (1536.83-MHz 686-class CPU) >> Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 >> >> Features=0x383fbff >> AMD Features=0xc0400000 >> real memory = 1065271296 (1015 MB) >> avail memory = 1036959744 (988 MB) >> npx0: [FAST] >> npx0: on motherboard >> npx0: INT 16 interface >> pcib0: pcibus 0 on motherboard >> pir0: on motherboard >> pci0: on pcib0 >> $PIR: No matching entry for 0.1.INTA >> agp0: mem 0xf8000000-0xfbffffff at device >> 0.0 on pci0 >> pci0: at device 0.1 (no driver attached) >> pci0: at device 0.2 (no driver attached) >> pci0: at device 0.3 (no driver attached) >> isab0: at device 1.0 on pci0 >> isa0: on isab0 >> pci0: at device 1.1 (no driver attached) >> pcib1: at device 8.0 on pci0 >> pci1: on pcib1 >> $PIR: No matching entry for 1.10.INTA >> ahc0: port 0xc800-0xc8ff mem >> 0xe5000000-0xe5000fff irq 7 at device 8.0 on pci1 >> ahc0: [GIANT-LOCKED] >> aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs >> fxp0: port 0xc400-0xc43f mem >> 0xe4000000-0xe401ffff,0xe4800000-0xe4800fff irq 5 at device 10.0 on pci1 >> miibus0: on fxp0 >> inphy0: on miibus0 >> inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> fxp0: Ethernet address: 00:02:b3:28:44:a0 >> atapci0: port >> 0xb800-0xb80f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 9.0 on pci0 >> ata0: channel #0 on atapci0 >> ata1: channel #1 on atapci0 >> pcib2: at device 30.0 on pci0 >> pci2: on pcib2 >> pci2: at device 0.0 (no driver attached) >> cpu0 on motherboard >> orm0: at iomem 0xd8000-0xd97ff on isa0 >> pmtimer0 on isa0 >> atkbdc0: at port 0x64,0x60 on isa0 >> atkbd0: irq 1 on atkbdc0 >> kbd0 at atkbd0 >> atkbd0: [GIANT-LOCKED] >> psm0: irq 12 on atkbdc0 >> psm0: [GIANT-LOCKED] >> psm0: model IntelliMouse, device ID 3 >> fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on >> isa0 >> fdc0: [FAST] >> fd0: <1440-KB 3.5" drive> on fdc0 drive 0 >> sc0: at flags 0x100 on isa0 >> sc0: VGA <16 virtual consoles, flags=0x300> >> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 >> sio0: type 16550A >> sio1: configured irq 3 not in bitmap of probed irqs 0 >> sio1: port may not be enabled >> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on >> isa0 >> unknown: can't assign resources (port) >> unknown: can't assign resources (port) >> unknown: can't assign resources (irq) >> ahc1: No resources allocated. >> ahc1: No resources allocated. >> unknown: can't assign resources (port) >> unknown: can't assign resources (port) >> Timecounter "TSC" frequency 1536825688 Hz quality 800 >> Timecounters tick every 1.000 msec >> ad0: 78533MB [159560/16/63] at ata0-master >> UDMA100 >> acd0: DVDROM at ata1-master UDMA33 >> Waiting 15 seconds for SCSI devices to settle >> da0 at ahc0 bus 0 target 0 lun 0 >> da0: Fixed Direct Access SCSI-3 device >> da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged >> Queueing Enabled >> da0: 8683MB (17783249 512 byte sectors: 255H 63S/T 1106C) >> da1 at ahc0 bus 0 target 1 lun 0 >> da1: Fixed Direct Access SCSI-3 device >> da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged >> Queueing Enabled >> da1: 8683MB (17783249 512 byte sectors: 255H 63S/T 1106C) >> Mounting root from ufs:/dev/ad0s1a >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" > > -- > Deng XueFeng