updot
This commit is contained in:
+10
-7
@@ -1,22 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
outfile="chipinfo-$(date +"%Y-%m-%d-%H%M-%S")-$ESPTARGET-$(git rev-parse HEAD).txt.local"
|
||||||
|
|
||||||
echo -e "\nGetting ESP Chip Info...\n"
|
echo -e "\nGetting ESP Chip Info...\n"
|
||||||
# echo -e "Base MAC Address:"
|
echo -e "\nsaving to $outfile\n"
|
||||||
# esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto read_mac
|
|
||||||
echo -e "\nChip ID:"
|
echo -e "\nChip ID:"
|
||||||
esptool --port $ESPPORT --baud $ESPBAUD --chip auto chip-id
|
esptool --port $ESPPORT --baud $ESPBAUD --chip auto chip-id | tee -a "$outfile"
|
||||||
|
|
||||||
echo -e "\nFlash ID:"
|
echo -e "\nFlash ID:"
|
||||||
esptool --port $ESPPORT --baud $ESPBAUD --chip auto flash-id
|
esptool --port $ESPPORT --baud $ESPBAUD --chip auto flash-id | tee -a "$outfile"
|
||||||
|
|
||||||
echo -e "\nFlash Status:"
|
echo -e "\nFlash Status:"
|
||||||
esptool --port $ESPPORT --baud $ESPBAUD --chip auto read-flash-status
|
esptool --port $ESPPORT --baud $ESPBAUD --chip auto read-flash-status | tee -a "$outfile"
|
||||||
|
|
||||||
echo -e "\nSecurity Info:"
|
echo -e "\nSecurity Info:"
|
||||||
esptool --port $ESPPORT --baud $ESPBAUD --chip auto get-security-info
|
esptool --port $ESPPORT --baud $ESPBAUD --chip auto get-security-info | tee -a "$outfile"
|
||||||
|
|
||||||
if [ -f "./CMakeLists.txt" ]; then
|
if [ -f "./CMakeLists.txt" ]; then
|
||||||
echo -e "\nEfuse Table:"
|
echo -e "\nEfuse Table:"
|
||||||
idf.py --preview --port $ESPPORT --baud $ESPBAUD efuse-dump
|
idf.py --preview --port $ESPPORT --baud $ESPBAUD efuse-dump | tee -a "$outfile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -e "\nSaved to $outfile\n"
|
||||||
echo -e "\nAll donsies~ :3\n"
|
echo -e "\nAll donsies~ :3\n"
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
outfile="imagesize-$(date +"%Y-%m-%d-%H%M-%S")-$ESPTARGET-$(git rev-parse HEAD).txt.local"
|
||||||
|
|
||||||
echo -e "\nProject sizes\n"
|
echo -e "\nProject sizes\n"
|
||||||
|
echo -e "\nSaving to $outfile\n"
|
||||||
|
|
||||||
echo -e "\nGeneral:\n"
|
echo -e "\nGeneral:\n"
|
||||||
idf.py --preview fullclean
|
idf.py size | tee -a "$outfile"
|
||||||
idf.py --preview size
|
|
||||||
|
|
||||||
echo -e "\nComponants:\n"
|
echo -e "\nComponants:\n"
|
||||||
idf.py --preview size-components
|
idf.py size-components | tee -a "$outfile"
|
||||||
|
|
||||||
echo -e "\nFiles:\n"
|
echo -e "\nFiles:\n"
|
||||||
idf.py --preview size-files
|
idf.py size-files | tee -a "$outfile"
|
||||||
|
|
||||||
|
echo -e "\nSaved to $outfile\n"
|
||||||
echo -e "\nAll done :3\n"
|
echo -e "\nAll done :3\n"
|
||||||
Reference in New Issue
Block a user