diff --git a/custom_bin/chipinfo b/custom_bin/chipinfo index 41f5ab7..e6c2145 100644 --- a/custom_bin/chipinfo +++ b/custom_bin/chipinfo @@ -1,22 +1,25 @@ #!/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 "Base MAC Address:" -# esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto read_mac +echo -e "\nsaving to $outfile\n" + 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:" -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:" -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:" -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 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 +echo -e "\nSaved to $outfile\n" echo -e "\nAll donsies~ :3\n" diff --git a/custom_bin/imagesize b/custom_bin/imagesize index 6bfd02b..bf25fc8 100644 --- a/custom_bin/imagesize +++ b/custom_bin/imagesize @@ -1,14 +1,17 @@ #!/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 "\nSaving to $outfile\n" echo -e "\nGeneral:\n" -idf.py --preview fullclean -idf.py --preview size +idf.py size | tee -a "$outfile" echo -e "\nComponants:\n" -idf.py --preview size-components +idf.py size-components | tee -a "$outfile" 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" \ No newline at end of file