mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
6a895be0c7
It doesn't work, because esp32 has too little RAM (320KB). DHT is a 240KB struct, so even just allocating that immediately fails. We'll need to think carefully about trimming that if we ever want this to work on embedded devices.
18 lines
314 B
Bash
Executable File
18 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
qemu-system-xtensa \
|
|
-nographic \
|
|
-M esp32 \
|
|
-m 4 \
|
|
-drive file=flash.bin,if=mtd,format=raw \
|
|
-nic user,model=open_eth,hostfwd=tcp::80-:80 \
|
|
-s |
|
|
tee qemu.log &
|
|
|
|
echo "Waiting for program to complete"
|
|
while ! grep 'Returned from app_main' qemu.log >/dev/null; do
|
|
sleep 1
|
|
done
|