From 560a153ceb0873dfac18906c022cce3a1b7c8daf Mon Sep 17 00:00:00 2001 From: Baikal Electronics Date: Fri, 2 Dec 2022 11:30:25 +0300 Subject: [PATCH] Add lmsensors package. Rename u-boot_2022.07 -> u-boot_2022.10 --- .gitignore | 2 +- ...22.07.bbappend => u-boot_2022.10.bbappend} | 0 .../images/core-image-minimal.bbappend | 2 +- .../lmsensors/lmsensors-config/fancontrol | 2 + .../lmsensors/lmsensors-config/sensord | 16 ++ .../lmsensors/lmsensors-config/sensord.cgi | 10 ++ .../lmsensors/lmsensors-config/sensord.conf | 16 ++ .../lmsensors/lmsensors-config/sensors.conf | 2 + .../lmsensors/lmsensors-config_1.0.bb | 68 +++++++ ...nge-PIDFile-path-from-var-run-to-run.patch | 44 +++++ .../lmsensors/lmsensors/fancontrol.init | 47 +++++ .../lmsensors/lmsensors/sensord.init | 49 +++++ .../lmsensors/lmsensors_3.6.0.bb | 168 ++++++++++++++++++ 13 files changed, 424 insertions(+), 2 deletions(-) rename meta-baikal/recipes-bsp/u-boot/{u-boot_2022.07.bbappend => u-boot_2022.10.bbappend} (100%) create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors-config/fancontrol create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.cgi create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.conf create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors-config/sensors.conf create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors-config_1.0.bb create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors/0001-Change-PIDFile-path-from-var-run-to-run.patch create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors/fancontrol.init create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors/sensord.init create mode 100644 meta-baikal/recipes-support/lmsensors/lmsensors_3.6.0.bb diff --git a/.gitignore b/.gitignore index 4059fda..8befde4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # ignore changes made to main OE project and bitbake -* + # All the changes you want to track are made in here !/meta-baikal/ diff --git a/meta-baikal/recipes-bsp/u-boot/u-boot_2022.07.bbappend b/meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend similarity index 100% rename from meta-baikal/recipes-bsp/u-boot/u-boot_2022.07.bbappend rename to meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend diff --git a/meta-baikal/recipes-core/images/core-image-minimal.bbappend b/meta-baikal/recipes-core/images/core-image-minimal.bbappend index 093cdf7..6ce8e92 100644 --- a/meta-baikal/recipes-core/images/core-image-minimal.bbappend +++ b/meta-baikal/recipes-core/images/core-image-minimal.bbappend @@ -8,7 +8,7 @@ IMAGE_INSTALL:append = " dropbear" #MAGE_INSTALL:append = " strace" #IMAGE_INSTALL:append = " kexec-tools" # IMAGE_INSTALL:append = " i2c-tools" -# IMAGE_INSTALL:append = " lmsensors" +IMAGE_INSTALL:append = " lmsensors-sensors" IMAGE_INSTALL:append = " benchmarks" EXTRA_IMAGE_FEATURES += "debug-tweaks" diff --git a/meta-baikal/recipes-support/lmsensors/lmsensors-config/fancontrol b/meta-baikal/recipes-support/lmsensors/lmsensors-config/fancontrol new file mode 100644 index 0000000..1f03a2b --- /dev/null +++ b/meta-baikal/recipes-support/lmsensors/lmsensors-config/fancontrol @@ -0,0 +1,2 @@ +# fancontrol configuration file. +# Place your device specific configuration in this file. diff --git a/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord b/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord new file mode 100644 index 0000000..a58362e --- /dev/null +++ b/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord @@ -0,0 +1,16 @@ +# configuration for hardware sensors monitoring daemon +# in intervals use suffix "m" for minutes, "s" for seconds, "h" for hours +# 0 means turning facility off + +# interval between scanning alarms +INTERVAL=1m + +# interval between logging +LOG_INTERVAL=20m + +# interval between RRD logging +# RRD_INTERVAL=1m + +# RRD db location +# RRD_LOGFILE=/var/log/sensors.rrd + diff --git a/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.cgi b/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.cgi new file mode 100644 index 0000000..b1aad05 --- /dev/null +++ b/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.cgi @@ -0,0 +1,10 @@ +#!/usr/bin/rrdcgi + + + +sensord + + +Generate a valid sensord.cgi script and install it in your BSP. + + diff --git a/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.conf b/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.conf new file mode 100644 index 0000000..6b48cf6 --- /dev/null +++ b/meta-baikal/recipes-support/lmsensors/lmsensors-config/sensord.conf @@ -0,0 +1,16 @@ +# Default sensord configuration file +# Syntax: sensord {options} {chips} +# -i, --interval