[Etherlab-users] Cross compile the master fo ARM
Fontana Nicola
ntd at entidi.it
Tue Aug 3 17:36:22 CEST 2021
Il giorno mar, 03/08/2021 alle 12.57 +0000, Michael Graichen ha scritto:
> Hey,
>
> I've tried to cross-compile (ARM/i.MX7) the ec_master.ko and ec_generic.ko
> modules and copied that onto my device.
> I'm running Kernel 5.13.0-rt1 with the PREEMPT_RT patch.
>
> After loading the module with insmod "insmod ec_master.ko
> main_devices=00:e0:4b:68:7f:cc"
> I can see the following messages in "dmesg"
>
> [ 1497.798350] EtherCAT: Master driver 1.5.2 unknown
> [ 1497.802642] EtherCAT: 0 masters waiting for devices.
Hi Michael,
this is the message I get when I forget the `main_devices` argument.
The MAC addresses do not need to be valid, so with following commands:
modprobe ec_master
rmmod ec_master
modprobe ec_master main_devices=11:11:11:11:11:11
rmmod ec_master
modprobe ec_master main_devices=11:11:11:11:11:11,22:22:22:22:22:22
rmmod ec_master
give me the following results:
EtherCAT: Master driver 1.5.2 unknown
EtherCAT: 0 masters waiting for devices.
EtherCAT: Master module cleaned up.
EtherCAT: Master driver 1.5.2 unknown
EtherCAT: 1 master waiting for devices.
EtherCAT: Master module cleaned up.
EtherCAT: Master driver 1.5.2 unknown
EtherCAT: 2 masters waiting for devices.
EtherCAT: Master module cleaned up.
Please, double check you are viewing the appropriate messages (do a
`dmesg -c` before inserting the module) and that your shell/terminal
emulator did not messed up your command line.
Ciao.
--
Nicola
More information about the Etherlab-users
mailing list