Forum Discussion
aikeu
Regular Contributor
2 years agoHi Yoels,
Any follow up from the previuos comment?
The inputs I get from the team as below:
On SD card there is a filesystem, so each file size is known.
The RBF files do not have a header, and since they are not in a file on a filsystem, there is no way to know their size. That is the main reason why they are encapsulated using the itb format.
The alternative would be to store the filesize somewhere, in addition to the file itself. You could consider to do something like this:
1. Read file_size from QSPI into ${filesize}
2. Read rbf file from QSPI into at ${loadaddr}
3. Run ‘fpga load 0 ${loadaddr} ${file_size}
Thanks.
Regards,
Aik Eu