[ltp] IRDA setup on tp600x

Thomas Porter linux-thinkpad@www.bm-soft.com
Fri, 29 Sep 2000 14:43:25 -0400


INFO:

Sorry if I reposted this, I thought I was sub'ed to thi list and was
not, so I might have missed any responses.

Please repost any responses or email to txporter@mindspring.com if
possible.

Thanks,

Tom Porter

When I try to bring up irda I get the following errors posted to
/var/log/messages:

Sep 29 11:07:34 traveller irmanager: executing: 'echo 1 >
/proc/sys/net/irda/discovery'
Sep 29 11:07:34 traveller irmanager: executing: 'echo traveller >
/proc/sys/net/irda/devname'
Sep 29 11:07:34 traveller irda: irmanager startup succeeded
Sep 29 11:07:34 traveller irmanager: + 1.1 Tue Nov  9 15:30:55 1999 Dag
Brattli
Sep 29 11:07:34 traveller irmanager: + 1.1 Tue Nov  9 15:30:55 1999 Dag
Brattli
Sep 29 11:07:34 traveller irattach: tcsetattr: Input/output error  ###
this seems to be a problem!!
Sep 29 11:07:34 traveller 1.1 Tue Nov  9 15:30:55 1999 Dag Brattli 



- Distro RH 6.1 w/ extendive updates
- irda-utils installed
- findchip yields:
[root@traveller linux]# findchip -v
Found NSC PC87338 Controller at 0x2e, DevID=0x0b, Rev. 2
    SIR Base 0x2f8, FIR Base 0x2f8
    IRQ = 5, DMA = -1
    Enabled: yes, Suspended: no
    UART compatible: yes
    Half duplex delay = 0 us

I issued tpctl -rs2=enable prior to this

- setserial /dev/ttyS1 gives:
[root@traveller linux]# setserial /dev/ttyS1
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 5

- /etc/irda/drivers has this for the start section:
case "${action:?}" in
'start')
        irattach /dev/ttyS1          # The second serial port is an IrDA
port


- /etc/rc.d/init.d/irda has in the start section:

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting irmanager: "
        daemon irmanager -d 1
        echo
        ;;
- irmanager is running.

- /proc/misc has in it:
 63 irda

Should this reflect the major number of any devices I create for
/dev/ir....?  The IR-HOWTO talks about doing the following:
# IrDA
alias tty-ldisc-11 irtty
alias char-major-161 ircomm-tty
Note: The format of this entries has changed! Then do a depmod -a to
update, and then
ircomm should be automagically loaded when you need it. Here is what you
need in /dev:
dagbnb /usr/src/ > ll /dev/ir*
crw------- 1 dagb 161, 0 Aug 25 20:13 /dev/ircomm0
crw-rw-rw- 1 root 161, 1 Jun 18 13:44 /dev/ircomm1
crw-rw-rw- 1 root 161, 16 Jun 18 13:44 /dev/irlpt0
crw-rw-rw- 1 root 161, 17 Jun 18 13:44 /dev/irlpt1

I have done the alias in conf.modules, setting it to char-major-63, and
created a /dev/ircomm0 like so:
[root@traveller /dev]# ls -la /dev/ircomm0
crw-rw-rw-   1 root     root      63,   0 Sep 29 13:15 /dev/ircomm0

But I still get the errors in the log.




Any help or further pointers would be great.  I would love to either
sync my palm or use IR printing, BUT the Red Hat kernel 2.2.16 source
RPM I loaded does not seem to have any IR lpt support in it!!  I do not
get any config questions regarding IR printing, as I have seen listed on
some pages regarding Linux irda.  

I have tried to get subscribed to the Linux-IRda list but at least from
where I am, I cannot get to any hosts associated with any machines or
web pages around cs.uit.no, so I can't see any of the snapshots or
mailing list archives.


-- 
Tom Porter                                   txporter@mindspring.com
--------------------------------------------------------------------
"On two occasions I have been asked [by members of Parliament], 
'Pray, Mr. Babbage, if you put into the machine wrong figures, will 
the right answers come out?'  I am not able rightly to apprehend the 
kind of confusion of ideas that could provoke such a question."
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html