[etherlab-users] etherlab ecslave

Raz raziebe at gmail.com
Mon Dec 22 19:12:19 CET 2014


ok. Now log into the pi and issue the following command:


$ git clone git://git.code.sf.net/p/ecslave/code ecslave
$ cd ecslave
$ sh ./configure
$ make

if compilation passes without any errors output would a binary called
ec_slave.
to run it please:
root at raspberrypi:~/ecslave-code# ./ec_slave eth0 10
LINK 0 eth0  UP

This would instantiate 10 ethercat slaves.

Common problems:
1. compilation. libpcap-devel is missing . apt-get it.
2. runtime. use user root to execute.

Kind regards

Raz





On Mon, Dec 22, 2014 at 1:53 PM, Jürgen Stadler <jurgen.stadler at yahoo.de>
wrote:

> Dear raziebe,
>
> ... ok, I did the following.
>
> gcc main.c -o main
> chmod +x main
>
> kind regards
>
>
> Jürgen Stadler
>
>   ------------------------------
>  *Von:* Raz <raziebe at gmail.com>
> *An:* Jürgen Stadler <jurgen.stadler at yahoo.de>
> *Gesendet:* 11:45 Montag, 22.Dezember 2014
> *Betreff:* Re: etherlab ecslave
>
> hamm... then i would suggest to compile the user space executable binary
> and not as kernel module.
> It is overkill.
> The fastest way is to to compile the code in raspberry itself.
> so
> 1. login to pi
> 2. try to compile a simple main.c code. read some documentation in the
> internet for how to do that.
>
> bypass these two phases and then we can continue.
>
>
>
>
> On Sun, Dec 21, 2014 at 5:13 PM, Jürgen Stadler <jurgen.stadler at yahoo.de>
> wrote:
>
> Dear raziebe,
>
> I don't know exactly how to compile a kernel.
> Is it possible to do it on the raspberry pi?
> Do I need a cross compiler?
> Have you got a tutorial?
>
> I have a big knowledge on Microsoft programming but
> I'm very new on linux and raspberry pi.
>
>
> kind regards
>
>
> Jürgen Stadler
>   ------------------------------
>  *Von:* Raz <raziebe at gmail.com>
> *An:* Jürgen Stadler <jurgen.stadler at yahoo.de>
> *Gesendet:* 21:40 Samstag, 20.Dezember 2014
> *Betreff:* Re: etherlab ecslave
>
> First step is compile a kernel for pi. do you know how to do that ?
>
>
>
> On Sat, Dec 20, 2014 at 3:39 PM, Jürgen Stadler <jurgen.stadler at yahoo.de>
> wrote:
>
> Hallo raziebe,
>
> I would like to compile it as a kernel space driver.
>
>
> kind regards
>
>
> Jürgen Stadler
>
>   ------------------------------
>  *Von:* Raz <raziebe at gmail.com>
> *An:* Jürgen Stadler <jurgen.stadler at yahoo.de>
> *Gesendet:* 12:49 Samstag, 20.Dezember 2014
> *Betreff:* Re: etherlab ecslave
>
> Hey
> Do you want to compile it as user space program or kernel space driver ?
>
>
>
> On Sat, Dec 20, 2014 at 1:10 PM, Jürgen Stadler <jurgen.stadler at yahoo.de>
> wrote:
>
> Dear raziebe,
>
> can you send me a step by step tutorial on how to
> compile the ecslave source code for a raspberry pi kernel ?
> This would be very helpfull for me.
>
> Thanks in advance an Merry Chrismas
>
>
> Jürgen Stadler
>
>
>
>
> --
> https://sites.google.com/site/ironspeedlinux/
>
>
>
>
>
> --
> https://sites.google.com/site/ironspeedlinux/
>
>
>
>
>
> --
> https://sites.google.com/site/ironspeedlinux/
>
>
>


-- 
https://sites.google.com/site/ironspeedlinux/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20141222/323bc53d/attachment-0002.htm>


More information about the Etherlab-users mailing list