Commit Graph

1179 Commits

Author SHA1 Message Date
Florian Pose 89677140fa Minor: Fixed indent. 2022-05-17 14:09:00 +02:00
Bjarne von Horn 1f55565fbb Fix setting mac_address
eoe->dev->dev_addr is read_only in 5.17.0
using eth_hw_addr_set instead
2022-05-17 14:06:42 +02:00
Shi Qiyao 29919ef8b7 Add support for FoE with password.
Patch originally from https://github.com/ribalda/ethercat which adds the
support for FoE command tool with password.
2022-04-19 11:54:16 +02:00
Florian Pose 4fe2599530 Strictly using KERN_CONT for continued printk() calls to avoid newlines. 2021-08-31 13:29:16 +02:00
Florian Pose 2d96b626e8 Avoided warning about unreasonable use of strncpy(). 2021-08-25 12:01:03 +02:00
Florian Pose 3781326aba Define set_normal_priority() inside #ifdef EC_EOE. Fixes #12. 2021-08-25 09:45:31 +02:00
Florian Pose 0e8ee10933 Avoided unused variables. 2021-08-24 18:12:27 +02:00
Florian Pose db12765645 Fixed duplicate ioctl labels. 2021-08-24 18:12:00 +02:00
Florian Pose 7facae8e3b First feature flag: AssignToPdi. 2021-08-24 17:48:46 +02:00
Florian Pose 980c8d3025 Find flag method with const char * parameter; added method to header. 2021-08-24 17:48:09 +02:00
Florian Pose 2ee65b6387 Added feature flags to API. 2021-08-24 17:47:15 +02:00
Florian Pose f2e838a664 Also changed license of gloabl headers to LGPL.
Moved definition of EC_SDO_INJECTION_TIMEOUT to master.c.
2021-08-24 17:40:06 +02:00
Florian Pose ab0d009bcc Added export for ecrt_slave_config_reg_pdo_entry_pos(). Fixes #11. 2021-08-24 17:39:54 +02:00
Florian Pose 8e1dc9f593 Corrected license text of master/ioctl.h, because it is included in the userspace library. 2021-08-24 17:39:43 +02:00
Nicola Fontana 4e6ac827c1 Revive 'make distcheck' 2021-08-24 17:37:01 +02:00
Florian Pose ff9db35874 Retry responding slaves datagram; more robust to timeouts. 2021-08-24 17:33:58 +02:00
Nicola Fontana 6e8c371c42 Do not include AC_CONFIG_FILES in BUILT_SOURCES
BUILT_SOURCES is used to trigger early generation of files in the `make`
process to workaround dependency problems:

    https://www.gnu.org/software/automake/manual/html_node/Sources.html

AC_CONFIG_FILES are generated by `configure`, so they are already
present in the file system even before `make` is called. Furthermore,
AC_CONFIG_FILES already properly handle dist and clean targets, so no
need to add them to EXTRA_DIST or DISTCLEANFILES:

    https://www.gnu.org/software/automake/manual/html_node/Requirements.html
2021-08-24 17:32:32 +02:00
Florian Pose fbc414c879 Use Git for version detection and tools. 2021-08-24 17:16:55 +02:00
Nicola Fontana 40bd393ed0 Fix sched_setscheduler undefined on kernel 5.9
sched_setscheduler is no more exported:
    https://lkml.org/lkml/2020/4/22/1071
