Eric H. Johnson wrote:

> halcmd loadrt hm2_5i20 config="firmware=hm2/5i20/SVST8_4.BIT num_pwmgens=1"
> 
> 
> => dmesg error <=
> hm2_5i20: Unknown parameter 'num_pwmgens"
>

The kernel module is expecting a single string parameter called
"config", and you are trying to set its value to
"firmware=hm2/5i20/SVST8_4.BIT num_pwmgens=1"

But the shell is interpreting the space in that string as a separator.
What is actually getting sent to the module is two parameters:

1) a string called "config" containing "firmware=hm2/5i20/SVST8_4.BIT"

2) an integer (probably) called "num_pwmgens", with the value 1

Since the module doesn't want a parameter called "num_pwmgens", it
causes an error.

IMO this isn't a great way to handle configs, but for the short term,
try quoting the entire thing with single quotes, like so:

loadrt hm2_5i20 'config="firmware=hm2/5i20/SVST8_4.BIT num_pwmgens=1"'

You might also try entering the command in an interactive halcmd
session, or using a .hal file - that will probably avoid bash parsing,
which _might_ be where things are being split apart.

Regards,

John Kasunich

-------------------------------------------------------------------------
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

Reply via email to