One thing I forgot to mention. I took out hid.o from my module directory so
you need to do an "rmmod hid" before you do the insmod step below. I
modified the transcript to include that step.
Scott
-----Original Message-----
From: Scott Hiles [mailto:***@sprintmail.com]
Sent: Monday, May 19, 2003 4:18 PM
To: 'Hong Hsu'
Cc: 'wish-***@lists.sourceforge.net'
Subject: RE: [wish-info] Re: compile X10 1.6.2 driver on Redhat kernel
2.4.18-3
I got 2.4.18-3 up and running and was able to compile the drivers. They
worked just fine on my Redhat system. To make it a bit easier, I put
binaries on sourceforge which have been precompiled. This is my first time
creating an RPM so hopefully I got it all right.
Go to the wish.sourceforge.net page and scroll down to the area for
Installing RPMs. Select the "Yes" for 2.4.18-3 and download the rpm file.
To make it easy for you to see the commands and the output you should
expect, I have performed the commands on my machine and captured them below.
[***@crazy tmp]# tail -f /var/log/messages &
[***@crazy tmp]# rpm -i wish-1.6.2-kernel2.4.18-3-noDEVFS.i386.rpm
[***@crazy tmp]# rmmod hid
[***@crazy root]# insmod x10_plusb
Using /lib/modules/2.4.18-3/kernel/drivers/char/x10/x10_plusb.o
May 19 16:12:00 localhost kernel: x10: X10 Transceiver module v1.6.1
(***@sprintmail.com)
May 19 16:12:00 localhost kernel: x10: $Id: x10_core.c,v 1.39 2003/03/06
17:05:06 whiles Exp whiles $
May 19 16:12:00 localhost kernel: x10: $Id: x10_ldisc_plusb.c,v 1.10
2003/02/10 19:33:05 whiles Exp $
May 19 16:12:00 localhost kernel: x10: $Id: x10_xcvr_plusb.c,v 1.10
2003/02/15 02:46:06 whiles Exp whiles $
May 19 16:12:00 localhost kernel: usb.c: registered new driver PowerLincUSB
May 19 16:12:00 localhost kernel: x10: PowerLinc USB successfully probed and
installed
[***@crazy root]# May 19 16:12:02 localhost kernel: x10: PowerLinc USB
Hardware Rev 1.4 found
May 19 16:12:02 localhost kernel: x10: X10 driver successfully loaded
[***@crazy root]# echo 1 > /dev/x10/e11
[***@crazy root]# echo 0 > /dev/x10/e11
The last two lines turned the light on for e11 and then turned it off.
The direct link for downloading the rpm file is:
http://prdownloads.sourceforge.net/wish/wish-1.6.2-kernel2.4.18-3-noDEVFS.i3
86.rpm?download
Scott
-----Original Message-----
From: Hong Hsu [mailto:***@bellatlantic.net]
Sent: Wednesday, May 14, 2003 9:08 PM
To: Scott Hiles
Cc: wish-***@lists.sourceforge.net
Subject: Re: [wish-info] Re: compile X10 1.6.2 driver on Redhat kernel
2.4.18-3
Scott,
Two questions.
1) What the following error means, and how to fix it?
[x10]#mknod /dev/x10/c3 c 120 3
[***@puma wish-1.6.2]#rmmod hid
[***@puma wish-1.6.2]# insmod x10_plusb
[***@puma wish-1.6.2]# x10logd
Error: Unable to open device /dev/x10/log (No such file or directory)
2) When I run simple test:
#echo 1 >/dev/x10/c3
Got system locked up! The message is:
Kernel panic: Aiee, killing interrupt handlers!
I have to reboot it. Am I missing some thing? (I use PowerLincUSB and lamp
module c3 is the only module)
Thanks,
-Hong
Scott Hiles wrote:
You only install the driver called x10_<device>.o. So, for the PowerLinc
USB, you would only install x10_plusb.o. The rest are compiled into the
device driver.
When you install x10_plusb.o, your var/log/messages should now have a
message indicting that the driver was loaded and the version of the X10
transceiver.
Continue with the instructions to remove hid.o (rmmod hid) so that it won't
interfere with the X10 USB drivers. If you have run the script to make your
devices, you should be all set. You should now be able to send commands to
the X10 devices.
If it all works at this point, you have completed the test. You now just
need to install the drivers into your modules directory (which is what
install.sh should be able to do) and create a startup script in
/etc/rc.d/init.d. Look at the example scripts for startup for a way that I
do it on a RedHat System.
Scott
-----Original Message-----
From: Hong Hsu [mailto:***@bellatlantic.net]
Sent: Tuesday, May 13, 2003 11:25 AM
To: Scott Hiles
Cc: wish-***@lists.sourceforge.net
Subject: Re: [wish-info] Re: compile X10 1.6.2 driver on Redhat kernel
2.4.18-3
Scott,
compilation of drivers has no problem. Does order of installing drivers
is matter? Do I need to install all 13 x10_xyz.o drivers as I only use
PowerLincUSB?
I have installed x10_plusb.o and x10_strings.o with no problem. However,
installation of x10_core.o causes Segmentation fault AND tainted others:
[***@puma root]# lsmod
Module Size Used by Tainted: PF
x10_core 22688 1 (initializing)
x10_ldisc_plusb 8192 0 [x10_core]
x10_xcvr_plusb 7456 0 [x10_core x10_ldisc_plusb]
x10_xcvr_pl 7104 0 (unused)
x10_strings 2688 0 [x10_core]
x10_plusb 38464 0 [x10_ldisc_plusb x10_xcvr_plusb
x10_xcvr_pl]
i810_audio 23008 0 (autoclean)
ac97_codec 11936 0 (autoclean) [i810_audio]
soundcore 6692 2 (autoclean) [i810_audio]
NVdriver 1066272 10
nfsd 76192 8 (autoclean)
lockd 56768 1 (autoclean) [nfsd]
sunrpc 75764 1 (autoclean) [nfsd lockd]
autofs 12132 0 (autoclean) (unused)
nvnet 30240 2
ipchains 43528 14
Now I even can not unload x10_core. Another thing:
[***@puma wish-1.6.2]# insmod -f x10_pl.o
x10_pl.o: init_module: Operation not permitted
Hint: insmod errors can be caused by incorrect module parameters, including
invalid IO or IRQ parameters
Is this version issue you mentioned? How do I fix that?
Many thanks,
-Hong
Scott Hiles wrote:
OK...your kernel will compile so you are getting closer. Make sure that you
have a link from of /usr/src/linux to /usr/src/linux-2.4.18-3.
Now go to the directory that you untarred the source code for the x10
drivers and try the following commands:
# make clean
# make
You should end up with x10_plusb.o, x10_pl.o, x10_cm11a.o, and x10_cm17a.o.
If you got this far, then your drivers have been compiled. Now, try loading
them by hand using:
# insmod -f x10_<device>.o
You may get an error that the versions don't match don't worry about it at
this point. You should be able to test that the drivers work on your
machine by running utils/x10attach if needed.
If you got the error that the versions don't match the problem is in
/usr/src/linux/Makefile and I can tell you how to fix the error.
Scott
-----Original Message-----
From: wish-info-***@lists.sourceforge.net
[mailto:wish-info-***@lists.sourceforge.net] On Behalf Of Hong Hsu
Sent: Monday, May 12, 2003 8:26 PM
To: wish-***@lists.sourceforge.net
Subject: [wish-info] Re: compile X10 1.6.2 driver on Redhat
kernel 2.4.18-3
After following steps,
#make mrproper
#make menuconfig
#make dep
#nohup make bzImage &
#tail -f nohup.out message shows:
......
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build
tools/build.c -I/usr/src/linux-2.4.18-3/include
objcopy -O binary -R .note -R .comment -S compressed/bvmlinux
compressed/bvmlinux.out
tools/build -b bbootsect bsetup compressed/bvmlinux.out
CURRENT > bzImage Root device is (3, 8) Boot sector 512
bytes. Setup is 4772 bytes. System is 1022 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/linux-2.4.18-3/arch/i386/boot'
May I say building kernel is OK at this point? but install
x10 driver
still got same error message at this stage. Is that valid to
install at this point?
Thanks,
-Hong
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003,
Santa Clara The only event dedicated to issues related to
Linux enterprise solutions www.enterpriselinuxforum.com
_______________________________________________
wish-info mailing list
wish-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w> ish-info
--
<Linux kernel:>< As a computer I find your faith in technology amusing.
--
<Linux kernel:>< As a computer I find your faith in technology amusing.