aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/mainboard/emulation/qemu-aarch64.md5
-rw-r--r--src/mainboard/emulation/qemu-aarch64/Kconfig2
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/mainboard/emulation/qemu-aarch64.md b/Documentation/mainboard/emulation/qemu-aarch64.md
index ee4c9e7a3b..4df36a9944 100644
--- a/Documentation/mainboard/emulation/qemu-aarch64.md
+++ b/Documentation/mainboard/emulation/qemu-aarch64.md
@@ -7,7 +7,7 @@ as a payload for QEMU/AArch64.
```bash
qemu-system-aarch64 -bios ./build/coreboot.rom \
-M virt,secure=on,virtualization=on -cpu cortex-a53 \
- -nographic -m 8912M
+ -nographic -m 8192M
```
- The default CPU in QEMU for AArch64 is a cortex-a15 which is 32-bit
@@ -17,6 +17,7 @@ have the right to access EL3/EL2 registers. You need to enable EL3/EL2
via `-machine secure=on,virtualization=on`.
- You need to specify the size of memory more than 544 MiB because 512
MiB is reserved for the kernel.
+- The maximum size of memory is 255GiB (-m 261120).
## Building coreboot with an arbitrary FIT payload
There are 3 steps to make coreboot.rom for QEMU/AArch64. If you select
@@ -30,7 +31,7 @@ You can get the DTB from QEMU with the following command.
```
$ qemu-system-aarch64 \
-M virt,dumpdtb=virt.dtb,secure=on,virtualization=on \
- -cpu cortex-a53 -nographic -m 2048M
+ -cpu cortex-a53 -nographic -m 8192M
```
### 2. Build a FIT image with a DTB
diff --git a/src/mainboard/emulation/qemu-aarch64/Kconfig b/src/mainboard/emulation/qemu-aarch64/Kconfig
index 7d8d7b2f00..ebdbf16e8c 100644
--- a/src/mainboard/emulation/qemu-aarch64/Kconfig
+++ b/src/mainboard/emulation/qemu-aarch64/Kconfig
@@ -46,6 +46,6 @@ config MAINBOARD_VENDOR
config DRAM_SIZE_MB
int
- default 1024
+ default 261120 # The maximum dram size is 255GiB.
endif # BOARD_EMULATION_QEMU_AARCH64