hi, I am trying to activate all PWM pins so that I have a total of 8 to use. When I check my slots file, I have a device tree overlay that I am trying to export, but permission is denied. Can anyone help me? see below
hi, I am trying to activate all PWM pins so that I have a total of 8 to use. When I check my slots file, I have a device tree overlay that I am trying to export, but permission is denied. Can anyone help me? see below
You’ll want to do any reconfiguration of your system under permissions of the root user. Usually that involves prepending a command with “sudo”, but it doesn’t work with commands that write stuff to files using output forwarding (e.g. “$ echo -4 > /slots”).
In this case I’d suggest switching to root shell with the following command. You’ll likely be asked for the password of user “debian”:
$ sudo su -
After this all commands will execute with root permissions.
Would it perhaps be easier to exploit those and enable your PWM-s with the config-pin script? Unfortunately, I don’t know if enabling all of your desired PWM-s are supported there. Remember, you need root permissions.