debug: rework boot info and terminal commands

- reduce info lines on boot
- more compact `info` command. show versions, modules and crash info when there is one
- add `storage` command to display flash layout (experimental)
- display full chip id aka MAC, including the oui
- fix telnet never printing the crash data b/c telnet in not yet authorized
- fix eeprom size not reflecting the space used by the backup sectors
- use static flash strings when possible for the fw info
This commit is contained in:
Maxim Prokhorov
2021-04-07 03:24:21 +03:00
parent 0ee55ba5c0
commit 7ea735548b
18 changed files with 657 additions and 960 deletions

View File

@@ -23,6 +23,8 @@ Updated to use WiFiServer and support reverse connections by Niek van der Maas <
#include <vector>
#include "board.h"
#include "crash.h"
#include "terminal.h"
#include "ws.h"
#if TELNET_SERVER == TELNET_SERVER_ASYNC
@@ -360,14 +362,6 @@ void _telnetNotifyConnected(unsigned char i) {
DEBUG_MSG_P(PSTR("[TELNET] Client #%u connected\n"), i);
// If there is no terminal support automatically dump info and crash data
#if DEBUG_SUPPORT
#if not TERMINAL_SUPPORT
crashDump(terminalDefaultStream());
crashClear();
#endif
#endif
if (!isEspurnaCore()) {
_telnetClientsAuth[i] = !_telnetAuth;
if (_telnetAuth) {
@@ -381,6 +375,10 @@ void _telnetNotifyConnected(unsigned char i) {
_telnetClientsAuth[i] = true;
}
#if DEBUG_SUPPORT
crashResetReason(terminalDefaultStream());
#endif
}
#if TELNET_SERVER == TELNET_SERVER_WIFISERVER