Instructions see below
For the Raspberry Pi 4 B there are now a wide range of TFT displays available. This was made possible by the "Linux Framebuffer driver for small TFT display modules" by notro. In the past this driver had to be installed in the kernel itself, but today it is integrated in the kernel or the display manufacturers offer a ready Raspian IMAGE for the microSDHC memory card.
A good guide can be found on the Raspberry Pi website: Installing Operating System Images
In short: Download + Unzip + Check with "df -h or fdisk -l" which DEVICE name the Micro SD card has and write it:
dd if=2022-04-04-raspios-bullseye-arm64-lite.img of=/dev/sdX 1.9 GiB [========================================================>] 100%
Mount von der Speicherkarte die Partition bootfs
touch ssh echo "pi:$(echo 'raspberry' | openssl passwd -6 -stdin)" > userconf
add to the end
pi@raspberrypi ~ $ sudo nano /boot/firmware/config.txt # NeoSec TinyLCD 3.5" dtoverlay=tinylcd35,rotate=270,speed=48000000,touch # Adafruit PiTFT 3.5" dtoverlay=pitft35-resistive,rotate=270,speed=42000000 # Watterott RPi-Display 2.8" dtoverlay=rpi-display,rotate=270,speed=32000000,touch
pi@raspberrypi ~ $ git clone https://github.com/waveshare/LCD-show.git pi@raspberrypi ~ $ cd LCD-show/ pi@raspberrypi ~ $ sudo cp ./waveshare4c-overlay.dtb /boot/overlays/waveshare4c.dtbo pi@raspberrypi ~ $ sudo cp ./waveshare4c-overlay.dtb /boot/overlays/ pi@raspberrypi ~ $ sudo nano /boot/firmware/config.txt #Waveshare 4.0 [4inch_RPi_LCD_(C)] dtoverlay=waveshare4c:rotate=90
Go through the following menu choices:
Encoding to use on the console: <UTF-8>
Character set to support: <Guess optimal character set>
Font for the console: Terminus (default is VGA)
Font size: 6x12 (framebuffer only)
pi@raspberrypi ~ $ sudo dpkg-reconfigure console-setup
20.10.2016 16:20 - Paul Sutherland
Thank you! Didn't even need the image file with your solution. Works on Raspberry Pi 3.