<div dir="ltr">One thing I think you'd enjoy doing is building the qemu target, setting up qemu with gdb, and just watching what happens, instruction by instruction, as the system boots.<div><br></div><div>ron</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jan 10, 2016 at 3:28 AM Rafael Machado <<a href="mailto:rafaelrodrigues.machado@gmail.com">rafaelrodrigues.machado@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Peter and Rudolf.<br>
Thanks for the answers and tips. They are realy helpfull !<br>
I'll take a look.</p>
<p dir="ltr">Rafael R. Machado</p>
<br><div class="gmail_quote"><div dir="ltr">Em Sáb, 9 de jan de 2016 17:19, Rudolf Marek <<a href="mailto:r.marek@assembler.cz" target="_blank">r.marek@assembler.cz</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I guess your question is more general than the coreboot related right?<br>
<br>
If you have a firmware image dump of the flash (not the file you download from<br>
board vendor) then yes, first location to be executed is the instruction located<br>
16 bytes before end of the image.<br>
<br>
In coreboot see in build/ bootblock_inc.S which also has reset16.inc and<br>
entry16.inc which is a real start. Consult the Intel or AMD manual to see the<br>
CPU state after reset. The CPU starts in real mode, but CS base is shifted to<br>
last 64KB before end of 4GB address space. In general your CPU starts in<br>
compatible mode with 8086 manufactured in 1978.<br>
<br>
Thanks<br>
Rudolf<br>
</blockquote></div>
--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
<a href="http://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">http://www.coreboot.org/mailman/listinfo/coreboot</a></blockquote></div>