Skip to content

Commit e6841a5

Browse files
committed
feat: add uefi shell and edk2 guide
1 parent 7812a1c commit e6841a5

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
*.img
22
*.bin
33
*.fd
4+
*.efi
5+
*.EFI
46

57
/test
68
/rootfs

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ efi:
4848
-device virtio-blk-device,drive=hd0 \
4949
$(EXTRA_ARG)
5050

51+
# press ESC or F2 to enter bios
52+
edk2:
53+
qemu-system-aarch64 -m 1024 -smp 2 -cpu cortex-a57 -M virt -nographic \
54+
-drive if=pflash,format=raw,readonly=on,file=QEMU_EFI_64M.fd \
55+
-drive if=pflash,format=raw,file=varstore.img \
56+
-boot menu=on,splash-time=30000
57+
58+
uefi-shell:
59+
qemu-system-aarch64 -m 1024 -smp 2 -cpu cortex-a57 -M virt -nographic \
60+
-drive if=pflash,format=raw,readonly=on,file=QEMU_EFI_64M.fd \
61+
-drive if=pflash,format=raw,file=varstore.img \
62+
-drive file=fat:rw:test
63+
5164
uboot-efi:
5265
qemu-system-aarch64 -m 1024 -smp 2 -cpu cortex-a57 -M virt -nographic \
5366
-bios u-boot.bin \

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ pkill -f qemu-system-aarch64
4242
truncate -s 64M varstore.img
4343
```
4444

45+
- UEFI Shell https://github.com/pbatard/UEFI-Shell
46+
47+
```
48+
mkdir -p test/EFI/BOOT
49+
cp shellaa64.efi test/EFI/BOOT/BOOTAA64.EFI
50+
51+
make uefi-shell
52+
```
53+
4554
### Guide
4655

4756
https://openwrt.org/docs/guide-user/virtualization/qemu

0 commit comments

Comments
 (0)