Discussion:
[wish-info] plusbd fails, /dev/x10/.api doesn't exist
Shawn Rutledge
2005-04-06 07:09:45 UTC
Permalink
I'm running kernel 2.6.9-mm1 with devfs. I just downloaded and
compiled x10dev-2.1.1, and modprobe x10 debug=1 works OK:

x10: X10 DEV module v2.1.1 (***@sprintmail.com)
x10: $Id: dev.c,v 1.22 2005/03/27 04:39:26 root Exp $
/usr/src/x10dev-2.1.1/dev/dev.c/527/x10_init(): starting initialization
/usr/src/x10dev-2.1.1/dev/dev.c/531/x10_init(): registering data_major
device 120 for x10d
/usr/src/x10dev-2.1.1/dev/dev.c/543/x10_init(): registering
control_major unit 121 for x10c
/usr/src/x10dev-2.1.1/dev/dev.c/554/x10_init(): X10 /dev devices registered
x10: X10 driver successfully loaded

Then I tried re-plugging my PowerLinc in case that was the reason for
the problem:

usb 1-1: USB disconnect, address 2
usb 1-2: new low speed USB device using address 3
hiddev96: USB HID v1.00 Device [SmartHome SmartHome PowerLinc USB] on
usb-0000:00:07.2-2

[nucleus][11:12:06 PM] /usr/sbin/plusbd -device /dev/usb/hid/hiddev0
Error: Unable to open device /dev/x10/.api (No such file or directory)

Indeed /dev/x10/.api doesn't exist:

[nucleus][11:20:34 PM] ll /dev/x10/
total 0
drwxr-xr-x 1 root root 0 Feb 15 00:30 .
drwxr-xr-x 1 root root 0 Dec 31 1969 ..
crw-r--r-- 1 root root 121, 0 Feb 15 00:30 a
crw-r--r-- 1 root root 120, 0 Feb 15 00:30 a1
crw-r--r-- 1 root root 120, 1 Feb 15 00:30 a2
crw-r--r-- 1 root root 121, 16 Feb 15 00:30 araw
crw-r--r-- 1 root root 121, 1 Feb 15 00:30 b
crw-r--r-- 1 root root 120, 16 Feb 15 00:30 b1
crw-r--r-- 1 root root 120, 17 Feb 15 00:30 b2
crw-r--r-- 1 root root 121, 17 Feb 15 00:30 braw
crw-r--r-- 1 root root 121, 33 Feb 15 00:30 status
crw-r--r-- 1 root root 121, 32 Feb 15 00:30 statusraw

I was stuck a few months ago trying to do this, and gave up; maybe it
was the same bug but I don't remember.
Scott Hiles
2005-04-06 11:43:50 UTC
Permalink
You need to create the /dev/x10 devices for the drivers to communicate with
each other. The script is in scripts/makedev.sh.

2.6.9 does not have DEVFS in a useable form as it was obsoleted by udev.
The functionality of DEVFS was significantly reduced making it unusable by
the x10 drivers. Until I write something to work with udev, you have to
create the devices by hand.

Scott
-----Original Message-----
Shawn Rutledge
Sent: Wednesday, April 06, 2005 3:10 AM
Subject: [wish-info] plusbd fails, /dev/x10/.api doesn't exist
I'm running kernel 2.6.9-mm1 with devfs. I just downloaded
x10: $Id: dev.c,v 1.22 2005/03/27 04:39:26 root Exp $
/usr/src/x10dev-2.1.1/dev/dev.c/527/x10_init(): starting
initialization
/usr/src/x10dev-2.1.1/dev/dev.c/531/x10_init(): registering
data_major device 120 for x10d
/usr/src/x10dev-2.1.1/dev/dev.c/543/x10_init(): registering
control_major unit 121 for x10c
/usr/src/x10dev-2.1.1/dev/dev.c/554/x10_init(): X10 /dev
devices registered
x10: X10 driver successfully loaded
Then I tried re-plugging my PowerLinc in case that was the
usb 1-1: USB disconnect, address 2
usb 1-2: new low speed USB device using address 3
hiddev96: USB HID v1.00 Device [SmartHome SmartHome PowerLinc USB] on
usb-0000:00:07.2-2
[nucleus][11:12:06 PM] /usr/sbin/plusbd -device /dev/usb/hid/hiddev0
Error: Unable to open device /dev/x10/.api (No such file or
directory)
[nucleus][11:20:34 PM] ll /dev/x10/
total 0
drwxr-xr-x 1 root root 0 Feb 15 00:30 .
drwxr-xr-x 1 root root 0 Dec 31 1969 ..
crw-r--r-- 1 root root 121, 0 Feb 15 00:30 a
crw-r--r-- 1 root root 120, 0 Feb 15 00:30 a1
crw-r--r-- 1 root root 120, 1 Feb 15 00:30 a2
crw-r--r-- 1 root root 121, 16 Feb 15 00:30 araw
crw-r--r-- 1 root root 121, 1 Feb 15 00:30 b
crw-r--r-- 1 root root 120, 16 Feb 15 00:30 b1
crw-r--r-- 1 root root 120, 17 Feb 15 00:30 b2
crw-r--r-- 1 root root 121, 17 Feb 15 00:30 braw
crw-r--r-- 1 root root 121, 33 Feb 15 00:30 status
crw-r--r-- 1 root root 121, 32 Feb 15 00:30 statusraw
I was stuck a few months ago trying to do this, and gave up;
maybe it was the same bug but I don't remember.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest &
candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
wish-info mailing list
https://lists.sourceforge.net/lists/listinfo/wish-info
Loading...