About the Authors |
|
xv | |
About the Technical Reviewers |
|
xvii | |
Acknowledgments |
|
xix | |
Foreword |
|
xxi | |
Introduction |
|
xxiii | |
Chapter 1 Introduction |
|
1 | (12) |
|
What Is Embedded Firmware? |
|
|
1 | (2) |
|
|
3 | (1) |
|
What Do Firmware Engineers Do? |
|
|
3 | (1) |
|
Firmware Preparation for New Hardware |
|
|
3 | (1) |
|
|
4 | (2) |
|
|
6 | (1) |
|
The Intel® Firmware Support Package |
|
|
7 | (1) |
|
The Uniqueness of Embedded Firmware |
|
|
8 | (1) |
|
The Choice of Firmware Stacks |
|
|
9 | (1) |
|
Welcome to the Era of the Internet of Things |
|
|
9 | (1) |
|
Technical Coverage in This Book |
|
|
10 | (1) |
|
|
10 | (3) |
Chapter 2 Firmware Stacks for Embedded Systems |
|
13 | (12) |
|
Is a One-Size-Fits-All Solution Possible? |
|
|
15 | (1) |
|
|
16 | (1) |
|
Real-Time Operating System (RTOS) |
|
|
16 | (1) |
|
|
17 | (1) |
|
Implementations of the UEFI Framework |
|
|
18 | (1) |
|
Open Source Firmware Stacks |
|
|
18 | (1) |
|
Proprietary Firmware Stacks |
|
|
19 | (1) |
|
|
20 | (4) |
|
The Advantages of Outsourcing |
|
|
22 | (1) |
|
The Disadvantages of Outsourcing |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
24 | (1) |
Chapter 3 Intel® Firmware Support Package (Intel® FSP) |
|
25 | (30) |
|
|
27 | (1) |
|
|
28 | (3) |
|
|
31 | (2) |
|
|
33 | (3) |
|
Locating the Entries of Intel FSP |
|
|
36 | (3) |
|
The Hard Way to Find Intel FSP APIs: Use Data Structure |
|
|
36 | (2) |
|
The Easy Way to Find FSP APIs: Use Hard-Coded Constants |
|
|
38 | (1) |
|
Programming Interface: The APIs of Intel FSP |
|
|
39 | (5) |
|
|
39 | (3) |
|
|
42 | (1) |
|
|
43 | (1) |
|
|
44 | (3) |
|
|
45 | (1) |
|
Temporary Memory Data HOB |
|
|
45 | (1) |
|
|
46 | (1) |
|
Sample Code for Parsing HOBs |
|
|
46 | (1) |
|
Customization of Intel FSP |
|
|
47 | (2) |
|
|
49 | (3) |
|
|
52 | (1) |
|
|
53 | (1) |
|
|
53 | (1) |
|
|
53 | (1) |
|
What Is Coming in the Following Chapters |
|
|
54 | (1) |
Chapter 4 Building coreboot with Intel FSP |
|
55 | (42) |
|
The Introduction of coreboot |
|
|
55 | (1) |
|
The Philosophy of coreboot |
|
|
56 | (1) |
|
|
57 | (4) |
|
|
57 | (1) |
|
|
57 | (1) |
|
|
58 | (1) |
|
|
59 | (1) |
|
2008 LinuxBIOS Renamed "coreboot" |
|
|
59 | (1) |
|
|
59 | (1) |
|
|
59 | (1) |
|
|
60 | (1) |
|
Prerequisites for Working with coreboot |
|
|
61 | (3) |
|
|
61 | (1) |
|
|
61 | (1) |
|
|
62 | (1) |
|
coreboot Sign-off Procedure |
|
|
63 | (1) |
|
Working with the coreboot Community |
|
|
64 | (1) |
|
|
64 | (1) |
|
|
65 | (1) |
|
Nonsource Binaries in coreboot |
|
|
65 | (1) |
|
A Hands-on Example: Building coreboot for the MinnowBoard MAX Mainboard |
|
|
65 | (11) |
|
|
66 | (1) |
|
|
67 | (1) |
|
|
67 | (1) |
|
|
67 | (1) |
|
Downloading the coreboot Source |
|
|
68 | (1) |
|
|
68 | (1) |
|
|
69 | (1) |
|
Creating a coreboot Development Branch |
|
|
69 | (1) |
|
|
70 | (5) |
|
|
75 | (1) |
|
|
76 | (4) |
|
|
76 | (1) |
|
|
77 | (1) |
|
|
77 | (2) |
|
|
79 | (1) |
|
|
79 | (1) |
|
Boot Flow Using Intel FSP |
|
|
80 | (2) |
|
Reset Vector and Bootblock |
|
|
80 | (1) |
|
|
80 | (1) |
|
|
81 | (1) |
|
|
82 | (1) |
|
|
82 | (12) |
|
|
82 | (5) |
|
coreboot Hardwaremain State Machine |
|
|
87 | (1) |
|
|
88 | (2) |
|
|
90 | (4) |
|
coreboot Troubleshooting and Debugging |
|
|
94 | (1) |
|
|
94 | (1) |
|
|
95 | (1) |
|
|
95 | (1) |
|
|
95 | (2) |
Chapter 5 Chrome book Firmware Internals |
|
97 | (24) |
|
About Chrome book and Chrome OS |
|
|
97 | (1) |
|
Chrome OS Firmware Overview |
|
|
98 | (1) |
|
Chrome OS Security Philosophy |
|
|
98 | (1) |
|
Chrome OS Security Guiding Principles |
|
|
98 | (1) |
|
|
99 | (1) |
|
|
99 | (1) |
|
|
99 | (1) |
|
|
99 | (1) |
|
|
100 | (1) |
|
|
100 | (1) |
|
|
101 | (1) |
|
|
101 | (1) |
|
|
101 | (3) |
|
|
102 | (1) |
|
|
103 | (1) |
|
Verified Boot and Kernel Security |
|
|
104 | (1) |
|
Chrome OS Firmware Boot Log |
|
|
104 | (1) |
|
|
105 | (1) |
|
Chrome OS Firmware Event Log |
|
|
105 | (1) |
|
Google SMI Linux Kernel Driver |
|
|
106 | (1) |
|
Chrome OS Extensions to the Firmware Image |
|
|
106 | (7) |
|
|
106 | (3) |
|
Google Binary Block (GBB) |
|
|
109 | (3) |
|
|
112 | (1) |
|
|
112 | (1) |
|
Chrome OS Firmware Update |
|
|
113 | (1) |
|
|
113 | (5) |
|
|
114 | (1) |
|
|
114 | (1) |
|
|
115 | (2) |
|
|
117 | (1) |
|
Google Embedded Controller |
|
|
118 | (2) |
|
|
118 | (1) |
|
|
119 | (1) |
|
|
119 | (1) |
|
|
119 | (1) |
|
Other Peripheral Controls |
|
|
119 | (1) |
|
|
119 | (1) |
|
|
120 | (1) |
Chapter 6 Intel FSP and UEFI Integration |
|
121 | (24) |
|
|
121 | (4) |
|
|
123 | (2) |
|
|
125 | (1) |
|
|
125 | (1) |
|
|
125 | (1) |
|
|
126 | (2) |
|
Generic FSP Wrapper Boot Flow |
|
|
128 | (1) |
|
|
128 | (4) |
|
|
128 | (1) |
|
Memory Layout for a Normal Boot Flow |
|
|
129 | (1) |
|
FSP Normal Boot Data Structure |
|
|
130 | (2) |
|
|
132 | (2) |
|
|
132 | (1) |
|
|
132 | (1) |
|
|
133 | (1) |
|
|
134 | (4) |
|
|
134 | (1) |
|
Capsule Update Memory Layout |
|
|
135 | (1) |
|
|
136 | (1) |
|
FSP Recovery Memory Layout |
|
|
137 | (1) |
|
coreboot Payload Based upon EDK II |
|
|
138 | (2) |
|
Building Minnow and MinnowMax with FSP |
|
|
140 | (3) |
|
|
143 | (2) |
|
|
Chapter 7 Building Firmware for Quark Processors |
|
145 | (28) |
|
|
145 | (2) |
|
History of Implementations and Specifications |
|
|
146 | (1) |
|
Introduction to EDK II Building Blocks |
|
|
147 | (13) |
|
|
147 | (2) |
|
|
149 | (1) |
|
PCD: Platform Configuration Database |
|
|
150 | (3) |
|
DEC: Platform Declaration File |
|
|
153 | (2) |
|
DSC: Platform Description File |
|
|
155 | (1) |
|
FDF: Flash Description File |
|
|
156 | (1) |
|
Build: The EDK II Build Command |
|
|
156 | (2) |
|
|
158 | (1) |
|
|
159 | (1) |
|
Introduction to the EDK II Subset |
|
|
160 | (1) |
|
|
160 | (11) |
|
ROM Flash Image Size Optimization |
|
|
161 | (7) |
|
RAM Footprint Optimization |
|
|
168 | (3) |
|
|
171 | (2) |
Chapter 8 Putting It All Together |
|
173 | (6) |
|
|
174 | (1) |
|
Intel FSP and Open Source Philosophy |
|
|
175 | (1) |
|
Customization and Production of Intel FSP |
|
|
176 | (1) |
|
It Is a Community Effort After All |
|
|
176 | (3) |
Appendix A: Sample Boot Setting File (BSF) |
|
179 | (12) |
Index |
|
191 | |