
On Tuesday 18 July 2006 13:25, Wolfgang Denk wrote:
In message 200607181157.10015.laurent.pinchart@tbox.biz you wrote:
My problem is to load the image file from cramfs into RAM from a C function.
C'me on. All commands are called from the main interpreter loop, with a standard set of arguments which closely follows standard C's main() syntax. Calling a command handler from C is not more than a beginner's exercise.
I thought the do_* functions (do_jffs2_fsload here) were not supposed to be used outside the interpreter. Thanks for the explanation.
The fsload command can be used from the command line (or through bootcmd, preboot, ...), but I haven't been able to find a simple API to load the image file from cramfs into RAM. cramfs_load() takes a struct part_info pointer
Just use the functions as they are used called by the command parser, then.
Thanks.
Best regards,
Laurent Pinchart