OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Debian => Topic started by: LinuxGadget on January 04, 2008, 05:11:23 pm

Title: Irda-device On Eabi
Post by: LinuxGadget on January 04, 2008, 05:11:23 pm
Hi all,

my C1k is running EABi on 2.6.22.9-yonggun.  Tried to setup the irda-stuff. So installed irda and irda-utils.
Now, when am doing
Code: [Select]
irattach /dev/ttySx (x=0,...,2)it gives in /var/log/messages:
Code: [Select]
Jan  4 22:53:43 Zaurus irattach: Stopping device /dev/ttyS2
Jan  4 22:53:43 Zaurus irattach: ioctl(SIOCGIFFLAGS): No such device
Jan  4 22:53:43 Zaurus irattach: exiting ...
But in /var/log/dmesg are theses devices:
Code: [Select]
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART
and ls -l /dev/ttyS*
Code: [Select]
crw-rw-rw- 1 root dialout 4, 64 Jan  4 20:44 /dev/ttyS0
crw-rw-rw- 1 root dialout 4, 65 Jan  4 20:44 /dev/ttyS1
crw-rw-rw- 1 root dialout 4, 66 Jan  4 20:44 /dev/ttyS2

So, where am i missing the point   ?
Title: Irda-device On Eabi
Post by: Vitel on January 05, 2008, 08:29:49 pm
Try this, it works for me on the same kernel:
Code: [Select]
modprobe pxaficp_ir
modprobe ircomm
modprobe ircomm_tty
irattach irda0 -s
After this /dev/ircomm0 is ready to use.
Title: Irda-device On Eabi
Post by: LinuxGadget on January 06, 2008, 04:44:24 am
 Thanks, Vitel! Irda is working perfectly.
Now let's see if  my Polar Hrm is syncing with my Z.  
Title: Irda-device On Eabi
Post by: jpmatrix on January 06, 2008, 07:11:11 am
(smile) this article will soon be wikified! (smile)

so far for me:

1) i had to apt-get install irda-utils

2) i had to create the /dev/ircomm0 device node :

mknod /dev/ircomm0 c 161 0

3) then :

modprobe pxaficp_ir
modprobe ircomm
modprobe ircomm_tty
irattach irda0 -s

4) i modprobe irda too

5) now wammu can see my nokia 6021 !
and it seems to retrive the infos!!!

thanks everybody !
Title: Irda-device On Eabi
Post by: LinuxGadget on January 06, 2008, 10:52:55 am
Quote from: jpmatrix
(smile) this article will soon be wikified! (smile)

Excellent idea!  

Maybe you could also add your steps setting up bluetooth?  https://www.oesf.org/forum/index.php?showto...mp;hl=bluetooth (https://www.oesf.org/forum/index.php?showtopic=24736&hl=bluetooth), did the job for me. Had some troubles with pairing, but now my S-E K320i syncs with some quirks on my Z (opensync+evolution+contacts). Really nice