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

Reply via email to