Sebastian,

Here is what I am getting, keystroke by keystroke. I have the symlink in. I
found a broken link which I had erroneously created previously, but I
deleted it and recreated it correctly. It looks to be good when I follow it
from the /lib/firmware folder. 

Then, from the terminal session I enter the following commands:

cd emc2
source scripts/emc-environment
scripts/realtime start
halcmd loadrt hostmot2 ...
halcmd loadrt hm2_5i20 config="firmware=hm2/5i20/SVST8_4.BIT"

=> No error displayed <=
dmesg shows:
PCI: Found IRQ5 for device 0000:03:02.0
PCI: Sharing IRQ5 with 0000:00:1d.2

=> Resuming commands <=
halcmd unload hm2_5i20
=> Nothing new in dmesg <=
halcmd loadrt hm2_5i20 config="firmware=hm2/5i20/SVST8_4.BIT num_pwmgens=1"

=> Displayed error <=
insmod: error inserting '/home/eric/emc2/rtlib/hm2_5i20.ko : -1 unknown
symbol in module.

=> dmesg error <=
hm2_5i20: Unknown parameter 'num_pwmgens"

Also, per Steve's suggestion, I issued commands such as:
halcmd loadrt hm2_5i20 config="num_pwmgens=1"

Which does not generate any error, either to the terminal session or in
dmesg.

Is that enough information to figure out what is going on here?

Regards,
Eric


I agree with Steve, the contents of the config="..." string are getting
split up into separate tokens instead of getting passed as a single lump to
the hm2_5i20 driver.

The num_stepgens value gets validated in hm2_stepgen_parse_md().

I agree that the expected integer is not properly validated, and that that's
not the problem that Eric's seeing, but that it should be done better
somehow.  :-)


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to