mmedellin
Posts: 1
Joined: Tue Jan 18, 2022 3:40 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Tue Jan 18, 2022 4:15 pm

I was able to successfully install Debian 11 with wi-fi on a Pi 400 via SD card with help from this guide. A couple of notes:

1. Make sure to get the latest firmware from pftf/RPi4 repository

2. This may be specific to Pi 400, but the broadcom firmware is not up to date in the repo above. So I needed to also copy the most recent broadcom firmware from the Pi Foundation’s archive. Find the most recent bcrm firmware in the list, in my case firmware-brcm80211_20210315-3+rpt4_all.deb

3. I specifically needed the brcm firmware 43456 files (instead of43455 that comes in the pftf repo). Copy those to the ESP partition. You also need to have a file ending in .Raspberry. This file is identical to the .txt firmware file so just cp the file giving it a .Raspberry file type.

Once I had all of these files on my partition, including the netinst files, installation was super easy. I didn’t need to remove the sd card or use an additional USB drive. If you follow the instructions in the OP it should work fine.

Wi-fi is working great. Still working through bluetooth. Will update once I have progress.

longtrip
Posts: 1
Joined: Sun Mar 06, 2022 3:16 am

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sun Mar 06, 2022 3:20 am

I tried to install. It was pretty good, other than the desktop environment(kde).
For some reason, kde desktop, pipewire and PulseAudio don't work,
also there is the pipewire error message
Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.
When I try to use command startx, there is black screen, and a kde cursor for like 2 second, then it disappear and there's only a black screen.

NAVras
Posts: 6
Joined: Tue Apr 19, 2022 12:05 am

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Mon Apr 25, 2022 7:05 am

When running headless the RPi400 would become unresponsive after a few minutes. SysRq keys don't work either. It doesn't happen when a monitor is plugged in, sleep and screen blanking are turned off.
Edit: Nope seems to happen with a screen as well.
Last edited by NAVras on Tue Aug 09, 2022 4:41 pm, edited 1 time in total.

bejo
Posts: 1
Joined: Fri May 27, 2022 12:33 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Fri May 27, 2022 1:28 pm

Hi all.
Thanks for the steps.
Three hints:
- As of todays file sizes, I needed more than 350 MB on the manually created ESP partition. I set 350 MiB (Megabinarybytes) and got everything on it. I recommend everybody to increase the suggested partition size a little in the first place.
- I extracted the iso-files via linux cmd-line by mounting with "-o loop". When copying the iso files, the symbolic links could not be copied - I got a reminder. But the system set-up worked smoothly.
- The boot process into the installed debian did not work out automatically. I had to enter ESC to get into the "BIOS"-equivalent and select the appropriate efi file from the newly created ESP partition. For the RPI4 it is: \debian\grubaa64.efi

Just in case, this helps somebody.
Thank you guys for your time and efforts! I appreciate your work a lot.

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Fri May 27, 2022 4:49 pm

bejo wrote:
Fri May 27, 2022 1:28 pm
Hi all.
Thanks for the steps.
Three hints:
- As of todays file sizes, I needed more than 350 MB on the manually created ESP partition. I set 350 MiB (Megabinarybytes) and got everything on it. I recommend everybody to increase the suggested partition size a little in the first place.
- I extracted the iso-files via linux cmd-line by mounting with "-o loop". When copying the iso files, the symbolic links could not be copied - I got a reminder. But the system set-up worked smoothly.
- The boot process into the installed debian did not work out automatically. I had to enter ESC to get into the "BIOS"-equivalent and select the appropriate efi file from the newly created ESP partition. For the RPI4 it is: \debian\grubaa64.efi

Just in case, this helps somebody.
Thank you guys for your time and efforts! I appreciate your work a lot.
this is old, debian makes images now. you just write to sd/usb and boot.
https://raspi.debian.net/tested-images/

login is root no passwd
first thing to do is update =

Code: Select all

apt update && apt full-upgrade
install sudo and create a user with sudo privileges

at this point i reboot to the new user and lock root

Code: Select all

sudo passwd -l root

Code: Select all

