This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CIR driver for DM816x

Hi all,

I would like to know when will the driver for CIR available for DM816x? Is there any patch for working CIR driver available in GIT/ezsdk ?

I was able to configure and compile kernel of ezsdk_5_03 and ezsdk_5_04 (as per the steps given at http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_CIR_Driver_User_Guide).

When I boot the kernel with CIR support, I get following crash.

lirc_dev: IR Remote Control driver registered, major 252
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
Unable to handle kernel NULL pointer dereference at virtual address 000003f9
pgd = c0004000
[000003f9] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.37 #3)
PC is at sinp+0x28/0x34
LR is at hardware_init_port+0x14/0x158
pc : [<c02adff8>]    lr : [<c02ae314>]    psr: 60000013
sp : c7023f50  ip : c7023f60  fp : c7023f5c
r10: 00000000  r9 : 00000000  r8 : c00272d4
r7 : 00000013  r6 : c0071b50  r5 : c050659c  r4 : 00000000
r3 : 000003f8  r2 : c050659c  r1 : c7248c40  r0 : 00000001
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 80004019  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc70222e8)
Stack: (0xc7023f50 to 0xc7024000)
3f40:                                     c7023f7c c7023f60 c02ae314 c02adfdc
3f60: 00000000 c050659c c0071b50 00000013 c7023fa4 c7023f80 c00274d0 c02ae30c
3f80: 00000000 c7023f90 c00272a8 c002e2bc c00086b0 c0071b50 c7023fdc c7023fa8
3fa0: c003c42c c00272e0 00000197 c00086b0 c0071b50 00000013 c002e2bc c00086b0
3fc0: c0071b50 00000013 00000000 00000000 c7023ff4 c7023fe0 c000874c c003c368
3fe0: 00000000 c00086b0 00000000 c7023ff8 c0071b50 c00086bc cc3b4393 cc1ab393
Backtrace:
[<c02adfd0>] (sinp+0x0/0x34) from [<c02ae314>] (hardware_init_port+0x14/0x158)
[<c02ae300>] (hardware_init_port+0x0/0x158) from [<c00274d0>] (lirc_serial_init_
module+0x1fc/0x37c)
 r7:00000013 r6:c0071b50 r5:c050659c r4:00000000
[<c00272d4>] (lirc_serial_init_module+0x0/0x37c) from [<c003c42c>] (do_one_initc
all+0xd0/0x1a4)
 r6:c0071b50 r5:c00086b0 r4:c002e2bc
[<c003c35c>] (do_one_initcall+0x0/0x1a4) from [<c000874c>] (kernel_init+0x9c/0x1
54)
[<c00086b0>] (kernel_init+0x0/0x154) from [<c0071b50>] (do_exit+0x0/0x5e4)
 r5:c00086b0 r4:00000000
Code: 15923004 11a00310 e59f3008 e5933008 (e7d00003)
---[ end trace 693e952115225011 ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c004abb8>] (dump_backtrace+0x0/0x110) from [<c03611f4>] (dump_stack+0x18/0x1c)
 r7:c7020000 r6:c7020000 r5:c02adffa r4:c04d30d0
[<c03611dc>] (dump_stack+0x0/0x1c) from [<c0361258>] (panic+0x60/0x17c)
[<c03611f8>] (panic+0x0/0x17c) from [<c0071bc4>] (do_exit+0x74/0x5e4)
 r3:c04a54dc r2:c7023d10 r1:c70200fc r0:c0421255
[<c0071b50>] (do_exit+0x0/0x5e4) from [<c004af64>] (die+0x29c/0x2d8)
[<c004acc8>] (die+0x0/0x2d8) from [<c004dba0>] (__do_kernel_fault+0x6c/0x8c)
[<c004db34>] (__do_kernel_fault+0x0/0x8c) from [<c0365254>] (do_page_fault+0x1f0
/0x20c)
 r9:00000005 r8:00000005 r7:00000000 r6:c7020000 r5:c7023f08
r4:c048e740
[<c0365064>] (do_page_fault+0x0/0x20c) from [<c0365294>] (do_translation_fault+0
x24/0xa8)
[<c0365270>] (do_translation_fault+0x0/0xa8) from [<c003c2a4>] (do_DataAbort+0x3
c/0x9c)
 r9:20000113 r8:000003f9 r7:c7023f08 r6:00000005 r5:c048e790
r4:c048e740
[<c003c268>] (do_DataAbort+0x0/0x9c) from [<c036322c>] (__dabt_svc+0x4c/0x60)
Exception stack(0xc7023f08 to 0xc7023f50)
3f00:                   00000001 c7248c40 c050659c 000003f8 00000000 c050659c
3f20: c0071b50 00000013 c00272d4 00000000 00000000 c7023f5c c7023f60 c7023f50
3f40: c02ae314 c02adff8 60000013 ffffffff
 r8:c00272d4 r7:00000013 r6:c0071b50 r5:c7023f3c r4:ffffffff
[<c02adfd0>] (sinp+0x0/0x34) from [<c02ae314>] (hardware_init_port+0x14/0x158)
[<c02ae300>] (hardware_init_port+0x0/0x158) from [<c00274d0>] (lirc_serial_init_
module+0x1fc/0x37c)
 r7:00000013 r6:c0071b50 r5:c050659c r4:00000000
[<c00272d4>] (lirc_serial_init_module+0x0/0x37c) from [<c003c42c>] (do_one_initc
all+0xd0/0x1a4)
 r6:c0071b50 r5:c00086b0 r4:c002e2bc
[<c003c35c>] (do_one_initcall+0x0/0x1a4) from [<c000874c>] (kernel_init+0x9c/0x1
54)
[<c00086b0>] (kernel_init+0x0/0x154) from [<c0071b50>] (do_exit+0x0/0x5e4)
 r5:c00086b0 r4:00000000

Regards,
Sweta