If it's worth anything to anyone - this now works for me...

I still haven't worked out why the irattach /dev/ttyS1 would not work
properly using SIR... but it does now <grrrrrr>.

Anyway I can also report that using nsc-ircc now also works. I'm unsure
of actual irlan communication etc though. I have set up irlan0 but don't
have another irlan device to communicate with over FIR (sob sob - hmmmm
time to buy another laptop <i wish>).

nsc-ircc was giving 

May 15 19:49:41 catonella kernel: nsc-ircc, Found chip at base=0x398
May 15 19:49:41 catonella kernel: nsc-ircc, driver loaded (Dag Brattli)
May 15 19:49:41 catonella kernel: nsc_ircc_open(), can't get iobase of
0x2f8

and also 

May 15 20:44:51 catonella irattach: + Hint: insmod errors can be caused
by incorrect module parameters, including invalid IO or IRQ parameters

I discovered the problem was that with RedHat (possibly since 6.2) the
kudzu hardware detection that occurs at boot discovers the serial
interface that the IR port was sitting on and loads it using the serial
driver _ONLY_. Should work fine for SIR (but initially didn't for me
with RedHat 7.3 but then mysteriously started working again).

My solution was to run the IrDA initialisation _before_ running kudzu.
On my RedHat 7.3 system kudzu runs with priority 05 so I just made IrDA
priority 4. I may have been nicer to tell kudzu leave port 0x2f8 alone
but I couldn't find an easy way to do it.

Bottom line is IrDA works for me with the following components:
- ASUS L8400B laptop
- IR Chip

[mngarimu@catonella log]$ sudo /usr/sbin/findchip -v
Found NSC PC87338 Controller at 0x398, DevID=0x0b, Rev. 2
    SIR Base 0x2f8, FIR Base 0x2f8
    IRQ = 3, DMA = 3
    Enabled: yes, Suspended: no
    UART compatible: yes
    Half duplex delay = 0 us

- BIOS configured IrDA on port 0x2f8 irq 3 SIR _or_ FIR (DMA=3)
- Configured IR port using /dev/ttyS1 (SIR) or using nsc-ircc.
- RedHat 7.3

Here is my modules.conf too...

# IrDA over a normal serial port, or a serial port compatible IrDA port
alias tty-ldisc-11 irtty

# IrCOMM (for printing, PPP, Minicom etc)
alias char-major-161 ircomm-tty     # if you want IrCOMM support

# IRLAN
alias irlan0 irlan

# To be able to attach some serial dongles
# These values are hard-coded in irattach (not instance order)
#alias irda-dongle-0 tekram          # Tekram IrMate IR-210B
#alias irda-dongle-1 esi             # ESI JetEye
#alias irda-dongle-2 actisys         # Actisys IR-220L
#alias irda-dongle-3 actisys         # Actisys IR-220L+
#alias irda-dongle-4 girbil          # Greenwich GIrBIL
#alias irda-dongle-5 litelink        # Parallax LiteLink
#alias irda-dongle-6 airport         # Adaptec Airport 1000 and 2000

# To use the FIR driver. This applies only to the specific device!!!
#options nsc-ircc dongle_id=0x09        # NSC driver on a IBM Thinkpad
laptop
#options nsc-ircc dongle_id=0x08        # HP Omnibook 6000

options nsc-ircc io=0x2f8 irq=3 dma=3 #dongle_id=0x0b
alias irda0 nsc-ircc

#alias irda0 smc-ircc

# IrNET module...
alias char-major-10-187 irnet       # Official allocation of IrNET

Hope this may help someone sometime...


_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to