Skip to contentSkip to conversation

]

Re: Eric 2 participants 2 messages Feb 8, 2002 – Feb 11, 2002

lore
Share & tools
lore

Eric

author
#0 lore raw
Quoted 4 lines · Marco Colombo

I'm pretty willing to grab another tree and compile it, but I'd like to know which one in advance instead of going on by trial & error. The system is Red Hat 6.2 so I need a 2.2.x kernel.

As DaveM mentioned, that was a patch against the 2.4.x series but the patch is remarkably similar for the 2.2.x kernels. This is against the linux_2_2 branch of CVS at vger.samba.org. If this does not patch cleanly into your RedHat sources, I am certain a little initiative will get you the rest of the way:

ioctl32.c.new renamed from ioctl32.c +4 -0
@@ -44,6 +44,7 @@
 #include <linux/in6.h>
 #include <linux/ipv6_route.h>
 #include <linux/pci.h>
+#include <linux/random.h>
 #include <net/sock.h>
 
 #include <scsi/scsi.h>
@@ -3147,6 +3148,9 @@
 	case DRM_IOCTL_UNLOCK:
 	case DRM_IOCTL_FINISH:
 #endif /* DRM */
+
+	/* Big R */
+	case RNDGETENTCNT:
 
 	/* Misc. */
 	case 0x41545900:		/* ATYIO_CLKR */

Happy patching,
E

#1 lore raw
Quoted 7 lines · Eric
Quoted 4 lines · Marco Colombo

I'm pretty willing to grab another tree and compile it, but I'd like to know which one in advance instead of going on by trial & error. The system is Red Hat 6.2 so I need a 2.2.x kernel.

Quoted 5 lines

As DaveM mentioned, that was a patch against the 2.4.x series but the patch is remarkably similar for the 2.2.x kernels. This is against the linux_2_2 branch of CVS at vger.samba.org. If this does not patch cleanly into your RedHat sources, I am certain a little initiative will get you the rest of the way:

Eric, patching is no problem B-)
that's what I was meaning with my first message.

Now, I've discovered that my Ultra 1 has a very low entropy bits count, as I was suspecting (it's an "headless" server, only network and disk I/O). I guess I need an entropy source of some kind, but this is a story for another list. B-)
I'll look closer at the code to try and understand the issues of 32->64bit conversion. Before running an entropy collector daemon, I need the others 'R' ioctls (RNDADDENTROPY as a minumum). Some of them do take int * as the third argument, so I guess I need some hacking. If I manage to produce an useful patch, I'll post it.

Thanks for your support.

.TM.

Signature · 5 lines
      ____/  ____/   /
     /      /       /			Marco Colombo
    ___/  ___  /   /		      Technical Manager
   /          /   /			 ESI s.r.l.
 _____/ _____/  _/		       [email protected]