logo elektroda
logo elektroda
X
logo elektroda

Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices

divadiow 1080 39
ADVERTISEMENT
  • #31 21597924
    max4elektroda
    Level 20  
    DeDaMrAz wrote:
    Again to ping @max4elektroda whose idea on that topic I liked (not tested by me).

    I heard your ping, @DeDaMrAz, but will not be able to answer the ping before next week. First my notebook died and this weekend I will not be able to afford much time.
  • ADVERTISEMENT
  • #32 21599164
    divadiow
    Level 34  
    Tasmota info
    Code: Text
    Log in, to see the code


    2mb OBK after esptool.exe erase_flash. This is on ESP-02S in BSD48 UK plug referenced earlier.
    Code: Text
    Log in, to see the code


    is this because the flash is DOUT and not QIO?
  • ADVERTISEMENT
  • #33 21599187
    insmod
    Level 25  
    >>21599164 Try to play with esptool --flash-mode argument
  • #34 21599222
    divadiow
    Level 34  
    insmod wrote:
    Try to play with esptool --flash-mode argument


    ah I see, cool. switching device for a sec

    Code: Text
    Log in, to see the code


    1mb mini module from GU10 bulb - https://discourse.superhouse.tv/t/flashing-an-esp-8285-on-a-wiz-bulb/741/4

    Code: Text
    Log in, to see the code


    first boot + client join AP. says QIO but boots.
    Code: Text
    Log in, to see the code


    I see 03 here in post-flash dump = DOUT
    Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices

    Added after 7 [minutes]:

    1mb still. LFS OK. These two drivers start.

    Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices
    Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices

    Added after 8 [minutes]:

    memory with no drivers started
    Code: Text
    Log in, to see the code
  • #35 21599242
    DeDaMrAz
    Level 20  
    divadiow wrote:
    memory with no drivers started


    So more or less same as 8266, right? Am I seeing this right you are running OBK on 8285??
  • ADVERTISEMENT
  • #36 21599254
    divadiow
    Level 34  
    >>21599242

    same thing aren't they but 8285 has internal flash and 8266 supports external flash
    DeDaMrAz wrote:
    Am I seeing this right you are running OBK on 8285??

    yes
  • ADVERTISEMENT
  • #37 21599257
    p.kaczmarek2
    Moderator Smart Home
    Both ESP8266 and ESP8285 have the same amount of RAM. The difference is the flash chip - ESP8285 has built-in 1MB and ESP8266 has external connected via SPI.
    Helpful post? Buy me a coffee.
  • #38 21599272
    divadiow
    Level 34  
    Code: Text
    Log in, to see the code


    Code: Text
    Log in, to see the code


    Screenshot showing error messages during ESP8266 flash with esptool, reporting invalid partition and failure to load partition table.

    Added after 9 [hours] 20 [minutes]:

    https://github.com/openshwprojects/OpenBK7231T_App/actions/runs/16106020194

    used ESP-Flasher.exe - ie not esptool cmd

    Code: Text
    Log in, to see the code


    Added after 11 [hours] 58 [minutes]:

    I don't think BL0937 is working. Tried on ESP-02S real device and NodeMCU with Arduino PWM sketch thing https://www.elektroda.com/rtvforum/topic4109046.html

    Flashing OpenBeken/OBK firmware to ESP8266/ESP8285 devices
  • Helpful post
    #39 21601376
    p.kaczmarek2
    Moderator Smart Home
    I am adding "upload as GZIP" button along with simple gzip header handling in the firmware code. Browser will decode file on the fly.
    Bar chart comparing file sizes with and without GZIP compression.

    Added after 2 [minutes]:

    Here is comparison with and without compression:

    Bar chart comparing file sizes with and without GZIP compression.

    Added after 3 [hours] 53 [minutes]:

    LFS GZIP Topic: https://www.elektroda.com/rtvforum/topic4129516.html
    Helpful post? Buy me a coffee.
  • #40 21614400
    divadiow
    Level 34  
    no WPA3 success on OpenESP8266
    Code: Text
    Log in, to see the code

Topic summary

The discussion centers on flashing a 2MB OpenBeken/OBK firmware onto a 4MB ESP8266 board. Initial boot logs confirm successful recognition of the 4MB flash size with a detailed partition table including OTA data, WiFi NVS, two OTA app partitions, and an LFS partition. Users report smooth flashing and stable WiFi connectivity without resets after manual reboot. GPIO2 functionality is confirmed. Subsequent updates include added PWM and UART support, with UART implemented via a task-based polling method to avoid crashes seen with interrupt-driven approaches. PWM operates inverted but functional, with PWM_n also working as expected. OTA updates remain non-functional despite passing image checks. Adjustments to QuickTick timer handling and stack size were necessary to prevent crashes. Disabling PWM on GPIO0 resolved bootloop issues. Overall, the firmware demonstrates improved hardware compatibility and peripheral support on the 4MB ESP8266 platform.
Summary generated by the language model.
ADVERTISEMENT