2021-08-24 17:15:09 +02:00
Florian Pose efce2814d9 Improved debugging and behavior on sick SII contents. 2021-08-24 17:14:42 +02:00
Florian Pose c2abe4d8d3 Fixed missing include for struct sched_param. 2021-08-24 17:13:21 +02:00
Florian Pose b6a456c046 New page fault return type vm_fault_t since 4.17. 2021-08-24 17:12:20 +02:00
Florian Pose 3d5d3afd26 Fixed infinite waiting for SoE write response. 2021-08-24 17:02:35 +02:00
Florian Pose 65d29d8c17 Using vmalloc() for FoE memory allocation. 2021-08-24 17:02:21 +02:00
Florian Pose fffbeb4ba5 Added ecrt_master_sync_reference_clock_to() method. 2021-08-24 16:56:23 +02:00
Florian Pose 9d733cb1a9 Renamed app_start_time to dc_ref_time; output via command-line tool. 2021-08-24 16:48:07 +02:00
Florian Pose ef9517e7c3 Improved buffer overflow messages. 2021-08-24 16:33:05 +02:00
Florian Pose 606000bf40 Support scheduler parameters in kernels >= 4.11. 2021-08-24 16:32:36 +02:00
Florian Pose 1d28eafa1f Fixed statistics filter initialisation. 2021-08-24 16:29:20 +02:00
Florian Pose 60a4763639 Doc. 2021-08-24 16:28:52 +02:00
Philipp Weyer e2f864c921 Fixed vm_fault. 2021-08-24 16:23:15 +02:00
Florian Pose 538ff27265 Adapted vm_operations_struct for kernels >= 4.11 2021-08-24 16:22:39 +02:00
Florian Pose 41987fec6c Always clear PDO mapping in ecrt_slave_config_pdos(). 2021-08-24 16:17:09 +02:00
Florian Pose 164498b5ad Fixed fragmented SoE write request. 2021-08-24 15:42:50 +02:00
Florian Pose 0b91af9bb2 Use SYNC0 + SYNC1 cycle times for cyclic start time generation. 2016-09-16 12:35:09 +02:00
Florian Pose e78d153199 Minor change. 2016-06-22 14:08:34 +02:00
Florian Pose 938289f396 Minor change. 2016-06-22 13:50:35 +02:00
Florian Pose dc92e57bc3 Minor changes. 2016-06-22 13:49:16 +02:00
Florian Pose be5dfb7278 Do not touch AL state of EoE slaves. 2016-05-03 15:14:42 +02:00
Florian Pose ccbec710d5 Fixed EoE data debug level 3. 2016-05-03 14:18:29 +02:00
Florian Pose e7300c8680 Print mailbox error response data only if data_size > 0. 2016-05-03 14:17:39 +02:00
Florian Pose c5d7b85bab Fixed endianess of EoE parameters. 2016-05-03 14:13:11 +02:00
Florian Pose 621241b394 New alloc_netdev() API since kernel 3.17. 2015-05-07 15:53:42 +02:00
Florian Pose 4d70145d53 merge 2016-01-22 13:09:43 +01:00
Florian Pose 9486892f7b Always clear PDO assignment of configured sync managers. 2016-01-22 10:11:58 +01:00
Florian Pose 0011332fd8 Typo. 2016-01-22 10:10:02 +01:00
Dave Page 45839e8666 16-ethercat-1.5-frame-corruption.patch
from ethercat-1.5.0-patches-v2.tar.bz2
by Frank Heckenbach f.heckenbach@ at fh-soft.de
Ref: http://lists.etherlab.org/pipermail/etherlab-dev/2014/000404.html
with some additional edits.
2015-04-14 16:25:44 -04:00
Knud Baastrup ff75554c58 Internal SDO requests now synchronized with external requests.
Internal SDO requests are managed by master FSM and can conflict with
external requests managed by slave FSM. The internal SDO requests
includes SDO requests created by an application and external request are
typical created by EtherCAT Tool for SDO upload/download or a directory
fetch initiated with ethercat sdos command. The conflict will cause a
FPWR from an external request to be overwritten by a FPWR from an
internal SDO request (or oppersite) in the same "train" of datagrams.
2015-04-14 13:12:24 -04:00
Knud Baastrup fd9e5a770e Maximum length of foe filename extended to 255. 2015-04-14 13:10:55 -04:00
Florian Pose dd49a34f83 Defined list_next_entry for older kernels. 2015-04-17 11:32:54 +02:00