sudo usermod -s /usr/sbin/nologin root
then i continue setup.

some knowledge is needed or a device you can google on(phone/tablet ?).
you need to set everything, hostname, locale, timezone.

if your just going for a standard install.

Code: Select all

sudo tasksel
first thing i did was make the console easier to read.
from my history:

Code: Select all

dpkg-reconfigure console-setup
apt update
apt full-upgrade; apt install console-setup sudo nnn
dpkg-reconfigure console-setup
hostnamectl set-hostname debian
nano /etc/hosts
timedatectl set-timezone Pacific/Honolulu
adduser pi
usermod -aG sudo pi
reboot
Attachments
2022-05-27-064640_1280x1024_scrot.png
2022-05-27-064640_1280x1024_scrot.png (58.53 KiB) Viewed 1521 times

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 1:35 pm

I've done this and also installed LXDE. The only significant issue I found is that sound doesn't work but it doesn't bother me because sound is not something I normally use. Also chromium from the Debian repository doesn't work properly but I fixed this by installing the Ubuntu snaps version. Otherwise everything else I need works well. No worries about mutter and wayland. Custom keybindings, alt tab select and toggle with popup, theming and multiple workspaces all work perfectly unlike Raspi OS Bullseye. The OS works smoothly with predictable response and is future proof. I'm using Debian LXDE as my daily driver as a follow on to Raspi OS Buster.
Last edited by drmullins on Sat May 28, 2022 5:47 pm, edited 1 time in total.

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 5:43 pm

drmullins wrote:
Sat May 28, 2022 1:35 pm
I've done this and also installed LXDE. The only problem I have had is that sound doesn't work but it doesn't bother me because I don't use it. Also chromium from the Debian repository doesn't work properly but I fixed this by installing the Ubuntu snaps version. Otherwise everything else I need works well. No worries about mutter and wayland. Custom keybindings, alt tab with popup and theming all work perfectly unlike Raspi OS Bullseye. The OS works smoothly with predictable response and future proof. I'm using Debian LXDE as my daily driver as a follow on to Raspi OS Buster.
not sure what you mean about chromium, i'm using firefox-esr.

for sound you install pulseaudio & pavucontrol.

Code: Select all

sudo apt install pulseaudio pavucontrol
you need to select your output source, on mine it always defaults to hdmi, but i don't have speakers in my screen. so i turn off hdmi.
Attachments
2022-05-28-074009_1280x1024_scrot.png
2022-05-28-074009_1280x1024_scrot.png (48.46 KiB) Viewed 1474 times

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 6:05 pm

I thought ( wrongly I have since found ) that Gunnar Wolf said he couldn't get sound to work so I didn't bother trying - so thanks for your advice and I'll try it. As a linux user I of course prefer and use Firefox indeed firefox-esr as I want predictability and reliability. However there are some websites which work better with chromium including an essential shopping channel in the UK - Tesco. I got stack smashing with debian arm64 version of chromium as I reported in a separate thread though the amd64 version works perfectly OK my gigabyte brix. However the Ubuntu snaps version works perfectly perhaps because they made some adjustments or fixed dependencies for their recent release for the pi. Maybe debian version has been fixed now - I haven't tried it for a month or so. Generally I am much more comfortable with plain vanilla debian in spite of the huge support and user base of raspi os !
Last edited by drmullins on Sun May 29, 2022 8:48 am, edited 1 time in total.

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 6:40 pm

firefox-esr:
i went to tesco.com it loaded fast, didn't see anything strange on the site, clicked around a bit, seemed to work fine.
Attachments
2022-05-28-083354_1280x720_scrot.png
2022-05-28-083354_1280x720_scrot.png (123.6 KiB) Viewed 1442 times

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 7:28 pm

When I was working on an order the basket column which is normally on the right hand side of the screen did not show. If you can find any way of making it show and let me know I'd be grateful - but I'll check again - it might have been fixed !

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 7:35 pm

drmullins wrote:
Sat May 28, 2022 7:28 pm
When I was working on an order the basket column which is normally on the right hand side of the screen did not show. If you can find any way of making it show and let me know I'd be grateful - but I'll check again - it might have been fixed !
:lol:
i'm in hawaii, there's no tesco here. don't want to create a account just to test. sorry.

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 7:46 pm

Yep - I checked again and it's working tonight ! It's just as well to have a choice of browsers though as this sort of thing does happen from time to time. I even find midori quite useful sometimes because its lightweight.

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 7:58 pm

just remember, debian is not raspberry, don't use fkms/kms.
debian is using mesa-llvmpipe, aka: cpu software rendering, which makes it much faster the gpu & fairly low cpu usage, mines under 20% playing videos.

so basically for a performance boost, you just need to overclock the cpu's.
my /etc/default/raspi-firmware-custom:

Code: Select all

disable_overscan=1
arm_freq=2000
over_voltage=6
Attachments
2022-05-28-095215_1280x720_scrot.png
2022-05-28-095215_1280x720_scrot.png (80.82 KiB) Viewed 1387 times

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 8:43 pm

Thanks for comments

As regards sound, I've got pulseaudio and pavucontrol installed and can bring up the configuration menu that you showed. I've tried to get sound from the jack on the side of the pi and also from a USB to audio in/out adapter but to no avail. As regards the adapter I've set the Profile for the Audio Adapter (Unitek Y-247A) in the Configuration Menu to Analog Stereo Output but cant see a way of forcing output via the adapter so am at a loss as to what to do next.

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 9:06 pm

yeah, i'm using the jack on the side.
did you reboot after install?
did you set as fall back?
Attachments
2022-05-28-110609_1280x720_scrot.png
2022-05-28-110609_1280x720_scrot.png (49.59 KiB) Viewed 1355 times

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 9:16 pm

lxde also has a pulseaudio applet, have you added it to the panel?
you can do the settings from that to.

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 9:42 pm

Yes I've got the applet and thanks I've got the audio working now, via the adapter, with your encouragement ! So plain Debian is excellent and it runs just the same as on my Brix and laptops. Thanks again !

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 10:07 pm

Incidentally, in case you are interested, I've successfully used piclone_cmd to clone my debian sd cards.

User avatar
kerry_s
Posts: 4289
Joined: Thu Jan 30, 2020 7:14 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Sat May 28, 2022 11:01 pm

drmullins wrote:
Sat May 28, 2022 10:07 pm
Incidentally, in case you are interested, I've successfully used piclone_cmd to clone my debian sd cards.
yeah, i usually just boot raspberry and use the sd card copier if i need to move it to something else.
i have raspberry on ssd and use flash drive for other os's.
like this debian install is on a flashdrive.

don't mind the sd card that's just a blank/unformated card to prevent errors & polling.
Attachments
2022-05-28-125932_1280x720_scrot.png
2022-05-28-125932_1280x720_scrot.png (74.89 KiB) Viewed 1274 times

sfatula
Posts: 2
Joined: Thu Jun 16, 2022 4:17 am
Location: Calera, OK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Thu Jun 16, 2022 4:26 am

So, I have vanilla Debian 11 loaded on my PI 4B. What I would like to be able to do is get a serial port to work. I have been unsuccessful. I have remove console from boot line. I connected the serial port to what would be uart 1 on a PI, so, not the mini serial. I can't seem to stop agetty from taking over ttyS1, and, I can't seem to prevent bluetooth from starting. dtoverlays don't work as they are not supported on Debian near as I can tell.

So, I am stuck. Is there a way to prevent bluetooth from starting, and, actually use the full serial port when using vanilla Debian 11?

Lots of guides say systemctl disable bluetooth, etc but there is no bluetooth.service, just a .target.
Raspberry PI 4B, Debian 11. Retired system admin, dba, programmer, network engineer, consultant.

drmullins
Posts: 187
Joined: Fri Jun 23, 2017 9:22 pm
Location: Lambeth, London, UK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Thu Jun 16, 2022 7:57 am

I am not sure whether this is the exact issue but there is an instruction on how to get the 'Serial Console' working on the Debian Tested Images page.

