Ok - so I had a little more time to play with this.. micges was wondering what hardware I was using.
intel pro/100 with a asus FiA55-m LX plus motherboard. I tested the setup one more time as is - still got encoder errors and watchdog bites. I was looking for another nic - maybe a intel 1000 or other supported rtnet nic. I did find a pro/100 that was quite a few generations newer. I though - what the heck. Well that seemed to help quite a bit. Using the setup below I didn't get any watchdog bites or encoder errors. Yay! http://pastebin.ca/2457470 the issue seemed to be now that no matter what I told the 7i80 I wanted - it always gave me 6 encoders and 6 pwmgens. The config seemed to not be sent to the board. Jeff E took a look and found one error and made this patch http://pastebin.com/0kg1jRgC This seemed to fix it so I could have 0 of everything (only gpio) The only issue now seems to be that I can tell how many pwm or encoder I want - but nothing else. So if I do a config="num_encoders=1 num_pwmgens=1 num_stepgens=1 num_3pwmgen=4" I get 1 encoder and 1 pwm here is the linuxcnc.log and the resulting show http://pastebin.com/3nm3Bwue http://pastebin.com/jLjFFrgK So - very close!! Exciting! sam On 08/19/2013 11:44 AM, sam sokolik wrote: > Ok - I just tried the build this morning... > > This is what I did - using the direction here - > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Mesa7i80_Driver_For_Linuxcnc_On_Xenomai > > $ git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-rtnet > $ cd linuxcnc-rtnet > $ git branch --track rtos-master-v0 origin/rtos-master-v0 > $ git checkout rtos-master-v0 > > I then got the branch from Michael > > $ git remote add github-mah https://github.com/mhaberler/linuxcnc.git > $ git fetch github-mah > $ git checkout -b ubc2-7i80-rtnet github-mah/ubc2-7i80-rtnet > > Then > > $ cd src > $ ./autogen.sh > $ ./configure --with-xenomai --enable-7i80 > $ make > $ sudo make setuid > > (this system already has the xenomai realtime and rtnet installed) > I also enabled syslogging... > http://static.mah.priv.at/public/UnifiedBuild.html > > Then I started the rtnet manually > $ cd /usr/rtnet/modules/ > $ sudo insmod rtnet.ko > $ sudo insmod rtipv4.ko > $ sudo insmod rtudp.ko > $ sudo insmod rt_eepro100.ko > $ sudo /usr/rtnet/sbin/rtifconfig rteth0 up 192.168.1.1 > $ sudo /usr/rtnet/sbin/rtroute solicit 192.168.1.121 dev rteth0 > > Then I ran this hal file. > > # components > > loadrt threads name1=test-thread period1=1000000 > loadrt hostmot2 > loadrt hm2_eth ip="192.168.1.121" config="num_encoders=0 num_pwmgens=0 > num_stepgens=0" > # pin aliases > # param aliases > # signals > # nets > # parameter values > # realtime thread/function links > addf hm2_7i80.0.pet_watchdog test-thread > addf hm2_7i80.0.read test-thread > addf hm2_7i80.0.write test-thread > setp hm2_7i80.0.gpio.024.is_opendrain true > setp hm2_7i80.0.gpio.024.is_output true > > start > > This is with debugging set to 5 > > $ DEBUG=5 halrun -I -f save.hal > > And this is what I got back - output from syslog and halcmd. > > http://pastebin.ca/2434254 > > There are some issues - the encoder errors and the config doesn't seem > to get sent to the board - I specifiy zero everything and they encoders, > pwm and such still show up. I was getting watchdog bites also - not > sure if that is my hardware or some other issue. (the servo time is > getting into the 600us) > > Getting close!!! :) > > sam > > > > On 8/18/2013 4:20 PM, andy pugh wrote: >> On 18 August 2013 21:58, Sebastian Kuzminsky <[email protected]> wrote: >>> Probably not. Maybe a kernel compiled without UDP support? >> That's an interesting thought. >> >> Something that I had assumed to be unrelated is that I can't actually >> ssh into the machine by name when it has booted from the Xenomai >> kernel. I have to connect by IP address. >> > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
