Subject: Re: LKM on Cobalt Qube2 (missing /dev/lkm)
To: Bill Studenmund <wrstuden@NetBSD.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 05/19/2004 19:18:55
On Wed, May 19, 2004 at 02:07:53PM -0700, Bill Studenmund wrote:
>On Tue, May 18, 2004 at 02:24:30PM +0200, Jowell, Chris {GGRP~Graz} wrote:
>
>> Does anyone know if those mknod arguments are the correct ones for the
>> cobalt port?
>
>They are not. From sys/arch/cobalt/conf/majors.cobalt:
>
>device-major lkm char 17 lkm
heehee! this works on 2.0 (actually, anything after 1.6ZG, i expect):
% sysctl -r kern.drivers | perl -e 'while(sysread(STDIN, $d, 32)) \
{($c,$b,$n)=unpack("iiZ*", $d);\
printf("%3d %3d %s\n", $c, $b, $n);}' | grep lkm
and on my alpha it reports (ignore the -1 -- that means there's no
block device):
16 -1 lkm
which matches perfectly:
% ll /dev/lkm
crw-r----- 1 root kmem 16, 0 Dec 10 2000 /dev/lkm
;-)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."