From b99852872c2ba5489a29ec2a865cf8c6a0d65865 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Tue, 19 Oct 2021 12:14:35 -0300 Subject: [PATCH] Documentation: Update "Using QEMU" section for ESP32 Signed-off-by: Gustavo Henrique Nihei --- .../platforms/xtensa/esp32/index.rst | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Documentation/platforms/xtensa/esp32/index.rst b/Documentation/platforms/xtensa/esp32/index.rst index 9cb5b72185..3b501d6b30 100644 --- a/Documentation/platforms/xtensa/esp32/index.rst +++ b/Documentation/platforms/xtensa/esp32/index.rst @@ -329,15 +329,19 @@ Using QEMU ========== First follow the instructions `here `_ to build QEMU. -Enable the ESP32_QEMU_IMAGE config found in "Board Selection -> ESP32 binary image for QEMU". -Download the bootloader and the partition table from https://github.com/espressif/esp-nuttx-bootloader/releases -and place them in a directory, say ../esp-bins. -Build and generate the QEMU image: `make ESPTOOL_BINDIR=../esp-bins` -A new image "esp32_qemu_image.bin" will be created. It can be run as:: - ~/PATH_TO_QEMU/qemu/build/xtensa-softmmu/qemu-system-xtensa -nographic \ - -machine esp32 \ - -drive file=esp32_qemu_image.bin,if=mtd,format=raw +Enable the ``ESP32_QEMU_IMAGE`` config found in :menuselection:`Board Selection --> ESP32 binary image for QEMU`. + +Download the bootloader and the partition table from https://github.com/espressif/esp-nuttx-bootloader/releases +and place them in a directory, say ``../esp-bins``. + +Build and generate the QEMU image:: + + $ make ESPTOOL_BINDIR=../esp-bins + +A QEMU-compatible ``nuttx.merged.bin`` binary image will be created. It can be run as:: + + $ qemu-system-xtensa -nographic -machine esp32 -drive file=nuttx.merged.bin,if=mtd,format=raw Things to Do ============