Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
From e32e99f8b8ec02a340ad3b93cc8abd36781ff568 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sun, 15 Mar 2026 20:06:42 +0100
Subject: [PATCH] tty: Implemented new timer interface since kernel 6.15
Upstream: https://gitlab.com/etherlab.org/ethercat/-/merge_requests/187
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
examples/tty/tty.c | 4 ++++
tty/module.c | 8 ++++++++
2 files changed, 12 insertions(+)
diff --git a/examples/tty/tty.c b/examples/tty/tty.c
index 4d47a49..e5b4d52 100644
--- a/examples/tty/tty.c
+++ b/examples/tty/tty.c
@@ -233,7 +233,11 @@ static void __exit cleanup_mini_module(void)
{
printk(KERN_INFO PFX "Stopping...\n");
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
+ timer_delete_sync(&timer);
+#else
del_timer_sync(&timer);
+#endif
free_serial_devices();
diff --git a/tty/module.c b/tty/module.c
index 2b7b22b..12ad1e7 100644
--- a/tty/module.c
+++ b/tty/module.c
@@ -292,7 +292,11 @@ static int ec_tty_init(ec_tty_t *t, int minor,
static void ec_tty_clear(ec_tty_t *tty)
{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
+ timer_delete_sync(&tty->timer);
+#else
del_timer_sync(&tty->timer);
+#endif
tty_unregister_device(tty_driver, tty->minor);
}
@@ -367,10 +371,14 @@ static void ec_tty_wakeup(struct timer_list *t)
static void ec_tty_wakeup(unsigned long data)
#endif
{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
+ ec_tty_t *tty = timer_container_of(tty, t, timer);
+#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
ec_tty_t *tty = from_timer(tty, t, timer);
#else
ec_tty_t *tty = (ec_tty_t *) data;
+#endif
#endif
size_t to_recv;
--
2.47.3

View File

@@ -0,0 +1,36 @@
From 2c947e90d93d9c5a0129b62744de9720b48d2a17 Mon Sep 17 00:00:00 2001
From: Nicola Fontana <ntd@entidi.it>
Date: Sun, 8 Mar 2026 15:39:41 +0100
Subject: [PATCH] Linux 6.19.0 support
Commit 89aec171d9d1ab168e43fcf9754b82e4c0aef9b9 (part of linux kernel
6.19.0-rc1) introduced an arbitrarily sized sockaddr struct to be used
instead of the classical one.
Closes #200
Upstream: https://gitlab.com/etherlab.org/ethercat/-/commit/c42c9cf8bc31c56cc20ae630605495e3f19f3f9a
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
devices/generic.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devices/generic.c b/devices/generic.c
index f6cef9b5..a08af54b 100644
--- a/devices/generic.c
+++ b/devices/generic.c
@@ -234,7 +234,11 @@ int ec_gen_device_create_socket(
sa.sll_family = AF_PACKET;
sa.sll_protocol = htons(ETH_P_ETHERCAT);
sa.sll_ifindex = desc->ifindex;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 19, 0)
+ ret = kernel_bind(dev->socket, (struct sockaddr_unsized *) &sa, sizeof(sa));
+#else
ret = kernel_bind(dev->socket, (struct sockaddr *) &sa, sizeof(sa));
+#endif
if (ret) {
printk(KERN_ERR PFX "Failed to bind() socket to interface"
" (ret = %i).\n", ret);
--
2.55.0

View File

@@ -0,0 +1,96 @@
comment "igh-ethercat needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_IGH_ETHERCAT
bool "igh-ethercat"
depends on BR2_LINUX_KERNEL
help
IgH EtherCAT Master for Linux.
http://www.etherlab.org/en/ethercat/index.php
if BR2_PACKAGE_IGH_ETHERCAT
config BR2_PACKAGE_IGH_ETHERCAT_CLITOOL
bool "Enable CLI Tool"
depends on BR2_INSTALL_LIBSTDCPP
help
Enable the EtherCAT CLI tool for testing and diagnostics.
config BR2_PACKAGE_IGH_ETHERCAT_USERLIB
bool "Enable User Space Library"
help
Install the EtherCAT user space library.
config BR2_PACKAGE_IGH_ETHERCAT_TTY
bool "Enable TTY Driver"
help
Enable the EtherCAT TTY driver for serial communication
support.
config BR2_PACKAGE_IGH_ETHERCAT_GENERIC
bool "Enable Generic Driver"
help
Enable the generic EtherCAT master driver.
config BR2_PACKAGE_IGH_ETHERCAT_8139TOO
bool "8139too Driver"
help
Enable Realtek 8139too-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_E100
bool "e100 Driver"
help
Enable Intel e100-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_E1000
bool "e1000 Driver"
help
Enable Intel e1000-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_E1000E
bool "e1000e Driver"
help
Enable Intel e1000e-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_GENET
bool "genet Driver"
help
Enable Broadcom GENET-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_IGB
bool "igb Driver"
help
Enable Intel igb-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_IGC
bool "igc Driver"
help
Enable Intel igc-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_R8169
bool "r8169 Driver"
help
Enable Realtek r8169-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_STMMAC_PCI
bool "stmmac-pci Driver"
help
Enable Synopsys STMMAC PCI-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_STMMAC
bool "stmmac Driver"
help
Enable Synopsys STMMAC-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_DWMAC_INTEL
bool "dwmac-intel Driver"
help
Enable Intel DesignWare MAC-based EtherCAT driver.
config BR2_PACKAGE_IGH_ETHERCAT_CCAT
bool "ccat Driver"
help
Enable CCAT-based EtherCAT driver.
endif

View File

@@ -0,0 +1,4 @@
# Locally computed
sha256 e9b97d4a8c3a1224fe9119ada448f4024bacea2ca940a811073170e42d828b76 igh-ethercat-1.6.8.tar.gz
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LESSER

View File

@@ -0,0 +1,36 @@
################################################################################
#
# igh-ethercat
#
################################################################################
IGH_ETHERCAT_VERSION = 1.6.8
IGH_ETHERCAT_SITE = $(call gitlab,etherlab.org,ethercat,$(IGH_ETHERCAT_VERSION))
IGH_ETHERCAT_LICENSE = GPL-2.0 (IgH EtherCAT master), LGPL-2.1 (libraries)
IGH_ETHERCAT_LICENSE_FILES = COPYING COPYING.LESSER
# Fetching from Git
IGH_ETHERCAT_AUTORECONF = YES
IGH_ETHERCAT_INSTALL_STAGING = YES
IGH_ETHERCAT_CONF_OPTS = \
--with-linux-dir=$(LINUX_DIR) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_USERLIB),--enable-userlib,--disable-userlib) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_CLITOOL),--enable-tool,--disable-tool) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_TTY),--enable-tty,--disable-tty) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_GENERIC),--enable-generic,--disable-generic) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_8139TOO),--enable-8139too,--disable-8139too) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_E100),--enable-e100,--disable-e100) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_E1000),--enable-e1000,--disable-e1000) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_E1000E),--enable-e1000e,--disable-e1000e) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_GENET),--enable-genet,--disable-genet) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_IGB),--enable-igb,--disable-igb) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_IGC),--enable-igc,--disable-igc) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_R8169),--enable-r8169,--disable-r8169) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_STMMAC_PCI),--enable-stmmac-pci,--disable-stmmac-pci) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_STMMAC),--enable-stmmac,--disable-stmmac) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_DWMAC_INTEL),--enable-dwmac-intel,--disable-dwmac-intel) \
$(if $(BR2_PACKAGE_IGH_ETHERCAT_CCAT),--enable-ccat,--disable-ccat)
$(eval $(kernel-module))
$(eval $(autotools-package))