Hi,
thank you thank you thank you!!!
I finally have irda working on my Sony Vaio N505X thanks to this thread.
I mailed the list earlier on as I had run out of ideas to get the SIR
(ircomm or irtty) working with my machine - I still don't have it working,
but the nsc-ircc works beautifully, and so does my Ericsson DI27 irda modem.
Just for the benefit of fellow sufferers, here's a summary of a working recipe
(thanks to those in the thread above me):
system: Debian Gnu/Linux 2.1 ('slink') glibc 2.0.7
kernel: 2.2.15-pre5; I constructed this from:
pure 2.2.14 source
patched with pre-patch-2.2.15-5.bz2 (from ftp.uk.kernel.org)
patched with usb-2.3.39-for-2.2.14.diff (usb backport)
kernel config:
...
# IrDA (infrared) support
CONFIG_IRDA=m
CONFIG_IRLAN=m
CONFIG_IRCOMM=m
CONFIG_IRDA_ULTRA=y
CONFIG_IRDA_OPTIONS=y
CONFIG_IRDA_CACHE_LAST_LSAP=y
# CONFIG_IRDA_FAST_RR is not set
CONFIG_IRDA_DEBUG=y
CONFIG_IRDA_COMPRESSION=y
CONFIG_IRDA_DEFLATE=m
# Infrared-port device drivers
CONFIG_IRTTY_SIR=m
CONFIG_IRPORT_SIR=m
CONFIG_NSC_FIR=m
CONFIG_WINBOND_FIR=m
CONFIG_TOSHIBA_FIR=m
CONFIG_SMC_IRCC_FIR=m
# CONFIG_DONGLE is not set
...
CONFIG_SERIAL=m
irdautils version: 0.9.9 - some errors (irdadump won't build yet) but the
important stuff builds.
module configuration (/etc/modules on my system):
nsc-ircc dongle_id=0x09
ircomm
ircomm-tty
irlan
serial
Of course nsc-ircc loads irda automatically, and I need to do this before
serial or else it snarfs the irda port as a serial port.
findchip output now shows:
acronym:~# /usr/local/sbin/findchip -v
Found NSC PC87338 Controller at 0x398, DevID=0x0b, Rev. 2
SIR Base 0x3e8, FIR Base 0x3e8
IRQ = 10, DMA = 0
Enabled: yes, Suspended: no
UART compatible: yes
Half duplex delay = 0 us
I then do:
irattach irda0 -s1
ifconfig irda0 10.0.0.1 netmask 255.0.0.0
and I see the following in syslog:
Feb 1 02:49:27 acronym kernel: IrDA (tm) Protocols for Linux-2.2 (Dag Brattli)
Feb 1 02:49:27 acronym kernel: nsc-ircc, Found chip at base=0x398
Feb 1 02:49:27 acronym kernel: nsc-ircc, driver loaded (Dag Brattli)
Feb 1 02:49:27 acronym kernel: IrDA: Registered device irda0
Feb 1 02:49:27 acronym kernel: nsc-ircc, Using dongle: IBM31T1100 or Temic
TFDS6000/TFDS6500
Feb 1 02:49:34 acronym kernel: IrCOMM protocol (Dag Brattli)
Feb 1 02:49:47 acronym irattach: device=irda0
Feb 1 02:49:47 acronym irattach: FIR device
Feb 1 02:49:47 acronym irattach: executing: '/sbin/modprobe irda0'
Feb 1 02:49:47 acronym irattach: + can't locate module irda0
Feb 1 02:49:47 acronym irattach: Trying to load module irda0 exited with status 1
Feb 1 02:49:47 acronym irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Feb 1 02:49:47 acronym irattach: FIR device (2)
Feb 1 02:49:47 acronym irattach: Starting device irda0
Feb 1 02:49:47 acronym kernel: irlap_change_speed(), setting speed to 9600
Feb 1 02:49:47 acronym irattach: executing: 'echo acronym >
/proc/sys/net/irda/devname'
After this, I see my Ericsson DI27 in /proc/net/irda/discovery:
acronym:~# cat /proc/net/irda/discovery
IrLMP: Discovery log:
nickname: DI 27, hint: 0x9104, saddr: 0x4712ef77, daddr: 0x0dc195bd
and I can see the packet counts increasing on the irda0 network interface.
I can also ping the DI27 with irdaping (using it's dest addr of 0x0dc195bd).
acronym:~# irdaping 0x0dc15bd
IrDA ping (0x0dc195bd): 32 bytes
32 bytes from 0x0dc195bd: irda_seq=0 time=108.95 ms.
32 bytes from 0x0dc195bd: irda_seq=1 time=108.43 ms.
32 bytes from 0x0dc195bd: irda_seq=2 time=108.23 ms.
32 bytes from 0x0dc195bd: irda_seq=3 time=108.24 ms.
32 bytes from 0x0dc195bd: irda_seq=4 time=108.27 ms.
^C32 bytes from 0x0dc195bd: irda_seq=5 time=108.26 ms.
6 packets received by filter
Once I'm at this stage I can dial just like a normal modem:
acronym:/home/simon# dip -t
DIP: Dialup IP Protocol Driver version 3.3.7p-uri (25 Dec 96)
Written by Fred N. van Kempen, MicroWalt Corporation.
Debian version 3.3.7p-2 (debian).
DIP> port ircomm0
DIP> term
[ Entering TERMINAL mode. Use CTRL-] to get back ]
ATI0
Ericsson DI 27 Infrared Modem
OK
I tried a 15 minute dial-up, and everything seemed fine.
This is rather handy, as my small remaing windows installation has lately
decided to not work with either irda or serial ports, and now I don't even
care.
Thanks very much to those working on linux-irda (:
Simon
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda