Sebastian Kuzminsky wrote: >Eric H. Johnson wrote: > > >>That much works, but when I get to: >>bin/halcmd loadrt hm2_5i20 config = "firmware=bin/SVST8_4.BIT num_stepgens=2 >>... >> >>It fails to load, and dmesg gives the error: >>hm2_5i20: Unknown parameter "num_stepgens" >> >> > >There are extraneous spaces there, and unless you specifically added the >symlink it probably doesnt know what to do with "firmware=bin/...". > >It should be something like this: > > loadrt hm2_5i20 config="firmware=SVST8_4.BIT num_stepgens=2" > > Hmmm.
These variables really should be split out into separate parameters, using arrays where practical. It's kind of silly to do your own string parsing when there are facilities to do it for you already. The firmware option still needs to be a string of course, but anything else that's an int of some sort should be done with the existing parameter parsing mechanism. Doing this will change the module loading syntax, but if you have no objection, I'll make those changes and commit them in the next few days (along with changes to any sample configs). I think it would end up something like this: loadrt hm2_5i20 firmware="unchanged" num_stepgens=0,2 num_pwmgens=4 ... In that example, there are two boards, the first gets 0 stepgens and 4 pwmgens. The second gets 2 stepgens and 0 pwmgens. All other settings are left at default. If you have suggestions on what the defaults should be, let me know. - Steve ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers