raspberrypi / userland

Source code for ARM side libraries for interfacing to Raspberry Pi GPU.
BSD 3-Clause "New" or "Revised" License
2.05k stars 1.09k forks source link

failed to add service - already in use #569

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi,

Linux raspberrypi 4.19.65-v7+ #1252 SMP Fri Aug 9 18:02:10 BST 2019 armv7l GNU/Linu

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Git cloned on target:

cd userland
mkdir build
cd build
cmake .
make
sudo make install

Then

cd ~/userland/host_applications/linux/apps/hello_pi/libs/ilclient
make
sudo cp ./*.a /usr/lib/arm-linux-gnueabihf/
cd ~/userland/host_applications/linux/apps/hello_pi/libs/revision
make
sudo cp ./*.a /usr/lib/arm-linux-gnueabihf/

Then:


cd /opt/vc/src/hello_pi/hello_teapot
cmake .
make
pi@raspberrypi:/opt/vc/src/hello_pi/hello_teapot $ ./hello_teapot.bin 
Note: ensure you have sufficient gpu_mem configured. Is 128
* failed to add service - already in use

Then cd /opt/vc/src/hello_pi

rebuild.sh
pi@raspberrypi:/opt/vc/src/hello_pi/hello_teapot $ ./hello_teapot.bin 
Note: ensure you have sufficient gpu_mem configured. Is 128
* failed to add service - already in use

/boot/config.txt

#display_rotate=3
#dtoverlay=vc4-fkms-v3d
gpu_mem=256
start_x=1
avoid_warnings=1
[all]
dtoverlay=vc4-kms-v3d
ghost commented 5 years ago

had to disable KMS