2024-07-24 17:00:17 +02:00
|
|
|
\babel@toc {english}{}\relax
|
2024-08-25 11:54:54 +02:00
|
|
|
\contentsline {chapter}{Acknowledgments}{3}{chapter*.1}%
|
|
|
|
\contentsline {chapter}{Abstract}{4}{chapter*.2}%
|
2024-08-27 13:27:07 +02:00
|
|
|
\contentsline {chapter}{Contents}{5}{chapter*.3}%
|
|
|
|
\contentsline {chapter}{List of Figures}{7}{chapter*.4}%
|
|
|
|
\contentsline {chapter}{List of Listings}{9}{chapter*.5}%
|
2024-08-26 19:19:02 +02:00
|
|
|
\contentsline {chapter}{\numberline {1}Introduction to firmware and BIOS evolution}{10}{chapter.1}%
|
|
|
|
\contentsline {section}{\numberline {1.1}Historical context of BIOS}{10}{section.1.1}%
|
|
|
|
\contentsline {subsection}{\numberline {1.1.1}Definition and origin}{10}{subsection.1.1.1}%
|
|
|
|
\contentsline {subsection}{\numberline {1.1.2}Functionalities and limitations}{11}{subsection.1.1.2}%
|
|
|
|
\contentsline {section}{\numberline {1.2}Modern BIOS and UEFI}{12}{section.1.2}%
|
|
|
|
\contentsline {subsection}{\numberline {1.2.1}Transition from traditional BIOS to UEFI (Unified Extensible Firmware Interface)}{12}{subsection.1.2.1}%
|
|
|
|
\contentsline {subsection}{\numberline {1.2.2}An other way with \textit {coreboot}}{12}{subsection.1.2.2}%
|
|
|
|
\contentsline {section}{\numberline {1.3}Shift in firmware responsibilities}{14}{section.1.3}%
|
|
|
|
\contentsline {chapter}{\numberline {2}Characteristics of ASUS KGPE-D16 mainboard}{15}{chapter.2}%
|
|
|
|
\contentsline {section}{\numberline {2.1}Overview of ASUS KGPE-D16 hardware}{16}{section.2.1}%
|
|
|
|
\contentsline {section}{\numberline {2.2}Chipset}{17}{section.2.2}%
|
|
|
|
\contentsline {section}{\numberline {2.3}Processors}{19}{section.2.3}%
|
|
|
|
\contentsline {section}{\numberline {2.4}Baseboard Management Controller}{20}{section.2.4}%
|
|
|
|
\contentsline {chapter}{\numberline {3}Key components in modern firmware}{22}{chapter.3}%
|
|
|
|
\contentsline {section}{\numberline {3.1}General structure of coreboot}{22}{section.3.1}%
|
|
|
|
\contentsline {subsection}{\numberline {3.1.1}Bootblock}{23}{subsection.3.1.1}%
|
|
|
|
\contentsline {subsection}{\numberline {3.1.2}Romstage}{25}{subsection.3.1.2}%
|
|
|
|
\contentsline {subsection}{\numberline {3.1.3}Ramstage}{26}{subsection.3.1.3}%
|
|
|
|
\contentsline {subsubsection}{\numberline {3.1.3.1}Advanced Configuration and Power Interface}{26}{subsubsection.3.1.3.1}%
|
|
|
|
\contentsline {subsubsection}{\numberline {3.1.3.2}System Management Mode}{27}{subsubsection.3.1.3.2}%
|
|
|
|
\contentsline {subsection}{\numberline {3.1.4}Payload}{27}{subsection.3.1.4}%
|
|
|
|
\contentsline {section}{\numberline {3.2}AMD Platform Security Processor and Intel Management Engine}{28}{section.3.2}%
|
|
|
|
\contentsline {chapter}{\numberline {4}Memory initialization and training}{30}{chapter.4}%
|
2024-08-27 13:27:07 +02:00
|
|
|
\contentsline {section}{\numberline {4.1}Importance of DDR3 memory initialization}{30}{section.4.1}%
|
2024-08-27 14:14:41 +02:00
|
|
|
\contentsline {section}{\numberline {4.2}General steps for DDR3 configuration}{31}{section.4.2}%
|
|
|
|
\contentsline {section}{\numberline {4.3}Memory initialization techniques}{34}{section.4.3}%
|
|
|
|
\contentsline {subsection}{\numberline {4.3.1}Memory training algorithms}{34}{subsection.4.3.1}%
|
|
|
|
\contentsline {subsection}{\numberline {4.3.2}BIOS and Kernel Developer Guide (BKDG) recommendations}{35}{subsection.4.3.2}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.3.2.1}DDR3 initialization procedure}{36}{subsubsection.4.3.2.1}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.3.2.2}ZQ calibration process}{36}{subsubsection.4.3.2.2}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.3.2.3}Write leveling process}{37}{subsubsection.4.3.2.3}%
|
|
|
|
\contentsline {section}{\numberline {4.4}Current implementation and potential improvements}{39}{section.4.4}%
|
|
|
|
\contentsline {subsection}{\numberline {4.4.1}Current implementation in coreboot on the KGPE-D16}{39}{subsection.4.4.1}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.1.1}Details on the DQS training function}{41}{subsubsection.4.4.1.1}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.1.2}Details on the write leveling implementation}{43}{subsubsection.4.4.1.2}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.1.3}Details on the DQS position training function}{45}{subsubsection.4.4.1.3}%
|
2024-08-27 16:03:22 +02:00
|
|
|
\contentsline {subsubsection}{\numberline {4.4.1.4}Details on the DQS receiver training function}{48}{subsubsection.4.4.1.4}%
|
2024-08-27 14:14:41 +02:00
|
|
|
\contentsline {subsection}{\numberline {4.4.2}Potential enhancements}{50}{subsection.4.4.2}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.2.1}DQS receiver training}{50}{subsubsection.4.4.2.1}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.2.2}Write leveling}{52}{subsubsection.4.4.2.2}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.2.3}DQS position training}{54}{subsubsection.4.4.2.3}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.2.4}On saving training values in NVRAM}{56}{subsubsection.4.4.2.4}%
|
|
|
|
\contentsline {subsubsection}{\numberline {4.4.2.5}A seedless DQS position training algorithm}{57}{subsubsection.4.4.2.5}%
|
2024-08-27 13:27:07 +02:00
|
|
|
\contentsline {chapter}{\numberline {5}Virtualization of the operating system through firmware abstraction}{59}{chapter.5}%
|
|
|
|
\contentsline {section}{\numberline {5.1}ACPI and abstraction of hardware control}{59}{section.5.1}%
|
|
|
|
\contentsline {section}{\numberline {5.2}SMM as a hidden execution layer}{60}{section.5.2}%
|
|
|
|
\contentsline {section}{\numberline {5.3}UEFI and persistence}{60}{section.5.3}%
|
|
|
|
\contentsline {subsection}{\numberline {5.3.1}Memory Management}{61}{subsection.5.3.1}%
|
|
|
|
\contentsline {subsection}{\numberline {5.3.2}File System Management}{61}{subsection.5.3.2}%
|
|
|
|
\contentsline {subsection}{\numberline {5.3.3}Device Drivers}{61}{subsection.5.3.3}%
|
|
|
|
\contentsline {subsection}{\numberline {5.3.4}Power Management}{61}{subsection.5.3.4}%
|
|
|
|
\contentsline {section}{\numberline {5.4}Intel and AMD: control beyond the OS}{61}{section.5.4}%
|
2024-08-27 16:03:22 +02:00
|
|
|
\contentsline {section}{\numberline {5.5}Processors microcode}{62}{section.5.5}%
|
|
|
|
\contentsline {section}{\numberline {5.6}The OS as a virtualized environment}{62}{section.5.6}%
|
2024-08-27 13:27:07 +02:00
|
|
|
\contentsline {chapter}{Conclusion}{63}{chapter*.6}%
|
|
|
|
\contentsline {chapter}{Bibliography}{70}{chapter*.7}%
|
|
|
|
\contentsline {chapter}{Appendix: Long code listings}{71}{chapter*.8}%
|
|
|
|
\contentsline {chapter}{GNU General Public License version 2}{82}{chapter*.9}%
|
|
|
|
\contentsline {chapter}{GNU Free Documentation License}{87}{chapter*.10}%
|