Discussion:
problem while loading streams.ko
kishore
2005-12-23 16:23:09 UTC
Permalink
hi Landey,

First let me say thanks for ur response. I did all the
modifications, what u said in mail.
Now, am safe during compilation without any warnings ( some warnings
as method was deprecated, but i ignored).
I got streams.ko in the default folder
(/lib/modules/`uname -r`/misc/.)

I tried to load streams.ko using insmod,
insmod /lib/modules/`uname -r`/misc/streams.ko then the system
hung.

I restarted the system and observed dmesg, it is as follows :

================================================================
LiS-RunQ-2.18.1 running on CPU 0 pid=1738
LiS Kernel Module Loaded
STREAMS driver "mtdrv" registered, major 253
mknod /dev/mtdrv_clone: OK
mknod /dev/mtdrv.1: OK
mknod /dev/mtdrv.2: OK
mknod /dev/mtdrv.3: OK
mknod /dev/mtdrv.4: OK
STREAMS module "pipemod" registered, id 4
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
ip_tables: (C) 2000-2002 Netfilter core team
ip_tables: (C) 2000-2002 Netfilter core team
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
i2c /dev entries driver
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
lp0: console ready
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11 (level, low) -> IRQ 11
[drm] Initialized mga 3.1.0 20021029 on minor 0:
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode

Then i observed /proc/modules; i found that streams and its
related modules streams-timod, streams-mtdrv are loaded.

let me know why the system hung, when i tried to load
streams.ko?
Thanks in advance for ur advice on this issue.

regards,
kishore,packetware.
Paul Landay
2005-12-23 18:06:47 UTC
Permalink
I don't recall ever seeing a hang during insmod,
so I do not know what the problem might be.

On 2.6 kernel systems, like RHEL4,
I use 'modprobe' instead of 'insmod'.
cd /usr/src/LiS-2.18
make
make install
modprobe streams

The dmesg text below says 2.18.1, but some
of your posts said you were using 2.18.0 from
ftp.gcom.com. I still use the:
ftp://ftp.gcom.com/pub/linux/src/LiS/LiS-2.18.0.tgz
plus the changes I sent on RHEL4.
I have not used 2.18.1.

I notice in the dmesg output that you have SELinux enabled.
Did you look at the mailing list archives for other posts
about SELinux:
http://www.mail-archive.com/cgi-bin/htsearch?method=and&config=linux-streams_gsyc_escet_urjc_es&words=selinux
I did all the modifications, what u said in mail.
Now, am safe during compilation without any warnings
( some warnings as method was deprecated, but i ignored).
I got streams.ko in the default folder
(/lib/modules/`uname -r`/misc/.)
I tried to load streams.ko using insmod,
insmod /lib/modules/`uname -r`/misc/streams.ko
then the system hung.
LiS-RunQ-2.18.1 running on CPU 0 pid=1738
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs),
Then i observed /proc/modules; i found that streams and its
related modules streams-timod, streams-mtdrv are loaded.
let me know why the system hung, when i tried to load streams.ko?
Brian F. G. Bidulock
2005-12-23 19:26:01 UTC
Permalink
kishore,

You have install 2.18.0 without uninstalling 2.18.1. Do 'sudo make uninstall'
in the LiS-2.18.1 directory, then rebuild and reinstall 2.18.0.

--brian
Post by kishore
hi Landey,
First let me say thanks for ur response. I did all the
modifications, what u said in mail.
Now, am safe during compilation without any warnings ( some warnings
as method was deprecated, but i ignored).
I got streams.ko in the default folder
(/lib/modules/`uname -r`/misc/.)
I tried to load streams.ko using insmod,
insmod /lib/modules/`uname -r`/misc/streams.ko then the system
hung.
================================================================
LiS-RunQ-2.18.1 running on CPU 0 pid=1738
LiS Kernel Module Loaded
STREAMS driver "mtdrv" registered, major 253
mknod /dev/mtdrv_clone: OK
mknod /dev/mtdrv.1: OK
mknod /dev/mtdrv.2: OK
mknod /dev/mtdrv.3: OK
mknod /dev/mtdrv.4: OK
STREAMS module "pipemod" registered, id 4
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
ip_tables: (C) 2000-2002 Netfilter core team
ip_tables: (C) 2000-2002 Netfilter core team
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
i2c /dev entries driver
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
lp0: console ready
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 11 (level, low) -> IRQ 11
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
Then i observed /proc/modules; i found that streams and its
related modules streams-timod, streams-mtdrv are loaded.
let me know why the system hung, when i tried to load
streams.ko?
Thanks in advance for ur advice on this issue.
regards,
kishore,packetware.
_______________________________________________
Linux-streams mailing list
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
--
Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦
***@openss7.org ¦ world; the unreasonable one persists in ¦
http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦
¦ Therefore all progress depends on the ¦
¦ unreasonable man. -- George Bernard Shaw ¦
Loading...