Skip to content

Commit 9a517e2

Browse files
committed
Updated gdb binary
1 parent a877a4b commit 9a517e2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ This documents how to add an esp32 cpu and a simple esp32 board to qemu in order
66
It is a good way to learn about qemu ,esp32 and the esp32 rom.
77

88

9+
10+
11+
912
By following the instructions here, I added esp32 to qemu.
1013
http://wiki.linux-xtensa.org/index.php/Xtensa_on_QEMU
1114

@@ -14,6 +17,9 @@ prerequisites Debian/Ubuntu:
1417
sudo apt-get install libpixman-1-0 libpixman-1-dev
1518
```
1619

20+
21+
## Original qemu-esp32
22+
1723
Clone qemu and qemu-esp32 and apply the patch.
1824
```
1925
git clone git://git.qemu.org/qemu.git
@@ -374,3 +380,24 @@ This will create problems when running 2 cores.
374380

375381
## Detailed boot analaysis
376382
[More about the boot of the romdumps](./BOOT.md)
383+
384+
385+
##Patched gdb,
386+
In the bin directory there is an improved gdb version. The following patch was applied,
387+
https://github.com/jcmvbkbc/xtensa-toolchain-build/blob/master/fixup-gdb.sh
388+
To use it properly you must increase the num_regs = 104 to i.e. 211 in core-esp32.c
389+
390+
391+
392+
## Another version of qemu for xtensa
393+
As I am not alwas sure of what I am doing, I would recomend this version of the software. Currently it is not yet finnished (11//11) but will most certainly be better if Max finds the time to work on it.
394+
395+
#A better version of qemu with esp32 exists here,
396+
git clone https://github.com/OSLL/qemu-xtensa
397+
cd qemu-xtensa
398+
git checkout xtensa-esp32
399+
git submodule update --init dtc
400+
cd ..
401+
mkdir build-qemu-xtensa
402+
../qemu-xtensa/configure --disable-werror --prefix=`pwd`/root --target-list=xtensa-softmmu
403+

bin/xtensa-esp32-elf-gdb

-32 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)