Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 1998 21:44:33 -0500
From:      Cory Kempf <ckempf@enigami.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Today's kernel doesn't work on (my) DK440LX
Message-ID:  <v04003a0db13379d2095d@[208.140.182.45]>
In-Reply-To: <199803150448.UAA09479@dingo.cdrom.com>
References:  Your message of "Sat, 14 Mar 1998 12:36:36 EST."             <v04003a20b13070965c3f@[208.140.182.45]>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
<http://www.enigami.com/~ckempf/chipmerchant.html>;

Cory Kempf                  Macintosh / Unix Consulting & Software Development
ckempf@enigami.com          <http://www.enigami.com/~ckempf/>;



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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