[Etherlab-users] Cross compile the master fo ARM

Michael Graichen michael.graichen at hotmail.com
Wed Aug 4 14:56:35 CEST 2021


Hey, 

my "insmod" comes from Busybox. 
Busybox has a configuration flag "CONFIG_FEATURE_CMDLINE_MODULE_OPTIONS"
Busybox Configuration -> Linux Module Utilities -> [*] Accept module options on modprobe command line
that has to be configured. 

Best Regards 
Michael

________________________________________
Von: Fontana Nicola <ntd at entidi.it>
Gesendet: Dienstag, 3. August 2021 17:36
An: Michael Graichen; etherlab-users at etherlab.org
Betreff: Re: [Etherlab-users] Cross compile the master fo ARM


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