Please, re-enable CONFIG_GPIO_SYSFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-raspi (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
CONFIG_GPIO_SYSFS is needed to expose GPIOs as /sys/class/gpio.
With this setting simple bash scripts (with appropriate authorization) can easily access GPIOs.
Without this setting one needs to write to /dev/gpiochipN devices with ioctl() calls which bash cannot do.
Please, re-enable this setting in Lunar.
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: linux-raspi 5.19.0.1004.6
ProcVersionSign
Uname: Linux 5.19.0-1004-raspi aarch64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k5.19.0-1004-raspi.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.24.0-0ubuntu2
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CRDA: N/A
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.
CasperMD5CheckR
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read kernel buffer failed: Operation not permitted
Date: Sun Jan 29 16:21:42 2023
ImageMediaBuild: 20230129
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lspci-vt: -[0000:
Lsusb:
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
PciMultimedia:
ProcFB:
ProcKernelCmdLine: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.
RelatedPackageV
linux-
linux-
linux-firmware 20230120.
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux-raspi
UpgradeStatus: No upgrade log present (probably fresh install)
acpidump:
tags: | added: kern-5476 |
The gpiod package is not a good replacement:
The /sys/class/gpio interface allows reading the current value of an output. gpioget switches the GPIO to input instead of returning the current output value.
The same is true for the Python lgpio package.