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@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 <[email protected]> wrote: > Dear raziebe, > > ... ok, I did the following. > > gcc main.c -o main > chmod +x main > > kind regards > > > Jürgen Stadler > > ------------------------------ > *Von:* Raz <[email protected]> > *An:* Jürgen Stadler <[email protected]> > *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 <[email protected]> > 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 <[email protected]> > *An:* Jürgen Stadler <[email protected]> > *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 <[email protected]> > wrote: > > Hallo raziebe, > > I would like to compile it as a kernel space driver. > > > kind regards > > > Jürgen Stadler > > ------------------------------ > *Von:* Raz <[email protected]> > *An:* Jürgen Stadler <[email protected]> > *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 <[email protected]> > 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/
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
