This commit is contained in:
2025-04-25 06:17:58 -06:00
8 changed files with 47 additions and 8 deletions
+2 -1
View File
@@ -2,4 +2,5 @@ scratch.txt
*.bak *.bak
*.old *.old
old old
.vscode scratch
.vscode
+3 -2
View File
@@ -29,7 +29,8 @@ Literally the most schizophrenically overengineered thing I have ever made. idk
`save-defconfig` idf.py save-defconfig `save-defconfig` idf.py save-defconfig
`step-flash-monitor` attempt clean, build, flash, then monitor, dying on error `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 `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` `menuconfig` run `idf.py menuconfig`
## Usage ## Usage
@@ -117,4 +118,4 @@ cron:
`crontab -e` `crontab -e`
0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron 0 4 * * * bash $HOME/esp/esp-install-custom/reinstall-esp-idf.sh cron
``` ```
+22
View File
@@ -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"
+1
View File
@@ -0,0 +1 @@
cat $HOME/esp/esp-install-custom/help.txt
+12
View File
@@ -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
+4 -2
View File
@@ -54,6 +54,7 @@ Usage:
Features: Features:
`help-esp` show this help
`build` idf.py build `build` idf.py build
`changebaud` prompts to enter a new baud `changebaud` prompts to enter a new baud
`changeesp` prompts to type in esp32s3, esp32c6, etc `changeesp` prompts to type in esp32s3, esp32c6, etc
@@ -68,7 +69,8 @@ Features:
`save-defconfig` idf.py save-defconfig `save-defconfig` idf.py save-defconfig
`step-flash-monitor` attempt clean, build, flash, then monitor, dying on error `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 `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` `menuconfig` run `idf.py menuconfig`
Aliases: Aliases:
@@ -104,4 +106,4 @@ Helpful Stuff:
`tail -n 75 $ESPIDF_INSTALLDIR/install.log;` `tail -n 75 $ESPIDF_INSTALLDIR/install.log;`
view both logs from beginning: view both logs from beginning:
`less $ESPIDF_INSTALLDIR/install.log; less $ESPIDF_INSTALLDIR/version-data.txt` `less $ESPIDF_INSTALLDIR/install.log; less $ESPIDF_INSTALLDIR/version-data.txt`
+2 -2
View File
@@ -260,8 +260,8 @@ function testAppendAlias() {
function handleAliasEnviron() { function handleAliasEnviron() {
testAppendAlias "get_idf" "alias get_idf='. $exportScript'" 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 "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_monitor" "alias esp_install_monitor='tail -n 75 -f $log'"
testAppendAlias "esp_install_logs" "alias esp_logs='less $versionData;less $log'" testAppendAlias "esp_install_logs" "alias esp_install_logs='less $versionData;less $log'"
if [ -z $ESPIDF_INSTALLDIR ]; then if [ -z $ESPIDF_INSTALLDIR ]; then
writeToLog "ESPIDF_INSTALLDIR environment variable not found, appending to $rcFile" writeToLog "ESPIDF_INSTALLDIR environment variable not found, appending to $rcFile"
+1 -1
View File
@@ -1 +1 @@
7.2.1-dev 7.3-dev