Skip to main content
17 votes

Detect that a python program is running on the pi

I found you can get the Pi model and version from: /sys/firmware/devicetree/base/model Ex: Raspberry Pi 3 Model B Rev 1.2 I have a shell script to look for this and return the contents if it exists....
Wesley Mason's user avatar
14 votes

Detect that a python program is running on the pi

Here is a simplified version of @Artur Barseghyan's answer import io import os def is_raspberrypi(): if os.name != 'posix': return False chips = ('BCM2708','BCM2709','BCM2711','...
Chris's user avatar
  • 253
12 votes
Accepted

Which images can be used universally across all Raspberry Pi versions?

All images available at https://www.raspberrypi.org/downloads/raspbian/ are compatible with all Pi models. Of course, this may change in the future
Dirk's user avatar
  • 3,559
10 votes
Accepted

Enabling ARMv8 on Raspberry Pi 3 B

I think others here have done a good job answering: Is it even worth switching from ARMv7 to ARMv8 Various software cited to require ARMv8 includes CockroachDB, MongoDB (if accessing >2 GB), the ...
jdonald's user avatar
  • 2,952
10 votes

Does Raspberry Pi 4 processor support AES-NI instructions?

The Raspberry Pi 4 does not have cryptographic extensions, to be more precise it has, but to be enabled would require HW changes alongside paying a license to Broadcom/ARM. Here's the link for a ...
Carlos Lint's user avatar
8 votes

Enabling ARMv8 on Raspberry Pi 3 B

Is it even worth switching from ARMv7 to ARMv8? Not unless you are running a kernel and OS userland compiled for ARMv8; there are at least a few such things for the Pi 3 around, including Fedora. ...
goldilocks's user avatar
  • 60.1k
8 votes
Accepted

How to install Nodejs v12 on Raspi Zero (ARMv6 not available for download anymore)?

As of about April last year, it seems, NodeJS support for Armv6 moved to experimental see this thread for the RFC / discussion / reasoning etc. Armv6 is still supported and maintained on an ...
Hargrovm's user avatar
  • 211
7 votes
Accepted

Crosscompiling: exact archictecture for all models

I believe I figured it out after quite some fiddling. What is the most specific parameter I can use to be compatible with all models? Raspbian FAQ's contain the final answer: -march=armv6 -mfpu=vfp ...
Pietro Saccardi's user avatar
6 votes
Accepted

Miniconda for ARMv6 (Zero W)

Berryconda is the way to go! See https://github.com/jjhelmus/berryconda
VaNa's user avatar
  • 211
6 votes

Detect that a python program is running on the pi

platform.machine() will return: armv7l on Raspberry Pi running on Raspbian 32-bit. aarch64 on all Arm 64-bit OSes, including those running in Amazon AWS Graviton2. So this is a more reliable way of ...
Hendy Irawan's user avatar
6 votes
Accepted

Installing Raspberry Pi Cross-Compiler

The primary target of the Ubuntu arm-linux-gnueabi cross compiler is to compile for a different architecture of the same Ubuntu release leveraging the Debian/Ubuntu multiarch capabilities. Example: ...
Matthias Lüscher's user avatar
6 votes
Accepted

Up-to-date Syncthing on Raspberry Pi

Ok, so I tried the instructions for debian/ubuntu apt install at https://apt.syncthing.net and that worked. There is support for armhf architecture. Just follow the instruction to install the gpg key ...
gray's user avatar
  • 181
5 votes
Accepted

Mono on Raspberry Pi

Mono works absolutely fine on a Pi - we already have a tag and a few dozen questions on the topic. Getting started should be as straightforward as punching in: sudo apt-get update sudo apt-get ...
goobering's user avatar
  • 10.7k
5 votes

Installing Raspberry Pi Cross-Compiler

I cannot reproduce the problem anymore As of https://github.com/raspberrypi/tools/tree/5caa7046982f0539cf5380f94da04b31129ed521 it just works no matter which directory I'm on, just adding to PATH is ...
Ciro Santilli OurBigBook.com's user avatar
5 votes

How can we run amd64 architecture on a raspberry pi 4?

There would be no way to install amd64 packages directly on the PI4. You might need to find a arm version of the packet or recompile it with the correct flags. I don't think I understood, but if you ...
ahwelp's user avatar
  • 51
