JonD Posted May 25, 2024 at 02:46 PM Share Posted May 25, 2024 at 02:46 PM Hey, I installed brickd using Raspberry 3 & 4 without problems. Now I use a Raspberry 5 (64bit) and got some errors during installation for the software. Which I solved using: sudo apt-get install libusb-1.0-0 libudev1 procps wget https://download.tinkerforge.com/apt/$(. /etc/os-release; echo $ID)/tinkerforge.asc -q -O - | sudo tee /etc/apt/trusted.gpg.d/tinkerforge.asc > /dev/null echo "deb https://download.tinkerforge.com/apt/$(. /etc/os-release; echo $ID $VERSION_CODENAME) main" | sudo tee /etc/apt/sources.list.d/tinkerforge.list sudo apt update sudo apt install brickd This results in an error, which can be solved by: sudo apt --fix-broken install The installation shows no further errors, but the brickd is not running. In the Logfile is written: 2024-05-25 16:18:54.556720 <I> <main_linux.c:369> Brick Daemon 2.4.5 started (pid: 2954, daemonized: 1) 2024-05-25 16:18:54.556735 <I> <main_linux.c:375> Running on Linux system (sysname: Linux, release: 6.6.20+rpt-rpi-2712, version: #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07), machine: aarch64) libusb: warning [libusb_init] installing new context as implicit default 2024-05-25 16:18:54.561928 <I> <bricklet.c:304> Found supported HAT product_id 0x085d in device tree, using default HAT Zero Brick config 2024-05-25 16:18:54.561936 <I> <bricklet.c:345> Found Bricklet port A (spidev: /dev/spidev0.0, driver: gpio, name: gpio426, num: 426) 2024-05-25 16:18:54.561957 <I> <bricklet_stack_linux.c:87> Using spidev backend for Bricklets (unsupported suffix 5 after 'Raspberry Pi' in /proc/device-tree/model) 2024-05-25 16:18:54.561994 <E> <gpio_sysfs.c:77> Could not write to '/sys/class/gpio/export' to export GPIO 426: EINVAL (22) 2024-05-25 16:18:54.561997 <E> <bricklet_stack_linux_spidev.c:78> Could not export gpio426: EINVAL (22) 2024-05-25 16:18:54.562163 <I> <main_linux.c:563> Brick Daemon 2.4.5 stopped I already flashed the hardware to the newest version.n error occur Any idea what is wrong? Quote Link to comment Share on other sites More sharing options...
photron Posted May 27, 2024 at 06:45 PM Share Posted May 27, 2024 at 06:45 PM I cannot reproduce the "sudo apt --fix-broken install" here. Where did you find that you should install the dependencies (sudo apt-get install libusb-1.0-0 libudev1 procps) by hand? This is not neccessary. Also libudev1 is not required anymore. There where a few places left that still mentioned libudev1, I updated them now. Please try this brickd version, this should fix the GPIO problem. Edit: Attachment deleted. Brick Daemon 2.4.6 has been released. Please install the official release instead. Quote Link to comment Share on other sites More sharing options...
JonD Posted June 1, 2024 at 12:51 PM Author Share Posted June 1, 2024 at 12:51 PM Thanks for your feedback. To answer the question, where I found the installation information. I followed the recommendation under: https://www.tinkerforge.com/en/doc/Software/Brickd.html I choose under "Installation" Linux https://www.tinkerforge.com/en/doc/Software/Brickd_Install_Linux.html#brickd-install-linux Then under "APT Repository" I found First, set up our APT repository on your system according to this guide. https://www.tinkerforge.com/en/doc/Software/APT_Repository.html#apt-repository To solve the problem, first I reinstalled a new blank version for the Raspberry 5/64bit. The I used your .deb-file with the command: sudo apt install ./brickd_2.4.6+snapshot~730b7d7_arm64.deb It worked I only got an error at the end, here the result: N: Download is performed unsandboxed as root as file '/media/pi/SCAN/_Tinkerbell/Scripts/RaspBerry BaseInstall Tinker/brickd_2.4.6+snapshot~730b7d7_arm64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) The file /media/pi/SCAN/_Tinkerbell/Scripts/RaspBerry BaseInstall Tinker/brickd_2.4.6+snapshot~730b7d7_arm64.deb' has the rights: -rwxr-xr-x But the demon is running and brickv can connect. Thanks for the help Quote Link to comment Share on other sites More sharing options...
rtrbt Posted June 3, 2024 at 09:55 AM Share Posted June 3, 2024 at 09:55 AM You've placed the package in a directory that apt can't read as the user _apt (apt usually downloads as a separate user for security purposes) See for example here: https://askubuntu.com/a/908825 Since this does not work as _apt, apt retries "downloading" the package as root. Quote Link to comment Share on other sites More sharing options...
yvo Posted July 1, 2024 at 03:07 PM Share Posted July 1, 2024 at 03:07 PM Hi JonD Have you been successful in the meantime to install and using brickv? I have probably the same error. Cheers, Yvo Quote Link to comment Share on other sites More sharing options...
photron Posted July 2, 2024 at 04:45 PM Share Posted July 2, 2024 at 04:45 PM The original problem has been resolved. Please update to brickd 2.4.6 and HAT Brick firmware 2.0.4. Quote Link to comment Share on other sites More sharing options...
yvo Posted July 3, 2024 at 07:43 AM Share Posted July 3, 2024 at 07:43 AM Dear photron Great, I just updated brickd using the update-tool of the Raspberry and it works. Thank you very much for all your work. Cheers, Yvo Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.