<div><div>On Friday,June 9, 2017 9:17 AM, Jonathan Neuschäfer wrote:</div><div>>On Thu, Jun 08, 2017 at 05:32:31PM +0800, 王翔 wrote:</div><div>>> I try to debug coreboot with **spike**. </div><div>>> I has apply the **8250 usart patch** to **spike**.</div><div><br></div><div>>I haven't updated the patches at [1] in a while. Please check if the two</div><div>>patches in [2] work for you if you also apply the following patch to</div><div>>coreboot:</div><div><br></div><div>>------------------------------------------------------------------------</div><div>>diff --git a/src/mainboard/emulation/spike-riscv/uart.c b/src/mainboard/emulation/spike-riscv/uart.c</div><div>>index 57647fee1d..26ab630091 100644</div><div>>--- a/src/mainboard/emulation/spike-riscv/uart.c</div><div>>+++ b/src/mainboard/emulation/spike-riscv/uart.c</div><div>>@@ -20,5 +20,5 @@</div><div> </div><div> >uintptr_t uart_platform_base(int idx)</div><div> >{</div><div>>-<span class="Apple-tab-span" style="white-space:pre">    </span>return (uintptr_t) 0x40001000;</div><div>>+<span class="Apple-tab-span" style="white-space:pre">  </span>return (uintptr_t) 0x02100000;</div><div> >}</div><div>>------------------------------------------------------------------------</div><div>>[1]: https://github.com/riscv/riscv-isa-sim/pull/53</div><div>>[2]: https://github.com/neuschaefer/riscv-isa-sim/commits/uart-update</div><div><br></div><div>I get source frome  https://github.com/riscv/riscv-tools.git. </div><div>Compare the difference with https://github.com/riscv/riscv-isa-sim/pull/53 and fix the code.</div><div>The difference of Our patch is **UART_BASE**. You use 0x02100000, me use 0x40001000.</div><div>In my test 0x40001000 can be work with **coreboot**, but 0x02100000 can not.</div><div>My patch is in the attachment of the message.</div><div><br></div><div>>> But I get from the official website of the code can not pass the test.</div><div>>> I found some BUG when I debug this.</div><div><br></div><div>>What did you test? How did it fail?</div><div><br></div><div>I test by **spike**.  I have report the patch.</div><div>https://review.coreboot.org/#/c/20043/</div><div>https://review.coreboot.org/#/c/20105/</div><div><br></div><div>>Regards,</div><div>>Jonathan Neuschäfer</div><div><br></div><div>Regards,</div><div>王翔</div></div><div><br></div><div><sign signid="99"><div style="color:#909090;font-family:Arial Narrow;font-size:12px"><br><br><br><br>------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div style="overflow:hidden;"><div class="l_box" style="float:left;height:100px;margin:35px 10px 10px 0;padding:0 10px 0 15px;border-right:1px solid #dedede;"><div class="logo" style="height:35px;margin:35px 0 0 0;float:left;"><img src="https://exmail.qq.com/cgi-bin/viewfile?type=logo&domain=tya.email"></div></div><div class="c_detail" style="float:left;padding-top:35px;line-height:22px;color:#a0a0a0;zoom:1;"><h4 class="name" style="margin:0;font-size:14px;font-weight:bold;line-height:28px;color:#000;zoom:1;">王翔</h4><p class="position" style="margin:0;">安全研究员</p><p class="department" style="margin:0;">广州市腾御安信息科技有限公司</p><p class="phone" style="margin:0;"></p><p class="mobile" style="margin:0;"></p><p class="addr" style="margin:0;line-height:22px;color:#a0a0a0;">广州市天河区珠江新城华穗路406号保利克洛维二期中景A座1020-1024</p></div></div></div></sign></div><div> </div><div><includetail><!--<![endif]--></includetail></div>