From: Louis-Benoit J. <th...@gm...> - 2005-12-22 11:57:46
|
Hi, I'm using: >uname -a Linux louve 2.6.9-gentoo-r1 #7 Fri Nov 18 15:02:07 CET 2005 i686 Intel(R) Pentium(R) M processor 1400MHz GenuineIntel GNU/Linux in modules.conf, I have: alias irda0 smsc_ircc2 I run the following commands in this order: - smcinit -v -f 0x0130 -s 0x2f8 -d1 -i3 - modprobe smsc_ircc2 That loads the driver correctly: Dec 21 11:37:00 louve kernel: NET: Registered protocol family 23 Dec 21 11:37:00 louve kernel: found SMC SuperIO Chip (devid=3D0x5a rev=3D00 base=3D0x002e): LPC47N227 Dec 21 11:37:00 louve kernel: smsc_superio_flat(): fir: 0x130, sir: 0x2f8, dma: 01, irq: 3, mode: 0x8a Dec 21 11:37:00 louve kernel: SMsC IrDA Controller found Dec 21 11:37:00 louve kernel: IrCC version 2.0, firport 0x130, sirport 0x2f8 dma=3D1, irq=3D3 Dec 21 11:37:00 louve kernel: No transceiver found. Defaulting to Fast pin select Dec 21 11:37:00 louve kernel: IrDA: Registered device irda0 And I can see the interface is configured: >/sbin/ifconfig irda0 irda0 Link encap:IrLAP HWaddr 65:64:08:04 NOARP MTU:2048 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:8 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:3 Base address:0x130 Now, I irattach irda0: Dec 21 11:38:56 louve irattach: executing: '/sbin/modprobe irda0' Dec 21 11:38:56 louve irattach: executing: 'echo louve > /proc/sys/net/irda/devname' Dec 21 11:38:56 louve irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery' Dec 21 11:38:56 louve irattach: Starting device irda0 I can see the interface is up: >/sbin/ifconfig irda0 irda0 Link encap:IrLAP HWaddr 65:64:08:04 UP RUNNING NOARP MTU:2048 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:8 RX bytes:0 (0.0 b) TX bytes:30 (30.0 b) Interrupt:3 Base address:0x130 setserial says: >setserial /dev/ttyS0 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 >setserial /dev/ttyS1 /dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3 But, irdadump reports nothing. It looks like it's not configured properly. I put my phone in front of the irda receiver, nothing is being filtered. Should irdadump report something? Then, I load the drivers for ircomm_tty (in modules.conf, I have: alias tty-ldisc-11 irtty alias char-major-161 ircomm_tty) and I try to sync my pilot by irda on /dev/ircomm0, it doesn't work. The smcinit page says the sir port is supposed to be on 0x3f8. Whenever I configure the port with smcinit to 0x3f8 and then I try to load the module smsc_ircc2, it fails with: Dec 21 11:23:09 louve kernel: NET: Registered protocol family 23 Dec 21 11:23:09 louve kernel: found SMC SuperIO Chip (devid=3D0x5a rev=3D00 base=3D0x002e): LPC47N227 Dec 21 11:23:09 louve kernel: smsc_superio_flat(): fir: 0x130, sir: 0x3f8, dma: 01, irq: 3, mode: 0x8a Dec 21 11:23:09 louve kernel: smsc_ircc_present: can't get sir_base of 0x3f= 8 So I think my ports are good. Any idea what is going wrong with my settings? Thanks a lot in advance, LB -- LB, lb...@jo... -- http://www.jourdain.org |