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,33 @@
From cdb388c8dc6e661d2a23f1e9b79102bc68e89af5 Mon Sep 17 00:00:00 2001
From: Philippe Troin <phil+github-commits@fifi.org>
Date: Wed, 23 Apr 2025 16:04:20 -0700
Subject: [PATCH] C23 compatibility.
bool is a keyword in C23.
Upstream: https://github.com/troglobit/mrouted/pull/65
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
src/kern.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/kern.c b/src/kern.c
index 27f8dd4..04f1c36 100644
--- a/src/kern.c
+++ b/src/kern.c
@@ -104,11 +104,11 @@ void k_set_rcvbuf(int bufsize, int minsize)
* in the kernel and "panic". The kernel patch for netinet/ip_raw.c
* coming with this distribution fixes it.
*/
-void k_hdr_include(int bool)
+void k_hdr_include(int flag)
{
#ifdef IP_HDRINCL
- if (setsockopt(igmp_socket, IPPROTO_IP, IP_HDRINCL, &bool, sizeof(bool)) < 0)
- logit(LOG_ERR, errno, "Failed setting socket IP_HDRINCL %u", bool);
+ if (setsockopt(igmp_socket, IPPROTO_IP, IP_HDRINCL, &flag, sizeof(flag)) < 0)
+ logit(LOG_ERR, errno, "Failed setting socket IP_HDRINCL %u", flag);
#endif
}

14
package/mrouted/Config.in Normal file
View File

@@ -0,0 +1,14 @@
config BR2_PACKAGE_MROUTED
bool "mrouted"
depends on BR2_USE_MMU # fork()
help
An implementation of the DVMRP multicast routing protocol.
Unlike PIM a DVMRP router has a distance vector protocol (like
RIP) built-in to figure out the reverse-path to the multicast
source. This package comes with mrouted and mroutectl. Where
the latter is used to query status and control operation.
Note: at least two interfaces with MULTICAST flag are
required.
http://github.com/troglobit/mrouted

62
package/mrouted/S41mrouted Executable file
View File

@@ -0,0 +1,62 @@
#!/bin/sh
DAEMON="mrouted"
PIDFILE="/var/run/$DAEMON.pid"
MROUTED_ARGS="-w 30"
# shellcheck source=/dev/null
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
start() {
printf 'Starting %s: ' "$DAEMON"
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -S -q -p "$PIDFILE" -x "/sbin/$DAEMON" \
-- $MROUTED_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
stop() {
printf 'Stopping %s: ' "$DAEMON"
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
restart() {
stop
sleep 1
start
}
# SIGHUP makes mrouted reload its configuration
reload() {
printf 'Reloading %s: ' "$DAEMON"
start-stop-daemon -K -s HUP -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
case "$1" in
start|stop|restart|reload)
"$1";;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac

View File

@@ -0,0 +1,5 @@
# From https://github.com/troglobit/mrouted/releases/download/4.6/mrouted-4.6.tar.gz.sha256
sha256 49443c47b5b28a5ab65d796f3495d72a94c1c95e54333cb11fe04075006b576b mrouted-4.6.tar.gz
# Locally calculated
sha256 834f45ed282fd010f354ecc0a50538af519a1cfcc4d2866de3be06982fa9ed29 LICENSE

View File

@@ -0,0 +1,33 @@
################################################################################
#
# mrouted
#
################################################################################
MROUTED_VERSION = 4.6
MROUTED_SITE = \
https://github.com/troglobit/mrouted/releases/download/$(MROUTED_VERSION)
MROUTED_DEPENDENCIES = host-bison
MROUTED_LICENSE = BSD-3-Clause
MROUTED_LICENSE_FILES = LICENSE
MROUTED_CPE_ID_VENDOR = troglobit
define MROUTED_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/mrouted/S41mrouted \
$(TARGET_DIR)/etc/init.d/S41mrouted
endef
define MROUTED_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/var/lib/misc/
$(INSTALL) -D -m 644 $(@D)/mrouted.service \
$(TARGET_DIR)/usr/lib/systemd/system/mrouted.service
endef
# We will assume that CONFIG_NET and CONFIG_INET are already
# set in the kernel configuration provided by the user.
define MROUTED_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_MULTICAST)
$(call KCONFIG_ENABLE_OPT,CONFIG_IP_MROUTE)
endef
$(eval $(autotools-package))