|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
/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: -------------------------------------------- root@... modprobe x10 root@... /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) root@... ls /dev/x10 -bash: cd: /dev/x10: No such file or directory root@... ls CREDITS dev html kernel-patches Makefile scripts daemons example_scripts INSTALL License.txt RCS utils root@... 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' root@... 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 root@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 root@owfs:/dev/x10# ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wish-info mailing list wish-info@... https://lists.sourceforge.net/lists/listinfo/wish-info |
|
|
Re: /dev/x10 directory disappears on system rebootUbuntu 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-bounces@... [mailto:wish-info-bounces@...] On Behalf Of junkmail@... Sent: Thursday, March 01, 2007 12:26 AM To: wish-info@... Subject: [wish-info] /dev/x10 directory disappears on system reboot 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: -------------------------------------------- root@... modprobe x10 root@... /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) root@... ls /dev/x10 -bash: cd: /dev/x10: No such file or directory root@... ls CREDITS dev html kernel-patches Makefile scripts daemons example_scripts INSTALL License.txt RCS utils root@... 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' root@... 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 root@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 root@owfs:/dev/x10# ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wish-info mailing list wish-info@... https://lists.sourceforge.net/lists/listinfo/wish-info |
| Free Forum Powered by Nabble | Forum Help |