Questions tagged [raspberry-pi4]

PROGRAMMING QUESTIONS ONLY. Questions about general use should be asked on https://raspberrypi.stackexchange.com/

The Raspberry Pi 4B comes in three different models, the only difference being the amount of SDRAM (1GB, 2GB or 4GB).
The most notable spec improvements, compared to older models are:

  • 1.5GHz 64-bit quad-core Cortex-A72 ARM v8 CPU
  • 1GB, 2GB or 4GB LPDDR4-3200 SDRAM (depending on model)
  • Gigabit Ethernet
  • 2.4 / 5GHz 802.11ac Wireless LAN
  • Bluetooth 5.0 BLE
  • 2x USB 2.0, 2x USB 3.0
  • 2x micro HDMI ports (both support up to 4kp60)

Visit Raspberrypi-Stackexchange for general questions about the Raspberry Pi.
Also useful might be the original raspberry-pi tag info.

1309 questions
2
votes
0 answers

Assembler/Linker on FreeBSD on Raspberry Pi 4 (ARM64) produces wrong binary format

I installed FreeBSD 13.0 on a Raspberry Pi 4B, and tried to assemble and link a "Hello World" assembly program on it. Assembler (as) and linker (ld) produced output files without any error messages, but when I tried to run the program, I got the…
2
votes
2 answers

Python script to repeatedly read a sensor errors

Hello stackoverflow community! I am writing a python script to repeatedly retrieve a value from a PiHat sensor. I found this answer on stack overflow Run a python function every second but I run into the following error after it completes one loop:…
PiGarret
  • 23
  • 4
2
votes
0 answers

SimpleMFRC522 is not working when other threads are starting

So I have a Raspberry pi 4 hooked with a HQ Camera module and a breadboard with an RFID RC522 Chip. I followed the tutorials how to setup the RFID and everything works fine. What I want is to trigger the camera when the RFID Tag is scanned and this…
2
votes
0 answers

How to use Bluetooth in Docker Containers on Raspberry Pi 4 without net=host Flag?

I use a Rasperry Pi 4 with Raspberry Pi OS and docker compose. In my compose I have several containers and also several networks. I want to use the embedded Bluetooth in one of the containers. Since the corresponding container is connected to…
Root_DE
  • 71
  • 6
2
votes
0 answers

Why won't my redbot fire as a system service?

I have a raspberry pi 4 with python and pyenv installed. Usually my routine to launch RedBot is to do the following... tmux pyenv shell redbot redbot gunther and it launches.... I'm trying to setup a service to do this for me on…
Jason
  • 57
  • 6
2
votes
1 answer

Is it possible to run python scripts trough a flutter app running on Raspberry Pi?

I am working on an automation app for Raspberry that requires a few python scripts to work. I made the front end in flutter. Is it possible to run these python scripts through a flutter app running on Raspberry Pi when a button in that app is…
2
votes
0 answers

Problem with running Qt5 GUI app in raspberry 4 (no desktop)

I've installed Raspberry Pi OS Lite 32 bit(no desktop) on raspberry4 and all Qt5 dependencies for my qml app. After building the code , when I run ./myproj , I get error of : qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load…
Rozhin_so
  • 21
  • 2
2
votes
0 answers

Raspberry Pi OS /bin/java: No such file or directory

I need to install a recent version of java on my raspberry pi. I've installed java version 17 via sdkman. The installation seemed fine until I tried testing with java -version. This only puts out: -bash:…
yarvis
  • 69
  • 1
  • 6
2
votes
1 answer

RPI OpenGL PWM display driver

So I'm building a system based on a raspberry pi 4 running Linux (image created through buildroot) driving a Led matrix (64x32 RGB connectors) and I'm very confused about the software stack of linux. I'd like to be able to use OpenGL capabilities on…
2
votes
2 answers

Raspberry Pi 4 (8 GB) with YOLOV4/YOLOV4-TINY using Tensorflow-lite?

What is the best way to run YOLOV4/YOLOV4-TINY on RPI 4 using Tensorflow-lite for object detection? I want to detect/count the no. of people in the room using this followed by detection of items like chair, banana e.t.c? As far as I know these…
2
votes
1 answer

standard_init_linux.go:207: exec user process caused "exec format error" - Raspberry Pi 4

I have a cluster of 4 raspberry pi 4 model b, on which Docker and Kubernetes are installed. The versions of these programs are the same and are as follows: Docker: Client: Version: 18.09.1 API version: 1.39 Go version: …
OhSerk
  • 21
  • 1
  • 4
2
votes
1 answer

How to build raspbian with custom kernel 5.10 (PREEMPT RT)

I am trying to enable PREEMPT RT (Fully preemptive model) in Linux kernel 5.10. However, I get a black screen when booting from the custom kernel image and I have no clue why that happens. Any help is greatly appreciated. Here are all my steps: All…
remus
  • 2,635
  • 2
  • 21
  • 46
2
votes
2 answers

ERROR: Cannot install PyCharm: No JRE found

I am trying to install PyCharm on my raspberry-pi 4 but I get this error: ERROR: Cannot start PyCharm: No JDK found and I also tried: sudo apt install default-jre but I'm still getting the error.
totensee
  • 78
  • 1
  • 9
2
votes
1 answer

recipe for target 'broadcom/bcm2711-rpi-4-b.dtb' failed

I am trying to build an Android Automotive OS for Rpi 4b image following this post by Snapp Automotive When I try to build the RPi kernel, running ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- DTC_FLAGS=”-@” make broadcom/bcm27 11-rpi-4-b.dtb throws…
Arka Prava Basu
  • 2,366
  • 3
  • 18
  • 34
2
votes
0 answers

K3s node keeps failing and I’m not sure what is causing it

So i have been running k3s on a stack of raspberry pi 4 and 3s for a while but one node always fails. Here is my setup Servers: Raspberry pi 4-8GB and 2x Raspberry pi 4-4GB Workers: 3 Raspberry pi 3Bs My second raspberry pi 4 - 4GB keeps failing.…
SKS81
  • 117
  • 2
  • 13