Subject: Re: memory devices
To: Frederic GILLIERS <fredg@DotCom.FR>
From: Soren S. Jorvang <soren@wheel.dk>
List: port-cobalt
Date: 07/28/2000 09:54:31
On Wed, Jul 26, 2000 at 06:05:40PM +0200, Frederic GILLIERS wrote:
> The kernel compiled correctly, but when I try to create the memory
> device (mdconfig /dev/md0c 2048), I get the following error message :
> ioctl : inapropriate ioctl for device

This is (at least) a MAKEDEV bug.

Index: MAKEDEV
===================================================================
RCS file: /cvsroot/basesrc/etc/etc.cobalt/MAKEDEV,v
retrieving revision 1.2
diff -u -w -r1.2 MAKEDEV
--- MAKEDEV	2000/07/27 18:43:20	1.2
+++ MAKEDEV	2000/07/28 07:54:17
@@ -141,9 +141,9 @@
 	unit=${i#md}; blk=2; chr=2;
 	rm -f md${unit}? rmd${unit}?
 	mknod md${unit}a  b $blk $(($unit * 16 + 0))
-	mknod md${unit}c  b $blk $(($unit * 16 + 2))
+	mknod md${unit}d  b $blk $(($unit * 16 + 3))
 #	mknod rmd${unit}a c $chr $(($unit * 16 + 0))
-#	mknod rmd${unit}c c $chr $(($unit * 16 + 2))
+#	mknod rmd${unit}d c $chr $(($unit * 16 + 3))
 	chgrp operator md${unit}? #rmd${unit}?
 	chmod 640 md${unit}? #rmd${unit}?
 	;;      


-- 
Soren