Forum Discussion

Scotty2's avatar
Scotty2
Icon for Occasional Contributor rankOccasional Contributor
1 year ago
Solved

rsu_client failing to write to slot

Hello, I am trying to exercise the rsu_client (from Intel's remote system update feature) by erasing a partition on the flash and writing a new file and loading that on the next reboot. This f...
  • EricOpitz's avatar
    13 days ago

    Dear all,

    I had the same issue. Here is my solution for future reference.

    I can reproduce this using the following script:
    for i in {1..2000}; do
        echo "Iteration $i"
        rsu_client --erase 0 || break
        rsu_client --add update.rpd --slot 0 || break
    done

    Using this script the problem occurs every 508th iteration on my system. Once in the error state, I can only get out of it by flashing the .jic file. Running the commands in U-Boot did not work for me.

    In iteration 1-507 the rsu_client performs a "write" to update the CPB. In the 508th iteration it performs an additional "erase" before the "write". This is why it occurs so infrequently.

    For me the fix was to increase the size of the SPT and CPB partitions to the erase size of my QSPI flash (64KiB) in the programming file generator file (.pfg).

    Kind Regards,
    Eric Opitz