
In message 200607181054.37865.laurent.pinchart@tbox.biz you wrote:
common/cmd_fpga.c and common/fpga.c are used to configure the FPGA from an in-memory configuration bitstream. What I'm looking for is a function to load the bitstream from a CramFS partition to memory, much like the fsload command does. Something similar to fpga_load() would be useful, some kind of fs_load(buffer, length, partition, filename).
Good old Unix tradition is to provide small and simple tools which perform one task, doing this very well, and which can easily be combined. So in the first step you will load the image file from cramfs into RAM, and in the second step you use the FPGA command to boot your FPGA.
What exactly is your problem?
Best regards,
Wolfgang Denk