But 0x4400 0000 is NOT documented in Reference Manual! 😲 Now we know a secret ... BL602 talks to LMAC Firmware at Address 0x4400 0000 🤫

github.com/bouffalolab/bl_docs

Show thread

Moving away from LMAC Firmware (since we got no code) ... Let's study the mysterious Library "libwifi" ... Which has been decompiled into C by BraveHeartFLOSSDev

github.com/BraveHeartFLOSSDev/

Show thread

"wifi_main" lives in the mysterious Library "libwifi" ... Let's study the decompiled C code (thanks to BraveHeartFLOSSDev and Ghidra)

github.com/lupyuen/bl602nutcra

Show thread

The AliOS / RivieraWaves code we saw earlier was for Beken BK7231U WiFi + BLE SoC ... Is it related to ? 🤔

bekencorp.com/en/goods/detail/

Show thread

AliOS for Beken BK7231U WiFi SoC contains LMAC Firmware Code ... Is this the same LMAC Firmware that runs on 's Radio? 🤔 Super Exciting!

github.com/lupyuen/AliOS-Thing

Show thread

From Now On: We shall read and understand the AliOS / RivieraWaves Source Code ... While comparing it with the Decompiled Code for libwifi ... Just to be sure that they are the same 🤝

github.com/lupyuen/AliOS-Thing

Show thread

Back to ke_evt_schedule, the function in Driver Kernel that handles every WiFi Event ... Let's hunt for ke_evt_hdlr and discover the WiFi Events

github.com/lupyuen/AliOS-Thing

Show thread

txl_payload_handle handles Payloads by doing ... nothing! But txl_payload_handle_backup seems to be the right function that handles WiFi Payloads 🤔

github.com/lupyuen/bl602nutcra

Show thread

Payload Handler calls rxu, txl and txu functions ... Fortunately these are defined in the AliOS / RivieraWaves Source Code we saw earlier

github.com/lupyuen/bl602nutcra

Show thread

Let's do Quantitative Analysis of the Decompiled Demo Firmware ... How many lines of code do we actually need to Reverse Engineer ... Now that we've found some matching source files?

github.com/lupyuen/bl602nutcra

Show thread
Show more

@lupyuen Huh, neat how much "closed source" code is out there if you only look for it.

@lupyuen You've uncovered a lot of information about the BL602's code.
Good work Mr. Lee.

@lupyuen I wouldn't have taken it seriously without your advice. It just so happens that I am good with Reverse Engineering. If you want to see anything decompiled, just let me know and I will see what I can (legally) do.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.