logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Testing OBK Config for Smaller Builds on OpenBK7231T - Feedback Needed

p.kaczmarek2 3255 65
Best answers

Can I build and test the reduced-size OpenBK7231T firmware from PR 1500 on BK7231, and remove the Wi‑Fi/IP configuration pages from the web UI so those settings are done only by console commands?

Yes—the smaller-build PR was working in testing on BK7231-class devices, but it was still considered very WIP while people checked for missing defaults and OTA regressions [#21382147][#21384037] BK7231N/T, WBR3, W600/W800 and other test boards booted the current build, and OTA plus common features like MQTT, LFS, NTP, DS1820, DHT and HA discovery were reported working or being verified [#21384037][#21384187][#21386335][#21386485] The maintainer also trimmed the build further by making SendGET/SendPOST depend on ENABLE_HTTP_SEND and the classic RGBCW PWM LED driver depend on ENABLE_LED_BASIC [#21381742] The open question was whether all Wi‑Fi/IP-related pages can be removed safely, because that depends on having equivalent console commands for those settings [#21381284][#21381294]
Generated by the language model.
ADVERTISEMENT
  • #61 21403379
    max4elektroda
    Level 24  
    divadiow wrote:
    OTA in console GUI isn't in place for RTL

    Oh, there's no line for the OTA image extension in obk_config.h for this platform, so it's seen as unsupported in the GUI.

    #define OBK_OTA_EXTENSION       ".img"

    is missing for PLATFORM_RTL87X0C
  • ADVERTISEMENT
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #64 21406718
    divadiow
    Level 38  
    p.kaczmarek2 wrote:
    Solution - remove startup commandline text and then do OTA. Does it work?

    yes :)

    I must be thinking this issue went on longer than just experiences with this PR. nm.

    I have now flashed from GA->PR and added multi-line back in. it works as expected. I believe this completes the basic multline check back and forth GA/PR for RTL8720
  • ADVERTISEMENT
  • #65 21407088
    p.kaczmarek2
    Moderator Smart Home
    Merged, now, can we merge RTL as well?
    Helpful post? Buy me a coffee.
  • #66 21423602
    divadiow
    Level 38  
    @miegapele 's PR 1529_merge_45c94f19e87d 1529

    OpenBL602 interface screen with startup command window.

    boots ok

Topic summary

✨ Dyskusja dotyczy wprowadzenia mniejszych kompilacji w projekcie OpenBK7231T, w tym dodania nowych definicji do pliku obk_config.h, co pozwala na redukcję rozmiaru budowy. Użytkownicy omawiają możliwość wyłączenia niektórych stron HTML, sterowników LED oraz kodu wspólnego dla BL0942/BL0937. Testy wykazały, że nowa kompilacja osiąga rozmiar 388KB w porównaniu do 500KB w ostatnim publicznym wydaniu. Uczestnicy dyskusji dzielą się doświadczeniami z testowaniem różnych urządzeń, takich jak DHT, BL0942, oraz omawiają problemy związane z OTA i nowymi komendami startowymi. Wskazano również na potrzebę dalszych testów i integracji z innymi platformami.
Generated by the language model.

FAQ

TL;DR: Size-optimised OpenBK7231T builds shrink firmware from 500 KB to 335 KB (-33 %) while keeping core features; “Good idea overall.” [Elektroda, insmod, post #21381284] [Elektroda, p.kaczmarek2, post #21382838] Why it matters: smaller images fit every 2 Mbit module and speed up OTA updates.

Quick Facts

• Current ‘size-test’ BK7231N image: 335 KB [Elektroda, p.kaczmarek2, post #21382838] • Drivers OFF by default: RGBCW PWM, LED flags page, IR, MQTT (optional) [#21381261] • W800 build after TLS removal: 550 KB [#21387301] • Minimum “empty HAL” binary: 280 KB [#21382317] • OTA file extensions: .rbl (BK), .img (RTL87x0C) [#21403379]

What changed in the new “size-test” firmware?

Extra #defines let maintainers exclude HTML flag pages, classic RGBCW LED driver, BL0942/BL0937 shared code, IR routines, and other seldom-used drivers, dropping BK7231N binary size by about 165 KB [Elektroda, p.kaczmarek2, #21381261 #21382838].

How big is the stripped build compared with the public 1.18.12 release?

The 1.18.12 BK7231N image is 500 800 bytes; the size-test image is 405 200 bytes initially and 335 000 bytes after further pruning [#21381261 #21382838].

Which platforms were verified?

Successful boots were reported on BK7231T, BK7231N, WBR3, BL602, W800, W600, LN882H, ESP32C2/S3/C6, RTL87x0C and TR6260 [#21384037 #21384266].

Does Home-Assistant (MQTT Discovery) still work?

Yes. Users confirmed HA Discovery on RTL87x0C after stripping and on CB3S after OTA [#21384099 #21384150].

Edge case: why did OTA web page disappear on RTL87x0C?

Old JSON returned unescaped \n from multiline Startup Command, breaking the /api/info call; clearing Startup Command restores the OTA picker [#21399371]

Can I downgrade safely after using multiline Startup Command?

Downgrading to pre-multiline builds can crash W800 (CPU Exception 3) [#21387492] Boot in safe mode, erase Startup Command, reboot, then OTA the older image.

How do I check which drivers are compiled in?

Enter startDriver anyNonExistingName; the console prints an alphabetised list of available drivers [#21384228]

How do I flash and test the reduced build?

  1. Download the .rbl or .img artefact from PR 1500.
  2. Flash over UART/OTA.
  3. Run info to verify new size.
  4. Execute typical commands (Wi-Fi join, MQTT connect, driver loads) to confirm functionality [#21381261]

Why is W800 image size extreme?

Factory SDK enables TLS, HTTP(S) client, and crypto. Disabling them in tls_config halves the image to ~550 KB [#21387301]

What happens if Startup Command exceeds 1024 bytes?

Current builds display an error and truncate additional arguments; older builds could silently overflow [#21387167]

Is scripting affected by the new Startup Command field?

No. If scripting is enabled, the multiline Startup Command is executed inside the script context; Backlog remains available [#21387167]

How do I reference GPIO pins by name on W600/W800 now?

New helper HAL_PIN_Find lets you write PB8 instead of numeric index; example: startDriver BMP280 PB9 PB8 9 10 11 236 [#21387790]

Does the BL602 port need separate fixes?

Platform macro was added to CXXFLAGS (PR #6) so size-test compiles; forthcoming Wi-Fi-secure SDK update will merge cleanly [#21385028 #21386446].

What statistic shows memory still available?

BK7231N blank HAL binary occupies 280 KB, leaving ≈420 KB headroom in a 1 MB flash [#21382317]

Failure fact: When can RealTerm drop RESET low?

On some W801 boards RealTerm toggles DTR/RTS, pulling RESET to 0 V and muting UART until hand-shaking is disabled [#21385223]
Generated by the language model.
ADVERTISEMENT