From owner-freebsd-stable Tue Jun 5 0: 9:56 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ramstind.gtf.ol.no (ramstind.gtf.ol.no [128.39.174.16]) by hub.freebsd.org (Postfix) with ESMTP id E5CEF37B403 for ; Tue, 5 Jun 2001 00:09:49 -0700 (PDT) (envelope-from trond@ramstind.gtf.ol.no) Received: from localhost (trond@localhost) by ramstind.gtf.ol.no (8.9.3/8.9.3) with ESMTP id JAA18669; Tue, 5 Jun 2001 09:09:44 +0200 (CEST) (envelope-from trond@ramstind.gtf.ol.no) Date: Tue, 5 Jun 2001 09:09:44 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= To: "Sergey N. Voronkov" Cc: Subject: Re: Strange boot message - "no devsw (majdev=0 bootdev=0xa0400000)" In-Reply-To: <20010605105240.A653@sv.tech.sibitex.tmn.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 5 Jun 2001, Sergey N. Voronkov wrote: > Hello, stable people! > > Yesterday I'v upgraded my STABLE box from 29-05-2001 to 04-05-2001. > Also, I removed BeOS bootmanager and replaced it with FreeBSD one. > (Finaly finish my games with this nice but little unuseful OS, so remove > it. Sorry, BeOS funs :-( ). > > After upgrade I'v found starange message: > > Jun 4 17:49:32 sv /kernel: FreeBSD 4.3-STABLE #1: Mon Jun 4 17:28:13 > YEKST 2001 > [skip] > Jun 4 17:49:32 sv /kernel: ad0: 14659MB [29785/16/63] at > ata0-master UDMA66 > Jun 4 17:49:32 sv /kernel: acd0: CDROM at > ata1-master using PIO4 > Jun 4 17:49:32 sv /kernel: no devsw (majdev=0 bootdev=0xa0400000) > ^^^^^^^^^ > Jun 4 17:49:32 sv /kernel: Mounting root from ufs:/dev/ad0s3a > > What is it related? Do I have some bootblocks misconfiguration or is it > related to last sys/dev/ata-disk.[ch] & sys/kern/subr_disk.c changes? > I have a little troubles determining this by myself - to much code, but > bootdev variable looks a little strange for me... > > Serg. > > P.S.: boot0cfg -Bv -s 3 /dev/ad0; disklabel -B ad0s3 -- already done > without any success. I have a test server running 4.3-STABLE (cvsup last run sometime last week). Whenever I boot with my custom kernel I get almost the same messages as Sergey, but when I boot a GENERIC kernel compiled from the same sourcetree the test server boots as expected and mounts the root file system. I haven't tried the boot0cfg command Sergey suggest, but I don't see the relevance. Can someone please enlighten me if I'm wrong. All I did when configuring the custom kernel was to comment out the inclusion of various stuff this test server does not possess, such as the EISA bus, network interface cards, SCSI controllers, USB devices, etc. I have tried all things, commenting out the old ata driver (ata0 and ata1), leaving the new stuff, and vice versa. I ended up using the GENERIC file and just adding my custom options such as KERNFS and setting the number of pty's to 256. This are the relevant parts of the dmesg from the custom kernel (written down on paper and typed in later): ... atapci0: port 0x3f4-0x3f7,0x1f0-0x1f7 at device 1.0 on pci0 atapci0: Busmastering DMA not supported atapci0: Busmastering DMA disabled ata2: at 0x1f0 on atapci0 ata2: unable to allocate interrupt device_probe_and_attach: ata2 attach returned 6 ... no devsw (majdev=0 bootdev=0xa02000000) Mounting root from ufs:/dev/ad0s1a no such device 'ad' setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 ... Here's the dmesg from the GENERIC kernel I compiled myself and the one the test server is currently using: Copyright (c) 1992-2001 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.3-STABLE #0: Wed May 30 16:18:34 CEST 2001 root@agamemnon.gtf.ol.no:/usr/src/sys/compile/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P5 (53.98-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x517 Stepping = 7 Features=0x1bf real memory = 25165824 (24576K bytes) avail memory = 20230144 (19756K bytes) Preloaded elf kernel "kernel.GENERIC-4.3-STABLE" at 0xc0452000. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 ign0 port 0x3f4-0x3f7,0x1f0-0x1f7 at device 1.0 on pci0 isab0: at device 2.0 on pci0 isa0: on isab0 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xfc80-0xfcff mem 0xffbffc00-0xffbffc7f irq 11 at device 6.0 on pci0 xl0: Ethernet address: 00:50:04:43:9b:4d miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 14.0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 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 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ad0: 504MB [1024/16/63] at ata0-master BIOSPIO Mounting root from ufs:/dev/ad0s1a -- ---------------------------------------------------------------------- Trond Endrestøl | trond@ramstind.gtf.ol.no Patron of The Art of Computer Programming| FreeBSD 3.5-S & Pine 4.31 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message