#1040182 /usr/share/doc/raspi-firmware/changelog.Debian.gz: Adding more support for 'v3d' on rpi4!

#1040182#5
Date:
2023-07-02 22:10:45 UTC
From:
To:
Dear Maintainer,

Hello there,

Debian on rpi4 with GUI, I have tried Gnome/Xfce/Sway, all for me have
the same issues: (I am using rpi4 with 8GB RAM, as a daily desktop
machine, so I use it heavily, 24/7 it's running)

Maine Issues:
* Some Application, I can't maximize and restore them (firefox-esr,
chromium) unless I enforce them to use wayland.
* Some application, I can't use them at all, can't open/can't run
properly (gimp), but when using the beta release, it works, as it uses
wayland by default.
* Freezing/locks up frequently, which is very annoying.

I am actually a Fedora user, but after recently bad news from Redhat
regarding the binary source of RHEL, I decided to move on.
Fedora 37/38 works just fine and smoothly on rpi4, specifically after
the hardware GPU acceleration driver supports has reached
mainline/upstream kernel "v3d", so I thought that means, debian should
do the same.
I noticed in Fedora, they have 'firmware' updated and has 'overlays',
and in their config.txt "dtoverlay=vc4-kms-v3d-pi4", so I have decided
to give that a try on debian after I talk to "gwolf".

All the above issues have solved by the following:

* I downloaded the latest (firmware-1.20230405) , unzipped it.
* Copied "firmware-1.20230405/boot/overlays" folder to /boot/firmware/
* Added these lines to /etc/default/raspi-firmware-custom
```````````````````````
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d-pi4
dtoverlay=cma,cma-256
max_framebuffers=2

# Disable compensation for displays with overscan
disable_overscan=1
```````````````````````
* Reload raspi-firmware package:
dpkg-reconfigure raspi-firmware

* Then reboot the system.

Thank you so much all.

Sally.

#1040182#10
Date:
2023-07-05 18:15:14 UTC
From:
To:
Here how Fedora manage RPi, as it's the only distro which use the
upstream/mainline kernel with 'v3d' support:

This is the Fedora RPM source package: bcm283x-firmware-20230308-
2.379d5bf.fc38.src.rpm
After building it, it generates four packages:

1- bcm2711-firmware-20230308-2.379d5bf.fc38.aarch64.rpm
2- bcm2835-firmware-20230308-2.379d5bf.fc38.aarch64.rpm
3- bcm283x-firmware-20230308-2.379d5bf.fc38.aarch64.rpm
4- bcm283x-overlays-20230308-2.379d5bf.fc38.aarch64.rpm

The latest Update of the package includes config.txt for single U-Boot
binary

List of '/boot/efi' in Fedora:
ls /boot/efi/
bcm2710-rpi-2-b.dtb       config.txt                rpi3-u-boot.bin
bcm2710-rpi-3-b.dtb       config.txt.rpmnew         rpi4-u-boot.bin
bcm2710-rpi-3-b-plus.dtb  EFI/                      rpi-u-boot.bin
bcm2710-rpi-cm3.dtb       fixup4cd.dat              start4cd.elf
bcm2710-rpi-zero-2.dtb    fixup4.dat                start4db.elf
bcm2710-rpi-zero-2-w.dtb  fixup4db.dat              start4.elf
bcm2711-rpi-400.dtb       fixup4x.dat               start4x.elf
bcm2711-rpi-4-b.dtb       fixup_cd.dat              start_cd.elf
bcm2711-rpi-cm4.dtb       fixup.dat                 start_db.elf
bcm2711-rpi-cm4-io.dtb    fixup_db.dat              start.elf
bcm2711-rpi-cm4s.dtb      fixup_x.dat               start_x.elf
bootcode.bin              overlays/

List of '/boot' in Fedora:
ls /boot/
config-6.3.6-200.fc38.aarch64         lost+found/
config-6.3.7-200.fc38.aarch64         symvers-6.3.6-200.fc38.aarch64.gz
config-6.3.8-200.fc38.aarch64         symvers-6.3.7-200.fc38.aarch64.gz
dtb/                                  symvers-6.3.8-200.fc38.aarch64.gz
dtb-6.3.6-200.fc38.aarch64/           System.map-6.3.6-200.fc38.aarch64
dtb-6.3.7-200.fc38.aarch64/           System.map-6.3.7-200.fc38.aarch64
dtb-6.3.8-200.fc38.aarch64/           System.map-6.3.8-200.fc38.aarch64
efi/                                  vmlinuz-6.3.6-200.fc38.aarch64
grub2/                                .vmlinuz-6.3.6-
200.fc38.aarch64.hmac
initramfs-6.3.6-200.fc38.aarch64.img  vmlinuz-6.3.7-200.fc38.aarch64
initramfs-6.3.7-200.fc38.aarch64.img  .vmlinuz-6.3.7-
200.fc38.aarch64.hmac
initramfs-6.3.8-200.fc38.aarch64.img  vmlinuz-6.3.8-200.fc38.aarch64
loader/                               .vmlinuz-6.3.8-
200.fc38.aarch64.hmac

List of /boot/dtb' in Fedora (This folder comes with kernel package,
which has support for all, because Fedora doesn't have specific image
for RPi)
ls /boot/dtb/
allwinner/ apm/       broadcom/  hisilicon/ qcom/      xilinx/
amd/       apple/     cavium/    marvell/   rockchip/
amlogic/   arm/       freescale/ nvidia/    ti/

List of '/boot/dtb/broadcom/bcm2..'
ls /boot/dtb/broadcom/bcm2
bcm2711-rpi-400.dtb       bcm2837-rpi-3-a-plus.dtb  bcm2837-rpi-cm3-
io3.dtb
bcm2711-rpi-4-b.dtb       bcm2837-rpi-3-b.dtb       bcm2837-rpi-zero-2-
w.dtb
bcm2711-rpi-cm4-io.dtb    bcm2837-rpi-3-b-plus.dtb

In the attachment I have uploaded the zip file of bcm283x-firmware from
Fedora.
Regards,
Sally