Forum Discussion
Hello,
I have ran the commands in u-boot and can confirm that it executes without an issue.
I also suspect It also fixes the intermittent Linux RSU client issue, because I can run the rsu_client commands in Linux again and they do not fail anymore.
While this is great to know for getting the boards at out the erroneous state without JTAG, it still requires a serial cable and that is not always possible. I would prefer to fix the cause of the intermittent problem!
Any ideas why the Linux library/driver fails?
Here is the log of the u-boot commands:
I requested the log from each partition, erased slot1, loaded the rpd file from sd-card into memory, used rsu to program that, verified it and rebooted the board. After the power cycle, it shows that the board is booted with slot1 (in stead of slot0)
SOCFPGA # rsu status_log SPTs are GOOD!!! CPBs are GOOD!!! Current Image : 0x01000000 Last Fail Image : 0x00000000 State : 0x00000000 Version : 0x00000202 Error location : 0x00000000 Error details : 0x00000000 Retry counter : 0x00000000 SOCFPGA # rsu display_dcmf_version SPTs are GOOD!!! CPBs are GOOD!!! DCMF0 version = 23.1.0 DCMF1 version = 23.1.0 DCMF2 version = 23.1.0 DCMF3 version = 23.1.0 SOCFPGA # rsu slot_count SPTs are GOOD!!! CPBs are GOOD!!! Number of slots = 3. SOCFPGA # rsu slot_get_info 0 SPTs are GOOD!!! CPBs are GOOD!!! NAME: P1 OFFSET: 0x0000000001000000 SIZE: 0x01000000 PRIORITY: 1 SOCFPGA # rsu slot_get_info 1 SPTs are GOOD!!! CPBs are GOOD!!! NAME: P2 OFFSET: 0x0000000002000000 SIZE: 0x01000000 PRIORITY: [disabled] SOCFPGA # rsu slot_get_info 2 SPTs are GOOD!!! CPBs are GOOD!!! NAME: P3 OFFSET: 0x0000000003000000 SIZE: 0x01000000 PRIORITY: [disabled] SOCFPGA # rsu slot_erase 1 SPTs are GOOD!!! CPBs are GOOD!!! CPBs are GOOD!!! Slot 1 erased. SOCFPGA # load mmc 0:3 $loadaddr /kernel_backup/app.hps.rpd 462848 bytes read in 23 ms (19.2 MiB/s) SOCFPGA # rsu slot_program_buf 1 $loadaddr $filesize SPTs are GOOD!!! CPBs are GOOD!!! CPBs are GOOD!!! Slot 1 was programmed with buffer=0x0000000001000000 size=462848. SOCFPGA # rsu slot_verify_buf 1 $loadaddr $filesize SPTs are GOOD!!! CPBs are GOOD!!! Slot 1 was verified with buffer=0x0000000001000000 size=462848. # Power cycled the board SOCFPGA # rsu slot_get_info 1 SPTs are GOOD!!! CPBs are GOOD!!! NAME: P2 OFFSET: 0x0000000002000000 SIZE: 0x01000000 PRIORITY: 1 SOCFPGA # rsu status_log SPTs are GOOD!!! CPBs are GOOD!!! Current Image : 0x02000000 Last Fail Image : 0x00000000 State : 0x00000000 Version : 0x00000202 Error location : 0x00000000 Error details : 0x00000000 Retry counter : 0x00000000
Thank you