[ltp] IrDA on a T42p?
Marius Gedminas
linux-thinkpad@linux-thinkpad.org
Mon, 5 Jun 2006 11:02:49 +0300
--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Jun 04, 2006 at 04:54:52PM -0400, Norman Walsh wrote:
> / Marius Gedminas <mgedmin@b4net.lt> was heard to say:
> | 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
>=20
> Hmm. I still get:
>=20
> [4294687.620000] irda_init()
> [4294687.620000] NET: Registered protocol family 23
> [4294687.657000] **** SET: Misaligned resource pointer: f7c99842 Type 00 =
Len 42
> [4294687.657000] **** SET: Misaligned resource pointer: f7c998c6 Type 07 =
Len 0
> [4294687.657000] pnp: Device 00:0b activated.
> [4294687.657000] nsc_ircc_pnp_probe() : Found cfg_base 0x000 ; firbase 0x=
2F8 ; irq 3 ; dma 1.
It says 'dma 1' here, but 'dma 3' on my T42. Maybe you should change
the module options?
> [4294687.657000] nsc-ircc, Found chip at base=3D0x000
> [4294687.657000] nsc-ircc, driver loaded (Dag Brattli)
> [4294687.657000] IrDA: Registered device irda0
> [4294687.657000] nsc-ircc, Using dongle: IBM31T1100 or Temic TFDS6000/TFD=
S6500
> [4294687.657000] nsc-ircc, Found chip at base=3D0x02e
> [4294687.657000] nsc-ircc, driver loaded (Dag Brattli)
> [4294687.657000] nsc_ircc_open(), can't get iobase of 0x2f8
FWIF I get the same messages (including "can't get iobase"), but IrDA works
for me. I do use setserial to disable the serial driver before
modprobing nsc-ircc.
> [4294687.769000] Unable to handle kernel NULL pointer dereference at virt=
ual address 00000004
> [4294687.769000] printing eip:
> [4294687.769000] c013112f
> [4294687.769000] *pde =3D 00000000
> [4294687.769000] Oops: 0002 [#1]
> [4294687.769000] PREEMPT=20
*scratches head*
*looks at his own dmesg*
Whoa!
[4294706.131000] nsc_ircc_open(), can't get iobase of 0x2f8
[4294706.186000] ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNKC] -> GSI =
11 (level, low) -> IRQ 11
[4294706.187000] ipw2200: Detected Intel PRO/Wireless 2200BG Network Connec=
tion
[4294706.287000] Unable to handle kernel NULL pointer dereference at virtua=
l address 00000004
[4294706.287000] printing eip:
[4294706.287000] c013c886
[4294706.287000] *pde =3D 00000000
[4294706.287000] Oops: 0002 [#1]
[4294706.287000] PREEMPT SMP
[4294706.287000] Modules linked in: irtty_sir sir_dev nsc_ircc irda floppy =
crc_ccitt parport_pc parport ipw2200 ieee80211 ieee80211_crypt yenta_socket=
rsrc_nonstatic pcmcia_core ieee80211_1_1_13 ieee80211_1_1_13_crypt snd_int=
el8x0 snd_ac97_codec snd_ac97_bus snd_pcm_oss snd_mixer_oss pcspkr snd_pcm =
snd_timer snd psmouse soundcore snd_page_alloc serio_raw e1000 hci_usb blue=
tooth shpchp pci_hotplug intel_agp agpgart tsdev evdev usbhid ext3 jbd ide_=
generic ehci_hcd uhci_hcd usbcore ide_cd cdrom ide_disk piix generic therma=
l processor fan capability commoncap vga16fb vgastate fbcon tileblit font b=
itblit softcursor
[4294706.287000] CPU: 0
[4294706.287000] EIP: 0060:[<c013c886>] Not tainted VLI
[4294706.287000] EFLAGS: 00010092 (2.6.15-23-686)
[4294706.287000] EIP is at finish_wait+0x36/0x70
[4294706.287000] eax: 00000202 ebx: f6811fd8 ecx: 00000000 edx: 00000=
000
[4294706.287000] esi: f6811fcc edi: f8b092a8 ebp: 00000000 esp: f6811=
fb4
[4294706.287000] ds: 007b es: 007b ss: 0068
[4294706.287000] Process kIrDAd (pid: 3213, threadinfo=3Df6810000 task=3Df6=
fa7030)
=2E..
I had never noticed that before. Ouch. So my kernel oopses on every boot.
Note that if I now do
sudo /etc/init.d/irda-utils restart
then the following messages appear in dmesg:
[4547926.839000] **** SET: Misaligned resource pointer: f27eaa42 Type 00 Le=
n 42
[4547926.840000] **** SET: Misaligned resource pointer: f27eaac6 Type 07 Le=
n 0
[4547926.841000] pnp: Device 00:0b activated.
[4547926.842000] nsc_ircc_pnp_probe() : Found cfg_base 0x000 ; firbase 0x2F=
8 ; irq 3 ; dma 3.
[4547926.843000] nsc-ircc, Found chip at base=3D0x000
[4547926.844000] nsc-ircc, driver loaded (Dag Brattli)
[4547926.846000] IrDA: Registered device irda0
[4547926.846000] nsc-ircc, Using dongle: IBM31T1100 or Temic TFDS6000/TFDS6=
500
[4547926.847000] nsc-ircc, Found chip at base=3D0x02e
[4547926.847000] nsc-ircc, driver loaded (Dag Brattli)
[4547926.847000] nsc_ircc_open(), can't get iobase of 0x2f8
[4547927.040000] irlap_change_speed(), setting speed to 9600
and I have a new network interface, irda0. This is why I assumed IrDA works
for me. irdadump, however, doesn't show anything when I try to beam a busi=
ness
card from my Palm. It used to work a long time ago.
Marius Gedminas
--=20
This message has been ROT-13 encrypted twice for higher security.
--UugvWAfsgieZRqgk
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)
iD8DBQFEg+UpkVdEXeem148RAsaaAJ9lSMJiPmTZBJlWwCED5OrOruUnWQCbBWMv
qQsbLJiGiZSEvRaGMwkPrW0=
=0Sf4
-----END PGP SIGNATURE-----
--UugvWAfsgieZRqgk--