jc42 kernel module - DIMM Temperature sensors

  • Hi

    Running LE10 on a NUC11TNBi7. I also run some unrelated stuff in docker on the same machine.

    I was trying to read RAM DIMM's temperature sensors. But it seems a module called jc42 is not included.

    I followed this guide: https://wiki.archlinux.org/title/Lm_senso…erature_sensors

    This guide works fine for me in Debian btw.

    So I then made my very first attempt in compiling LE with this module included. But it is also the first time I try to compile anything at all so now after 3 days I give up.

    Would it be possible to include the jc42 module in the Generic image? Or if someone can build a test image to begin with since I am not even sure that just including that module is enough to make it work.

  • Hi SandVP

    A quick check here and jc42 is not adding to sensors on NUC11PAHi7

    nuc11:~ # i2cdetect -l

    i2c-0 i2c i915 gmbus dpa I2C adapter

    i2c-1 i2c i915 gmbus dpb I2C adapter

    i2c-2 i2c i915 gmbus dpc I2C adapter

    i2c-3 i2c i915 gmbus tc1 I2C adapter

    i2c-4 i2c i915 gmbus tc2 I2C adapter

    i2c-5 i2c i915 gmbus tc3 I2C adapter

    i2c-6 i2c i915 gmbus tc4 I2C adapter

    i2c-7 i2c i915 gmbus tc5 I2C adapter

    i2c-8 i2c i915 gmbus tc6 I2C adapter

    i2c-9 i2c AUX USBC1/DDI TC1/PHY TC1 I2C adapter

    i2c-10 i2c AUX USBC2/DDI TC2/PHY TC2 I2C adapter

    i2c-11 i2c AUX USBC3/DDI TC3/PHY TC3 I2C adapter

    i2c-12 i2c AUX USBC4/DDI TC4/PHY TC4 I2C adapter

    i2c-13 i2c Synopsys DesignWare I2C adapter I2C adapter

    i2c-14 smbus SMBus I801 adapter at efa0 SMBus adapter

    nuc11:~ # i2cdetect -y 14

    0 1 2 3 4 5 6 7 8 9 a b c d e f

    00: 08 -- -- -- -- -- -- --

    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    30: 30 -- -- -- -- 35 UU UU -- -- -- -- -- -- -- --

    40: -- -- -- -- 44 -- -- -- -- -- 4a 4b -- -- -- --

    50: UU -- 52 -- -- -- -- -- -- -- -- -- -- -- -- --

    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    70: -- -- -- -- -- -- -- --

    nuc11:~ # insmod http://LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/build/linux-5.17-rc8/drivers/hwmon/jc42.ko

    nuc11:~ # sensors

    coretemp-isa-0000

    Adapter: ISA adapter

    Package id 0: +36.0°C (high = +100.0°C, crit = +100.0°C)

    Core 0: +30.0°C (high = +100.0°C, crit = +100.0°C)

    Core 1: +32.0°C (high = +100.0°C, crit = +100.0°C)

    Core 2: +32.0°C (high = +100.0°C, crit = +100.0°C)

    Core 3: +33.0°C (high = +100.0°C, crit = +100.0°C)

    acpitz-acpi-0

    Adapter: ACPI interface

    temp1: -263.2°C

    temp2: +37.0°C (crit = +119.0°C)

    iwlwifi_1-virtual-0

    Adapter: Virtual device

    temp1: N/A

    nvme-pci-0100

    Adapter: PCI adapter

    Composite: +32.9°C (low = -0.1°C, high = +69.8°C)

    (crit = +84.8°C)

  • Hi heitbaum

    This is what I get. So I assume there are sensors at 18 and 1a.

  • What version of LE10 are you running? Please confirm (ideally 10.0.2) and I will try an get a test jc42 for you.

    nuc11:~ # uname -a

    Linux nuc11 5.17.0-rc8 #1 SMP Fri Mar 18 09:21:50 UTC 2022 x86_64 GNU/Linux

    nuc11:~ # cat /etc/release

    Generic.x86_64-devel-20220318085355-518a13c

    nuc11:~ # head .kodi/temp/kodi.log

  • That sound great. Thanks!

  • It is working. Thanks a lot!

    Follow below commands.

    Although with this manual load of jc42 it seems like all the steps have to be done after each reboot.

  • Hi again.

    Is it correctly understood that this change was included in 10.0.3?

    Because I upgraded to that and am not able to install or find the jc42 driver.

    Code
    NUC11TNBi7:/run/kernel-overlays/modules/5.10.146/kernel/drivers/hwmon # ls
    amd_energy.ko    fam15h_power.ko  k10temp.ko
    asus_atk0110.ko  it87.ko          k8temp.ko
  • Oh ok then, thanks!

    Edit:

    Just tried the latest LE11 nightly 20221126.

    Can confirm the sensors show up after adding jc42.conf to modules-load.d. No further setup required.

    Edited once, last by SandVP (November 27, 2022 at 6:28 PM).