Skip to content

enable SCD4x as module #7091

@schoerg

Description

@schoerg

Describe the bug

Currently, sensors like the SCD41 are not usable without some user-space program. It uses I2C address 0x62

[03:02:54] root@raspberrypi:/# modprobe scd4x
modprobe: FATAL: Module scd4x not found in directory /lib/modules/6.12.51-v8-16k+

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- 62 -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/chemical/scd4x.c?h=v6.18-rc1

Manufacturer: https://sensirion.com/products/catalog/SCD41

Steps to reproduce the behaviour

[03:02:54] root@raspberrypi:/# modprobe scd4x
modprobe: FATAL: Module scd4x not found in directory /lib/modules/6.12.51-v8-16k+

Kernel build config:

# Chemical Sensors
#
[...]
# CONFIG_SCD4X is not set
[...]

Device (s)

Raspberry Pi 5

System

Raspberry Pi reference 2025-10-01
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 7dadcf1fc5ce1648ab09409ab978831690c9a955, stage2

2025/10/08 17:19:18
Copyright (c) 2012 Broadcom
version a06c733f (release) (embedded)

Linux raspberrypi 6.12.51-v8-16k+ #1910 SMP PREEMPT Mon Oct  6 13:45:09 BST 2025 aarch64 GNU/Linux

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions