From 6db405527af57e84bee812a6bebe79651fb6a16a Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Mon, 14 Apr 2025 07:33:12 -0600 Subject: [PATCH] bug fixes and added espinfo for detailed chip info --- README.md | 5 +++-- custom_bin/espinfo | 14 ++++++++++++++ help.txt | 5 +++-- reinstall-esp-idf.sh | 4 ++-- 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100755 custom_bin/espinfo diff --git a/README.md b/README.md index fcd7db1..26577b5 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ Literally the most schizophrenically overengineered thing I have ever made. idk `save-defconfig` idf.py save-defconfig `step-flash-monitor` attempt clean, build, flash, then monitor, dying on error `imagesize` get binary size, broken down in various ways including total, by componant, and by file -`chipinfo` get information from the esp board +`chipinfo` get information from the esp chip +`espinfo` get detailed information about the esp chip `menuconfig` run `idf.py menuconfig` ## Usage @@ -117,4 +118,4 @@ cron: `crontab -e` 0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron -``` \ No newline at end of file +``` diff --git a/custom_bin/espinfo b/custom_bin/espinfo new file mode 100755 index 0000000..d0c5f3e --- /dev/null +++ b/custom_bin/espinfo @@ -0,0 +1,14 @@ +#!/bin/bash +echo -e "Getting ESP Chip Info...\n" +echo -e "Base MAC Address:" +esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto read_mac +echo -e "\nChip ID:" +esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto chip_id +echo -e "\nFlash Status:" +esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto read_flash_status +echo -e "\nSecurity Info:" +esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto get_security_info +echo -e "\nEfuse Table:" +idf.py --port $ESPPORT --baud $ESPBAUD efuse-dump + +echo -e "\nAll donsies~ :3\n" diff --git a/help.txt b/help.txt index 1ec5fa6..728297f 100644 --- a/help.txt +++ b/help.txt @@ -68,7 +68,8 @@ Features: `save-defconfig` idf.py save-defconfig `step-flash-monitor` attempt clean, build, flash, then monitor, dying on error `imagesize` get binary size, broken down in various ways including total, by componant, and by file - `chipinfo` get information from the esp board + `chipinfo` get information from the esp chip + `espinfo` get detailed information from the esp chip `menuconfig` run `idf.py menuconfig` Aliases: @@ -104,4 +105,4 @@ Helpful Stuff: `tail -n 75 $ESPIDF_INSTALLDIR/install.log;` view both logs from beginning: - `less $ESPIDF_INSTALLDIR/install.log; less $ESPIDF_INSTALLDIR/version-data.txt` \ No newline at end of file + `less $ESPIDF_INSTALLDIR/install.log; less $ESPIDF_INSTALLDIR/version-data.txt` diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index c55845a..5b2feea 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -255,8 +255,8 @@ function testAppendAlias() { function handleAliasEnviron() { testAppendAlias "get_idf" "alias get_idf='. $exportScript'" testAppendAlias "run_esp_reinstall" "alias run_esp_reinstall='git -C $runningDir pull;echo -e \"\nOld Version:\";tail -1 $versionData;echo -e \"\n\";bash $runningDir/reinstall-esp-idf.sh'" - testAppendAlias "esp_install_monitor" "alias esp_monitor='tail -n 75 -f $log'" - testAppendAlias "esp_install_logs" "alias esp_logs='less $versionData;less $log'" + testAppendAlias "esp_install_monitor" "alias esp_install_monitor='tail -n 75 -f $log'" + testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'" if [ -z $ESPIDF_INSTALLDIR ]; then writeToLog "ESPIDF_INSTALLDIR environment variable not found, appending to $rcFile"