bug fixes and added espinfo for detailed chip info

This commit is contained in:
2025-04-14 07:33:12 -06:00
parent 2e82cbcf6f
commit 6db405527a
4 changed files with 22 additions and 6 deletions
+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
``` ```
+14
View File
@@ -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"
+3 -2
View File
@@ -68,7 +68,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 +105,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
@@ -255,8 +255,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"