<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hey All,<br><br>I'm tyring to incorporate the u-boot cpu POST (cpu_post_test) into a custom board using an MPC8541E running the latest uboot version, and the board hangs when this particular POST test is run.&nbsp; Digging a little deeper I found that the system hangs in the cpu_post_exec_12 in the /post/cpu/asm.S file.&nbsp; Below is the code:<br><br>/* void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2); */<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .global cpu_post_exec_12<br>cpu_post_exec_12:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mflr&nbsp;&nbsp;&nbsp; r0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stwu&nbsp;&nbsp;&nbsp; r0, -4(r1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stwu&nbsp;&nbsp;&nbsp; r4, -4(r1)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 mtlr&nbsp;&nbsp;&nbsp; r3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r3, r5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r4, r6<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blrl&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; &lt;-----------------hangs here<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lwz&nbsp;&nbsp;&nbsp;&nbsp; r4, 0(r1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stw&nbsp;&nbsp;&nbsp;&nbsp; r3, 0(r4)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lwz&nbsp;&nbsp;&nbsp;&nbsp; r0, 4(r1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addi&nbsp;&nbsp;&nbsp; r1, r1, 8<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mtlr&nbsp;&nbsp;&nbsp; r0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blr<br><br>I commented out the first branch and the entire cpu post ran without hanging the system
 again.&nbsp; I need to incorporate this test into my board, but I don't want to comment this code without fully understanding it's functionality.&nbsp; Has anyone done any work on the cpu POST for an MPC85xx and run into similar problems and can someone point me to where I can find more details on what this code is doing?<br><br>Thanks,<br>Brandon Clarke<br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>