4 votes
Accepted

Docker 'core-dump' error when starting service

Please note a previous version of this answer recommended installing version 18.06.1 of docker-ce however this version does not include the patch for the runc CVE that allowed for container escape as ...
nnn's user avatar
  • 156
4 votes

What if I flash the ARM processor with some random firmware

No, that won't be possible. As such, ARM CPUs inside the Raspberry pi SoC are slaves to the videocore. They cannot even go out of reset until the videocore executes the right firmware which allows ...
Dmitry Grigoryev's user avatar
3 votes
Accepted

How to run pry on Debian Linux for ARM

gem install pry If you want to include the bin directory used by gem, you will need to add it to your $PATH. bin directories generally contain executables and if you echo $PATH you'll see a number ...
goldilocks's user avatar
  • 60.1k
3 votes

Does the Pi 3 support Vulkan?

The Raspberry Pi will support vulkan soon, see VK driver for the Raspberry Pi (Broadcom Videocore IV)
gercapo's user avatar
  • 29
3 votes

How do I see which ARM CPU version I have?

as STEJ's answer suggested, run uname -m. If you have arm64 then it's 64bit and if you have armv7l, then it's 32bit For more information: https://www.raspberrypi.org/forums/viewtopic.php?t=251721
Aharon Ohayon's user avatar
3 votes
Accepted

Bytecoin mining on Raspberry Pi

CryptoNight mining is possible using a CPU-based mining program (such as cpuminer-multi) on a Pi, and RasPiNews was able to set it up on a Pi 3. cpuminer-multi does indeed support pools, as required, ...
Aurora0001's user avatar
  • 6,337
3 votes

Enabling ARMv8 on Raspberry Pi 3 B

As of today, it seems Fedora and Archlinux are well supported. If you go the Arch way, this will help you build the image (for me on linux / rpi3 it was make linux) and this will help you start wifi....
Pierre-Alexis Ciavaldini's user avatar
3 votes
Accepted

List of games complied or ported to Raspberry PI

There are some answers given in the comments. I will make them available here as a real answer. @CoderMike suggested to look at the STICKY: GAMES LIST: Games That Work On The Pi. There you will find ...
Ingo's user avatar
  • 42.6k
3 votes
Accepted

Does Raspberry Pi 4 supports pointer authentication?

According to the Raspberry Pi documentation, the RPi 4B uses a Cortex A72, which was released in 2016. According to this list, it is based on ARMv8.0-A, so it should not include your feature. In fact, ...
looper's user avatar
  • 146
3 votes

Does Raspberry Pi 4 supports pointer authentication?

This paper mentions there is no open and public board that supports PAC instructions. iPhone A12 is the only option that is proprietary. Therefore, the paper has simulated some instructions and ...
nohg's user avatar
  • 31
3 votes

How to install Nodejs v12 on Raspi Zero (ARMv6 not available for download anymore)?

I've updated the "one line install" CLI scripts in the github.com/sdesalas/node-pi-zero repository. These are now pointing to the binaries in the Unofficial Builds Project. For example: v12....
Steven de Salas's user avatar
3 votes

How to build Ruby 2.7.x/3.0.x on Raspberry Pi4?

It is wrong architecture: you're trying to build arm64 code with an arm32 assembler. You need to install the toolchain which produces Aarch64 code (crossbuild-essential-arm64?), or specify ARM or ...
Dmitry Grigoryev's user avatar
2 votes

Detect that a python program is running on the pi

Better way of doing this (Python code snippet): import io def is_raspberry_pi(raise_on_errors=False): """Checks if Raspberry PI. :return: """ try: ...
Artur Barseghyan's user avatar
2 votes

Writing ARM Assembly code

Learn with runnable examples I am working on: https://github.com/cirosantilli/arm-assembly-cheat Features: the exact same assembly can be run on a Linux host with QEMU user mode, so you can try ...
Ciro Santilli OurBigBook.com's user avatar
2 votes

How is Raspberry Pi "open source" if it uses ARM?

Here is an essential update now, as of January 2021. Raspberry Pi Foundation came up with "Raspberry Pi Pico" which is most open source: Unlike the mostly open source, Broadcom based ...
Qareke's user avatar
  • 153

Only top scored, non community-wiki answers of a minimum length are eligible