From owner-freebsd-current Mon Mar 16 18:55:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA29558 for freebsd-current-outgoing; Mon, 16 Mar 1998 18:55:39 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from enigami.com (enigami.com [208.140.182.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA29552 for ; Mon, 16 Mar 1998 18:55:35 -0800 (PST) (envelope-from ckempf@enigami.com) Received: from [208.140.182.45] (symphony.enigami.com [208.140.182.45]) by enigami.com (8.8.7/8.8.7) with ESMTP id VAA17258; Mon, 16 Mar 1998 21:54:21 -0500 (EST) X-Sender: ckempfm@enigami.com Message-Id: In-Reply-To: <199803150448.UAA09479@dingo.cdrom.com> References: Your message of "Sat, 14 Mar 1998 12:36:36 EST." Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Mon, 16 Mar 1998 21:44:33 -0500 To: Mike Smith From: Cory Kempf Subject: Re: Today's kernel doesn't work on (my) DK440LX Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 23:48 -0500 98.03.14, Mike Smith wrote: >> Hi all, >> I had a (mostly) working kernel based on 10 March sources. Today, 'round 2 >> PM EST, I sup'd again, and built the world. >> >> I can no longer build a (mostly) working kernel. Well, actually, I can... it just complains. I took the complaint as an error, instead of continuing. Turns out that is still builds OK (after fixing a minor CAM bug) >> My system seems to be dependent on the line: >> >> config kernel root on da0 swap on generic > >The 'generic' keyword causes a search for suitable devices. Because >the bootstrap doesn't recognise the 'da' device, it passes 0 in as the >boot major. So, what should I use for the device? And (more importantly) where do I find this stuff out? If I try sd0 as the device, config returns that it is unrecognized. After booting, / is mounted on /dev/da0a, which has a major device number of 4 and a minor device number of 0. Perhaps da4a will work... >The kernel recently started trusting this value; you will need to extend >the bootstrap so that it supplies it correctly. Uh, how do I do that? For that matter, what does that mean? >> In my kernel config file. Especially the 'swap on generic' part. If I >> take it out, or replace it with anything I have tried so far, my kernel >> doesn't work at all. If I attempt to boot, the system attempts to change >> root to wd0s2b, and I get a Fatal Trap 12. Doing a trace says that it is >> happening in _ffs_mount(). > >This is probably because the disk type on your disk is incorrect. What >does 'disklabel' say about your boot disk? # /dev/rda0a: type: ESDI disk: da0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 521 sectors/unit: 8385867 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 65536 0 4.2BSD 0 0 0 # (Cyl. 0 - 4*) b: 544480 65536 swap # (Cyl. 4*- 37*) c: 8385867 0 unused 0 0 # (Cyl. 0 - 521*) e: 61440 610016 4.2BSD 0 0 0 # (Cyl. 37*- 41*) f: 7714411 671456 4.2BSD 0 0 0 # (Cyl. 41*- 521*) It lies: The disk is a SCSI device and the RPM is 10,000. >> Perhaps I am looking in the wrong places, but I can't seem to find any >> documentation as to what "swap on generic" means and what I should replace >> it with. > >It's not normally useful, and shouldn't normally be there. It can help >in situation such as yours. Clearly, what I am doing is not correct. I am wondering what I should be doing instead. +C -- Thinking of purchasing RAM from the Chip Merchant? Please read this first: Cory Kempf Macintosh / Unix Consulting & Software Development ckempf@enigami.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message