Hi,
I am currently working on AM1705 processor with Linux OS.
I set uart2 of AM1705 as the console port of Linux.
And when my application run PPPD it gives me following errors. [ here my application runs on bootup I had added following lines in inttab - ::once:/home/root/main ]
BUG: scheduling while atomic: swapper/0/0x00000509
Modules linked in: suart_emu
Pid: 0, comm: swapper
CPU: 0 Not tainted (2.6.33-rc4 #1)
PC is at default_idle+0x34/0x38
LR is at default_idle+0x28/0x38
pc : [<c0031a8c>] lr : [<c0031a80>] psr: 60000013
sp : c04f3f90 ip : 600000d3 fp : c04f3f9c
r10: c0026f8c r9 : 41069265 r8 : c0026fc0
r7 : c04f63e8 r6 : c0029014 r5 : c0527d3c r4 : c04f2000
r3 : 60000013 r2 : 0005217f r1 : 0005317f r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: c1bcc000 DAC: 00000017
[<c0031f10>] (show_regs+0x0/0x50) from [<c003dd50>] (__schedule_bug+0x4c/0x60)
r5:c04f5748 r4:c04f3f48
[<c003dd04>] (__schedule_bug+0x0/0x60) from [<c03e5844>] (schedule+0x7c/0x360)
r5:c04f5748 r4:7fffffff
[<c03e57c8>] (schedule+0x0/0x360) from [<c03e6198>] (schedule_timeout+0x20/0x20c)
[<c03e6178>] (schedule_timeout+0x0/0x20c) from [<c022b3d0>] (tty_wait_until_sent+0xb0/0xf8)
r6:c04f2000 r5:c1f5c0e0 r4:7fffffff
[<c022b320>] (tty_wait_until_sent+0x0/0xf8) from [<c023e7fc>] (uart_write+0x1d8/0x2c8)
r8:00000039 r7:fec42000 r6:80000013 r5:c2570200 r4:00000000
[<c023e624>] (uart_write+0x0/0x2c8) from [<c02755e0>] (ppp_async_push+0x120/0x5c0)
[<c02754c0>] (ppp_async_push+0x0/0x5c0) from [<c0275ad4>] (ppp_async_send+0x54/0x5c)
[<c0275a80>] (ppp_async_send+0x0/0x5c) from [<c0271340>] (ppp_push+0x80/0x664)
r5:00000000 r4:c380a094
[<c02712c0>] (ppp_push+0x0/0x664) from [<c0272188>] (ppp_xmit_process+0x42c/0x534)
[<c0271d5c>] (ppp_xmit_process+0x0/0x534) from [<c0272414>] (ppp_start_xmit+0x184/0x1b4)
[<c0272290>] (ppp_start_xmit+0x0/0x1b4) from [<c02c0dfc>] (dev_hard_start_xmit+0x240/0x32c)
r7:c1f5cc00 r6:c1fb19c0 r5:c1fb19c0 r4:c1fb3100
[<c02c0bbc>] (dev_hard_start_xmit+0x0/0x32c) from [<c02d4118>] (sch_direct_xmit+0x94/0x1fc)
[<c02d4084>] (sch_direct_xmit+0x0/0x1fc) from [<c02c12e4>] (dev_queue_xmit+0x2b0/0x4bc)
r9:c1fc0000 r8:c25d6d80 r7:c1f5cc00 r6:c1fb19c0 r5:00000000
r4:c1fb3100
[<c02c1034>] (dev_queue_xmit+0x0/0x4bc) from [<c03184f8>] (ip_finish_output+0x2b4/0x2ec)
r8:00000004 r7:c1fb3700 r6:c1fb19c0 r5:c1fb19c0 r4:00000000
[<c0318244>] (ip_finish_output+0x0/0x2ec) from [<c0318618>] (ip_output+0xe8/0xfc)
r9:c1fc0000 r8:c1fb19c0 r7:00000020 r6:0000207f r5:c1f5cc00
r4:c1fb19c0
[<c0318530>] (ip_output+0x0/0xfc) from [<c0317500>] (ip_local_out+0x2c/0x30)
r5:c1fc0000 r4:c1fb19c0
[<c03174d4>] (ip_local_out+0x0/0x30) from [<c0317dd8>] (ip_queue_xmit+0x30c/0x388)
r5:c1fc0000 r4:c1bdd09c
[<c0317acc>] (ip_queue_xmit+0x0/0x388) from [<c032b350>] (tcp_transmit_skb+0x82c/0x894)
[<c032ab24>] (tcp_transmit_skb+0x0/0x894) from [<c032b514>] (tcp_send_ack+0xd4/0xdc)
[<c032b440>] (tcp_send_ack+0x0/0xdc) from [<c032ea80>] (tcp_delack_timer+0x194/0x240)
r5:c1fc02b0 r4:c1fc0000
[<c032e8ec>] (tcp_delack_timer+0x0/0x240) from [<c004ef20>] (run_timer_softirq+0x190/0x25c)
r7:c032e8ec r6:00000103 r5:c04f2000 r4:c052cce0
[<c004ed90>] (run_timer_softirq+0x0/0x25c) from [<c0049a28>] (__do_softirq+0x84/0x110)
[<c00499a4>] (__do_softirq+0x0/0x110) from [<c0049b00>] (irq_exit+0x4c/0xb0)
[<c0049ab4>] (irq_exit+0x0/0xb0) from [<c0030078>] (asm_do_IRQ+0x78/0x94)
[<c0030000>] (asm_do_IRQ+0x0/0x94) from [<c0030b2c>] (__irq_svc+0x4c/0x9c)
Exception stack(0xc04f3f48 to 0xc04f3f90)
3f40: 00000000 0005317f 0005217f 60000013 c04f2000 c0527d3c
3f60: c0029014 c04f63e8 c0026fc0 41069265 c0026f8c c04f3f9c 600000d3 c04f3f90
3f80: c0031a80 c0031a8c 60000013 ffffffff
r5:febfd000 r4:ffffffff
[<c0031a58>] (default_idle+0x0/0x38) from [<c0031fd8>] (cpu_idle+0x78/0xec)
[<c0031f60>] (cpu_idle+0x0/0xec) from [<c03e304c>] (rest_init+0x84/0xa0)
r5:c0527d3c r4:c04f2000
[<c03e2fc8>] (rest_init+0x0/0xa0) from [<c00089dc>] (start_kernel+0x284/0x2e8)
r5:c0527d3c r4:c052f658
[<c0008758>] (start_kernel+0x0/0x2e8) from [<c0008034>] (__enable_mmu+0x0/0x2c)
bad: scheduling from the idle thread!
Backtrace:
[<c0034718>] (dump_backtrace+0x0/0x114) from [<c03e5538>] (dump_stack+0x18/0x1c)
r7:c04f2000 r6:00000001 r5:c04f9ca0 r4:c04f5748
[<c03e5520>] (dump_stack+0x0/0x1c) from [<c003fa3c>] (dequeue_task_idle+0x4c/0x78)
[<c003f9f0>] (dequeue_task_idle+0x0/0x78) from [<c003d070>] (dequeue_task+0x74/0x84)
[<c003cffc>] (dequeue_task+0x0/0x84) from [<c003d100>] (deactivate_task+0x38/0x48)
r7:c04f2000 r6:c04f2000 r5:c04f5748 r4:c04f9ca0
[<c003d0c8>] (deactivate_task+0x0/0x48) from [<c03e58e8>] (schedule+0x120/0x360)
r5:c04f5748 r4:7fffffff
[<c03e57c8>] (schedule+0x0/0x360) from [<c03e6198>] (schedule_timeout+0x20/0x20c)
[<c03e6178>] (schedule_timeout+0x0/0x20c) from [<c022b3d0>] (tty
_wait_until_sent+0xb0/0xf8)
r6:c04f2000 r5:c1f5c0e0 r4:7fffffff
[<c022b320>] (tty_wait_until_sent+0x0/0xf8) from [<c023e7fc>] (uart_write+0x1d8/0x2c8)
r8:00000039 r7:fec42000 r6:80000013 r5:c2570200 r4:00000000
[<c023e624>] (uart_write+0x0/0x2c8) from [<c02755e0>] (ppp_async_push+0x120/0x5c0)
[<c02754c0>] (ppp_async_push+0x0/0x5c0) from [<c0275ad4>] (ppp_async_send+0x54/0x5c)
[<c0275a80>] (ppp_async_send+0x0/0x5c) from [<c0271340>] (ppp_push+0x80/0x664)
r5:00000000 r4:c380a094
[<c02712c0>] (ppp_push+0x0/0x664) from [<c0272188>] (ppp_xmit_process+0x42c/0x534)
[<c0271d5c>] (ppp_xmit_process+0x0/0x534) from [<c0272414>] (ppp_start_xmit+0x184/0x1b4)
[<c0272290>] (ppp_start_xmit+0x0/0x1b4) from [<c02c0dfc>] (dev_hard_start_xmit+0x240/0x32c)
r7:c1f5cc00 r6:c1fb19c0 r5:c1fb19c0 r4:c1fb3100
[<c02c0bbc>] (dev_hard_start_xmit+0x0/0x32c) from [<c02d4118>] (sch_direct_xmit+0x94/0x1fc)
[<c02d4084>] (sch_direct_xmit+0x0/0x1fc) from [<c02c12e4>] (dev_queue_xmit+0x2b0/0x4bc)
r9:c1fc0000 r8:c25d6d80 r7:c1f5cc00 r6:c1fb19c0 r5:00000000
r4:c1fb3100
[<c02c1034>] (dev_queue_xmit+0x0/0x4bc) from [<c03184f8>] (ip_finish_output+0x2b4/0x2ec)
r8:00000004 r7:c1fb3700 r6:c1fb19c0 r5:c1fb19c0 r4:00000000
[<c0318244>] (ip_finish_output+0x0/0x2ec) from [<c0318618>] (ip_output+0xe8/0xfc)
r9:c1fc0000 r8:c1fb19c0 r7:00000020 r6:0000207f r5:c1f5cc00
r4:c1fb19c0
[<c0318530>] (ip_output+0x0/0xfc) from [<c0317500>] (ip_local_out+0x2c/0x30)
r5:c1fc0000 r4:c1fb19c0
[<c03174d4>] (ip_local_out+0x0/0x30) from [<c0317dd8>] (ip_queue_xmit+0x30c/0x388)
r5:c1fc0000 r4:c1bdd09c
[<c0317acc>] (ip_queue_xmit+0x0/0x388) from [<c032b350>] (tcp_transmit_skb+0x82c/0x894)
[<c032ab24>] (tcp_transmit_skb+0x0/0x894) from [<c032b514>] (tcp_send_ack+0xd4/0xdc)
[<c032b440>] (tcp_send_ack+0x0/0xdc) from [<c032ea80>] (tcp_delack_timer+0x194/0x240)
r5:c1fc02b0 r4:c1fc0000
[<c032e8ec>] (tcp_delack_timer+0x0/0x240) from [<c004ef20>] (run_timer_softirq+0x190/0x25c)
r7:c032e8ec r6:00000103 r5:c04f2000 r4:c052cce0
[<c004ed90>] (run_timer_softirq+0x0/0x25c) from [<c0049a28>] (__do_softirq+0x84/0x110)
[<c00499a4>] (__do_softirq+0x0/0x110) from [<c0049b00>] (irq_exit+0x4c/0xb0)
[<c0049ab4>] (irq_exit+0x0/0xb0) from [<c0030078>] (asm_do_IRQ+0x78/0x94)
[<c0030000>] (asm_do_IRQ+0x0/0x94) from [<c0030b2c>] (__irq_svc+0x4c/0x9c)
Exception stack(0xc04f3f48 to 0xc04f3f90)
3f40: 00000000 0005317f 0005217f 60000013 c04f2000 c0527d3c
3f60: c0029014 c04f63e8 c0026fc0 41069265 c0026f8c c04f3f9c 600000d3 c04f3f90
3f80: c0031a80 c0031a8c 60000013 ffffffff
r5:febfd000 r4:ffffffff
[<c0031a58>] (default_idle+0x0/0x38) from [<c0031fd8>] (cpu_idle+0x78/0xec)
[<c0031f60>] (cpu_idle+0x0/0xec) from [<c03e304c>] (rest_init+0x84/0xa0)
r5:c0527d3c r4:c04f2000
[<c03e2fc8>] (rest_init+0x0/0xa0) from [<c00089dc>] (start_kernel+0x284/0x2e8)
r5:c0527d3c r4:c052f658
[<c0008758>] (start_kernel+0x0/0x2e8) from [<c0008034>] (__enable_mmu+0x0/0x2c)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c16ec000
[00000000] *pgd=c1bde031, *pte=00000000, *ppte=00000000
Internal error: Oops: 80000005 [#1] PREEMPT
last sysfs file: /sys/devices/platform/ti_omapl_pru_suart.1/tty/ttySU6/dev
Modules linked in: suart_emu
CPU: 0 Not tainted (2.6.33-rc4 #1)
PC is at 0x0
LR is at enqueue_task+0x30/0x3c
pc : [<00000000>] lr : [<c003cff0>] psr: 20000093
sp : c386fd78 ip : 00000001 fp : c386fd8c
r10: 00000000 r9 : 00000001 r8 : c04f5748
r7 : c04f9ca0 r6 : 00000000 r5 : c386e000 r4 : c04f5748
r3 : c03ea6b8 r2 : 00000001 r1 : c04f5748 r0 : c04f9ca0
Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: c16ec000 DAC: 00000015
Process klogd (pid: 492, stack limit = 0xc386e270)
Stack: (0xc386fd78 to 0xc3870000)
fd60: c04f9ca0 c386e000
fd80: c386fda4 c386fd90 c003d0b8 c003cfd0 00000001 c386e000 c386fdd4 c386fda8
fda0: c00410dc c003d090 c003590c 20000093 c04f3ac4 c1f5c0d4 00000000 00000001
fdc0: c1f5c0e0 00000000 c386fde4 c386fdd8 c00411d0 c004106c c386fdfc c386fde8
fde0: c005b284 c00411cc c04f3ac4 c1f5c0d4 c386fe2c c386fe00 c003d4a4 c005b280
fe00: 00000000 60000013 c10765e0 00000018 00000001 00000006 0000000a c052cb40
fe20: c386fe4c c386fe30 c003f320 c003d47c 00000004 c386fe40 c022c64c c1f5c000
fe40: c386fe64 c386fe50 c0226674 c003f2ec 00000000 c386e000 c386fe74 c386fe68
fe60: c023d604 c0226628 c386fe8c c386fe78 c0049370 c023d600 00000102 c386e000
fe80: c386fec4 c386fe90 c0049a28 c00492fc c04fd4fc c386e000 0000004a 0000004a
fea0: c04f3f48 00000400 00000001 00000000 c386e000 00000000 c386fed4 c386fec
8
fec0: c0049b00 c00499b4 c386feec c386fed8 c0030078 c0049ac4 ffffffff febfd000
fee0: c386ff44 c386fef0 c0030b2c c0030010 00000001 00026100 c386e000 00000000
ff00: c386e000 00000000 00000ddb 00002000 0000003e c386e000 00000000 c386ff44
ff20: c386ff48 c386ff38 c00454d4 c03e5c30 40000013 ffffffff c386ff94 c386ff48
ff40: c00454d4 c03e5c20 00000001 001eb800 00000000 00000000 c2566960 c005b270
ff60: c386ff60 c386ff60 00000000 001eb800 00000000 00000000 00000067 c00310a4
ff80: c386e000 00000000 c386ffa4 c386ff98 c0045854 c004531c 00000000 c386ffa8
ffa0: c0030f20 c0045854 001eb800 00000000 00000002 001eb800 00002000 001eda98
ffc0: 001eb800 00000000 00000000 00000067 00000000 00000002 00000000 beab1e84
ffe0: 001eb800 beab1cb0 00063ee0 0000956c 60000010 00000002 e1a0100a e1a00009
Backtrace:
[<c003cfc0>] (enqueue_task+0x0/0x3c) from [<c003d0b8>] (activate_task+0x38/0x48)
r5:c386e000 r4:c04f9ca0
[<c003d080>] (activate_task+0x0/0x48) from [<c00410dc>] (try_to_wake_up+0x80/0x160)
r5:c386e000 r4:00000001
[<c004105c>] (try_to_wake_up+0x0/0x160) from [<c00411d0>] (default_wake_function+0x14/0x18)
[<c00411bc>] (default_wake_function+0x0/0x18) from [<c005b284>] (autoremove_wake_function+0x14/0x3c)
[<c005b270>] (autoremove_wake_function+0x0/0x3c) from [<c003d4a4>] (__wake_up_common+0x38/0x7c)
r5:c1f5c0d4 r4:c04f3ac4
[<c003d46c>] (__wake_up_common+0x0/0x7c) from [<c003f320>] (__wake_up+0x44/0x78)
[<c003f2dc>] (__wake_up+0x0/0x78) from [<c0226674>] (tty_wakeup+0x5c/0x60)
r4:c1f5c000
[<c0226618>] (tty_wakeup+0x0/0x60) from [<c023d604>] (uart_tasklet_action+0x14/0x18)
r5:c386e000 r4:00000000
[<c023d5f0>] (uart_tasklet_action+0x0/0x18) from [<c0049370>] (tasklet_action+0x84/0xe8)
[<c00492ec>] (tasklet_action+0x0/0xe8) from [<c0049a28>] (__do_softirq+0x84/0x110)
r5:c386e000 r4:00000102
[<c00499a4>] (__do_softirq+0x0/0x110) from [<c0049b00>] (irq_exit+0x4c/0xb0)
[<c0049ab4>] (irq_exit+0x0/0xb0) from [<c0030078>] (asm_do_IRQ+0x78/0x94)
[<c0030000>] (asm_do_IRQ+0x0/0x94) from [<c0030b2c>] (__irq_svc+0x4c/0x9c)
Exception stack(0xc386fef0 to 0xc386ff38)
fee0: 00000001 00026100 c386e000 00000000
ff00: c386e000 00000000 00000ddb 00002000 0000003e c386e000 00000000 c386ff44
ff20: c386ff48 c386ff38 c00454d4 c03e5c30 40000013 ffffffff
r5:febfd000 r4:ffffffff
[<c03e5c10>] (_cond_resched+0x0/0x44) from [<c00454d4>] (do_syslog+0x1c8/0x538)
[<c004530c>] (do_syslog+0x0/0x538) from [<c0045854>] (sys_syslog+0x10/0x14)
[<c0045844>] (sys_syslog+0x0/0x14) from [<c0030f20>] (ret_fast_syscall+0x0/0x28)
Code: bad PC value
---[ end trace 776c148d32369f13 ]---
Kernel panic - not syncing: Fatal exception in interrupt
Backtrace:
[<c0034718>] (dump_backtrace+0x0/0x114) from [<c03e5538>] (dump_stack+0x18/0x1c)
r7:fffffff0 r6:fffffff8 r5:fffffffc r4:c0528218
[<c03e5520>] (dump_stack+0x0/0x1c) from [<c03e55a0>] (panic+0x64/0x13c)
[<c03e553c>] (panic+0x0/0x13c) from [<c0034abc>] (die+0x290/0x2cc)
r3:00000100 r2:c386fbb8 r1:00000000 r0:c048e7bd
[<c003482c>] (die+0x0/0x2cc) from [<c0036308>] (__do_kernel_fault+0x6c/0x7c)
[<c003629c>] (__do_kernel_fault+0x0/0x7c) from [<c00364e8>] (do_page_fault+0x1d0/0x1e8)
r7:c2482900 r6:00000000 r5:c2566960 r4:c04f688c
[<c0036318>] (do_page_fault+0x0/0x1e8) from [<c00365a0>] (do_translation_fault+0x18/0x7c)
[<c0036588>] (do_translation_fault+0x0/0x7c) from [<c0030244>] (do_PrefetchAbort+0x3c/0x9c)
r7:c386fd30 r6:00000005 r5:c386fd64 r4:c04f688c
[<c0030208>] (do_PrefetchAbort+0x0/0x9c) from [<c0030c50>] (__pabt_svc+0x50/0x80)
Exception stack(0xc386fd30 to 0xc386fd78)
fd20: c04f9ca0 c04f5748 00000001 c03ea6b8
fd40: c04f5748 c386e000 00000000 c04f9ca0 c04f5748 00000001 00000000 c386fd8c
fd60: 00000001 c386fd78 c003cff0 00000000 20000093 ffffffff
r8:c04f5748 r7:c04f9ca0 r6:00000000 r5:c386fd64 r4:ffffffff
[<c003cfc0>] (enqueue_task+0x0/0x3c) from [<c003d0b8>] (activate_task+0x38/0x48)
r5:c386e000 r4:c04f9ca0
[<c003d080>] (activate_task+0x0/0x48) from [<c00410dc>] (try_to_wake_up+0x80/0x160)
r5:c386e000 r4:00000001
[<c004105c>] (try_to_wake_up+0x0/0x160) from [<c00411d0>] (default_wake_function+0x14/0x18)
[<c00411bc>] (default_wake_function+0x0/0x18) from [<c005b284>] (autoremove_wake_function+0x14/0x3c)
[<c005b270>] (autoremove_wake_function+0x0/0x3c) from [<c003d4a4>] (__wake_up_common+0x38/0x7c)
r5:c1f5c0d4 r4:c04f3ac4
[<c003d46c>] (__wake_up_common+0x0/0x7c) from [<c003f320>] (__wake_up+0x44/0x78)
[<c003f2dc>] (__wake_up+0x0/0x78) from [<c0226674>] (tty_wakeup+0x5c/0x60)
r4:c1f5c000
[<c0226618>] (tty_wakeup+0x0/0x60) from [<c023d604>] (uart_tasklet_action+0x14/0x18)
r5:c386e000 r4:00000000
[<c023d5f0>] (uart_tasklet_action+0x0/0x18) from [<c0049370>] (tasklet_action+0x84/0xe8)
[<c00492ec>] (tasklet_action+0x0/0xe8) from [<c0049a28>] (__do_softirq+0x84/0x110)
r5:c386e000 r4:00000102
[<c00499a4>] (__do_softirq+0x0/0x110) from [<c0049b00>] (irq_exit+0x4c/0xb0)
[<c0049ab4>] (irq_exit+0x0/0xb0) from [<c0030078>] (asm_do_IRQ+0x78/0x94)
[<c0030000>] (asm_do_IRQ+0x0/0x94) from [<c0030b2c>] (__irq_svc+0x4c/0x9c)
Exception stack(0xc386fef0 to 0xc386ff38)
fee0: 00000001 00026100 c386e000 00000000
ff00: c386e000 00000000 00000ddb 00002000 0000003e c386e000 00000000 c386ff44
ff20: c386ff48 c386ff38 c00454d4 c03e5c30 40000013 ffffffff
r5:febfd000 r4:ffffffff
[<c03e5c10>] (_cond_resched+0x0/0x44) from [<c00454d4>] (do_syslog+0x1c8/0x538)
[<c004530c>] (do_syslog+0x0/0x538) from [<c0045854>] (sys_syslog+0x10/0x14)
[<c0045844>] (sys_syslog+0x0/0x14) from [<c0030f20>] (ret_fast_syscall+0x0/0x28)
But when my I start my application from telnet not auto bootup then PPPD works properly without hanging the kernel.
Can anyone provide me solution for above given issue.
Thanks & Regards
Jitendra