Forum Discussion
rsu_client failing to write to slot
- 4 months 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
Hi Scotty2,
May I know you will require to overwrite the jic file which is the one with the factory backup only can avoid the intermittent update issue?
If you perform the rsu in Uboot user space using the Uboot rsu cmd will the error still occur?
Thanks.
Regards,
Aik Eu