Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| add_tft_screen_rpi_only [2021/10/12 05:18] – added 32-bit versioning warning atari | add_tft_screen_rpi_only [2022/02/17 05:24] (current) – update on the 64-bit status of raspiOS atari | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi: Add TFT Screen ====== | ====== Raspberry Pi: Add TFT Screen ====== | ||
| - | Batocera works fine with screen | + | Batocera works fine with displays |
| <WRAP center round tip> | <WRAP center round tip> | ||
| - | Some drivers only work on 32-bit systems (most typically because Raspberry Pi OS is still 32-bit | + | Some drivers only work on 32-bit systems (most typically because Raspberry Pi OS was 32-bit |
| </ | </ | ||
| ===== SPI/GPIO displays ===== | ===== SPI/GPIO displays ===== | ||
| - | - Acquire a compiled build of your drivers for your intended Raspberry Pi. If only the source is available, you may need to compile it yourself on the Pi. This is most often only possible on Raspberry Pi OS. Some displays may require you to compile with the option | + | - Acquire a compiled build of your drivers for your intended Raspberry Pi. If only the source is available, you may need to compile it yourself on the Pi. This is most often only possible on Raspberry Pi OS, a spare SD card would come in handy here. |
| - | - If necessary, copy the overlay file(s) (usually the '' | + | * Some displays may require you to compile with the '' |
| - | - Go to ''/ | + | - Copy the compiled driver binaries to ''/ |
| + | * Alternatively, | ||
| + | - Go to ''/ | ||
| dtoverlay=waveshare32b, | dtoverlay=waveshare32b, | ||
| </ | </ | ||
| - | | + | * Most TFT LCDs will need the fake KMS driver activated instead of the real one, '' |
| + | | ||
| - Add the command line you used to start the drivers to [[: | - Add the command line you used to start the drivers to [[: | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | ==== MHS35 on Raspberry Pi 4 ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | This is an advanced tutorial, you are assumed to be familiar with basic Linux principles, have already made your small LCD screen working on Raspberry Pi OS and can copy files in and out between Raspberry Pi OS and Batocera. | ||
| + | |||
| + | - Kernel level | ||
| + | - Compile and install the driver onto your regular Raspberry Pi OS install. | ||
| + | - Copy the overlay driver module files (e.g., for MHS35 LCD screen, '' | ||
| + | - Create a new folder at ''/ | ||
| + | - Adjust settings in ''/ | ||
| + | - Add the LCD driver line '' | ||
| + | - (Optional) In ''/ | ||
| + | * Add the display resolution lines, you can use either a fixed resolution (e.g., 800×480): < | ||
| + | hdmi_group=2 | ||
| + | hdmi_mode=87 | ||
| + | hdmi_cvt 800 480 60 6 0 0 0 | ||
| + | hdmi_drive=2 | ||
| + | </ | ||
| + | * Or add a flexible resolution (with initial resolution, e.g., 85 for 1280×720, refer to the [[https:// | ||
| + | hdmi_group=2 | ||
| + | hdmi_mode=85 | ||
| + | hdmi_drive=2 | ||
| + | </ | ||
| + | - In ''/ | ||
| + | - Append '' | ||
| + | - User level | ||
| + | - Create a new folder (e.g., '' | ||
| + | - Copy the dependent libraries (such as '' | ||
| + | - Create the auto-start script ''/ | ||
| + | |||
| + | Credit to xuancong on the forums. [[https:// | ||
| + | |||
| + | ==== PiStation Deluxe LCD display ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The PiStation was confirmed to work with the latest 64-bit builds of Batocera (**v33** was tested). | ||
| + | |||
| + | - Adjust settings in ''/ | ||
| + | - Comment out the line: ''# | ||
| + | - Add the line: '' | ||
add_tft_screen_rpi_only.1634015924.txt.gz · Last modified: by atari