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,34 @@
From 32ec7f7b4eb1466100d59aaea8855d770af54327 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
Date: Sat, 8 Jul 2023 13:10:24 +0200
Subject: [PATCH] Fix build on Linux 6.4
Needed after upstream changes in kernel 6.4:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/include/linux/device/class.h?id=1aaba11da9aa
Upstream: https://github.com/nicupavel/emlog/pull/15
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
emlog.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/emlog.c b/emlog.c
index 4462466..2ead738 100644
--- a/emlog.c
+++ b/emlog.c
@@ -500,7 +500,11 @@ static int __init emlog_init(void)
pr_info("version %s running, major is %u, MINOR is %u, max size %d K.\n", EMLOG_VERSION, (unsigned)MAJOR(emlog_dev_type), (unsigned)MINOR(emlog_dev_type), emlog_max_size);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
emlog_class = class_create(THIS_MODULE, DEVICE_NAME);
+#else
+ emlog_class = class_create(DEVICE_NAME);
+#endif
if (emlog_class == NULL) {
pr_err("Can not class_create.\n");
ret_val = -4; goto emlog_init_error;
--
2.39.2

View File

@@ -0,0 +1,35 @@
From 35a0e8d33c5a520df458483237966fa1b1024a3f Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 14 Dec 2024 09:55:10 -0800
Subject: [PATCH] emlog: Do not use no_llseek with kernel 6.12.0+
no_llseek is finally gone with 6.12-rc1 [1]
[1] https://github.com/torvalds/linux/commit/cb787f4ac0c2e439ea8d7e6387b925f74576bdf8
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Upstream: https://github.com/nicupavel/emlog/commit/dca01ea62833249d78ac3bdf277b73424bf93e89
---
emlog.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/emlog.c b/emlog.c
index 2ead738..b45c72d 100644
--- a/emlog.c
+++ b/emlog.c
@@ -464,7 +464,12 @@ static const struct file_operations emlog_fops = {
.open = emlog_open,
.release = emlog_release,
.poll = emlog_poll,
- .llseek = no_llseek, /* no_llseek by default introduced at v2.6.37-rc1 */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
+ /* no_llseek by default introduced at v2.6.37-rc1 and
+ * removed in 6.12.0
+ */
+ .llseek = no_llseek,
+#endif
.owner = THIS_MODULE,
};
--
2.47.1

17
package/emlog/Config.in Normal file
View File

@@ -0,0 +1,17 @@
config BR2_PACKAGE_EMLOG
bool "emlog"
depends on BR2_LINUX_KERNEL
help
emlog is a Linux kernel module that makes it easy to access
the most recent (and only the most recent) output from a
process. It works just like "tail -f" on a log file, except
that the storage required never grows. This can be useful in
embedded systems where there isn't enough memory or disk
space for keeping complete log files, but the most recent
debugging messages are sometimes needed (e.g., after an
error is observed).
https://github.com/nicupavel/emlog
comment "emlog needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL

3
package/emlog/emlog.hash Normal file
View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 76082cf981b0865c8a1b300d4641c790a6556461901bbb63700df38300277271 emlog-0.70.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING

26
package/emlog/emlog.mk Normal file
View File

@@ -0,0 +1,26 @@
################################################################################
#
# emlog
#
################################################################################
EMLOG_VERSION = 0.70
EMLOG_SITE = $(call github,nicupavel,emlog,emlog-$(EMLOG_VERSION))
EMLOG_LICENSE = GPL-2.0
EMLOG_LICENSE_FILES = COPYING
# CVE-2019-16868 and CVE-2019-17073 are misclassified (by our CVE tracker) as
# affecting emlog, while in fact it affects http://www.emlog.net.
EMLOG_IGNORE_CVES += CVE-2019-16868 CVE-2019-17073
define EMLOG_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) nbcat
endef
# make install tries to strip, so install manually.
define EMLOG_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/nbcat $(TARGET_DIR)/usr/bin/nbcat
endef
$(eval $(kernel-module))
$(eval $(generic-package))