Sergio Ramos Suárez
2004-05-31 00:45:31 UTC
I compiled the wish 2.0 on my Via EPIA Mainboard! I modified the code in
red. I use 2.4.22 kernel. I load de module x10.o with no problems, and I
run the cm11ad and x10logd OK.
The problem is that I can't see the X10 driver status. It is always 000
(cat /dev/x10/a1). Too, when I send a "nbecho 1 > /dev/x10/a1" the
device don't turn on. The file /etc/x10/log is empty.
What can I do?
Thanks.
x10dataio_t *data = (x10dataio_t
*)kmalloc(sizeof(x10dataio_t),GFP_KERNEL);
if (x10api.us_connected != 1){
dbg("%s","/dev device opened without userspace connection");
return -EFAULT;
}
file->private_data = (void *)data;
..............
x10controlio_t *ctrl = (x10controlio_t
*)kmalloc(sizeof(x10controlio_t),GFP_KERNEL);
if (x10api.us_connected != 1){
dbg("%s","/dev device opened without userspace connection");
return -EFAULT;
}
file->private_data = (void *)ctrl;
..............
while (!x10mqueue_status(x10api.mqueue)){
//dbg("Blocking while sending message\n");
usleep(1000);
}
..............
while (!x10mqueue_status(x10api.mqueue)){
//dbg("Blocking while sending message\n");
usleep(1000);
}
It appears on my /var/log/messages.
May 18 12:57:37 wally kernel: x10: X10 driver successfully loaded<6>x10:
X10 driver unloaded<6>x10: X10 DEV module v2.0.0
(***@sprintmail.com)<6>x10: $Id: dev.c,v 1.15 2004/02/21 02:23:48 whiles
Exp whiles $
May 18 12:57:44 wally cm11ad[3770]: starting. api-device=/dev/x10/.api,
pidfile=/var/run/x10d.pid
May 18 12:57:44 wally cm11ad[3770]: Successfully opened X10 API device
/dev/x10/.api
This is the output of my ps -ax:
...
3771 pts/2 00:00:00 cm11ad
3772 pts/2 00:00:00 cm11ad <defunct>
...
Thanks
red. I use 2.4.22 kernel. I load de module x10.o with no problems, and I
run the cm11ad and x10logd OK.
The problem is that I can't see the X10 driver status. It is always 000
(cat /dev/x10/a1). Too, when I send a "nbecho 1 > /dev/x10/a1" the
device don't turn on. The file /etc/x10/log is empty.
What can I do?
Thanks.
x10dataio_t *data = (x10dataio_t
*)kmalloc(sizeof(x10dataio_t),GFP_KERNEL);
if (x10api.us_connected != 1){
dbg("%s","/dev device opened without userspace connection");
return -EFAULT;
}
file->private_data = (void *)data;
..............
x10controlio_t *ctrl = (x10controlio_t
*)kmalloc(sizeof(x10controlio_t),GFP_KERNEL);
if (x10api.us_connected != 1){
dbg("%s","/dev device opened without userspace connection");
return -EFAULT;
}
file->private_data = (void *)ctrl;
..............
while (!x10mqueue_status(x10api.mqueue)){
//dbg("Blocking while sending message\n");
usleep(1000);
}
..............
while (!x10mqueue_status(x10api.mqueue)){
//dbg("Blocking while sending message\n");
usleep(1000);
}
It appears on my /var/log/messages.
May 18 12:57:37 wally kernel: x10: X10 driver successfully loaded<6>x10:
X10 driver unloaded<6>x10: X10 DEV module v2.0.0
(***@sprintmail.com)<6>x10: $Id: dev.c,v 1.15 2004/02/21 02:23:48 whiles
Exp whiles $
May 18 12:57:44 wally cm11ad[3770]: starting. api-device=/dev/x10/.api,
pidfile=/var/run/x10d.pid
May 18 12:57:44 wally cm11ad[3770]: Successfully opened X10 API device
/dev/x10/.api
This is the output of my ps -ax:
...
3771 pts/2 00:00:00 cm11ad
3772 pts/2 00:00:00 cm11ad <defunct>
...
Thanks