raspberrypi

4349 readers
39 users here now

Community about the single-board computers, micro-controllers and related projects.

https://www.raspberrypi.com/

Other RaspberryPi communities on Lemmy

founded 5 years ago
MODERATORS
1
 
 

cross-posted from: https://lemy.lol/post/47128013

2
 
 

cross-posted from: https://programming.dev/post/31472627

Hi Raspberry Pi Community,

I would like to use radio remote's control to trigger an events on my Raspberry pi.

I guess I'll go with 433Mhz as I believe they are the most common available ?

So I will need a 433Mhz RX/TX Module to connect on the GPIO, so far I get it...

But how properly secure the communication between those remotes and the RPI to avoid any anyone to sniff the transmitting and replay it. In other words spoof it.

Wubba Lubba dub-dub...

3
 
 

I'm considering a project that would involve locating a camera in a high humidity environment, 90% range. The only waterproof case I've found that's waterproof is the entaniya in the attached pic but that may be overkill and I'm not sure where to source one in the US anyway.

Any suggestions? The pi will be ina different enclosure from the camera.

4
 
 

I accidentally screwed up /boot and /boot/firmware, to the point where I have to reset it, since it will not boot, I will have to do this via mounted microsd card on my laptop, I cant exactly run apt or such on there, atleast I dont think, plus I dont know if I can chroot since my laptop is x86, what is the easiest way to reset both /boot and /boot/firmware?

5
 
 

Hello recently I tried compiling the rpi kernel with a specific config option now the modules are now not matching the installed kernel so now anything that uses the overlay filesystem does not work, or certain networking features which is needed for things like cf tunnels I tried all of this to compile: https://pastebin.com/gmkNu2rL https://pastebin.com/9Ap4J7Yw and:

sudo cp /boot/firmware/$KERNEL.img /boot/firmware/$KERNEL-backup.img
sudo cp arch/arm64/boot/Image.gz /boot/firmware/$KERNEL.img
sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/firmware/
sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
sudo cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/

