Partition table corrupt, try reflashing it. Possible hardware error, try reflowing?
```
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
```



Flash seems to be working, bootloader at 0x1000 is correct. Hardware issue? Different csum error each time.
```
14:00:10.502 > rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
14:00:10.507 > configsip: 0, SPIWP:0xee
14:00:10.510 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
14:00:10.515 > mode:DIO, clock div:1
14:00:10.518 > load:0x3fff0030,len:1184
14:00:10.521 > load:0x40058000,len:13132
14:00:10.524 > load:0x40000000,len:3036
14:00:10.527 > csum err:0x9f!=0x10
14:00:10.527 > ets_main.c 371 
14:00:10.826 > ets Jun  8 2016 00:22:57
14:00:10.827 > 
14:00:10.827 > rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
14:00:10.832 > configsip: 0, SPIWP:0xee
14:00:10.835 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
14:00:10.841 > mode:DIO, clock div:1
14:00:10.844 > load:0x3fff0030,len:1184
14:00:10.846 > load:0x40078000,len:13132
14:00:10.849 > load:0x40080400,len:988
14:00:10.851 > csum err:0x31!=0x00
14:00:10.852 > ets_main.c 371 
14:00:11.151 > ets Jun  8 2016 00:22:57
14:00:11.151 > 
14:00:11.151 > rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
14:00:11.157 > configsip: 0, SPIWP:0xee
14:00:11.160 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
14:00:11.165 > mode:DIO, clock div:1
14:00:11.168 > load:0x3fff0030,len:1184
14:00:11.171 > load:0x40058000,len:68
14:00:11.174 > ho 0 tail 12 room 4
14:00:11.174 > load:0xebffffff,len:262144
14:00:11.176 > 1162 mmu set 00010000, pos 00010000
14:00:11.189 > 1162 mmu set 00020000, pos 00020000
14:00:11.201 > 1162 mmu set 00030000, pos 00030000
14:00:11.213 > 1162 mmu set 00040000, pos 00040000
14:00:11.216 > csum err:0x4d!=0xff
14:00:11.216 > ets_main.c 371 
14:00:11.477 > ets Jun  8 2016 00:22:57
```


After swapping the flash chip:
```
~$ python -m esptool flash_id
esptool.py v4.4
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 40:22:d8:03:81:8c
Uploading stub...
Running stub...
Stub running...
Manufacturer: ef
Device: 8017
Detected flash size: 8MB
Hard resetting via RTS pin...
~$ 
```


Before swapping the flash chip:
```
~$ python -m esptool flash_id
esptool.py v4.4
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 40:22:d8:03:81:8c
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Manufacturer: ff
Device: ffff
Detected flash size: Unknown
Hard resetting via RTS pin...
~$ python -m esptool flash_id
esptool.py v4.4
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 40:22:d8:03:81:8c
Uploading stub...
Running stub...
Stub running...
Manufacturer: 5e
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
~$ pio device monitor -b 115200
```