Initial commit

This commit is contained in:
Mohammad Anwari 2015-05-21 09:17:22 +07:00
commit fac3a41fd7
3 changed files with 46 additions and 0 deletions

46
README.md Normal file
View File

@ -0,0 +1,46 @@
# UEFI bios for QEMU
## Building
### Preparation
```
git clone https://github.com/tianocore/edk2.git
cd edk2
```
### bios32.bin
```
OvmfPkg/build.sh -a X32 -n 4
cp Build/OvmfX64/DEBUG_GCC4?/FV/OVMF.fd bios32.bin
```
### bios64.bin
```
OvmfPkg/build.sh -a X64 -n 4
cp Build/OvmfX64/DEBUG_GCC4?/FV/OVMF.fd bios64.bin
```
## Using
### 32-bit UEFI in 64-bit system (emulating BayTrail)
```
qemu-system-x86_64 -bios ~/src/blkn/efi/bios32.bin ....<other qemu options>....
```
### 64-bit UEFI in 64-bit system
```
qemu-system-x86_64 -bios ~/src/blkn/efi/bios64.bin ....<other qemu options>....
```
### 32-bit UEFI in 32-bit system (emulating old Macs
```
qemu-system-i386 -bios ~/src/blkn/efi/bios32.bin ....<other qemu options>....
```

BIN
bios32.bin Normal file

Binary file not shown.

BIN
bios64.bin Normal file

Binary file not shown.