initial commit
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
esptool.py v4.8.dev4
|
||||
Serial port /dev/ttyACM1
|
||||
Connecting....
|
||||
Chip is ESP32-S3 (QFN56) (revision v0.2)
|
||||
Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
|
||||
Crystal is 40MHz
|
||||
MAC: 48:27:e2:ef:c0:3c
|
||||
Enabling default SPI flash mode...
|
||||
1024 bytes read... (0 %)
|
||||
2048 bytes read... (0 %)
|
||||
3072 bytes read... (1 %)
|
||||
4096 bytes read... (1 %)
|
||||
5120 bytes read... (1 %)
|
||||
6144 bytes read... (2 %)
|
||||
7168 bytes read... (2 %)
|
||||
8192 bytes read... (3 %)
|
||||
9216 bytes read... (3 %)
|
||||
10240 bytes read... (3 %)
|
||||
11264 bytes read... (4 %)
|
||||
12288 bytes read... (4 %)
|
||||
13312 bytes read... (5 %)
|
||||
14336 bytes read... (5 %)
|
||||
15360 bytes read... (5 %)
|
||||
16384 bytes read... (6 %)
|
||||
17408 bytes read... (6 %)
|
||||
18432 bytes read... (7 %)
|
||||
19456 bytes read... (7 %)
|
||||
20480 bytes read... (7 %)
|
||||
21504 bytes read... (8 %)
|
||||
22528 bytes read... (8 %)
|
||||
23552 bytes read... (8 %)
|
||||
24576 bytes read... (9 %)
|
||||
25600 bytes read... (9 %)
|
||||
26624 bytes read... (10 %)
|
||||
27648 bytes read... (10 %)
|
||||
28672 bytes read... (10 %)
|
||||
29696 bytes read... (11 %)
|
||||
30720 bytes read... (11 %)
|
||||
31744 bytes read... (12 %)
|
||||
32768 bytes read... (12 %)
|
||||
33792 bytes read... (12 %)
|
||||
34816 bytes read... (13 %)
|
||||
35840 bytes read... (13 %)
|
||||
36864 bytes read... (14 %)
|
||||
37888 bytes read... (14 %)
|
||||
38912 bytes read... (14 %)
|
||||
39936 bytes read... (15 %)
|
||||
40960 bytes read... (15 %)
|
||||
41984 bytes read... (16 %)
|
||||
43008 bytes read... (16 %)
|
||||
44032 bytes read... (16 %)
|
||||
45056 bytes read... (17 %)
|
||||
46080 bytes read... (17 %)
|
||||
47104 bytes read... (17 %)
|
||||
48128 bytes read... (18 %)
|
||||
49152 bytes read... (18 %)
|
||||
50176 bytes read... (19 %)
|
||||
51200 bytes read... (19 %)
|
||||
52224 bytes read... (19 %)
|
||||
53248 bytes read... (20 %)
|
||||
54272 bytes read... (20 %)
|
||||
55296 bytes read... (21 %)
|
||||
56320 bytes read... (21 %)
|
||||
57344 bytes read... (21 %)
|
||||
58368 bytes read... (22 %)
|
||||
59392 bytes read... (22 %)
|
||||
60416 bytes read... (23 %)
|
||||
61440 bytes read... (23 %)
|
||||
62464 bytes read... (23 %)
|
||||
63488 bytes read... (24 %)
|
||||
64512 bytes read... (24 %)
|
||||
65536 bytes read... (25 %)
|
||||
66560 bytes read... (25 %)
|
||||
67584 bytes read... (25 %)
|
||||
68608 bytes read... (26 %)
|
||||
69632 bytes read... (26 %)
|
||||
70656 bytes read... (26 %)
|
||||
71680 bytes read... (27 %)
|
||||
72704 bytes read... (27 %)
|
||||
73728 bytes read... (28 %)
|
||||
74752 bytes read... (28 %)
|
||||
75776 bytes read... (28 %)
|
||||
76800 bytes read... (29 %)
|
||||
77824 bytes read... (29 %)
|
||||
78848 bytes read... (30 %)
|
||||
79872 bytes read... (30 %)
|
||||
80896 bytes read... (30 %)
|
||||
81920 bytes read... (31 %)
|
||||
82944 bytes read... (31 %)
|
||||
83968 bytes read... (32 %)
|
||||
84992 bytes read... (32 %)
|
||||
86016 bytes read... (32 %)
|
||||
87040 bytes read... (33 %)
|
||||
88064 bytes read... (33 %)
|
||||
89088 bytes read... (33 %)
|
||||
90112 bytes read... (34 %)
|
||||
91136 bytes read... (34 %)
|
||||
92160 bytes read... (35 %)
|
||||
93184 bytes read... (35 %)
|
||||
94208 bytes read... (35 %)
|
||||
95232 bytes read... (36 %)
|
||||
96256 bytes read... (36 %)
|
||||
97280 bytes read... (37 %)
|
||||
98304 bytes read... (37 %)
|
||||
99328 bytes read... (37 %)
|
||||
100352 bytes read... (38 %)
|
||||
101376 bytes read... (38 %)
|
||||
102400 bytes read... (39 %)
|
||||
103424 bytes read... (39 %)
|
||||
104448 bytes read... (39 %)
|
||||
105472 bytes read... (40 %)
|
||||
106496 bytes read... (40 %)
|
||||
107520 bytes read... (41 %)
|
||||
108544 bytes read... (41 %)
|
||||
109568 bytes read... (41 %)
|
||||
110592 bytes read... (42 %)
|
||||
111616 bytes read... (42 %)
|
||||
112640 bytes read... (42 %)
|
||||
113664 bytes read... (43 %)
|
||||
114688 bytes read... (43 %)
|
||||
115712 bytes read... (44 %)
|
||||
116736 bytes read... (44 %)
|
||||
117760 bytes read... (44 %)
|
||||
118784 bytes read... (45 %)
|
||||
119808 bytes read... (45 %)
|
||||
120832 bytes read... (46 %)
|
||||
121856 bytes read... (46 %)
|
||||
122880 bytes read... (46 %)
|
||||
123904 bytes read... (47 %)
|
||||
124928 bytes read... (47 %)
|
||||
125952 bytes read... (48 %)
|
||||
126976 bytes read... (48 %)
|
||||
128000 bytes read... (48 %)
|
||||
129024 bytes read... (49 %)
|
||||
130048 bytes read... (49 %)
|
||||
131072 bytes read... (50 %)
|
||||
132096 bytes read... (50 %)
|
||||
133120 bytes read... (50 %)
|
||||
134144 bytes read... (51 %)
|
||||
135168 bytes read... (51 %)
|
||||
136192 bytes read... (51 %)
|
||||
137216 bytes read... (52 %)
|
||||
138240 bytes read... (52 %)
|
||||
139264 bytes read... (53 %)
|
||||
140288 bytes read... (53 %)
|
||||
141312 bytes read... (53 %)
|
||||
142336 bytes read... (54 %)
|
||||
143360 bytes read... (54 %)
|
||||
144384 bytes read... (55 %)
|
||||
145408 bytes read... (55 %)
|
||||
146432 bytes read... (55 %)
|
||||
147456 bytes read... (56 %)
|
||||
148480 bytes read... (56 %)
|
||||
149504 bytes read... (57 %)
|
||||
150528 bytes read... (57 %)
|
||||
151552 bytes read... (57 %)
|
||||
152576 bytes read... (58 %)
|
||||
153600 bytes read... (58 %)
|
||||
154624 bytes read... (58 %)
|
||||
155648 bytes read... (59 %)
|
||||
156672 bytes read... (59 %)
|
||||
157696 bytes read... (60 %)
|
||||
158720 bytes read... (60 %)
|
||||
159744 bytes read... (60 %)
|
||||
160768 bytes read... (61 %)
|
||||
161792 bytes read... (61 %)
|
||||
162816 bytes read... (62 %)
|
||||
163840 bytes read... (62 %)
|
||||
164864 bytes read... (62 %)
|
||||
165888 bytes read... (63 %)
|
||||
166912 bytes read... (63 %)
|
||||
167936 bytes read... (64 %)
|
||||
168960 bytes read... (64 %)
|
||||
169984 bytes read... (64 %)
|
||||
171008 bytes read... (65 %)
|
||||
172032 bytes read... (65 %)
|
||||
173056 bytes read... (66 %)
|
||||
174080 bytes read... (66 %)
|
||||
175104 bytes read... (66 %)
|
||||
176128 bytes read... (67 %)
|
||||
177152 bytes read... (67 %)
|
||||
178176 bytes read... (67 %)
|
||||
179200 bytes read... (68 %)
|
||||
180224 bytes read... (68 %)
|
||||
181248 bytes read... (69 %)
|
||||
182272 bytes read... (69 %)
|
||||
183296 bytes read... (69 %)
|
||||
184320 bytes read... (70 %)
|
||||
185344 bytes read... (70 %)
|
||||
186368 bytes read... (71 %)
|
||||
187392 bytes read... (71 %)
|
||||
188416 bytes read... (71 %)
|
||||
189440 bytes read... (72 %)
|
||||
190464 bytes read... (72 %)
|
||||
191488 bytes read... (73 %)
|
||||
192512 bytes read... (73 %)
|
||||
193536 bytes read... (73 %)
|
||||
194560 bytes read... (74 %)
|
||||
195584 bytes read... (74 %)
|
||||
196608 bytes read... (75 %)
|
||||
197632 bytes read... (75 %)
|
||||
198656 bytes read... (75 %)
|
||||
199680 bytes read... (76 %)
|
||||
200704 bytes read... (76 %)
|
||||
201728 bytes read... (76 %)
|
||||
202752 bytes read... (77 %)
|
||||
203776 bytes read... (77 %)
|
||||
204800 bytes read... (78 %)
|
||||
205824 bytes read... (78 %)
|
||||
206848 bytes read... (78 %)
|
||||
207872 bytes read... (79 %)
|
||||
208896 bytes read... (79 %)
|
||||
209920 bytes read... (80 %)
|
||||
210944 bytes read... (80 %)
|
||||
211968 bytes read... (80 %)
|
||||
212992 bytes read... (81 %)
|
||||
214016 bytes read... (81 %)
|
||||
215040 bytes read... (82 %)
|
||||
216064 bytes read... (82 %)
|
||||
217088 bytes read... (82 %)
|
||||
218112 bytes read... (83 %)
|
||||
219136 bytes read... (83 %)
|
||||
220160 bytes read... (83 %)
|
||||
221184 bytes read... (84 %)
|
||||
222208 bytes read... (84 %)
|
||||
223232 bytes read... (85 %)
|
||||
224256 bytes read... (85 %)
|
||||
225280 bytes read... (85 %)
|
||||
226304 bytes read... (86 %)
|
||||
227328 bytes read... (86 %)
|
||||
228352 bytes read... (87 %)
|
||||
229376 bytes read... (87 %)
|
||||
230400 bytes read... (87 %)
|
||||
231424 bytes read... (88 %)
|
||||
232448 bytes read... (88 %)
|
||||
@@ -0,0 +1,5 @@
|
||||
internal-ROM0 instruction-bus 0x4000_0000 0x4003_FFFF
|
||||
internal-ROM1 data-bus 0x3FF0_0000 0x3FF1_FFFF
|
||||
internal-ROM1 instruction-bus 0x4004_0000 0x4005_FFFF
|
||||
elf-start-addr unknown-bus 0x3FCD_7000 0x3FF1_8C00
|
||||
elf-later-addr unknown-bus 0x4000_0000 0x4005_8000
|
||||
@@ -0,0 +1,67 @@
|
||||
#!/bin/zsh
|
||||
datestamp=$(date "+%d%m%y%H%M%S")
|
||||
chip="esp32s3"
|
||||
file_prefix=$1
|
||||
out_dir="./live-roms/$file_prefix-$datestamp"
|
||||
no_stub=True # True/False case sensitive
|
||||
args_file="./args_file.txt"
|
||||
log_file="$out_dir/log.txt"
|
||||
tmp_file="./.dump_rom_tmp.tmp"
|
||||
start_header="Starting dump from chip: $chip\n on port: $ESPPORT\n at: $ESPBAUD baud\n to directory: $out_dir\n with log file: $log_file\n"
|
||||
|
||||
mkdir $out_dir
|
||||
|
||||
if [ "$no_stub" != "False" ]; then
|
||||
stubby='--no-stub'
|
||||
fi
|
||||
|
||||
|
||||
echo "\n====================="
|
||||
echo $start_header
|
||||
|
||||
echo $start_header >> $log_file
|
||||
|
||||
# usage dump_section name bus start end
|
||||
# start and end are hex values in bytes beginning with 0x
|
||||
# name and bus are strings with no spaces
|
||||
dump_section () {
|
||||
dump_length=0x$(([##16] $4 - $3))
|
||||
file_name="$out_dir/$file_prefix-$chip-$1-$2-$3-$4-$dump_length-$datestamp.bin"
|
||||
command="esptool.py \ \n $stubby --baud $ESPBAUD \ \n --port $ESPPORT \ \n --chip $chip \ \n dump_mem $3 $dump_length \ \n $file_name"
|
||||
|
||||
header="$1\n on $2\n starting: $3\n ending: $4\n length: $dump_length\n on $chip\n no_stub: $no_stub\n\nRunning: $command"
|
||||
|
||||
echo "\nDumping Section:\n$header\n\nPlease wait..."
|
||||
|
||||
echo $header >> $log_file
|
||||
echo " File: $file_name" >> $log_file
|
||||
echo " $command" >> $log_file
|
||||
|
||||
esptool.py `echo $stubby` --baud $ESPBAUD --port $ESPPORT --chip $chip dump_mem $3 $dump_length $file_name > $tmp_file
|
||||
return_status=$?
|
||||
|
||||
if [ $return_status -ne 0 ]; then
|
||||
echo " ERROR: return status $return_status dump:" >> $log_file
|
||||
cat $tmp_file >> $log_file
|
||||
echo "ERROR: dump failed. check $log_file"
|
||||
echo "esptool output:"
|
||||
cat $tmp_file
|
||||
rm $tmp_file
|
||||
exit
|
||||
fi
|
||||
|
||||
checksum=$(sha256sum $file_name)
|
||||
echo " Sucess\n===\n" >> $log_file
|
||||
echo " sha256sum: $checksum" >> $log_file
|
||||
echo "Successfully dumped\nsha256sum: $checksum\n continuing..."
|
||||
}
|
||||
|
||||
|
||||
for args in ${(f)"$(<$args_file)"};
|
||||
do
|
||||
dump_section `echo $args`
|
||||
done
|
||||
|
||||
sha256sum "$out_dir/*" >> "$out_dir/sha256sum.txt"
|
||||
|
||||
echo "\nDone :3"
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,27 @@
|
||||
Starting dump from chip: esp32s3
|
||||
on port: /dev/ttyACM1
|
||||
at: 115200 baud
|
||||
to directory: ./live-roms/devkit-180824084031
|
||||
with log file: ./live-roms/devkit-180824084031/log.txt
|
||||
|
||||
internal-ROM0
|
||||
on instruction-bus
|
||||
starting: 0x4000_0000
|
||||
ending: 0x4003_FFFF
|
||||
length: 0x3FFFF
|
||||
on esp32s3
|
||||
no_stub: True
|
||||
|
||||
Running: esptool.py \
|
||||
--no-stub --baud 115200 \
|
||||
--port /dev/ttyACM1 \
|
||||
--chip esp32s3 \
|
||||
dump_mem 0x4000_0000 0x3FFFF \
|
||||
./live-roms/devkit-180824084031/devkit-esp32s3-internal-ROM0-instruction-bus-0x4000_0000-0x4003_FFFF-0x3FFFF-180824084031.bin
|
||||
File: ./live-roms/devkit-180824084031/devkit-esp32s3-internal-ROM0-instruction-bus-0x4000_0000-0x4003_FFFF-0x3FFFF-180824084031.bin
|
||||
esptool.py \
|
||||
--no-stub --baud 115200 \
|
||||
--port /dev/ttyACM1 \
|
||||
--chip esp32s3 \
|
||||
dump_mem 0x4000_0000 0x3FFFF \
|
||||
./live-roms/devkit-180824084031/devkit-esp32s3-internal-ROM0-instruction-bus-0x4000_0000-0x4003_FFFF-0x3FFFF-180824084031.bin
|
||||
Reference in New Issue
Block a user