From owner-freebsd-stable Tue Jul 25 10:47:24 2000 Delivered-To: freebsd-stable@freebsd.org Received: from relay1.teleport.com (relay1.teleport.com [192.108.254.28]) by hub.freebsd.org (Postfix) with SMTP id 470BA37B86E for ; Tue, 25 Jul 2000 10:47:10 -0700 (PDT) (envelope-from joes@teleport.com) Received: (qmail 27849 invoked by uid 5); 25 Jul 2000 17:47:08 -0000 Received: from 149.196.6.64.reflexcom.com(64.6.196.149), claiming to be "joes" via SMTP by relay1.teleport.com, id smtpdAAA02iMlK; Tue Jul 25 10:47:05 2000 Message-ID: <029e01bff660$58349e80$0100a8c0@wstein.com> From: "Joseph Stein" To: Subject: Fw: Problems booting stable/4.1-RC. Date: Tue, 25 Jul 2000 10:47:03 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This concerns stable, was posted on -questions several days ago, and still no response. Does anyone here have any ideas? To summarize the problem: Occasionally (frequently(!)) this system will NOT boot; and locks up trying to reinitialize the ATA drive. The kernel IS read, and it gets to the point of "mounting root from ufs:/dev/ad0s1a", then freezes. 1 out of 10 boots actually work, although it cycles through "resetting ATA devices" up to 4 times and always chooses PIO mode. Is there a way to FORCE PIO mode? (I know about the sysctl, and I know about the settings once multi-user is going; however this happens when trying to call init, I think...) joe > I used to have an AMD 4x86-120 with 72mb of Ram. I finally gave up on > waiting a day and a half to "buildworld", and upgraded the whole machine to > an AMD K7-Athlon-600MHz with 128MB. Boy. Two hours, and the world is built > AND installed :) > > But, I have a problem. > > When the bootloader starts up, it starts booting properly, BUT, when it gets > to the point where it is "Mounting root from ufs:/dev/ad0s1a," it seems to > have a problem using WDMA2. I believe this stems from the fact that this > disk was originally installed in an old 486 (that did not support DMA at all, that I > know of). The new disk was newfs'd in the same computer though, and I don't > know how to explain that it works :) (The old disk is ad0, the new disk is > ad1). > > I have found all of the settings to set 'pio mode' once the system is going > to multi-user; but I can't find anything to force PIO mode on boot -- when > sometimes, it succeeds and produces like data to the data below, but more > often than not, locks up trying to reset the ata devices. > > Any ideas, help, suggestions? > > For the record, this is > FreeBSD shasta.wstein.com 4.1-RC FreeBSD 4.1-RC #0: Fri Jul 21 18:56:26 PDT > 2000 root@shasta.wstein.com:/b/obj/usr/src/sys/SHASTA i386 > > and it was a fresh-cvsup as of about Thu Jul 20 20:00:00 PDT 2000. > > (the 3.whatever-STABLE that was on the original disk booted just fine, BTW, > so it is something new in 4.0-STABLE/4.1-RC.) > > Thanks in advance for any help, > > joe > > Here follows some verbose boot information: > > Copyright (c) 1992-2000 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 4.1-RC #0: Fri Jul 21 18:56:26 PDT 2000 > root@shasta.wstein.com:/b/obj/usr/src/sys/SHASTA > Calibrating clock(s) ... TSC clock: 598797642 Hz, i8254 clock: 1193104 Hz > CLK_USE_I8254_CALIBRATION not specified - using default frequency > Timecounter "i8254" frequency 1193182 Hz > CLK_USE_TSC_CALIBRATION not specified - using old calibration method > CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x612 Stepping = 2 > > Features=0x81f9ff AT,MMX> > AMD Features=0xc0400000 > Data TLB: 24 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: 512 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative > real memory = 134152192 (131008K bytes) > Physical memory chunk(s): > 0x00001000 - 0x0009ffff, 651264 bytes (159 pages) > 0x00353000 - 0x07fe7fff, 130633728 bytes (31893 pages) > avail memory = 127205376 (124224K bytes) > bios32: Found BIOS32 Service Directory header at 0xc00fb180 > bios32: Entry = 0xfb5f0 (c00fb5f0) Rev = 0 Len = 1 > pcibios: PCI BIOS entry at 0xb620 > pnpbios: Found PnP BIOS data at 0xc00fbfb0 > pnpbios: Entry = f0000:bfe0 Rev = 1.0 > Other BIOS signatures found: > ACPI: 000f5fc0 > Preloaded elf kernel "kernel" at 0xc033a000. > Preloaded elf module "splash_bmp.ko" at 0xc033a0a8. > Pentium Pro MTRR support enabled > md0: Malloc disk > Creating DISK md0 > module_register_init: MOD_LOAD (splash_bmp, c03357d4, 0) error 2 > Math emulator present > pci_open(1): mode 1 addr port (0x0cf8) is 0x80003840 > pci_open(1a): mode1res=0x80000000 (0x80000000) > pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=70061022) > npx0: on motherboard > npx0: INT 16 interface > pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 > pci_open(1a): mode1res=0x80000000 (0x80000000) > pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=70061022) > pcib0: on motherboard > found-> vendor=0x1022, dev=0x7006, revid=0x25 > class=06-00-00, hdrtype=0x00, mfdev=1 > subordinatebus=0 secondarybus=0 > map[10]: type 1, range 32, base d0000000, size 27 > map[14]: type 1, range 32, base e0000000, size 12 > found-> vendor=0x1022, dev=0x7007, revid=0x01 > class=06-04-00, hdrtype=0x01, mfdev=1 > subordinatebus=1 secondarybus=1 > found-> vendor=0x1022, dev=0x7408, revid=0x01 > class=06-01-00, hdrtype=0x00, mfdev=1 > subordinatebus=0 secondarybus=0 > found-> vendor=0x1022, dev=0x7409, revid=0x03 > class=01-01-8a, hdrtype=0x00, mfdev=0 > subordinatebus=0 secondarybus=0 > map[20]: type 1, range 32, base 0000f000, size 4 > found-> vendor=0x1022, dev=0x740b, revid=0x03 > class=06-80-00, hdrtype=0x00, mfdev=0 > subordinatebus=0 secondarybus=0 > found-> vendor=0x1022, dev=0x740c, revid=0x06 > class=0c-03-10, hdrtype=0x00, mfdev=0 > subordinatebus=0 secondarybus=0 > intpin=d, irq=5 > map[10]: type 1, range 32, base e0001000, size 12 > found-> vendor=0x10ec, dev=0x8139, revid=0x10 > class=02-00-00, hdrtype=0x00, mfdev=0 > subordinatebus=0 secondarybus=0 > intpin=a, irq=10 > map[10]: type 1, range 32, base 0000e400, size 8 > map[14]: type 1, range 32, base e0002000, size 8 > found-> vendor=0x10ec, dev=0x8139, revid=0x10 > class=02-00-00, hdrtype=0x00, mfdev=0 > subordinatebus=0 secondarybus=0 > intpin=a, irq=11 > map[10]: type 1, range 32, base 0000e800, size 8 > map[14]: type 1, range 32, base e0003000, size 8 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > found-> vendor=0x5333, dev=0x8a13, revid=0x02 > class=03-00-00, hdrtype=0x00, mfdev=0 > subordinatebus=0 secondarybus=0 > intpin=a, irq=12 > map[10]: type 1, range 32, base d8000000, size 26 > pci1: on pcib1 > pci1: (vendor=0x5333, dev=0x8a13) at 5.0 > irq 12 > isab0: at device 7.0 on pci0 > isa0: on isab0 > atapci0: port 0xf000-0xf00f at device 7.1 on pci0 > ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xf000 > ata0: mask=03 status0=50 status1=50 > ata0: mask=03 status0=52 status1=50 > ata0: devices = 0x3 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xf008 > ata1: mask=03 status0=20 status1=30 > ata1: mask=03 status0=20 status1=30 > ata1: devices = 0x0 > ata1: probe allocation failed > chip1: at device 7.3 on pci0 > ohci0: mem 0xe0001000-0xe0001fff irq 5 at device > 7.4 on pci0 > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 4 ports with 4 removable, self powered > rl0: port 0xe400-0xe4ff mem > 0xe0002000-0xe00020ff irq 10 at device 10.0 on pci0 > rl0: Ethernet address: 00:50:ba:85:e0:58 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > bpf: rl0 attached > rl1: port 0xe800-0xe8ff mem > 0xe0003000-0xe00030ff irq 11 at device 12.0 on pci0 > rl1: Ethernet address: 00:50:ba:8b:22:65 > miibus1: on rl1 > rlphy1: on miibus1 > rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > bpf: rl1 attached > ata-: ata0 exists, using next available unit number > ata-: ata1 exists, using next available unit number > Trying Read_Port at 203 > Trying Read_Port at 243 > Trying Read_Port at 283 > Trying Read_Port at 2c3 > Trying Read_Port at 303 > Trying Read_Port at 343 > Trying Read_Port at 383 > Trying Read_Port at 3c3 > isa_probe_children: disabling PnP devices > isa_probe_children: probing non-PnP devices > fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 > ata3: iobase=0x0170 altiobase=0x0376 bmaddr=0x0000 > ata3: mask=03 status0=20 status1=30 > ata3: mask=03 status0=20 status1=30 > ata3: devices = 0x0 > ata3: probe allocation failed > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > atkbd: the current kbd controller command byte 0067 > atkbd: keyboard ID 0x41ab (2) > kbdc: RESET_KBD return code:00fa > kbdc: RESET_KBD status:00aa > kbd0 at atkbd0 > kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000 > psm0: current command byte:0067 > kbdc: TEST_AUX_PORT status:0000 > kbdc: RESET_AUX return code:ffffffff > kbdc: RESET_AUX return code:ffffffff > kbdc: RESET_AUX return code:ffffffff > kbdc: DIAGNOSE status:0055 > kbdc: TEST_KBD_PORT status:0000 > psm0: failed to reset the aux device. > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > fb0: vga0, vga, type:VGA (5), flags:0x7007f > fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 > fb0: init mode:24, bios mode:3, current mode:24 > fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k > VGA parameters upon power-up > 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 > bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 > b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c > 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff > VGA parameters in BIOS for mode 24 > 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 > bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 > b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c > 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff > EGA/VGA parameters to be used for mode 24 > 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 > bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 > b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c > 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) > sio0: irq maps: 0x1 0x11 0x11 0x11 > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A > sio1: irq maps: 0x1 0x9 0x9 0x9 > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > sio1: type 16550A > ppc0: parallel port found at 0x378 > ppc0: using extended I/O port range > ppc0: SPP > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > plip0: on ppbus0 > bpf: lp0 attached > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > isa_probe_children: probing PnP devices > BIOS Geometries: > 0:03a67f3f 0..934=935 cylinders, 0..127=128 heads, 1..63=63 sectors > 1:020bfe3f 0..523=524 cylinders, 0..254=255 heads, 1..63=63 sectors > 0 accounted for > Device configuration finished. > bpf: faith0 attached > bpf: gif0 attached > bpf: gif1 attached > bpf: gif2 attached > bpf: gif3 attached > bpf: lo0 attached > bpf: ppp0 attached > new masks: bio 684060, tty 63009a, net 670c9a > bpf: sl0 attached > IP packet filtering initialized, divert enabled, rule-based forwarding > disabled, default to accept, logging disabled > IP Filter: v3.4.8 initialized. Default = pass all, Logging = disabled > ata0-master: success setting up WDMA2 mode on AMD chip > ad0: ATA-0 disk at ata0 as master > ad0: 3681MB (7539840 sectors), 7480 cyls, 16 heads, 63 S/T, 512 B/S > ad0: 16 secs/int, 1 depth queue, WDMA2 > ad0: piomode=4 dmamode=2 udmamode=-1 cblid=0 > Creating DISK ad0 > Creating DISK wd0 > ata0-slave: success setting up UDMA4 mode on AMD chip > ad1: ATA-4 disk at ata0 as slave > ad1: 4110MB (8418816 sectors), 14848 cyls, 9 heads, 63 S/T, 512 B/S > ad1: 16 secs/int, 1 depth queue, UDMA66 > ad1: piomode=4 dmamode=2 udmamode=4 cblid=1 > Creating DISK ad1 > Creating DISK wd1 > Mounting root from ufs:/dev/ad0s1a > ad0: READ command timeout - resetting > ata0: resetting devices .. ata0: mask=03 status0=50 status1=50 > ata0-master: success setting up WDMA2 mode on AMD chip > ata0-slave: success setting up UDMA4 mode on AMD chip > done > ad0: READ command timeout - resetting > ata0: resetting devices .. ata0: mask=03 status0=50 status1=50 > ata0-master: success setting up WDMA2 mode on AMD chip > ata0-slave: success setting up UDMA4 mode on AMD chip > done > ad0: READ command timeout - resetting > ata0: resetting devices .. ata0: mask=03 status0=52 status1=50 > ata0-master: success setting up WDMA2 mode on AMD chip > ata0-slave: success setting up UDMA4 mode on AMD chip > done > ad0: READ command timeout - resetting > ata0-master: WARNING: WAIT_READY active=ATA_ACTIVE_ATA > ata0-master: success setting up PIO4 mode on generic chip > ad0: trying fallback to PIO mode > ata0: resetting devices .. ata0: mask=03 status0=50 status1=50 > ata0-master: success setting up PIO4 mode on generic chip > ata0-slave: success setting up UDMA4 mode on AMD chip > done > ad0s1: type 0xa5, start 0, end = 7539839, size 7539840 > ad0s1: C/H/S end 469/84/63 (2516849) != end 7539839: invalid > start_init: trying /sbin/init > Linux-ELF exec handler installed To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message