[ltp] IrDA on a T42p?

Marius Gedminas linux-thinkpad@linux-thinkpad.org
Sat, 3 Jun 2006 01:36:52 +0300


--ep0oHQY+/Gbo/zt0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 01, 2006 at 12:12:47PM -0400, Norman Walsh wrote:
> I'll skip the long story. I have an old Palm Pilot that I want to send
> a program to. The 42p doesn't have a serial port and I can't make the
> USB/Serial connector talk to the Palm (it talks to my Garmin GPS just
> fine). So I thought I'd use IrDA.

I've gotten IrDA to work on my T42 a few times.

> I installed the IrDA tools and I now see this in dmesg:
>=20
> [4294686.556000] irda_init()
> [4294686.556000] NET: Registered protocol family 23
> [4294686.578000] ts: Compaq touchscreen protocol output
> [4294686.593000] **** SET: Misaligned resource pointer: f7c54242 Type 00 =
Len 42
> [4294686.593000] **** SET: Misaligned resource pointer: f7c542c6 Type 07 =
Len 0
> [4294686.593000] pnp: Device 00:0b activated.
> [4294686.593000] nsc_ircc_pnp_probe() : Found cfg_base 0x000 ; firbase 0x=
2F8 ; irq 3 ; dma 1.
> [4294686.593000] nsc-ircc, Found chip at base=3D0x000
> [4294686.593000] nsc-ircc, driver loaded (Dag Brattli)
> [4294686.593000] IrDA: Registered device irda0
> [4294686.593000] nsc-ircc, Found dongle: HP HSDL-1100/HSDL-2100

HP?  This does not seem right.  You need to pass the 'dongle_id=3D0x09'
option when modprobing nsc-ircc.

> [4294686.594000] nsc-ircc, Found chip at base=3D0x02e
> [4294686.594000] nsc-ircc, driver loaded (Dag Brattli)
> [4294686.594000] nsc_ircc_open(), can't get iobase of 0x2f8
> [4294686.746000] Unable to handle kernel NULL pointer dereference at virt=
ual address 00000004

Oops.  Reboot before trying again.

> That doesn't look good :-). Anyone got it working? Pointers, etc.,
> appreciated.

This should work on Debian/Ubuntu:

  # dpkg-reconfigure irda-utils
      Enable on startup?  Yes
      Probe on bootup?  Yes
      Discovery mode?  No
      Device type: native
      FIR: nsc-ircc
      module options: dongle_id=3D0x09 io=3D0x2f8 irq=3D3 dma=3D3
      Port for setserial to quiet: /dev/ttyS1
  # /etc/init.d/irda-utils restart

(I'm pretty sure I had the same settings on my T23 as well, BTW.  Most
of the Thinkpads have the same IrDA hardware.)

I lose my IrDA port on every suspend until I restart /etc/init.d/irda-utils.

(I've also edited /etc/modprobe.d/irda-utils manually and added this line:

  install nsc-ircc /bin/setserial /dev/ttyS1 uart none port 0 irq 0; /sbin/=
modprobe --ignore-install nsc-ircc

The "Port for setserial to quiet" option above should already take care
of this, and I don't remember why exactly I edited the modprobe file,
and whether it helped whatever I was trying to achieve, or not.)

HTH,
Marius Gedminas
--=20
=2E.. there is always a well-known solution to every human problem -- neat,
plausible, and wrong.
		-- H. L. Mencken (1880-1956), "Prejudices"

--ep0oHQY+/Gbo/zt0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEgL2EkVdEXeem148RAuiOAJkBTwaUd7pe6VYHGF9RyqFuxgA4ZgCfYZQG
kFmT1dtEXRPbp9B25zjFx1A=
=lgOv
-----END PGP SIGNATURE-----

--ep0oHQY+/Gbo/zt0--