Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2001 09:09:44 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <trond@ramstind.gtf.ol.no>
To:        "Sergey N. Voronkov" <serg@tmn.ru>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   Re: Strange boot message - "no devsw (majdev=0 bootdev=0xa0400000)"
Message-ID:  <Pine.BSF.4.31.0106050850340.17022-100000@ramstind.gtf.ol.no>
In-Reply-To: <20010605105240.A653@sv.tech.sibitex.tmn.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <FUJITSU MPF3153AT> [29785/16/63] at
> ata0-master UDMA66
> Jun  4 17:49:32 sv /kernel: acd0: CDROM <TOSHIBA CD-ROM XM-6702B> 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: <RZ 100? ATA controller !WARNING! buggy chip data loss possible> 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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
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: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
ign0 port 0x3f4-0x3f7,0x1f0-0x1f7 at device 1.0 on pci0
isab0: <Intel 82378ZB PCI to ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> 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: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <ATI Mach64-GX graphics accelerator> at 14.0
fdc0: <NEC 72065B or clone> 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: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> 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: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 504MB <DSAA-3540> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.31.0106050850340.17022-100000>