Kl0ibi / esp32_hackingtool

MIT License
197 stars 25 forks source link

Problem with flashing #7

Closed Jirka5091 closed 8 months ago

Jirka5091 commented 1 year ago

After I flash the code as instructed it looks like there are no errors, but the screen on esp is black and nothing is happening. Btw I have the 4 mb one

I will be glad for any help.

This is the serial output:

`19:03:42.063 -> I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0
19:03:42.063 -> I (39) boot.esp32: SPI Speed      : 80MHz
19:03:42.063 -> I (44) boot.esp32: SPI Mode       : DIO
19:03:42.063 -> I (49) boot.esp32: SPI Flash Size : 16MB
19:03:42.063 -> I (53) boot: Enabling RNG early entropy source...
19:03:42.063 -> I (59) boot: Partition Table:
19:03:42.063 -> I (62) boot: ## Label            Usage          Type ST Offset   Length
19:03:42.096 -> I (69) boot:  0 nvs              WiFi data        01 02 00010000 00010000
19:03:42.096 -> I (77) boot:  1 factory          factory app      00 00 00020000 00e00000
19:03:42.096 -> I (84) boot: End of partition table
19:03:42.096 -> I (89) boot_comm: chip revision: 3, min. application chip revision: 0
19:03:42.096 -> I (96) esp_image: segment 0: paddr=00020020 vaddr=3f400020 size=106e58h (1076824) map
19:03:42.458 -> I (430) esp_image: segment 1: paddr=00126e80 vaddr=3ffb0000 size=043a0h ( 17312) load
19:03:42.458 -> I (436) esp_image: segment 2: paddr=0012b228 vaddr=40080000 size=04df0h ( 19952) load
19:03:42.458 -> I (443) esp_image: segment 3: paddr=00130020 vaddr=40`
Kl0ibi commented 1 year ago

hey, the partition table specifies a flash size of 16MB since you have a 4MB flash storage this will not work. with all the websites that are included in the flash memory you will not get below 4MB even if you change the partition table. should I make you a "light" version with less websites (captive portals) or is this explanation enough for you to implement it yourself?

Jirka5091 commented 1 year ago

Thank you so much, now I understand. If it wouldn't be too much hustle for you I will be glad for the lighter version, but only as long as its okay for you.

Jirka5091 commented 1 year ago

In fact I don't think that I need the website at all.

Jirka5091 commented 1 year ago

can I just remove this portion of code? In htool_api.c

`void htool_api_start_captive_portal(uint8_t cp_index) {
    captive_portal_task_args.is_evil_twin = false;
    captive_portal_task_args.cp_index = cp_index;
    htool_wifi_captive_portal_start();
}`
kubbur commented 1 year ago

can I just remove this portion of code? In htool_api.c

`void htool_api_start_captive_portal(uint8_t cp_index) {
    captive_portal_task_args.is_evil_twin = false;
    captive_portal_task_args.cp_index = cp_index;
    htool_wifi_captive_portal_start();
}`

did you get it to work? i have the 4mb version also

Kl0ibi commented 8 months ago

Hey, my apologies for the delayed reply, however, I'm excited to share some great news with you. I've successfully developed a Terminal version of the hacking tool. It's now compatible with any ESP device that has at least 4MB of flash memory, ensuring all features remain fully functional and accessible. Looking forward to your feedback!