From: Christian T. <chr...@gm...> - 2007-04-29 16:23:46
|
Hello, I'm trying to use a igorplugusb module on my PS3 (ppc64) but it seems there is a problem. Kernel is 2.6.21.1 (also tried with 2.6.20), can't really go for 2.6.19 because the ps3-specific stuff was added in 2.6.20. I tried with lirc-0.8.2-pre1 lirc-0.8.2-pre2 and lirc-0.8.1 (with SLAB -> GFP patch) all with the same result: mode2 or the first application accessing a running lircd crashes, attached my log: Apr 28 06:43:53 ps3 kernel: lirc_dev: IR Remote Control driver registered, at major 61 Apr 28 06:43:53 ps3 kernel: Apr 28 06:43:53 ps3 kernel: lirc_igorplugusb: USB remote driver for LIRC v0.1 Apr 28 06:43:53 ps3 kernel: lirc_igorplugusb: Jan M. Hochstein <hoc...@al...> Apr 28 06:43:53 ps3 kernel: usbcore: registered new interface driver lirc_igorplugusb Apr 28 06:44:56 ps3 kernel: usb 1-2.4: new low speed USB device using ps3-ehci-driver and address 5 Apr 28 06:44:57 ps3 kernel: usb 1-2.4: configuration #1 chosen from 1 choice Apr 28 06:44:57 ps3 kernel: lirc_dev: lirc_register_plugin: sample_rate: 10 Apr 28 06:44:57 ps3 kernel: lirc_igorplugusb[5]: Ing. Igor Cesko, Copyright(c) 2003 IgorPlug-USB (AVR) on usb1:5 Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: lircd(igorplugusb) ready Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: accepted new client on /dev/lircd Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: could not get hardware features Apr 28 06:50:08 ps3 kernel: ioctl32(lircd:30065): Unknown cmd fd(7) cmd(40046900){00} arg(1002b540) on /dev/lirc Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: this device driver does not support the new LIRC interface Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: make sure you use a current version of the driver Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: caught signal and a strace of mode2: # strace mode2 execve("/usr/local/bin/mode2", ["mode2"], [/* 24 vars */]) = 0 brk(0) = 0x10012000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7ffe000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=69472, ...}) = 0 mmap(NULL, 69472, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf7fed000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\17]\330"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1723972, ...}) = 0 mmap(0xf5c0000, 1515916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf5c0000 mprotect(0xf71c000, 61440, PROT_NONE) = 0 mmap(0xf72b000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15b000) = 0xf72b000 mmap(0xf730000, 8588, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf730000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7fec000 mprotect(0xf72b000, 16384, PROT_READ) = 0 mprotect(0xffed000, 4096, PROT_READ) = 0 munmap(0xf7fed000, 69472) = 0 open("/dev/lirc", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFCHR|0644, st_rdev=makedev(61, 0), ...}) = 0 fstat64(3, {st_mode=S_IFCHR|0644, st_rdev=makedev(61, 0), ...}) = 0 ioctl(3, I2OLCTGET, 0xff95475c) = -1 EINVAL (Invalid argument) fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7ffd000 write(1, "This program is only intended fo"..., 78This program is only intended for receivers supporting the pulse/space layer. ) = 78 write(1, "Note that this is no error, but "..., 76Note that this is no error, but this program simply makes no sense for your ) = 76 write(1, "receiver.\n", 10receiver. ) = 10 write(1, "In order to test your setup run "..., 70In order to test your setup run lircd with the --nodaemon option and ) = 70 write(1, "then check if the remote works w"..., 50then check if the remote works with the irw tool. ) = 50 close(3) = 0 exit_group(1) = ? Process 30096 detached Any ideas? Is this a general problem with newer kernels or maybe ppc64/ps3 specific? Thanks and best regards, Christian |
From: <li...@ba...> - 2007-04-29 20:04:42
|
Hi! Christian Tramnitz "chr...@gm..." wrote: > I'm trying to use a igorplugusb module on my PS3 (ppc64) but it seems > there is a problem. [...] > Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: lircd(igorplugusb) ready > Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: accepted new client on /dev/lircd > Apr 28 06:50:08 ps3 lircd-0.8.1[30065]: could not get hardware features > Apr 28 06:50:08 ps3 kernel: ioctl32(lircd:30065): Unknown cmd fd(7) > cmd(40046900){00} arg(1002b540) on /dev/lirc The ioctl request number is bogus. LIRC_GET_FEATURES should be 80046900 but it is 40046900. You should check your ioctl.h header file, why this happens. Christoph |
From: Christian T. <chr...@gm...> - 2007-04-29 21:44:22
|
Christoph Bartelmus schrieb: > Hi! > > The ioctl request number is bogus. LIRC_GET_FEATURES should be 80046900 > but it is 40046900. > You should check your ioctl.h header file, why this happens. > > Christoph Any suggestions what to look after in ioctl.h? Thanks, Christian |