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/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..206e409 --- /dev/null +++ b/custom_bin/espinfo @@ -0,0 +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 "\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 + +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/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 diff --git a/help.txt b/help.txt index 1ec5fa6..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 @@ -68,7 +69,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 +106,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 526533f..bb86a3b 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -260,8 +260,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" 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