Compile lirc?

Post Reply
glodone
Posts: 3
Joined: Thu May 07, 2009 9:26 am

Compile lirc?

Post by glodone » Thu Apr 29, 2010 7:16 am

Hello,

Does anybody compiled lirc for mini2440?
I'm trying to, but no luck.
Actually it compiles, but when I do "#> modprobe lirc_serial" returns with "segmentation fault" and error is:

-------------------------------------------------------------------
START ERROR
-------------------------------------------------------------------
lirc_serial: Unknown symbol lirc_unregister_driver
lirc_serial: Unknown symbol lirc_register_driver
lirc_dev: IR Remote Control driver registered, major 61
Unable to handle kernel paging request at virtual address 50000003
pgd = c3adc000
[50000003] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file: /sys/devices/virtual/vc/vcs4/dev
Modules linked in: lirc_serial(+) lirc_dev
CPU: 0 Not tainted (2.6.32.2-FriendlyARM #2)
PC is at hardware_init_port+0x38/0x1cc [lirc_serial]
LR is at release_console_sem+0x188/0x1e4
pc : [<bf010590>] lr : [<c00516d8>] psr: 20000093
sp : c3ae9ef0 ip : c3ae9e08 fp : c3ae9f04
r10: bf011d3c r9 : 00000000 r8 : 00000000
r7 : bf011a60 r6 : bf011c1c r5 : a0000013 r4 : bf011a60
r3 : 50000003 r2 : 50000003 r1 : 00004bf2 r0 : 00000033
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: c000717f Table: 33adc000 DAC: 00000015
Process modprobe (pid: 727, stack limit = 0xc3ae8270)
Stack: (0xc3ae9ef0 to 0xc3aea000)
9ee0: bf011a60 00000000 c3ae9f34 c3ae9f08
9f00: bf0150c8 bf010568 00000000 c483a398 00004244 000a18b7 bf011c1c c3ae8000
9f20: c050d660 bf015000 c3ae9f7c c3ae9f38 c003732c bf015010 00000000 00000000
9f40: 00000000 00004244 000a18b7 bf011c1c 00000000 00004244 000a18b7 bf011c1c
9f60: 00000000 c00380c8 c3ae8000 00000000 c3ae9fa4 c3ae9f80 c0077344 c0037300
9f80: c00a26b0 c00a25a0 000b61c8 000c32a8 000b6248 00000080 00000000 c3ae9fa8
9fa0: c0037f20 c0077284 000b61c8 000c32a8 000c32a8 00004244 000a18b7 00000000
9fc0: 000b61c8 000c32a8 000b6248 00000080 00000000 be809e8c 00000000 00000000
9fe0: 000b7298 be809b0c 00016d84 401d3c24 60000010 000c32a8 00000000 00000000
Backtrace:
[<bf010558>] (hardware_init_port+0x0/0x1cc [lirc_serial]) from [<bf0150c8>] (lirc_serial_init_module+0xc8/0x310 [lirc_serial])
r5:00000000 r4:bf011a60
[<bf015000>] (lirc_serial_init_module+0x0/0x310 [lirc_serial]) from [<c003732c>] (do_one_initcall+0x3c/0x1c8)
[<c00372f0>] (do_one_initcall+0x0/0x1c8) from [<c0077344>] (sys_init_module+0xd0/0x204)
[<c0077274>] (sys_init_module+0x0/0x204) from [<c0037f20>] (ret_fast_syscall+0x0/0x28)
r7:00000080 r6:000b6248 r5:000c32a8 r4:000b61c8
Code: e2833003 e3530201 e1a02003 328224f7 (e5d21000)
---[ end trace affe9dc94fef14ba ]---
-------------------------------------------------------------------
END ERROR
-------------------------------------------------------------------

I setup the ioport to 0x50000000 as I read it from mmio in "/proc/tty/driver/ttySAC"
-------------------------------------------------------------------
START /proc/tty/driver/ttySAC
-------------------------------------------------------------------
[root@FriendlyARM /]# cat /proc/tty/driver/ttySAC
serinfo:1.0 driver revision:
0: uart:S3C2440 mmio:0x50000000 irq:70 tx:42 rx:0 RTS|DTR|DSR|CD
1: uart:S3C2440 mmio:0x50004000 irq:73 tx:0 rx:0 DSR|CD
2: uart:S3C2440 mmio:0x50008000 irq:76 tx:311 rx:1 fe:1 brk:1 RTS|DTR|DSR|CD
-------------------------------------------------------------------
END /proc/tty/driver/ttySAC
-------------------------------------------------------------------

I want to use the ttySAC0.
I changed the boot args and changed the console ttySAC0 to ttySAC2, and tested with microcom before starting with lirc.

Q: Is the ioport set ok?
For PC [ ioport=0x3f8 | irq=4 ]
I set for mini2440 [ ioport=0x50000000 | irq=70]


Thanks in advanced,
Guillermo.

glodone
Posts: 3
Joined: Thu May 07, 2009 9:26 am

Re: Compile lirc?

Post by glodone » Thu Apr 29, 2010 10:20 am

Hi,

Another try I made is:
if I do "#> setserial /dev/ttySAC0 -a" the result is:
-------------------------------------------------------------------
setserial result
-------------------------------------------------------------------
/dev/ttySAC0, Line 0, UART: undefined, Port: 0x0000, IRQ: 70
Baud_base: 0, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal
-------------------------------------------------------------------
END setserial result
-------------------------------------------------------------------

so, compiling with [ ioport=0x0000 | irq=70 ]
the error now is

-------------------------------------------------------------------
START ERROR
-------------------------------------------------------------------
Unable to handle kernel paging request at virtual address f7000003
pgd = c3b08000
[f7000003] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file: /sys/devices/virtual/vc/vcs4/dev
Modules linked in: lirc_serial(+) lirc_dev
CPU: 0 Not tainted (2.6.32.2-FriendlyARM #2)
PC is at hardware_init_port+0x38/0x1c4 [lirc_serial]
LR is at release_console_sem+0x188/0x1e4
pc : [<bf00759c>] lr : [<c00516d8>] psr: 80000093
sp : c3af9ef0 ip : c3af9e08 fp : c3af9f04
r10: 00000000 r9 : 00000000 r8 : bf008a4c
r7 : bf008d24 r6 : bf008c04 r5 : a0000013 r4 : bf008d24
r3 : 00000003 r2 : f7000003 r1 : 00004b88 r0 : 00000033
Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: c000717f Table: 33b08000 DAC: 00000015
Process modprobe (pid: 730, stack limit = 0xc3af8270)
Stack: (0xc3af9ef0 to 0xc3afa000)
9ee0: 00000000 000a18b7 c3af9f34 c3af9f08
9f00: bf00c0c4 bf007574 00000000 c4833380 0000422c 000a18b7 bf008c04 c3af8000
9f20: c050d660 bf00c000 c3af9f7c c3af9f38 c003732c bf00c010 00000000 00000000
9f40: 00000000 0000422c 000a18b7 bf008c04 00000000 0000422c 000a18b7 bf008c04
9f60: 00000000 c00380c8 c3af8000 00000000 c3af9fa4 c3af9f80 c0077344 c0037300
9f80: c00a26b0 c00a25a0 000b51a8 000c1280 000b5028 00000080 00000000 c3af9fa8
9fa0: c0037f20 c0077284 000b51a8 000c1280 000c1280 0000422c 000a18b7 00000000
9fc0: 000b51a8 000c1280 000b5028 00000080 00000000 bed4ce88 00000000 00000000
9fe0: 000b51c8 bed4cb0c 00016d84 401d3c24 60000010 000c1280 00000000 00000000
Backtrace:
[<bf007564>] (hardware_init_port+0x0/0x1c4 [lirc_serial]) from [<bf00c0c4>] (lirc_serial_init_module+0xc4/0x310 [lirc_serial])
r5:000a18b7 r4:00000000
[<bf00c000>] (lirc_serial_init_module+0x0/0x310 [lirc_serial]) from [<c003732c>] (do_one_initcall+0x3c/0x1c8)
[<c00372f0>] (do_one_initcall+0x0/0x1c8) from [<c0077344>] (sys_init_module+0xd0/0x204)
[<c0077274>] (sys_init_module+0x0/0x204) from [<c0037f20>] (ret_fast_syscall+0x0/0x28)
r7:00000080 r6:000b5028 r5:000c1280 r4:000b51a8
Code: e2833003 e3530201 e1a02003 328224f7 (e5d21000)
---[ end trace 72f1dac58f92f108 ]---
-------------------------------------------------------------------
END ERROR
-------------------------------------------------------------------

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest