raspberrypi

3850 readers
1 users here now

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

https://www.raspberrypi.com/

Other RaspberryPi communities on Lemmy

founded 4 years ago
MODERATORS
1
 
 

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?

2
3
 
 

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!

4
 
 

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?

5
 
 

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.

6
1
submitted 1 month ago* (last edited 1 month 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

7
8
 
 

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

9
 
 

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.

10
 
 

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.

11
12
 
 

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.

13
 
 

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

14
 
 

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

15
16
1
Raspberry pi 500 launched (www.raspberrypi.com)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

Costs $90, physically looks just like 400 (no pointing device), has 8gb ram and includes a 32gb microsd card. CPU is similar to Raspberry Pi 5. There is a desktop kit for $120. So it's a $20 increase over the Pi 400, but you get an extra 4gb of ram, and an SD card. There is also a 15.6" HDMI monitor available for $100 that draws power from the computer. It's not clear to me if there is an NVMe SSD slot in the computer. It's disappointing that there is still no pointing device.

They have also decreased the 400's price from $70 to $60, and the 400 desktop kit (400+16gb sd card+power cube+mouse) from $100 to $80. I have a 400 and it is nice, but of course the 500 is a significant upgrade

Added: from this comment, "Jeff geerling just did a teardown (on his “level 2 jeff) channel and it seems there is provision on the board for a M.2 slot, but the slot and it’s support components are not populated. He actually soldered down a M.2 connector but then realised that it wasn’t just the slot that needed populating." What a pain. There are other comments speculating on a future model with a slot.

Because of the lack of M2 slot and pointing device, I'd have to carefully weigh getting a Pi 5 and external keyboard instead of a 500.

17
 
 

Hi,

I would like to backup the booted SDcard of my Raspberry pi.

I don't necessary need to backup as a hot backup[^1] So I can remove the SDcard and make the backup on another machine.

with dd

$ fdisk -l
Disk /dev/sda: 29.72 GiB .....
....
Device
/dev/sda1 ...
/dev/sda1 ...

So I first tried:

$ dd bs=4M if=/dev/sda conv=fsync status=progress | gzip > /path/path/foobar.gz

But this create a huge .gz file ! because it backup the unused space too :'(

If you know a ~simple command to just backup the used space I'm all ears.

with rpi-clone

I've discovered rpi-clone

Seem really great, too bad the github tab discussion has been not activated :/ and If the documentation is not clear enough, no way to ask the community.

EDIT: Actually it seem that it clone a SD to a full dest drive ! so not as destination file correct ??

in the README you can read:

rpi-clone-setup is for setting the hostname in /etc/hostname and /etc/hosts files.

It is run automatically by rpi-clone if -s args are given, but before your first clone using a -s option, test run rpi-clone-setup with:

rpi-clone-setup -t testhostname

So what is the purpose of the -s argument ? If you want to set another hostname into the destination backup ? why can we set fews ? Can we have few hostname for a same machine ???

and the -t argument is not even documented (if I'm not mistaken ..)

  • Did you ever tried rpi-clone ?
  • what's your 2cent about it ?
  • does rpi-clone sda promt you to confirm the destination ?
  • do know some thing else ?
  • is it possible to output the backup as a file ?


Thanks.

[^1]:Backup that can be taken while the system is running.

18
 
 

cross-posted from: https://feddit.org/post/4874505

19
 
 

I am trying to set up Yunohost on my old Raspberry Pi 2B, but I am not sure which version of Armbian to install on a board this old. I know there is one out there, because I have had it installed in the past. Anyone know?

20
 
 

I didn't realise BlackBerry owned QNX.

21
1
Polar Aligment (mander.xyz)
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 
 

I'm thinking about an IoT Polar Aligner. The main idea is to use a Raspberry Pi W with the camera module to find and detect the North Star and display it on the mobile phone. The final goal is to connect it with servos so that it can automatically align itself. Does anyone know of a similar open source project?

Croaspost: https://mander.xyz/post/20076877

22
23
24
 
 

I've got a Zero set up with usb0 as g_ether and a static IP address:

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 10.14.0.15  netmask 255.255.255.0  broadcast 10.14.0.255
        ether 7e:24:7d:cc:68:7c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I have the OTG port connected to one of the four USB ports on a 4b. I'm not sure what the next steps are to get the actual connectivity to function, though. I've seen posts saying that gadget mode is only supported on the USB-C port - does that only mean for using the 4b as a peripheral, or does that mean for any connectivity, even if it's the host?

25
1
Pilet Mini Computer (www.raspberrypi.com)
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
view more: next ›