]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/README
Fix InternalMemScanMem* functions so that they return the pointer to the matched...
[mirror_edk2.git] / OvmfPkg / README
CommitLineData
49ba9447 1\r
2=== OVMF OVERVIEW ===\r
3\r
4The Open Virtual Machine Firmware (OVMF) project aims\r
5to support firmware for Virtual Machines using the edk2\r
6code base. More information can be found at:\r
7\r
c315da0a 8http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF\r
49ba9447 9\r
10=== STATUS ===\r
11\r
12Current status: Alpha\r
13\r
14Current capabilities:\r
15* IA32 and X64 architectures\r
16* QEMU (0.9.1 or later)\r
17 - Video, keyboard, IDE, CD-ROM, serial\r
18 - Runs UEFI shell\r
7416f4eb 19 - Optional NIC support. Requires QEMU (0.12.2 or later)\r
49ba9447 20* UEFI Linux has booted (but is not stable)\r
21\r
22=== FUTURE PLANS ===\r
23\r
24* Stabilize UEFI Linux boot\r
25* Test/Stabilize UEFI Self-Certification Tests (SCT) results\r
26\r
37e97c51 27=== BUILDING OVMF ===\r
28\r
29Pre-requisites:\r
30* Build environment capable of build the edk2 MdeModulePkg.\r
31* A properly configured ASL compiler\r
32 * Intel ASL compiler: Available from http://www.acpica.org\r
33 or\r
34 * Microsoft ASL compiler: Available from http://www.acpi.info\r
35\r
36Update Conf/target.txt ACTIVE_PLATFORM for OVMF:\r
37 PEI arch DXE arch UEFI interfaces\r
38* OvmfPkg/OvmfPkgIa32.dsc IA32 IA32 IA32\r
39* OvmfPkg/OvmfPkgIa32X64.dsc IA32 X64 X64\r
40* OvmfPkg/OvmfPkgX64.dsc X64 X64 X64\r
41\r
2dae09a5 42Update Conf/target.txt TARGET_ARCH based on the .dsc file:\r
43 TARGET_ARCH\r
44* OvmfPkg/OvmfPkgIa32.dsc IA32\r
45* OvmfPkg/OvmfPkgIa32X64.dsc IA32 X64\r
46* OvmfPkg/OvmfPkgX64.dsc X64\r
47\r
48Following the edk2 build process, you will find the OVMF binaries\r
49under the $WORKSPACE/Build/*/*/FV directory. The actual path will\r
50depend on how your build is configured. You can expect to find\r
51these binary outputs:\r
7416f4eb 52* OVMF.FD\r
53 * Please note! This filename has changed. Older releases used OVMF.Fv.\r
2dae09a5 54* CirrusLogic5446.rom\r
55\r
56More information on building OVMF can be found at:\r
c315da0a 57\r
58http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_build_OVMF\r
37e97c51 59\r
60=== RUNNING OVMF on QEMU ===\r
61\r
62* QEMU 0.9.1 or later is required.\r
7416f4eb 63* Either copy, rename or symlink OVMF.FD => bios.bin\r
2dae09a5 64* Either copy, rename or symlink CirrusLogic5446.rom => vgabios-cirrus.bin\r
37e97c51 65* Be sure to use qemu-system-x86_64, if you are using and X64 firmware.\r
66 (qemu-system-x86_64 works for the IA32 firmware as well, of course.)\r
2dae09a5 67* Use the QEMU -L parameter to specify the directory where the bios.bin\r
68 and vgabios-cirrus.bin files are located.\r
37e97c51 69* Optionally you can use the QEMU -serial command to capture the\r
70 OVMF debug messages. For example: -serial file:serial.log\r
71* The EFI shell is built into OVMF builds at this time, so it should\r
72 run automatically if a UEFI boot application is not found on the\r
73 removable media.\r
aed8e2ec 74* On Linux, newer version of QEMU may enable KVM feature, and this might\r
75 cause OVMF to fail to boot. The QEMU '-no-kvm' may allow OVMF to boot.\r
5a9745b9 76\r
77=== Build Scripts ===\r
78\r
79On environments with the bash shell you can use OvmfPkg/build32.sh and\r
80OvmfPkg/build64.sh to simplify building and running OVMF.\r
81\r
82So, for example, to build + run OVMF X64:\r
83$ OvmfPkg/build64.sh\r
84$ OvmfPkg/build64.sh qemu\r
85\r
86And to run a 64-bit UEFI bootable ISO image:\r
87$ OvmfPkg/build64.sh qemu -cdrom /path/to/disk-image.iso\r
88\r
aed8e2ec 89=== Network Support ===\r
90\r
91To add network drivers to OVMF:\r
92\r
93* Download UEFI drivers for the e1000 NIC\r
94 - http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=17515&lang=eng\r
95 - Install the drivers into a directory called Intel3.5 in your WORKSPACE\r
96\r
97* Include the drivers in OVMF during the build:\r
98 - Add '-D NETWORK_ENABLE' to your build command\r
99 - For example: build -D NETWORK_ENABLE\r
100\r
101* Use the QEMU -net parameter to enable NIC support.\r
102 - QEMU does not support UEFI DHCP or UEFI PXE Boot, so long timeouts will\r
103 occur when NICs are enabled. The long timeouts can be avoided by\r
104 interrupts the boot sequence by pressing a key when the logo appears.\r
105 - Example: Enable e1000 NIC with a DHCP server and restrict packet\r
106 forwarding:\r
107 -net nic,model=e1000 -net user,restrict=yes -net user,dhcpstart=10.0.2.10\r
108 - Example: Enable e1000 NIC with a DHCP server, restrict packet forwarding,\r
109 and generate PCAP file:\r
110 -net nic,model=e1000 -net user,restrict=yes -net user,dhcpstart=10.0.2.10\r
111 -net dump,file=a.pcap\r
112 - Example: Enable 2 e1000 NICs with a DHCP server and restrict\r
113 packet forwarding:\r
114 -net nic,model=e1000,addr=3 -net nic,model=e1000,addr=4\r
115 -net user,restrict=yes -net user,dhcpstart=10.0.2.10\r
116\r