Richard Acosta wrote:
> This 3 are samples for waath i have understand i have to do, but, still 
> with no luck on making EMC2 work with this card.
> 
> I have based this on the 5120 sample config files found on EMC2 CD.
> 
> Kirk Wallace sent me some directions, and:
> 1) i have no "man hm2_7i43" on my linux (no manual found answers my 
> console), and i have downloaded it as an Ubuntu complete CD image from 
> LinuxCNC website.

You have m7i43_hm2 but not hm2_7i43; that probably means you're running 
EMC2 2.2.5.  Support for the 7i43 is still evolving rapidly, I'd suggest 
at the very least running the most recent version, 2.2.6, which is also 
available from linuxcnc.org.

There are several known bugs in the 7i43 driver in 2.2.6, you'd be much 
better off checking out and compiling the CVS TRUNK version. 
Instructions for doing that are here: 
<http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Installing_EMC2>, if you 
installed EMC2 from one of the live CDs on linuxcnc.org, you can 
probably skip to step 2.2.


There are two drivers that talk to the 7i43: m7i43_hm2 and hm2_7i43.

m7i43_hm2 was introduced in 2.2.5, it is sort of an early prototype of 
the hm2_7i43 driver.  m7i43_hm2 is deprecated and should not be used.

hm2_7i43 (and its companion driver, hostmot2) were introduced in 2.2.6. 
This is where all current development and bugfixing is happening.  All 
new configs should use hm2_7i43 and hostmot2.


> *Test 1*
> # Install driver.
> loadrt hostmot2
> loadrt m7i43_hm2 config="firmware=SV8B.BIT num_encoders=1 num_pwmgens=1 
> num_stepgens=0"
> *Error 1*
> Debug file information:
> 7i43_motion.hal:3: Can't find module 'hostmot2' in 
> /usr/realtime-2.6.24-16-rtai/modules/emc2
> 4913

The error message is saying that the 'hostmot2' driver module cannot be 
found, presumably because you're running emc2 2.2.5 which does not 
include it.

This Test1 configuration is what you should be trying to get working, 
preferably by installing EMC2 from CVS.


> *Test 2*
> # Install driver.
> #loadrt hostmot2
> loadrt m7i43_hm2 config="firmware=SV8B.BIT num_encoders=1 num_pwmgens=1 
> num_stepgens=0"
> *Error 2*
> Debug file information:
> insmod: error inserting 
> '/usr/realtime-2.6.24-16-rtai/modules/emc2/m7i43_hm2.ko': -1 Unknown 
> symbol in module
> 7i43_motion.hal:4: exit value: 1
> 7i43_motion.hal:4: insmod failed, returned -1
> 5490

This error message is a bit more cryptic.  First of all, as i said 
above, m7i43_hm2 is deprecated and should not be used.  The error is 
because that old driver took in its configuration in a different way 
than the new one.  You're using the command-line syntax for the hm2_7i43 
driver, but passing it to the m7i43_hm2 driver, and it's saying that it 
doesnt expect the "config" argument.


> --------------------------------------------------------------------
> This is the only one that makes lights on the card to flash
> --------------------------------------------------------------------
> *Test 3
> *# Install driver.
> loadrt m7i43_hm2
> loadrt m7i43_hm2 config="firmware=SV8B.BIT num_encoders=1 num_pwmgens=1 
> num_stepgens=0"
> *Error 3*
> Debug file information:
> insmod: error inserting 
> '/usr/realtime-2.6.24-16-rtai/modules/emc2/m7i43_hm2.ko': -1 File exists
> 7i43_motion.hal:5: exit value: 1
> 7i43_motion.hal:5: insmod failed, returned -1
> 6081

Here you're loading the m7i43_hm2 driver twice, which is twice as wrong 
as loading it once ;-)

It works the first time and flashes the LEDs on the board because you 
didnt give it any incorrect load-time arguments.  Then it fails the 
second time and emits that error message because the first instance is 
already loaded and it prevents the second one from loading.


Compile emc2 from CVS, use hostmot2 and hm2_7i43 with the config=... 
argument from Test 1, and let's see how it goes.


-- 
Sebastian Kuzminsky
romano hip hop - romano hip hop in the house
<http://www.youtube.com/watch?v=D-azvIwldYg>

-------------------------------------------------------------------------
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-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to