but I accidentally did it to /boot/* too How do i fix this? Kernel version: 6.12.30-v8+ Example for module:

spiderunderurbed@raspberrypi:~ $ sudo modprobe overlay 
modprobe: ERROR: could not insert 'overlay': Exec format error
spiderunderurbed@raspberrypi:~ $ 

I tried running make modules_prepare and rebuilding the kernel, did not fix it

6
7
 
 

Hi.

I'm using the Raspi 5 in combination with the waveshark rn532 module. I used this tutorial and the rn532 wiki for the setup. I have the rn532 connected to my Raspi, uart is on, all set. (I think it's normal for the rn532-LED to be red?)

But the code used in the articles doesn't work anymore on the Raspi 5. I think it's the code, since I fixed all other errors. The code still uses ttyS0 for uart, but there is not a trace of ttyS0 on my Raspi, even tough I enabled serial port in raspi-config. Every time I want to execute the example_get_uid.py mentioned in the articles, I get the error "[Errno 2] could not open port /dev/ttys0: [Errno 2] No such file or directory: '/dev/ttyS0'" and indeed, ttyS0 doesn't exist.

So is there any newer code for communicating with an NFC-Tag via Raspi 5 (rn532)? Or how to fix the code?

8
1
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

Would it be reasonable to expect a Raspberry Pi 4 to run Nextcloud and manage a photo backup of +100 Gb?

The Raspberry Pi is from 2020, running Raspbian, and it was used as an intervalometer with the help of gphoto2 (meaning no great efforts were demanded from it).

The pictures are on two external hard drives

*1Tb WesternDigital SATA (bought second hand, but "like new" according to the sales guy.

*320Gb WesternDigital SATA (inherited from an AcerOne laptop once I realized it could not even handle lubuntu)

My very limited knowledge on the subject tells me I need to:

*Get rid of Raspbian and install Raspberry Pi OS

*Install Nextcloud (and upgrade an existing account)

*Upload +100 Gb

Would the aforementioned steps allow me to access the files on Fedora/Kubuntu (two separate hard drives on a desktop) and openSUSUE (on a laptop)?

I’m also testing a filen.io account and a sync.com account. All three services (NextCloud, Filen, and Sync) work as I expect on an Ipad.

Filen and Nextcloud have Linux applications, and both have been working without problems on test backups of 100 pictures.

Sync is CANADIAN but not Linux friendly (I tried Wine, didn’t work, gave up)… I’m accessing a free account via Firefox only, so I’m not counting on them for this journey.

So, long story short, I want to back up my files (mostly pictures/scans and some pfd documents) on someone else's computer and locally.

Now the question. Can anyone recommend a guide to achieve what I want?

I’m a cook by trade without any technical (software/hardware) training who has been using Linux (openSUSE, Ubuntu, Arch, Mint) since 2012. Please forgive any mistakes on terminology.

I included a picture of my intervalo-Frankenstein-meter from 2020.

Thank You.

9
 
 

Anyone else seeing this?

sudo apt update
Hit:1 https://download.docker.com/linux/debian bookworm InRelease
Hit:2 http://archive.raspberrypi.com/debian bookworm InRelease
Ign:3 http://deb.debian.org/debian bookworm InRelease
Ign:4 http://deb.debian.org/debian-security bookworm-security InRelease
Ign:5 http://deb.debian.org/debian bookworm-updates InRelease
Ign:3 http://deb.debian.org/debian bookworm InRelease
Ign:4 http://deb.debian.org/debian-security bookworm-security InRelease
Ign:5 http://deb.debian.org/debian bookworm-updates InRelease
Ign:3 http://deb.debian.org/debian bookworm InRelease
Ign:4 http://deb.debian.org/debian-security bookworm-security InRelease
Ign:5 http://deb.debian.org/debian bookworm-updates InRelease
Err:3 http://deb.debian.org/debian bookworm InRelease
  Temporary failure resolving 'deb.debian.org'
Err:4 http://deb.debian.org/debian-security bookworm-security InRelease
  Temporary failure resolving 'deb.debian.org'
Err:5 http://deb.debian.org/debian bookworm-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Anyone know how to solve it?

Turns out it was Unbound doing shit. Thank you everyone that helped.

10
11
 
 

Pardon in advance if this is the wrong community for support questions. I'm happy to move my thread elsewhere if need be.

I have a trusty old RPi4B, it's run LibreElec since day one and continues to do so without problem.

I have a 5Tb USB drive that houses all my media files connected to one of the USB3 ports, but it needs replacing as my collection has grown. So I bought two 5Tb replacement drives to split up the collections and have one for movies, one for TV.

Both my USB2 ports are occupied, one by a Bluetooth keyboard receiver, the other by a flash drive for added storage. I have no plans to move or get rid of those.

When I connected my replacement drives via USB3 the other day, they didn't mount or register in the LibreElec device list; one made an ongoing clicking sound like it failed to read. More worrying, I got on-screen messages that the USB2 connected flash drive got unmounted and re-mounted in a loop.

So there are a couple of problems here:

  1. The new USB drives fail to mount — that could very well be a formatting issue, or just bad drives.
    • I checked the clicky drive with my laptop immediately, but it seemed fine, though.
    • Both replacement drives are formatted exFAT, as is the drive I've had connected for several years.
  2. A drive not mounting on USB3 causes one on USB2 to mount/unmount over and over — this I need more help with, as I assumed the two ports/port pairs would be on different circuits?

I'm hoping somebody with more experience can help out. I tend to set things and forget about them over several years, so I'd hoped this would be an easy replacement. Clearly something is amiss, probably with my new drives — but also I'm confused with the secondary issue with the flash drive unmounting and mounting.

Any advice is appreciated!

EDIT: Immediate suggestions are that the Pi doesn't have the juice for this many devices and I need a powered USB hub. Will test and mark this solved if it works out!

12
 
 

Hi Swarm intelligence, i need your help. My Raspis carry an ICE-Tower cooler and now i'm in need for a POE Hat for below. So to speak a Pant ;) Do you any?

13
14
 
 

Is there an immutable Linux distro (like openSUSE MicroOS, Fedora Silverblue) that can run on the Raspberry Pi Zero W?

I want to use it for a IoT project. Otherwise I might just go with DietPi.

Thanks in advance!

15
 
 

I have a Raspberry Pi Zero and I have attached it to the Waveshare 9.7" e-ink display. What I want to do is to make this a typing machine (I am aware of the screen refresh rate). The simplest version of this would be to run LibreOffice.

I can find several examples where this display is used with Python codes where the refresh rate can be set within an individual program (e.g., displaying calendar events or working as a clock). I have tested a couple of these projects, and they work. However, I would like to effectively use the display as a monitor.

How can this be achieved?

16
 
 

I've read rumors in various places that another Pi 500 version at a separate price point with perhaps an SSD slot might be in the works. Also, obviously there would be another RAM tier to use, if there were ever to be a version targeting power users.

But does anybody know if anything concrete for these rumors ever showed up? Was there ever any confirmation whether such a different tier Pi 500 is even being thought about?

Sorry if there was news and I just missed it.

17
1
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

I've been looking at some Linux based phones and one thing that caught my eye was a Pi based build.

This makes a lot of sense to me in many ways as the smaller Pi's carry a lot of power and expandability, however it was based on an older 3b platform and consequently very bulky.

Currently, my searches online have led me mainly to boards that support CM4 but also have ethernet ports etc (adding build) or use USB/pinouts with no CM (Compute Module)connector.

Anyone know if there's a small board that can support cellular connectivity with a native CM connector?

Also, any way around the lack of SDCard support for Pi's that boot from eMMC (would like eMMC for the OS and SDCard for larger stuff, pictures etc)?

I'll add: the board doesn't have to be credit-card sized. Something along the lines of an average smartphone so I can fit a decent LCD would be fine, just no Ethernet etc making it too thick

18
19
 
 

I've set up a "headless" Raspberry Pi Zero to monitor my little garden, using a humidity/temperature sensor and a camera, it runs a minimal webserver (lighttpd) so I can view stats/images anywhere in the house from a web-browser.

Assuming you have the tools, the whole thing should cost less than 20 Euro.

You don't need to know anything about Linux or Raspberry Pi to build this, but you will need to do some soldering, thou there might be a way to avoid this by using dupont-wires.

I'm not be an expert in the field, but if you have any questions, feel free to ask them in this thread, I'd also like to hear from you if there are details missing, or if you have an idea to improve the project.

The project is GPL3 and hosted on gitlab: https://gitlab.com/wildflower/rpi-garden

20
 
 

Got a couple rpi 3Bs I'd like to use headless.

Downloaded 32bit pi os lite, flashed it to an sd card, powered on and did the initial setup (select keyboard layout, set first user+pass).

As soon as I'm dropped into a shell, I run 'sudo apt update' then 'sudo apt upgrade -y'.

Once these finish, I type 'sudo reboot'; the pi reboots, shows the rainbow splash, about a dozen lines of kernal boot messages then the video output dies and after a couple seconds the act light stops flashing too. Disconnecting power and powering it again does the same thing.

I don't know what to do from here.

I've spent the last 6 hours retrying this with both the 32 and 64 bit versions of pi os light. I can't get past the initial update/upgrade.

/edit: RESULTS!

Bad sd card. Tried a different one and all is well.

21
 
 

Hi folks, I'm running a pi4 with rpiOS and had been using rdp to log into my pi that has no peripherals connected. I can still ssh in and I do have physical access but this kinda bothers me.

I know rpi connect is a thing but I'm not too comfortable using another "cloud service" to connect to something on my homenetwork from my homenetwork.

The rdp service does not seem to run anymore and I am unsure how to search for the culprit. I did search for a service resembling rdp on the journal but it doesnt turn up. what could be the correct service name?

Thanks for reading. have a good one.

22
23
 
 

Pi Cap has everything I need for my project in terms of function, however their howto page has 2022 update stating that Bullseye does not work with it and one needs to use Buster. I would appreciate any pointers.

24
 
 

tldr;

i need an always on, always connected music player that connects to Bluetooth speakers.. without a battery

I have built-in bt speakers in some bedroom furniture. they have a remote that controls volume, play, and pause. they're really meant to connect to an 'always-on' device like a tv. when i connect my phone, they loudly exclaim "bluetooth connected", and "bluetooth disconnected" when the phone bt is turned off or if the phone leaves the area. i like to fall asleep to some relaxing stuff and when i leave in the morning, it of course, wakes up my wife. no good. i've been using a tiny, old android phone (kitkat), always on, always connected. i have a playlist of 50 things that are played randomly and in an infinite loop, but turns off with a timer set from the remote. the remote works well. but, i don't like have a charging battery next to the bed all day and night. AND, i'm not thrilled about the old ass phone that i can't really do anything with.

so, i'm totally overwhelmed with options. i've been looking at all kinds of things that just don't 'do it'. i have been using pi(s) for years (easy stuff, like pihole, basic lan based server with docker, other small projects) , but this is a new uncharted category for me.

  • 1 anyone know if the remote ( pause and play ) will work with the bt on a pi? it works with a phone. i believe it even worked with my pc.
  • 2 what are some apps that will fit this scenario? it would be cool to have maybe web access to the player
  • 3 what pi would work best? music only. seems like a pie zero 2 w would work.
  • 4 are there any kits? anything ready built? <-- would love this option

thanks for reading

25
 
 

cross-posted from: https://programming.dev/post/23945016

Hi,

I've recompiled my kernel[^moreinfo] of my raspberry pi 4 than run under Devuan rpi

some of the command used on the rpi to compile

apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
mkdir /RaspKernel_6_1_y && cd /RaspKernel_6_1_y
git clone --depth=1 --branch rpi-6.1.y https://github.com/raspberrypi/linux
cd linux
cp /boot/config-6.1.93 /RaspKernel_6_1_y/linux/.config
KERNEL=kernel8
make menuconfig
time make -j$((`nproc` - 2)) Image.gz modules dtbs
make -j$((`nproc` - 2)) modules_install
cp arch/arm64/boot/Image.gz /boot/broadcom/$KERNEL.img
cp arch/arm64/boot/dts/broadcom/*.dtb /boot/broadcom/
cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/
reboot
apt install cryptsetup


In addition to have enabled some cipher/algorithm in the kernel config I have set a string ( TESTversionA ) in CONFIG_LOCALVERSION , may be I shouldn't have :/ ?

I'm currently following this guide LUKS on Raspberry Pi ( for context my related lemmy post )

So now that the kernel has been updated, the cryptsetup benchmark -c xchacha20,aes-adiantum-plain64 command is successful

So in order to enable luks in initramfs I'm following the preparing-linux section of this guide.

we can read:

initramfs has to be recreated

I followed the guidance and edited the initramfs-rebuild file to match my setup

initramfs-rebuild file

#!/bin/sh -e

# Rebuild initrd.gz after kernel upgrade to include new kernel's modules.
# https://github.com/Robpol86/robpol86.com/blob/master/docs/_static/initramfs-rebuild.sh
# Save as (chmod +x): /etc/kernel/postinst.d/initramfs-rebuild

# Remove splash from cmdline.
if grep -q '\bsplash\b' /boot/cmdline.txt; then
  sed -i 's/ \?splash \?/ /' /boot/cmdline.txt
fi

# Exit if not building kernel for this Raspberry Pi's hardware version.
version="$1"
current_version="$(uname -r)"
case "${current_version}" in
  *-v7+)
    case "${version}" in
      *-v7+) ;;
      *) exit 0
    esac
  ;;
  *+)
    case "${version}" in
      *-v7+) exit 0 ;;
    esac
  ;;
esac

# Exit if rebuild cannot be performed or not needed.
[ -x /usr/sbin/mkinitramfs ] || exit 0
[ -f /boot/broadcom/initrd.gz ] || exit 0
lsinitramfs /boot/broadcom/initrd.gz |grep -q "/$version$" && exit 0  # Already in initramfs.

# Rebuild.
mkinitramfs -o /boot/broadcom/initrd.gz "$version"


and when I run mkinitramfs -o /boot/broadcom/initrd.gz I got

grep: /boot/config-6.1.93TEST+: No such file or directory

I've did

cp /RaspKernel_6_1_y/linux/.config /boot/config-6.1.93TEST+
mkinitramfs -o /boot/broadcom/initrd.gz

and it seemed worked. I've edit the remaining files

  • /boot/broadcom/cmdline.txt
  • /etc/fstab
  • /etc/crypttab

rebooted. Landed in the initramfs shell as expected

but benchmark -c xchacha20,aes-adiantum-plain64 is no longer successful :'(

Cipher xchacha20,aes-adiantum-plain64 (with 256 bit key) is not available

Any ideas where might lay the problem ?

Thanks.

[^moreinfo]: --branch rpi-6.1.y https://github.com/raspberrypi/linux

view more: next ›