blob: e43985c62df84f165784d0dcce39aa4849d79e16 [file] [log] [blame]
Lee Leahyc1e4f892016-01-07 11:24:24 -08001<!DOCTYPE html>
2<html>
3 <head>
4 <title>Board</title>
5 </head>
6 <body>
7
8<h1>x86 Board Development</h1>
9<p>
10 Board development requires System-on-a-Chip (SoC) support.
11 The combined steps are listed
12 <a target="_blank" href="../x86Development.html">here</a>.
13 The development steps for the board are listed below:
14</p>
15<ol>
16 <li><a href="#RequiredFiles">Required Files</a></li>
17</ol>
18
19
20<hr>
21<h1><a name="RequiredFiles">Required Files</a></h1>
22<p>
23 Create the board directory as src/mainboard/&lt;Vendor&gt;/&lt;Board&gt;.
24</p>
25
26<p>
27 The following files are required to build a new board:
28</p>
29<ol>
30 <li>Kconfig.name - Defines the Kconfig value for the board</li>
31 <li>Kconfig
32 <ol type="A">
33 <li>Selects the SoC for the board and specifies the SPI flash size
34 <ol type="I">
35 <li>BOARD_ROMSIZE_KB_&lt;Size&gt;</li>
36 <li>SOC_&lt;Vendor&gt;_&lt;Chip Family&gt;</li>
37 </ol>
38 </li>
39 <li>Declare the Kconfig values for:
40 <ol type="I">
41 <li>MAINBOARD_DIR</li>
42 <li>MAINBOARD_PART_NUMBER</li>
43 <li>MAINBOARD_VENDOR</li>
44 </ol>
45 </li>
46 </ol>
47 </li>
48 <li>devicetree.cb - Enable root bridge and serial port
49 <ol type="A">
50 <li>The first line must be "chip soc/Intel/&lt;soc family&gt;";
51 this path is used by the generated static.c to include the chip.h
52 header file
53 </li>
54 </ol>
55 </li>
56 <li>romstage.c
57 <ol type="A">
58 <li>Add routine mainboard_romstage_entry which calls romstage_common</li>
59 </ol>
60 </li>
61 <li>Configure coreboot build:
62 <ol type="A">
63 <li>Set LOCALVERSION</li>
64 <li>FLASHMAP_OFFSET = 0x00700000</li>
65 <li>Select vendor for the board</li>
66 <li>Select the board</li>
67 <li>CBFS_SIZE = 0x00100000</li>
68 <li>Set the CPU_MICROCODE_CBFS_LEN</li>
69 <li>Set the CPU_MICROCODE_CBFS_LOC</li>
70 <li>Set the FSP_IMAGE_ID_STRING</li>
71 <li>Set the FSP_LOC</li>
72 <li>Disable GOP_SUPPORT</li>
73 <li>No payload</li>
74 <li>Choose the default value for all other options</li>
75 </ol>
76 </li>
77</ol>
78
79
80<hr>
81<p>Modified: 31 January 2016</p>
82 </body>
83</html>