Mercurial > hg > Members > taiki > EFITest
changeset 5:6015cafa617e
add README, for how to exexute this efi executable.
author | taiki |
---|---|
date | Wed, 26 Mar 2014 06:59:58 +0900 |
parents | 14b7a92d960b |
children | 3b3650b792e3 |
files | README.txt |
diffstat | 1 files changed, 42 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.txt Wed Mar 26 06:59:58 2014 +0900 @@ -0,0 +1,42 @@ +-- Get ovmf + +http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OVMF + +ovmf execute UEFI on virtual machine. +make directory named ovmf. + +-- Make 4G size disk that name is rootfs.qcow2 in disk directory. +% mkdir disk +% qemu-img create -f qcow2 rootfs.qcow2 4G + + +-- ON nbd module. + +% modprobe nbd + + +-- Connect disk to use nbd. +X is number. + +% qemu-nbd -c /dev/nbdX disk.qcow2 + + +-- Operate partition. +% sudo fdisk + +Use g, make gpt partition table. +Use n, add new partition. + +-- Make device map + +% kpartx -v -a /dev/nbdX + + +-- Make filesystem. + +% mkfs.vfat -v -c -V 32 /dev/mapper/nbdXp1 + + +-- Mount + +% mount -t vfat /dev/mapper/nbd0p1 /mnt