Subject: port-sun3/4421: sun3 MAKEDEV doesn't know about lkm
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nathanw@mit.edu>
List: netbsd-bugs
Date: 11/03/1997 20:27:13
>Number: 4421
>Category: port-sun3
>Synopsis: sun3 MAKEDEV doesn't know about lkm
>Confidential: yes
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 3 17:35:02 1997
>Last-Modified:
>Originator: Nathan J Williams
>Organization:
Massachvsetts Institvte of Technology
>Release: 1.3_ALPHA as of October 30,1997
>Environment:
System: NetBSD wile-e-coyote 1.3_ALPHA NetBSD 1.3_ALPHA (WILE-E-COYOTE) #2: Mon Nov 3 06:28:08 EST 1997 nathanw@wile-e-coyote:/u1/var/src/sys/arch/sun3/compile/WILE-E-COYOTE sun3
>Description:
MAKEDEV doesn't have a entry for the "lkm" device. This
contradicts the top of the file:
# bpf* packet filter
# lkm loadable kernel modules interface
# tun* network tunnel driver
This is bad, since LKM's work just fine on the sun3 port, and
people (like me) might want to use them.
>How-To-Repeat:
cd /dev
./MAKEDEV lkm
Watch it fail.
>Fix:
Here is a patch to make MAKEDEV know about the lkm device and
then add it to the "all" target.
*** src/etc/etc.sun3/MAKEDEV.orig Mon Nov 3 19:55:10 1997
--- src/etc/etc.sun3/MAKEDEV Mon Nov 3 20:21:32 1997
***************
*** 90,95 ****
--- 90,96 ----
sh $0 xd0 xd1 xd2 xd3
sh $0 xy0 xy1 xy2 xy3
sh $0 bpf0 bpf1 bpf2 bpf3
+ sh $0 lkm
sh $0 tun0 tun1
sh $0 local
;;
***************
*** 131,136 ****
--- 132,144 ----
bpf*)
mk bpf$unit c 36 $unit 600
+ ;;
+
+ lkm)
+ rm -f lkm
+ mknod lkm c 72 0
+ chown root.kmem lkm
+ chmod 640 lkm
;;
tun*)
>Audit-Trail:
>Unformatted:
no
MAKEDEV doesn't know how to make /dev/lkm, contradicting its comments.