Discussion:
[wish-info] /dev/x10 directory disappears on system reboot
j***@srjava.cjb.net
2007-03-01 05:26:15 UTC
Permalink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I installed wish on&nbsp; my ubuntu box, and have a strange problem.&nbsp; Every
time I reboot, the /dev/x10 directory disappears, and I have to re
make/make install to get it to reappear.&nbsp; Once I re-compile, it works
fine, I can send commands, etc no prob, but when I restart the box, the
folder disappears and I get this error when trying to start the daemon:<br>
<br>
<tt>pld opening /dev/x10/.api for API<br>
Error:&nbsp; Unable to open device /dev/x10/.api (No such file or directory)<br>
</tt><br>
Am I doing something really stupid or what's the deal?&nbsp; (I've included
the terminal output to show what I'm talking about at the bottom of
this email)<br>
<br>
My setup:<br>
Ubuntu&nbsp; 2.6.17-10-server <br>
Serial Powerlinc II (1132B)&nbsp; connected with a Prolific PL2303X&nbsp;
USB-to-Serial converter<br>
<br>
A couple other things:<br>
<br>
1)&nbsp; In order to compile/install on Ubuntu, I had to install the kernel
headers package:<br>
<br>
<tt>apt-get install linux-headers-`uname -r`</tt><br>
<br>
I was getting this error when attempting to make:&nbsp; <br>
<pre><tt>make: *** /lib/modules/2.6.17-10-server/build: No such file or directory. Stop.</tt></pre>
Maybe you could add that to the FAQ's or something so others might have
it there if the kernel headers aren't installed by default on their
distro?<br>
<font color="#000000"><br>
2)&nbsp; I have a powerlinc II serial, and the manual start commands on the
webpage are wrong.&nbsp; You have the daemon name wrong.&nbsp; It's listed as&nbsp;
/usr/sbin/pl and should be /usr/sbin/pl<b>d</b><br>
Page is:&nbsp; <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://wish.sourceforge.net/index2.html#Installation">http://wish.sourceforge.net/index2.html#Installation</a><br>
<br>
modprobe x10<br>
/usr/sbin/pld -device /dev/ttyS0<br>
/usr/sbin/x10logd&nbsp; <br>
</font><br>
<br>
-Scott J<br>
--------------------------------------------<br>
Here's the terminal output showing what I mean that the /dev/x10 folder
seems to go missing on me with every reboot:<br>
--------------------------------------------<br>
<tt><br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>
modprobe x10<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>
/usr/sbin/pld -device /dev/ttyUSB0
-debug<br>
pld, debug turned on<br>
OK...let's start<br>
pld opening /dev/x10/.api for API<br>
Error:&nbsp; Unable to open device /dev/x10/.api (No such file or directory)<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>&nbsp;
ls /dev/x10<br>
-bash: cd: /dev/x10: No such file or directory<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>
ls<br>
CREDITS&nbsp; dev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html&nbsp;&nbsp;&nbsp;&nbsp; kernel-patches&nbsp; Makefile&nbsp; scripts<br>
daemons&nbsp; example_scripts&nbsp; INSTALL&nbsp; License.txt&nbsp;&nbsp;&nbsp;&nbsp; RCS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; utils<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>
make<br>
(cd daemons; make)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/daemons'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/daemons'<br>
(cd utils; make)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/utils'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/utils'<br>
(cd dev; ./make.sh)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/dev'<br>
make -C /lib/modules/2.6.17-10-server/build
SUBDIRS=/usr/src/x10dev-2.1.5/dev modules<br>
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-10-server'<br>
scripts/Makefile.build:56: kbuild: /usr/src/x10dev-2.1.5/dev/Makefile -
Usage of O_TARGET := x10.ko is obsolete in 2.6. Please fix!<br>
&nbsp; Building modules, stage 2.<br>
&nbsp; MODPOST<br>
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-10-server'<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/dev'<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>
make install<br>
sh ./scripts/install.sh<br>
cp -f daemons/*d /usr/sbin/<br>
cp -f utils/x10logd /usr/sbin/<br>
cp -f utils/x10watch /usr/bin/<br>
cp -f utils/nbread /usr/bin/<br>
cp -f utils/nbecho /usr/bin/<br>
sh ./scripts/makedev.sh<br>
Creating X10 devices in /dev/x10 with data_major=120 and
control_major=121<br>
(cd dev; ./make.sh install)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/dev'<br>
mkdir -p /lib/modules/2.6.17-10-server/kernel/drivers/char/x10<br>
cp -f x10.ko /lib/modules/2.6.17-10-server/kernel/drivers/char/x10<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/dev'<br>
depmod<br>
***@owfs:/dev/x10# /usr/sbin/pld -device /dev/ttyUSB0 -debug<br>
pld, debug turned on<br>
OK...let's start<br>
pld opening /dev/x10/.api for API<br>
pld starting<br>
device=/dev/x10/.api<br>
pidfile=/var/run/x10d.pid<br>
logtag=pld<br>
X10 message: src=0x4, hc=0x0, uc=0x0, cmd=0x2, f=0x0<br>
***@owfs:/dev/x10#</tt><br>
<br>
<br>
<br>
</body>
</html>
WSH
2007-03-01 13:18:24 UTC
Permalink
Ubuntu systems do not appear to have /etc/udev/devices. Try creating the
directory /etc/udev/devices and then rerun the script to create the devices.
If Ubuntu honors the convention of looking for static devices in
/etc/udev/devices, it will recreate your device files when the machine
starts. The other option is to add a call to the script that creates the
devices in your startup before the drivers are loaded.

Scott

_____

From: wish-info-***@lists.sourceforge.net
[mailto:wish-info-***@lists.sourceforge.net] On Behalf Of
***@srjava.cjb.net
Sent: Thursday, March 01, 2007 12:26 AM
To: wish-***@lists.sourceforge.net
Subject: [wish-info] /dev/x10 directory disappears on system reboot


I installed wish on my ubuntu box, and have a strange problem. Every time
I reboot, the /dev/x10 directory disappears, and I have to re make/make
install to get it to reappear. Once I re-compile, it works fine, I can send
commands, etc no prob, but when I restart the box, the folder disappears and
I get this error when trying to start the daemon:

pld opening /dev/x10/.api for API
Error: Unable to open device /dev/x10/.api (No such file or directory)

Am I doing something really stupid or what's the deal? (I've included the
terminal output to show what I'm talking about at the bottom of this email)

My setup:
Ubuntu 2.6.17-10-server
Serial Powerlinc II (1132B) connected with a Prolific PL2303X
USB-to-Serial converter

A couple other things:

1) In order to compile/install on Ubuntu, I had to install the kernel
headers package:

apt-get install linux-headers-`uname -r`

I was getting this error when attempting to make:

make: *** /lib/modules/2.6.17-10-server/build: No such file or directory.
Stop.
Maybe you could add that to the FAQ's or something so others might have it
there if the kernel headers aren't installed by default on their distro?

2) I have a powerlinc II serial, and the manual start commands on the
webpage are wrong. You have the daemon name wrong. It's listed as
/usr/sbin/pl and should be /usr/sbin/pld
Page is: http://wish.sourceforge.net/index2.html#Installation

modprobe x10
/usr/sbin/pld -device /dev/ttyS0
/usr/sbin/x10logd


-Scott J
--------------------------------------------
Here's the terminal output showing what I mean that the /dev/x10 folder
seems to go missing on me with every reboot:
--------------------------------------------

***@owfs:/usr/src/x10dev-2.1.5# modprobe x10
***@owfs:/usr/src/x10dev-2.1.5# /usr/sbin/pld -device /dev/ttyUSB0 -debug
pld, debug turned on
OK...let's start
pld opening /dev/x10/.api for API
Error: Unable to open device /dev/x10/.api (No such file or directory)
***@owfs:/usr/src/x10dev-2.1.5# ls /dev/x10
-bash: cd: /dev/x10: No such file or directory
***@owfs:/usr/src/x10dev-2.1.5# ls
CREDITS dev html kernel-patches Makefile scripts
daemons example_scripts INSTALL License.txt RCS utils
***@owfs:/usr/src/x10dev-2.1.5# make
(cd daemons; make)
make[1]: Entering directory `/usr/src/x10dev-2.1.5/daemons'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/daemons'
(cd utils; make)
make[1]: Entering directory `/usr/src/x10dev-2.1.5/utils'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/utils'
(cd dev; ./make.sh)
make[1]: Entering directory `/usr/src/x10dev-2.1.5/dev'
make -C /lib/modules/2.6.17-10-server/build
SUBDIRS=/usr/src/x10dev-2.1.5/dev modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-10-server'
scripts/Makefile.build:56: kbuild: /usr/src/x10dev-2.1.5/dev/Makefile -
Usage of O_TARGET := x10.ko is obsolete in 2.6. Please fix!
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-10-server'
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/dev'
***@owfs:/usr/src/x10dev-2.1.5# make install
sh ./scripts/install.sh
cp -f daemons/*d /usr/sbin/
cp -f utils/x10logd /usr/sbin/
cp -f utils/x10watch /usr/bin/
cp -f utils/nbread /usr/bin/
cp -f utils/nbecho /usr/bin/
sh ./scripts/makedev.sh
Creating X10 devices in /dev/x10 with data_major=120 and control_major=121
(cd dev; ./make.sh install)
make[1]: Entering directory `/usr/src/x10dev-2.1.5/dev'
mkdir -p /lib/modules/2.6.17-10-server/kernel/drivers/char/x10
cp -f x10.ko /lib/modules/2.6.17-10-server/kernel/drivers/char/x10
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/dev'
depmod
***@owfs:/dev/x10# /usr/sbin/pld -device /dev/ttyUSB0 -debug
pld, debug turned on
OK...let's start
pld opening /dev/x10/.api for API
pld starting
device=/dev/x10/.api
pidfile=/var/run/x10d.pid
logtag=pld
X10 message: src=0x4, hc=0x0, uc=0x0, cmd=0x2, f=0x0
***@owfs:/dev/x10#
j***@srjava.cjb.net
2007-03-01 05:24:14 UTC
Permalink
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I installed wish on&nbsp; my ubuntu box, and have a strange problem.&nbsp; Every
time I reboot, the /dev/x10 directory disappears, and I have to re
make/make install to get it to reappear.&nbsp; Once I re-compile, it works
fine, I can send commands, etc no prob, but when I restart the box, the
folder disappears and I get this error when trying to start the daemon:<br>
<br>
<tt>pld opening /dev/x10/.api for API<br>
Error:&nbsp; Unable to open device /dev/x10/.api (No such file or directory)<br>
</tt><br>
Am I doing something really stupid or what's the deal?&nbsp; (I've included
the terminal output to show what I'm talking about at the bottom of
this email)<br>
<br>
My setup:<br>
Ubuntu&nbsp; 2.6.17-10-server <br>
Serial Powerlinc II (1132B)&nbsp; connected with a Prolific PL2303X&nbsp;
USB-to-Serial converter<br>
<br>
A couple other things:<br>
<br>
1)&nbsp; In order to compile/install on Ubuntu, I had to install the kernel
headers package:<br>
<br>
<tt>apt-get install linux-headers-`uname -r`</tt><br>
<br>
I was getting this error when attempting to make:&nbsp; <br>
<pre><tt>make: *** /lib/modules/2.6.17-10-server/build: No such file or directory. Stop.</tt></pre>
Maybe you could add that to the FAQ's or something so others might have
it there if the kernel headers aren't installed by default on their
distro?<br>
<font color="#000000"><br>
2)&nbsp; I have a powerlinc II serial, and the manual start commands on the
webpage are wrong.&nbsp; You have the daemon name wrong.&nbsp; It's listed as&nbsp;
/usr/sbin/pl and should be /usr/sbin/pl<b>d</b><br>
Page is:&nbsp; <a class="moz-txt-link-freetext" href="http://wish.sourceforge.net/index2.html#Installation">http://wish.sourceforge.net/index2.html#Installation</a><br>
<br>
modprobe x10<br>
/usr/sbin/pld -device /dev/ttyS0<br>
/usr/sbin/x10logd&nbsp; <br>
</font><br>
<br>
-Scott J<br>
--------------------------------------------<br>
Here's the terminal output showing what I mean that the /dev/x10 folder
seems to go missing on me with every reboot:<br>
--------------------------------------------<br>
<tt><br>
<a class="moz-txt-link-abbreviated" href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a> modprobe x10<br>
<a class="moz-txt-link-abbreviated" href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a> /usr/sbin/pld -device /dev/ttyUSB0
-debug<br>
pld, debug turned on<br>
OK...let's start<br>
pld opening /dev/x10/.api for API<br>
Error:&nbsp; Unable to open device /dev/x10/.api (No such file or directory)<br>
<a class="moz-txt-link-abbreviated" href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a>&nbsp; ls /dev/x10<br>
-bash: cd: /dev/x10: No such file or directory<br>
<a class="moz-txt-link-abbreviated" href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a> ls<br>
CREDITS&nbsp; dev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html&nbsp;&nbsp;&nbsp;&nbsp; kernel-patches&nbsp; Makefile&nbsp; scripts<br>
daemons&nbsp; example_scripts&nbsp; INSTALL&nbsp; License.txt&nbsp;&nbsp;&nbsp;&nbsp; RCS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; utils<br>
<a class="moz-txt-link-abbreviated" href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a> make<br>
(cd daemons; make)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/daemons'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/daemons'<br>
(cd utils; make)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/utils'<br>
make[1]: Nothing to be done for `all'.<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/utils'<br>
(cd dev; ./make.sh)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/dev'<br>
make -C /lib/modules/2.6.17-10-server/build
SUBDIRS=/usr/src/x10dev-2.1.5/dev modules<br>
make[2]: Entering directory `/usr/src/linux-headers-2.6.17-10-server'<br>
scripts/Makefile.build:56: kbuild: /usr/src/x10dev-2.1.5/dev/Makefile -
Usage of O_TARGET := x10.ko is obsolete in 2.6. Please fix!<br>
&nbsp; Building modules, stage 2.<br>
&nbsp; MODPOST<br>
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-10-server'<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/dev'<br>
<a class="moz-txt-link-abbreviated" href="mailto:***@owfs:/usr/src/x10dev-2.1.5#">***@owfs:/usr/src/x10dev-2.1.5#</a> make install<br>
sh ./scripts/install.sh<br>
cp -f daemons/*d /usr/sbin/<br>
cp -f utils/x10logd /usr/sbin/<br>
cp -f utils/x10watch /usr/bin/<br>
cp -f utils/nbread /usr/bin/<br>
cp -f utils/nbecho /usr/bin/<br>
sh ./scripts/makedev.sh<br>
Creating X10 devices in /dev/x10 with data_major=120 and
control_major=121<br>
(cd dev; ./make.sh install)<br>
make[1]: Entering directory `/usr/src/x10dev-2.1.5/dev'<br>
mkdir -p /lib/modules/2.6.17-10-server/kernel/drivers/char/x10<br>
cp -f x10.ko /lib/modules/2.6.17-10-server/kernel/drivers/char/x10<br>
make[1]: Leaving directory `/usr/src/x10dev-2.1.5/dev'<br>
depmod<br>
***@owfs:/dev/x10# /usr/sbin/pld -device /dev/ttyUSB0 -debug<br>
pld, debug turned on<br>
OK...let's start<br>
pld opening /dev/x10/.api for API<br>
pld starting<br>
device=/dev/x10/.api<br>
pidfile=/var/run/x10d.pid<br>
logtag=pld<br>
X10 message: src=0x4, hc=0x0, uc=0x0, cmd=0x2, f=0x0<br>
***@owfs:/dev/x10#</tt><br>
<br>
<br>
<br>
</body>
</html>

Loading...