sfatula
Posts: 2
Joined: Thu Jun 16, 2022 4:17 am
Location: Calera, OK

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Thu Jun 16, 2022 5:30 pm

Yeah, I don't want the console, want to talk to a projector with a serial port.
Raspberry PI 4B, Debian 11. Retired system admin, dba, programmer, network engineer, consultant.

newyork10023
Posts: 1
Joined: Tue Jul 19, 2022 8:10 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Tue Jul 19, 2022 9:16 pm

I was drawn to this thread with an interest to install Debian on a RPi 4B, which currently runs Home Assistant OS (off an SD card, which, yes, I know is BAD).

I am looking to run Home Assistant Supervised [<- corrected] on Debian running on the RPi instead. Further, I would like boot from an SD card but then run / off an iSCSI drive. I regard this as a compromise to running entirely off an SD card, and the risk of SD corruption is minimized.

Unfortunately, it appears that Debian Bullseye no longer can (Buster could) install to iSCSI drives-- or even view iSCSI drives during install.

Does anyone have any thoughts to how I can install Debian Bullseye on an RPI 4B and, preferably, boot from an SD card, with / mounted by iSCSI. I haven't yet tried to re-install after performing a full install to SD card (or to a recommended USB storage solution), does this work?

NAVras
Posts: 6
Joined: Tue Apr 19, 2022 12:05 am

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Tue Aug 09, 2022 4:07 pm

I installed Debian to SD card via USB and then copied the UEFI to the ESP.
The whole ISO doesn't really need to be in ESP, just the UEFI so it gets loaded at boot. Then UEFI boots Debian (or untouched installation USB) like normal.
Though I needed to specify grub path for Debian, but I think it's just because it's not the default path (below)?

GNOME says running on X11, is it possible to enable Wayland? (GNOME runs on Wayland on RPi OS)

I needed to add (ESP)\EFI\debian\grubaa64.efi to UEFI boot entry.
I remember flashing the Debian ISO to ESP doesn't need this. Does the UEFI readme mean the default path is /EFI/boot/bootaa64.efi (which is present on the CD image)?

Is there a Github repo for the latest drivers as well, instead of the archive.raspberrypi.org for Debian stable?
e.g. Tianocore's readme says the files in /boot (included in UEFI) is from https://github.com/raspberrypi/firmware ... aster/boot

Mouse and keyboard (Pi400) stop working inside OS if ACPI + DeviceTree is selected...?

Pi400 users might need to change the dtoverlay=upstream-pi4 to dtoverlay=upstream since vanilla config.txt from RPi OS shows that Pi400 uses vc4-kms-v3d not vc4-kms-v3d-pi4 (though v3d is not working...).
Also arm_boost=1 is not present for some reason, although it applies to both Pi4 and Pi400.
Last edited by NAVras on Tue Aug 23, 2022 5:56 am, edited 2 times in total.

jackyaz
Posts: 10
Joined: Tue Nov 03, 2020 7:53 pm

Re: Guide: Installation of *VANILLA* Debian 11 (or later) on a Raspberry Pi 4

Fri Aug 19, 2022 9:11 pm

i updated to linux-image-5.10.0-17-arm64 (5.10.136-1) today and on reboot i'm stuck on a rainbow screen. how do i recover?

Code: Select all

Setting up linux-image-5.10.0-17-arm64 (5.10.136-1) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.10.0-16-arm64
I: /boot/initrd.img.old is now a symlink to initrd.img-5.10.0-16-arm64
I: /boot/vmlinuz is now a symlink to vmlinuz-5.10.0-17-arm64
I: /boot/initrd.img is now a symlink to initrd.img-5.10.0-17-arm64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-17-arm64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-17-arm64
Found initrd image: /boot/initrd.img-5.10.0-17-arm64
Found linux image: /boot/vmlinuz-5.10.0-16-arm64
Found initrd image: /boot/initrd.img-5.10.0-16-arm64
Found linux image: /boot/vmlinuz-5.10.0-15-arm64
Found initrd image: /boot/initrd.img-5.10.0-15-arm64
Adding boot menu entry for EFI firmware configuration
done

Return to “Debian”