Hi,<br><br>i pepper some &quot;L4_KDB_Enter&quot; in &quot;linux/kernel/arch/l4/kernel/main.c&quot; and the details are:<br>==================================================<br>int<br>main(int argc, char **argv)<br>{<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int r;  
<br><strong>L4_KDB_Enter(&quot;In main&quot;);</strong><br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Start a new thread */<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;assert(argc &gt; 0 &amp;&amp; argv[0] != NULL);<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strlcpy(saved_command_line, argv[1], COMMAND_LINE_SIZE);<br><strong>
  L4_KDB_Enter(&quot;Before SetThreadName&quot;);</strong><br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L4_KDB_SetThreadName(L4_Myself(), &quot;L_timer&quot;);<br><strong>L4_KDB_Enter(&quot;Before create_priority&quot;);</strong>        <br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;r = thread_create_priority(99, &amp;main_thread);  
<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;assert (r != 0);<br><strong>L4_KDB_Enter(&quot;Before SetThreadName for main thread&quot;);</strong><br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;timer_thread = L4_Myself();<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L4_KDB_SetThreadName(main_thread, &quot;L_syscall&quot;);<br>
<strong>L4_KDB_Enter(&quot;Before L4_Start_SpIp&quot;);</strong><br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Setup our TLS as well */<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setup_tls(0);<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L4_Start_SpIp(main_thread, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(L4_Word_t) &amp;main_stack[STACK_SIZE-1],  
<br>                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(L4_Word_t) start_kernel);<br><strong>L4_KDB_Enter(&quot;Before interrupt_loop&quot;);</strong><br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Now we go and do the timer stuff */<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interrupt_loop();<br>        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 0;  
<br>}<br><br><br>and each time when i get in l4_kdb, i show the schedule queue&nbsp;to&nbsp;know&nbsp;the&nbsp;threads&#39;&nbsp;information.<br><br>the following is the message i got:<br>========================<br><strong>PXA25X OS Timer driver starting...  
<br>PXA25X wrap handler installed<br>Using FFUART--- KD# User: In main ---<br>&gt; showqueue<br><br>[255]: (roottask) (IRQ 28) (IRQ 27)<br>[242]: (tmr_wrap)<br>[240]: (ig_timer)<br>[200]: (ig_namin)<br>[100]: ig_seria vmlinux  
<br>idle : idle<br><br>&gt; go<br><br>--- KD# User: Before SetThreadName ---<br>&gt; showqueue<br><br>[255]: (roottask) (IRQ 28) (IRQ 27)<br>[242]: (tmr_wrap)<br>[240]: (ig_timer)<br>[200]: (ig_namin)<br>[100]: ig_seria vmlinux  
<br>idle : idle<br><br>&gt; go<br>.<br><br>Backed --- KD# User: Before create_priority ---<br>&gt; showqueue<br><br>[255]: (roottask) (IRQ 28) (IRQ 27) (IRQ 22)<br>[242]: (tmr_wrap)<br>[240]: (ig_timer)<br>[200]: (ig_namin)  
<br>[100]: ig_seria L_timer<br>idle : idle<br>&gt; go<br>(STOP HERE)</strong><br><br>but i am not sure&nbsp;this&nbsp;stopping&nbsp;is&nbsp;due&nbsp;to&nbsp;which&nbsp;thread&nbsp;or it&#39;s just hardware&nbsp;error...<br> can you give me some suggestions about this situation?
<br>or what should i do to bring you more information?<br> <br>thanks for your answering.<br><br><br><div><span class="gmail_quote">2007/9/20, Carl van Schaik &lt;<a href="mailto:carl@ok-labs.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
  carl@ok-labs.com</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
  To me it looks like the UART server is starting up and reconfigures the<br>UART etc. At this point, the uart fifo empties and it seems that no<br>further writes happen. This is probably because you are not getting<br>interrupts. Either the serial driver registers the wrong interrupt  
<br>number or the driver is misconfiguring the UART.<br><br>regards,<br>Carl<br><br>Ben Leslie wrote:<br>&gt; On Wed Sep 05, 2007 at 17:15:09 +0800, kashin Lin wrote:<br>&gt;<br>&gt;&gt; Hi,<br>&gt;&gt;<br>&gt;&gt; i build okl4 for pxa270 using following machine configuration:  
<br>&gt;&gt; vbase is 0x1302000, vend is 0xcfffffff<br>&gt;&gt; addr is 0x1302000, vbase is 0x1302000<br>&gt;&gt; PXA25X OS Timer driver starting...<br>&gt;&gt; PXA25X wrap handler installed<br>&gt;&gt; Using FFUA *(STOP HERE)  
<br>&gt;&gt; ========================================<br>&gt;&gt;<br>&gt;&gt; can anyone give me some suggestions about what may be the cause of this<br>&gt;&gt; status<br>&gt;&gt; and how can i fix it?<br>&gt;&gt;<br>&gt;  
<br>&gt; I&#39;m not sure what the cause is. Are you able to enter the kernel<br>&gt; debugger at this point to try and get some further information?<br>&gt;<br>&gt; Cheers,<br>&gt;<br>&gt; Ben<br>&gt;<br>&gt; _______________________________________________  
<br>&gt; Developer mailing list<br>&gt; <a href="mailto:Developer@okl4.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Developer@okl4.org</a><br>&gt; <a href="https://lists.okl4.org/mailman/listinfo/developer" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 https://lists.okl4.org/mailman/listinfo/developer</a><br> &gt;<br>&gt;<br><br></blockquote></div><br>