From owner-freebsd-current Wed Mar 18 18:45:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA21389 for freebsd-current-outgoing; Wed, 18 Mar 1998 18:45:37 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA21360 for ; Wed, 18 Mar 1998 18:45:34 -0800 (PST) (envelope-from gibbs@plutotech.com) Received: from narnia.plutotech.com (narnia.plutotech.com [206.168.67.130]) by pluto.plutotech.com (8.8.7/8.8.5) with ESMTP id TAA14021; Wed, 18 Mar 1998 19:45:27 -0700 (MST) Message-Id: <199803190245.TAA14021@pluto.plutotech.com> X-Mailer: exmh version 2.0.1 12/23/97 To: Cory Kempf cc: freebsd-current@FreeBSD.ORG Subject: Re: Kernel / Compiler bug? In-reply-to: Your message of "Wed, 18 Mar 1998 11:59:37 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Mar 1998 19:42:06 -0700 From: "Justin T. Gibbs" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Sorry if this is a re-run, but it looks like the original got lost somewhere. > >This problem may be CAM specific. > >I am not sure what to do about this one. Since I got my machine I have not >been able to build a kernel that runs, without using "swap on generic" and >-a at the boot prompt > >Well, after doing some debugging, it looks like the line > > dev_t rootdev = makedev(4, 0x000020000); > >in swapkernel.c (/usr/src/sys/compile//swapkernel.c) isn't being run. Are you sure it isn't simply being spammed somewhere in autoconf.c? [narnia::i386]$ grep rootdev *.c autoconf.c: dev_t orootdev; autoconf.c: orootdev = rootdev; autoconf.c: rootdev = makedev(try_cdrom[j].major, i * 8); autoconf.c: bd = bdevsw[major(rootdev)]; autoconf.c: printf("trying %s%d as rootdev (0x%x)\n", autoconf.c: try_cdrom[j].name, i, rootdev); autoconf.c: error = (bd->d_open)(rootdev, FREAD, S_IFBLK, curproc); autoconf.c: (bd->d_close)(rootdev, FREAD, S_IFBLK, autoconf.c: rootdev = orootdev; autoconf.c: /* NB: find_cdrom_root() sets rootdev if successful. */ autoconf.c: * (rootdev is always initialized to NODEV in a autoconf.c: if ((boothowto & RB_ASKNAME) == 0 || rootdev != NODEV) autoconf.c: * (rootdev is always initialized to NODEV in a autoconf.c: if ((boothowto & RB_ASKNAME) == 0 || rootdev != NODEV) autoconf.c: * change rootdev to correspond to the load device. autoconf.c: dev_t orootdev; autoconf.c: orootdev = rootdev; autoconf.c: rootdev = makedev(majdev, mindev); autoconf.c: * If the original rootdev is the same as the one autoconf.c: if ((rootdev & ~0xff0000) == (orootdev & ~0xff0000)) swapgeneric.c:dev_t rootdev = NODEV; swapgeneric.c: if (rootdev != NODEV) swapgeneric.c: rootdev = gc->gc_root; -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message