Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2490

Raspberry Pi OS • Can no longer "echo 6 > /sys/class/gpio/export"

$
0
0
I think this form of command has been removed and would like to know what the new commands are to achieve the same effect as the original 3 commands to power on my modem.

I have a CM4 in a Waveshare CM4-IO-POE-4G-BOX running
Linux 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64
which I installed from image at https://downloads.raspberrypi.com/raspi ... ite.img.xz . To power on the LTE 4G modem I need to enter the following commands which work fine with this version of the OS:

Code:

echo 6 > /sys/class/gpio/exportecho out > /sys/class/gpio/gpio6/directionecho 0 > /sys/class/gpio/gpio6/value
After I upgrade the OS I can no longer run these commands.

Code:

sudo apt update60 packages can be upgraded. Run 'apt list --upgradable' to see them.N: Repository 'http://deb.debian.org/debian bookworm InRelease' changed its 'Version' value from '12.4' to '12.5sudo apt full-upgradeecho 6 > /sys/class/gpio/export-bash: echo: write error: Invalid argument
The operating system is now
Linux 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64
I noticed in viewtopic.php?p=2156709 that people have said my commands are deprecated and so I want to know what is the new way to achieve the same result.

Thanks in advance

Tim

Statistics: Posted by timcu — Fri Mar 15, 2024 5:04 am



Viewing all articles
Browse latest Browse all 2490

Trending Articles