Add function to download from product area
It would be nice to have a function in the kernel which knew where to download modules. Unless a better name is offered, I'd propose something like
productLoad(). For instance, calling this function on a mv5500 running VxWorks 6.4 translates
ld(1, 1, "vxworks_boot/v6.4/module/mv5500/mooc-4.7.out");
whereas, on a mv2434 running VxWorks 6.7, it is translated to:
ld(0, 0, "vxworks_boot/v6.7/module/mv2434/mooc-4.7.out");
It could also print helpful error messages when a module can't be loaded (as long as the underlying
ld() function provides a useful error status.)
The function could also do some intelligent adjustments. For instance, if the file name has our "
-beta" designation in it, it means the developer is testing a module. In this case the first argument to
ld() should be set to 1 so that all symbols are loaded, not just global symbols. If the filename has a version number, then it's operational and a 0 should be passed as the first argument to
#1 Updated by Richard Neswold about 1 year ago
Looking at some startup scripts used by other departments, I saw excellent examples where a startup script loaded other scripts to load common files across front-ends in a standard way. I'm embarrassed that our group didn't promote this idea.
Anyways, in trying to convert some of my front-ends over to this convention, I realized that resolving this issue would make it very easy to create scripts that work across VxWorks versions and BSPs.
Anyone interested in writing this module?