From 6db405527af57e84bee812a6bebe79651fb6a16a Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Mon, 14 Apr 2025 07:33:12 -0600 Subject: [PATCH 1/3] 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" From 5307d6427b811f0a2fce90d9ba9b03ef53993d4d Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Thu, 24 Apr 2025 15:02:46 -0600 Subject: [PATCH 2/3] v7.3-dev --- .gitignore | 3 ++- custom_bin/espinfo | 16 ++++++++++++---- custom_bin/help-esp | 1 + help.txt | 1 + version.txt | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 custom_bin/help-esp diff --git a/.gitignore b/.gitignore index 97cf2f3..211ccf0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ scratch.txt *.bak *.old old -.vscode \ No newline at end of file +scratch +.vscode diff --git a/custom_bin/espinfo b/custom_bin/espinfo index d0c5f3e..206e409 100755 --- a/custom_bin/espinfo +++ b/custom_bin/espinfo @@ -1,14 +1,22 @@ #!/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 "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 ID:" +esptool.py --port $ESPPORT --baud $ESPBAUD --chip auto flash_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 + +if [ -f "./CMakeLists.txt" ]; then + echo -e "\nEfuse Table:" + idf.py --port $ESPPORT --baud $ESPBAUD efuse-dump +fi echo -e "\nAll donsies~ :3\n" diff --git a/custom_bin/help-esp b/custom_bin/help-esp new file mode 100644 index 0000000..3362ece --- /dev/null +++ b/custom_bin/help-esp @@ -0,0 +1 @@ +cat $HOME/esp/esp-install-custom/help.txt diff --git a/help.txt b/help.txt index 728297f..5f0c60b 100644 --- a/help.txt +++ b/help.txt @@ -54,6 +54,7 @@ Usage: Features: + `help-esp` show this help `build` idf.py build `changebaud` prompts to enter a new baud `changeesp` prompts to type in esp32s3, esp32c6, etc diff --git a/version.txt b/version.txt index 014cb6c..8098fbf 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -7.2.1-dev \ No newline at end of file +7.3-dev From 6cd360c7a85f4d7966e60f0e148a202d55cd1f53 Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Fri, 25 Apr 2025 06:11:08 -0600 Subject: [PATCH 3/3] adding INSTALL BY BRANCH --- custom_bin/install_esp_branch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 custom_bin/install_esp_branch diff --git a/custom_bin/install_esp_branch b/custom_bin/install_esp_branch new file mode 100755 index 0000000..b31e189 --- /dev/null +++ b/custom_bin/install_esp_branch @@ -0,0 +1,12 @@ +#!/bin/bash +# usage install_esp_branch v5.4.1 +if [ -z "$1" ]; then + echo "usage example: `install_esp_branch v.5.4.1`" + exit +fi + +rm -rf ~/esp/esp-idf +rm -rf ~/.espressif +git clone --recursive https://github.com/espressif/esp-idf.git -b "$1" ~/esp/esp-idf +bash ~/esp/esp-idf/install.sh all +python ~/esp/esp-idf/tools/idf_tools.py install all