Visible to Intel only — GUID: zlw1571167555823
Ixiasoft
Visible to Intel only — GUID: zlw1571167555823
Ixiasoft
7.3.4. Fallback on Flash Corruption of Application Images
- Power-cycle the board, stop U-Boot and check the RSU status log:
SOCFPGA # rsu status_log Current Image : 0x02000000 Last Fail Image : 0x00000000 State : 0x00000000 Version : 0x00000202 Error location : 0x00000000 Error details : 0x00000000 Retry counter : 0x00000000
The application image from slot 1 (partition P2) was loaded, because it is marked as the highest priority in the CPB.
What do the fields mean:- Retry counter is 0x00000000 —first attempt to load this image.
- State is 0x00000000 —No errors to report
- Corrupt the image in the slot 1 by erasing some of it:
SOCFPGA # sf probe SF: Detected mt25qu02g with page size 256 Bytes, erase size 4 KiB, total 256 MiB SOCFPGA # sf erase 0x02000000 0x4000 SF: 16384 bytes @ 0x2000000 Erased: OK
- Power cycle the board, stop at U-Boot prompt, and query the RSU log:
SOCFPGA # rsu status_log Current Image : 0x01000000 Last Fail Image : 0x02000000 State : 0xf004d003 Version : 0x0dcf0202 Error location : 0x00000000 Error details : 0x00000000 Retry counter : 0x00000000
The current image is P1, and the P2 shows as a failure. Note that SDM tried to load the image three times from flash, as specified by the max retry option. The top 16 bits of the version field are set as 0x0DCF which means the error was caused reported by the decision firmware, as it was not able to load the image. The top 16 bits of the state field are set to 0xF004, which indicate an internal error. For more information, refer to RSU Status and Error Codes .
- Clear the error status and display the log again to confirm it was cleared:
SOCFPGA # rsu clear_error_status SOCFPGA # rsu status_log Current Image : 0x01000000 Last Fail Image : 0x00000000 State : 0x00000000 Version : 0x00000202 Error location : 0x00000000 Error details : 0x00000000 Retry counter : 0x00000000