Skip to content

Commit 756c924

Browse files
Running on Raspberry as sudo to fix PWM freeze
Error when executing PWM without sudo permissions: pinMode PWM: Unable to do this when using /dev/gpiomem. Try sudo?
1 parent f23d7e5 commit 756c924

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/create-pharo-start.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ elif [[ "{$VM}" = *linux32* ]]; then
7474
fi' >> tmp/$VM_SCRIPT
7575
elif [[ "{$VM_SCRIPT}" = *server* ]]; then
7676
echo 'if [[ "{$VM}" = *arm* ]]; then
77-
vm/$VM/pharo --headless PharoThings32.image remotePharo --startServerOnPort=40423
77+
sudo vm/$VM/pharo --headless PharoThings32.image remotePharo --startServerOnPort=40423
7878
elif [[ "{$VM}" = *osx32* ]]; then
7979
# some magic to find out the real location of this script dealing with symlinks
8080
DIR=`readlink "$0"` || DIR="$0";
@@ -93,7 +93,7 @@ elif [[ "{$VM}" = *linux32* ]]; then
9393
fi' >> tmp/$VM_SCRIPT
9494
else
9595
echo 'if [[ "{$VM}" = *arm* ]]; then
96-
vm/$VM/pharo --headless PharoThings32.image $1 $2 $3
96+
sudo vm/$VM/pharo --headless PharoThings32.image $1 $2 $3
9797
elif [[ "{$VM}" = *osx32* ]]; then
9898
# some magic to find out the real location of this script dealing with symlinks
9999
DIR=`readlink "$0"` || DIR="$0";
@@ -125,4 +125,4 @@ create_vm_script "pharo-server"
125125
# chmod +x tmp/pharo-server
126126

127127
echo '@echo off
128-
start /min vm\win32\Pharo.exe PharoThings32.image' > tmp/pharo.bat
128+
start /min vm\win32\Pharo.exe PharoThings32.image' > tmp/pharo.bat

0 commit comments

Comments
 (0)