logo elektroda
logo elektroda
X
logo elektroda

Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

divadiow 9564 232
ADVERTISEMENT
  • #211 21587274
    p.kaczmarek2
    Moderator Smart Home
    Nice, just make sure that XR872 image can still work on 1MB flash. XF16 cameras have it.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #212 21587276
    insmod
    Level 24  
    >>21587274
    EF and LFS offsets are tailored to 1MB flash. OTA header is moved to 1020K to make sure that 1MB flash still boots, but for those that have more can potentially use OTA in the future.
  • #213 21587286
    divadiow
    Level 34  
    yaaaaay. will test stuff as soon as I can. thank you
  • #214 21587287
    p.kaczmarek2
    Moderator Smart Home
    Did you double check if it works with OTA header outside 1MB space? I seem to remember that somewhere in this thread I concluded that OTA entry for 1MB+space breaks booting on 1MB chips while it still works on 2MB memory.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Helpful post
    #216 21587381
    divadiow
    Level 34  
    XF16 _xradios_0ee37d864e12

    boot to AP and client connect to AP log:
    Code: Text
    Log in, to see the code


    save config OK. wifi joined. startup command, MQTT connected but HA discovery not resulting in any new devices being added. Some of this in logs:
    Code: Text
    Log in, to see the code


    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    LFS OK and persists through reboot. it's v quick to reboot and join wifi.
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    PWM on PA21 to control blue LED on this cam PCB works. dimmer works.

    full pin list!!! 😁❤❤❤
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    oh and this is with 1mb. console upgrade interrupt works still in PhoenixMC
  • ADVERTISEMENT
  • #218 21587388
    divadiow
    Level 34  
    divadiow wrote:
    MQTT connected but HA discovery not resulting in any new devices being added

    well that took an age and many reboots/discoveries. I'll restart my HA, but it's not usually sluggish.

    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    Added after 3 [minutes]:

    >>21587386

    ah thank you. that explains what happened to my first board then!

    I can use WXU still
  • #219 21587395
    insmod
    Level 24  
    False alarm, it seems that since 1.2.1 (we use 1.2.2) LDO is used by default, while that problem was when DCDC was used.
    Topic mentions 1.2, not 1.2.0 and i assumed that it is still a problem.
  • #220 21587400
    divadiow
    Level 34  
    phew OK. I'm trying to remember something. I think I left AllWinner board running OBK all night a few weeks ago. hmm
  • #221 21587644
    johndoudou
    Level 3  
    p.kaczmarek2 wrote:

    Image is created that way:
    
    E:projectIOTtoolsxr-mkimageRelease>mkimage.exe
    

    so you would want mkimage source


    If that tool is responsible to assemble the different partitions into a bin file starting with AWIH, yes we need to reverse it :-)
  • #222 21587646
    p.kaczmarek2
    Moderator Smart Home
    You can load it in Ghidra to see how files are processed:
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK
    Just one question - why? What is your goal here?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #223 21587748
    divadiow
    Level 34  
    >>21587395
    I do note however that the AllWinner XR806 board came with
    Code: Text
    Log in, to see the code

    https://github.com/openshwprojects/FlashDumps...R806AF2L_BaseboardV1.0_Dev_Board-divadiow.bin

    could that just mean code can be toggled to use DCDC/LDO but maybe SDK default changed?

    Added after 12 [minutes]:

    Code: Text
    Log in, to see the code


    https://github.com/divadiow/xr806_sdk/blob/f7...aab4dd18c7b947c2f261/ChangeLog.md?plain=1#L57
  • #224 21588441
    johndoudou
    Level 3  
    >>21587646

    Thanks, I want to start reverse engineering the content of the stock firmware to find all accepted "commands" by the camera (on/off, record video to SD card, AP/client mode etc.)
    I saw that there are different "apps" inside a firmware: boot, app, app_xip, wlan_bl, wlan_fw, wlan_sdd
    https://obrazki.elektroda.pl/7685058500_1744977818_bigthumb.jpg

    So we need first to "slice" the stock firmware bin to then start reverse-engineer interesting apps.
  • #226 21589963
    johndoudou
    Level 3  
    >>21588563

    Thanks, maybe it can help!
  • #227 21589985
    divadiow
    Level 34  
    also. if you search a dump for each of those hex values in little-endian format

    Code: Text
    Log in, to see the code

    =
    Code: Text
    Log in, to see the code


    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    Added after 8 [hours] 21 [minutes]:

    >>21581680

    here she is
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    can't get anyone to send me the damned datasheet and I can't find it. the closest is the newer Aimachip S710 https://docs.aimachip.com/zh-cn/latest/_stati...%E8%AE%BE%E8%AE%A1%E6%8C%87%E5%AF%BC-V1.3.pdf

    probably overkill, but this would be easier/nicer
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK
  • #228 21590642
    insmod
    Level 24  
    I flashed my XR872 board via SPI.
    HTTP OTA worked for me.
    Used MAC and OBK MAC are different
    mac address:
        efuse         : 18:9e:2d:xx:xx:xx
        in use        : f8:15:49:xx:xx:xx
    

    In openwrt i see mac "in use", in OBK i see efuse mac.
  • Helpful post
    #231 21590664
    divadiow
    Level 34  
    2MB XF16. HTTP _xradios_f3bf9e1b0ede -> _xradios_30beb8223658
    Code: Text
    Log in, to see the code


    Added after 3 [minutes]:

    Screenshot of XRADIO Skylark SDK device logs showing OTA update process and WiFi network configuration status. Screenshot of a system console showing the OTA update process and XRADIO Skylark SDK configuration.

    Code: Text
    Log in, to see the code


    Added after 10 [hours] 36 [minutes]:

    AM-01-S610 module - 8mb GigaDevice GD25Q64CSIG. Flash shipped blank.
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK

    OpenXR872 first boot.
    Code: Text
    Log in, to see the code


    not sure what this other little 32-pin chip is yet
    Screenshot of system logs from an XRADIO device during OTA update and startup process.

    Added after 11 [hours] 16 [minutes]:

    >>21575844

    slowly. GPIOs are obviously easier than all the non-GPIO. Anyone see any pins that are obviously/probably x pin because of what it's connected to that I haven't marked yet?

    Also interesting to see how similar it is to the XR872AT
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK
  • #232 21591822
    divadiow
    Level 34  
    divadiow wrote:
    not sure what this other little 32-pin chip is yet

    YC1021 YiChip bluetooth
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK
  • #233 21592614
    p.kaczmarek2
    Moderator Smart Home
    How is it connected to XR? Here's datasheet first page
    Exploring A9 Minicam Variation: XF16 PB380EA6341 MCU, T25S80 SPI Flash, XR872, Skylark SDK
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around a variation of the A9 minicam featuring the XF16 PB380EA6341 MCU and T25S80 SPI Flash. The user shares insights on the firmware and hardware components, noting that the flash chip is an 8mbit model. There are mentions of difficulties in identifying the SPI ID C74014 using Flashrom, NeoProgrammer, and ASProgrammer, with some success in dumping the firmware. Additional posts highlight network activity, including the camera reaching out to specific IPs, and provide links to related resources and sample video captures.
Summary generated by the language model.
ADVERTISEMENT