<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello May,<br>
<br>
My FSP is from Intel website too, but it's called slightly different
- 'RANGELEY_<b>FSP</b>_POSTGOLD_001_20131218.fd'.<br>
Also, I have the book called "Embedded Firmware Solutions" in which
the purpose of mrc.cache is described as "For saved memory
configuration data." Later in this book there is another mention of
this file in the "State Machine Callbacks" section:<br>
"Each state has an Entry Callback and an Exit Callback, which may be
used by any coreboot code to hook any state. For example the
Baytrail FSP mrc.cache is saved during the table write state, after
all devices have been setup.<br>
Enter State -> Entry Callback -> Execute State -> Exit
Callback -> Next State"<br>
I can also attach my configuration file if it will be more
convenient for you.<br>
<br>
-Viktor<br>
<br>
<div class="moz-cite-prefix">On 20.01.2015 04:42, May Park wrote:<br>
</div>
<blockquote cite="mid:201501200942419031858@163.com" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: Consolas; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<div><span></span><br>
</div>
<div>Hello Viktor,</div>
<div><br>
</div>
<div>I went thru your log file attached below, and I found a
difference between our coreboot.rom which used the same Rangeley
platform (Mohon Peak CRB).</div>
<div><br>
</div>
<div>would you please tell me how you generate this hightlighted
mrc.cache file, I didn't find any configuration in 'menuconfig'
or Kconfig files. My code base is '<span
style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt;
line-height: 1.5;"><b>RANGELEY_CB_POSTGOLD_001_20131218</b></span><span
style="font-size: 10.5pt; line-height: 1.5; background-color:
window;">' which was downloaded from Intel website.</span></div>
<div><br>
</div>
<div>I've already googled 'mrc.cache' but hardly found much hits,
what is this file for? could you please also give some hints :)</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>May</div>
<div><br>
</div>
<div>------------------------------------------------------------</div>
<div>
<div><i>Name Offset Type
Size</i></div>
<div><i>cmos_layout.bin 0x600000 cmos_layout
1352</i></div>
<div><i>pci1106,3230.rom 0x600580 optionrom
4096</i></div>
<div><i>fallback/romstage 0x6015c0 stage
26620</i></div>
<div><i>fallback/ramstage 0x607e00 stage
60427</i></div>
<div><i>fallback/payload 0x616a80 payload
53368</i></div>
<div><i>config 0x623b40 raw
4538</i></div>
<div><i>revision 0x624d40 raw
714</i></div>
<div><i>vgaroms/sgabios.bin 0x625040 raw
4096</i></div>
<div><i>(empty) 0x626080 null
1220376</i></div>
<div><i><b><font style="background-color: rgb(192, 192, 192);"
color="#3366ff">mrc.cache
0x74ffc0 (unknown) 65536</font></b></i></div>
<div><i>cpu_microcode_blob.bin 0x760000 microcode
83968</i></div>
<div><i>(empty) 0x774840 null
46936</i></div>
<div><i>fsp.bin 0x77ffc0 (unknown)
372736</i></div>
<div><i>(empty) 0x7db000 null
150424</i></div>
</div>
<hr style="width: 210px; height: 1px; display: none;" align="left"
size="1" color="#b5c4df">
<div><span></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div> </div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE:
12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef;
PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<div><b>From:</b> <a moz-do-not-send="true"
href="mailto:kuzmichevviktorv@gmail.com">Kuzmichev
Viktor</a></div>
<div><b>Date:</b> 2014-12-25 16:45</div>
<div><b>To:</b> <a moz-do-not-send="true"
href="mailto:coreboot@coreboot.org">coreboot</a></div>
<div><b>Subject:</b> [coreboot] SeaBIOS, serial output,
grub, sgabios does not seem to load</div>
</div>
</div>
<div>
<div>Hello,</div>
<div> </div>
<div>I've been trying to boot grub installed on the hard drive
using coreboot </div>
<div>and SeaBIOS as a payload. The motherboard I'm using is
Intel Mohon Peak. </div>
<div>Also, I do not use VGA for output, only serial port. So,
I included the </div>
<div>sgabios into my rom file. Here is its layout:</div>
<div> </div>
<div>$ ./build/cbfstool build/coreboot.rom print</div>
<div>coreboot.rom: 8192 kB, bootblocksize 1024, romsize
8388608, offset 0x600000</div>
<div>alignment: 64 bytes, architecture: x86</div>
<div> </div>
<div>Name Offset Type
Size</div>
<div>cmos_layout.bin 0x600000 cmos_layout
1352</div>
<div>pci1106,3230.rom 0x600580 optionrom
4096</div>
<div>fallback/romstage 0x6015c0 stage
26620</div>
<div>fallback/ramstage 0x607e00 stage
60427</div>
<div>fallback/payload 0x616a80 payload
53368</div>
<div>config 0x623b40 raw
4538</div>
<div>revision 0x624d40 raw
714</div>
<div>vgaroms/sgabios.bin 0x625040 raw
4096</div>
<div>(empty) 0x626080 null
1220376</div>
<div>mrc.cache 0x74ffc0 (unknown)
65536</div>
<div>cpu_microcode_blob.bin 0x760000 microcode
83968</div>
<div>(empty) 0x774840 null
46936</div>
<div>fsp.bin 0x77ffc0 (unknown)
372736</div>
<div>(empty) 0x7db000 null
150424</div>
<div> </div>
<div>The issue is, it looks like SeaBIOS does not load sgabios
at all.</div>
<div>Here is the SeaBIOS output, debug level 7 (I also put it
in the attachment):</div>
<div> </div>
<div>Attempting to find coreboot table</div>
<div>Found coreboot table forwarder.</div>
<div>Now attempting to find coreboot memory map</div>
<div>Found mainboard Intel Mohon Peak CRB</div>
<div>malloc preinit</div>
<div>Relocating init from 0x000e6b60 to 0x7fd97590 (size
35248)</div>
<div>malloc init</div>
<div>Found CBFS header at 0xfffffbe0</div>
<div>Add romfile: cmos_layout.bin (size=1352)</div>
<div>Add romfile: pci1106,3230.rom (size=4096)</div>
<div>Add romfile: fallback/romstage (size=26620)</div>
<div>Add romfile: fallback/ramstage (size=60427)</div>
<div>Add romfile: fallback/payload (size=53368)</div>
<div>Add romfile: config (size=4538)</div>
<div>Add romfile: revision (size=714)</div>
<div>Add romfile: vgaroms/sgabios.bin (size=4096)</div>
<div>Add romfile: (size=1220376)</div>
<div>Add romfile: mrc.cache (size=65536)</div>
<div>Add romfile: cpu_microcode_blob.bin (size=83968)</div>
<div>Add romfile: (size=46936)</div>
<div>Add romfile: fsp.bin (size=372736)</div>
<div>Add romfile: (size=150424)</div>
<div>init ivt</div>
<div>init bda</div>
<div>init bios32</div>
<div>init PNPBIOS table</div>
<div>init keyboard</div>
<div>init mouse</div>
<div>init pic</div>
<div>math cp init</div>
<div>tsc calibrate start=1665406224 end=1669527480
diff=4121256</div>
<div>CPU Mhz=2401</div>
<div>init timer</div>
<div>PCI probe</div>
<div>PCI device 00:00.0 (vd=8086:1f08 c=0600)</div>
<div>PCI device 00:01.0 (vd=8086:1f10 c=0604)</div>
<div>PCI device 00:03.0 (vd=8086:1f12 c=0604)</div>
<div>PCI device 00:0b.0 (vd=8086:1f18 c=0b40)</div>
<div>PCI device 00:0e.0 (vd=8086:1f14 c=0600)</div>
<div>PCI device 00:0f.0 (vd=8086:1f16 c=0806)</div>
<div>PCI device 00:13.0 (vd=8086:1f15 c=0880)</div>
<div>PCI device 00:16.0 (vd=8086:1f2c c=0c03)</div>
<div>PCI device 00:17.0 (vd=8086:1f22 c=0106)</div>
<div>PCI device 00:18.0 (vd=8086:1f32 c=0106)</div>
<div>PCI device 00:1f.0 (vd=8086:1f38 c=0601)</div>
<div>PCI device 00:1f.3 (vd=8086:1f3c c=0c05)</div>
<div>PCI device 01:00.0 (vd=1a03:1150 c=0604)</div>
<div>PCI device 02:00.0 (vd=1a03:2000 c=0300)</div>
<div>PCI device 03:00.0 (vd=10b5:8624 c=0604)</div>
<div>PCI device 04:04.0 (vd=10b5:8624 c=0604)</div>
<div>PCI device 04:05.0 (vd=10b5:8624 c=0604)</div>
<div>PCI device 04:08.0 (vd=10b5:8624 c=0604)</div>
<div>PCI device 04:09.0 (vd=10b5:8624 c=0604)</div>
<div>PCI device 06:00.0 (vd=8086:1528 c=0200)</div>
<div>PCI device 06:00.1 (vd=8086:1528 c=0200)</div>
<div>Found 21 PCI devices (max PCI bus is 08)</div>
<div>Relocating coreboot bios tables</div>
<div>Copying ACPI RSDP from 0x7fde2800 to 0x000f5730</div>
<div>Copying SMBIOS entry point from 0x7fdee000 to 0x000f5710</div>
<div>rsdp=0x000f5730</div>
<div>rsdt=0x7fde2830</div>
<div>fadt=0x7fde4950</div>
<div>pm_tmr_blk=408</div>
<div>Using pmtimer, ioport 0x408</div>
<div>/7fd95000\ Start thread</div>
<div>|7fd95000| init usb</div>
<div>|7fd95000| EHCI init on dev 00:16.0 (regs=0xdc865420)</div>
<div>/7fd94000\ Start thread</div>
<div>init ps2port</div>
<div>/7fd93000\ Start thread</div>
<div>|7fd93000| i8042_flush</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| i8042 flushed ff (status=ff)</div>
<div>|7fd93000| WARNING - Timeout at i8042_flush:71!</div>
<div>\7fd93000/ End thread</div>
<div>init lpt</div>
<div>Found 0 lpt ports</div>
<div>init serial</div>
<div>Found 2 serial ports</div>
<div>init floppy drives</div>
<div>init hard drives</div>
<div>init ahci</div>
<div>ebda moved from 9f000 to 9e800</div>
<div>AHCI controller at 17.0, iobase dc864000, irq 15</div>
<div>AHCI: cap 0xc720ff03, ports_impl 0x2</div>
<div>/7fd92000\ Start thread</div>
<div>|7fd92000| AHCI/1: probing</div>
<div>|7fd92000| AHCI/1: link up</div>
<div>\7fd95000/ End thread</div>
<div>/7fd91000\ Start thread</div>
<div>AHCI controller at 18.0, iobase dc864800, irq 0</div>
<div>AHCI: cap 0xc3309f01, ports_impl 0x0</div>
<div>init megasas</div>
<div>/7fd90000\ Start thread</div>
<div>|7fd92000| AHCI/1: ... finished, status 0x51, ERROR 0x4</div>
<div>/7fd8f000\ Start thread</div>
<div>|7fd92000| Searching bootorder for:
/pci@i0cf8/*@17/drive@1/disk@0</div>
<div>/7fd8e000\ Start thread</div>
<div>|7fd92000| AHCI/1: registering: "AHCI/1:
ST500DM002-1BD142 ATA-8 </div>
<div>Hard-Disk (465"</div>
<div>|7fd92000| Registering bootable: AHCI/1:
ST500DM002-1BD142 ATA-8 </div>
<div>Hard-Disk (465)</div>
<div>\7fd92000/ End thread</div>
<div>/7fd93000\ Start thread</div>
<div>/7fd92000\ Start thread</div>
<div>|7fd91000| set_address 0x7fd96260</div>
<div>/7fd8d000\ Start thread</div>
<div>/7fd8c000\ Start thread</div>
<div>|7fd91000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>|7fd91000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd91000| config_usb: 0x7fd95b50</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=8)</div>
<div>|7fd91000| device rev=0200 cls=09 sub=00 proto=01 size=64</div>
<div>|7fd91000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=9)</div>
<div>\7fd8c000/ End thread</div>
<div>\7fd8d000/ End thread</div>
<div>\7fd92000/ End thread</div>
<div>\7fd93000/ End thread</div>
<div>\7fd8e000/ End thread</div>
<div>\7fd8f000/ End thread</div>
<div>\7fd90000/ End thread</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=128 cmd=8
data=25)</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=7)</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>|7fd91000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>/7fd93000\ Start thread</div>
<div>|7fd93000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>/7fd92000\ Start thread</div>
<div>|7fd93000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>/7fd90000\ Start thread</div>
<div>|7fd93000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>/7fd8f000\ Start thread</div>
<div>|7fd8f000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd90000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd92000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| set_address 0x7fd96260</div>
<div>|7fd8f000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd92000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd93000| ehci_control 0x7fd95ad0 (dir=0 cmd=8 data=0)</div>
<div>|7fd8f000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd92000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd93000| config_usb: 0x7fd95ad0</div>
<div>|7fd93000| ehci_control 0x7fd95ad0 (dir=128 cmd=8 data=8)</div>
<div>|7fd8f000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| device rev=0110 cls=00 sub=00 proto=00 size=8</div>
<div>|7fd93000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd93000| ehci_control 0x7fd95ad0 (dir=128 cmd=8 data=9)</div>
<div>\7fd8f000/ End thread</div>
<div>|7fd90000| ehci_control 0x7fd95b50 (dir=0 cmd=8 data=0)</div>
<div>|7fd93000| ehci_control 0x7fd95ad0 (dir=128 cmd=8
data=34)</div>
<div>|7fd90000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| ehci_control 0x7fd95ad0 (dir=0 cmd=8 data=0)</div>
<div>|7fd90000| set_address 0x7fd96260</div>
<div>|7fd92000| ehci_control 0x7fd95b50 (dir=128 cmd=8 data=4)</div>
<div>|7fd93000| usb_hid_setup 0x7fd95ad0</div>
<div>|7fd93000| ehci_control 0x7fd95ad0 (dir=0 cmd=8 data=0)</div>
<div>|7fd90000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=0 cmd=8 data=0)</div>
<div>\7fd92000/ End thread</div>
<div>|7fd93000| ehci_alloc_intr_pipe 0x7fd96260 3</div>
<div>|7fd93000| ebda moved from 9e800 to 9e400</div>
<div>|7fd93000| USB mouse initialized</div>
<div>\7fd93000/ End thread</div>
<div>|7fd90000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd90000| config_usb: 0x7fd958d0</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=128 cmd=8 data=8)</div>
<div>|7fd90000| device rev=0200 cls=00 sub=00 proto=00 size=8</div>
<div>|7fd90000| ehci_alloc_async_pipe 0x7fd96260 0</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=128 cmd=8 data=9)</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=128 cmd=8
data=59)</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=0 cmd=8 data=0)</div>
<div>|7fd90000| usb_hid_setup 0x7fd958d0</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=0 cmd=8 data=0)</div>
<div>|7fd90000| ehci_control 0x7fd958d0 (dir=0 cmd=8 data=0)</div>
<div>|7fd90000| ehci_alloc_intr_pipe 0x7fd96260 3</div>
<div>|7fd90000| ebda moved from 9e400 to 9e000</div>
<div>|7fd90000| USB keyboard initialized</div>
<div>\7fd90000/ End thread</div>
<div>|7fd91000| Initialized USB HUB (2 ports used)</div>
<div>\7fd91000/ End thread</div>
<div>|7fd94000| ehci_free_pipes 0x7fd96260</div>
<div>\7fd94000/ End thread</div>
<div>All threads complete.</div>
<div>Searching bootorder for: HALT</div>
<div>Mapping hd drive 0x000f5680 to 0</div>
<div>drive 0x000f5680: PCHS=16383/16/63 translation=lba
LCHS=1024/255/63 </div>
<div>s=976773168</div>
<div>malloc finalize</div>
<div>Space available for UMB: c0000-ef510, f4f60-f5680</div>
<div>Returned 253952 bytes of ZoneHigh</div>
<div>e820 map has 8 items:</div>
<div> 0: 0000000000000000 - 000000000009e000 = 1 RAM</div>
<div> 1: 000000000009e000 - 00000000000a0000 = 2 RESERVED</div>
<div> 2: 00000000000f0000 - 0000000000100000 = 2 RESERVED</div>
<div> 3: 0000000000100000 - 000000007fdde000 = 1 RAM</div>
<div> 4: 000000007fdde000 - 000000007fe00000 = 2 RESERVED</div>
<div> 5: 00000000e0000000 - 00000000f0000000 = 2 RESERVED</div>
<div> 6: 00000000fee00000 - 00000000fee01000 = 2 RESERVED</div>
<div> 7: 0000000100000000 - 0000000180000000 = 1 RAM</div>
<div>Jump to int19</div>
<div>enter handle_19:</div>
<div> NULL</div>
<div>Booting from 0000:7c00</div>
<div>enter handle_12:</div>
<div> a=00000000 b=00000000 c=00000000 d=00000080
ds=0000 es=0000 ss=9000</div>
<div> si=00007c05 di=00058cc0 bp=00001ff0 sp=0000ffd6
cs=0000 ip=8af1 f=0297</div>
<div>invalid handle_legacy_disk:696:</div>
<div> a=00004100 b=000655aa c=00000000 d=00000081
ds=0000 es=0000 ss=9000</div>
<div> si=00067fbc di=00000081 bp=00001ff0 sp=0000ffd6
cs=0000 ip=89a5 f=0246</div>
<div>invalid handle_legacy_disk:696:</div>
<div> a=00000800 b=00067fbc c=00000000 d=00000081
ds=0000 es=0000 ss=9000</div>
<div> si=00000000 di=00000081 bp=00001ff0 sp=0000ffd6
cs=0000 ip=89d9 f=0246</div>
<div>unimplemented handle_15XX:330:</div>
<div> a=000000c0 b=00000000 c=00000000 d=00000081
ds=0000 es=0000 ss=9000</div>
<div> si=00067fbc di=00000081 bp=00001ff0 sp=0000ffd6
cs=0000 ip=8ba6 f=0246</div>
<div>Press any key to continue.</div>
<div>Press any key to continue.</div>
<div>Press any key to continue.</div>
<div>Press any key to continue.</div>
<div>Press any key to continue.</div>
<div> </div>
<div>The last five lines is clearly grub output, only after
this goes nothing </div>
<div>and it seems to me that sgabios does not forward VGA
output to the </div>
<div>serial port.</div>
<div> </div>
<div>So, how do I fix that? Am I missing something?</div>
<div> </div>
<div>Regards,</div>
<div>Viktor Kuzmichev</div>
<div> </div>
<div><br>
</div>
<div>-- </div>
<div>coreboot mailing list: <a class="moz-txt-link-abbreviated" href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a></div>
<div><a class="moz-txt-link-freetext" href="http://www.coreboot.org/mailman/listinfo/coreboot">http://www.coreboot.org/mailman/listinfo/coreboot</a></div>
</div>
</blockquote>
</blockquote>
<br>
</body>
</html>