Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
add_tft_screen_rpi_only [2021/11/27 08:44] – added mhs35 example atariadd_tft_screen_rpi_only [2022/02/17 05:24] (current) – update on the 64-bit status of raspiOS atari
Line 4: Line 4:
  
 <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 after all these years come on guys) so you will have to use [[https://mirrors.o2switch.fr/batocera/rpi3/stable/last/archives/31/batocera-rpi3-31-20210615.img.gz|Batocera v31 or earlier on the RPi3B+]] or [[https://mirrors.o2switch.fr/batocera/rpi4/stable/last/batocera-29-rpi4-20201203.img.gz|the last available 32-bit build, v29, for RPi4]].+Some drivers only work on 32-bit systems (most typically because Raspberry Pi OS was 32-bit for the majority of its life, [[https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/|but has recently moved to 64-bit]]) so you will have to use [[https://mirrors.o2switch.fr/batocera/rpi3/stable/last/archives/31/batocera-rpi3-31-20210615.img.gz|Batocera v31 or earlier on the RPi3B+]] or [[https://mirrors.o2switch.fr/batocera/rpi4/stable/last/batocera-29-rpi4-20201203.img.gz|the last available 32-bit build, v29, for RPi4]].
 </WRAP> </WRAP>
  
Line 16: Line 16:
 dtoverlay=waveshare32b,rotate=90,speed=22000000,fps=60 dtoverlay=waveshare32b,rotate=90,speed=22000000,fps=60
 </code> </code>
 +    * Most TFT LCDs will need the fake KMS driver activated instead of the real one, ''dtoverlay=vc4-fkms-v3d-pi4''
   - Boot up Batocera on the Pi, access it [[:access_the_batocera_via_ssh|via SSH]] and execute the main driver binary. If the stars align and you are successful, you'll get an image on your screen: {{ :tft_screen.png?500 |}}   - Boot up Batocera on the Pi, access it [[:access_the_batocera_via_ssh|via SSH]] and execute the main driver binary. If the stars align and you are successful, you'll get an image on your screen: {{ :tft_screen.png?500 |}}
   - Add the command line you used to start the drivers to [[:launch_a_script#launching_a_script_one_time_only_early_in_the_boot_process|a custom early boot script]]. If this doesn't work, try using [[:launch_a_script#launch_a_script_one_time_only_during_boot|the later post-boot custom script]] instead (you'll lose out of seeing the splash screen if you use this method).   - Add the command line you used to start the drivers to [[:launch_a_script#launching_a_script_one_time_only_early_in_the_boot_process|a custom early boot script]]. If this doesn't work, try using [[:launch_a_script#launch_a_script_one_time_only_during_boot|the later post-boot custom script]] instead (you'll lose out of seeing the splash screen if you use this method).
Line 31: Line 32:
     - Copy the overlay driver module files (e.g., for MHS35 LCD screen, ''mhs35.dtbo'', ''mhs35-overlay.dtb'') into ''/boot/overlays/'' folder from Raspberry Pi OS’s ''/boot/overlays/'' folder.     - Copy the overlay driver module files (e.g., for MHS35 LCD screen, ''mhs35.dtbo'', ''mhs35-overlay.dtb'') into ''/boot/overlays/'' folder from Raspberry Pi OS’s ''/boot/overlays/'' folder.
     - Create a new folder at ''/boot/overlays.bak/'' and copy ''/boot/overlays/vc4-kms-v3d-pi4.dtbo'' into it for backup; then copy ''/boot/overlays/vc4-fkms-v3d.dtbo'' into ''/boot/overlays/vc4-kms-v3d-pi4.dtbo''. This is to force Batocera to load the LCD’s 3D driver instead of HDMI’s 3D driver.     - Create a new folder at ''/boot/overlays.bak/'' and copy ''/boot/overlays/vc4-kms-v3d-pi4.dtbo'' into it for backup; then copy ''/boot/overlays/vc4-fkms-v3d.dtbo'' into ''/boot/overlays/vc4-kms-v3d-pi4.dtbo''. This is to force Batocera to load the LCD’s 3D driver instead of HDMI’s 3D driver.
-    - Adjust settings in ''/boot/config.txt'' and ''/boot/cmdline.txt'' (remember, use a text editor that can save line terminators properly!): +    - Adjust settings in ''/boot/config.txt'' (remember, use a text editor that can save line terminators properly!): 
-      - Add the LCD driver line ''dtoverlay=mhs35:rotate=90''; add the GPU 3D acceleration line ''dtoverlay=vc4-fkms-v3d,noaudio''.+      - Add the LCD driver line ''dtoverlay=mhs35:rotate=90''; add the GPU 3D acceleration line ''dtoverlay=vc4-fkms-v3d-pi4,noaudio''.
       - (Optional) In ''/boot/config.txt'', either:       - (Optional) In ''/boot/config.txt'', either:
-        * Add the display resolution lines, you can use either fixed resolution (e.g., 800×480): <code>+        * Add the display resolution lines, you can use either fixed resolution (e.g., 800×480): <code>
 hdmi_group=2 hdmi_group=2
 hdmi_mode=87 hdmi_mode=87
Line 45: Line 46:
 hdmi_drive=2 hdmi_drive=2
 </code> </code>
-      - In ''/boot/cmdline.txt'': +    - In ''/boot/cmdline.txt'': 
-        - Append ''console=serial0,115200 fbcon=map:10 fbcon=font:ProFont6x11'' to the line (don’t create a new line), these optional settings are for console display.+      - Append ''console=serial0,115200 fbcon=map:10 fbcon=font:ProFont6x11'' to the line (don’t create a new line), these optional settings are for console display.
   - User level   - User level
     - Create a new folder (e.g., ''mybin/'' ) inside the system folder, transfer the frame-buffer copier program (''/usr/local/bin/fbcp'') into that folder.     - Create a new folder (e.g., ''mybin/'' ) inside the system folder, transfer the frame-buffer copier program (''/usr/local/bin/fbcp'') into that folder.
Line 53: Line 54:
  
 Credit to xuancong on the forums. [[https://forum.batocera.org/d/6829-tutorial-batocera-on-mhs-lcd-display-for-rpi4|Original post.]] Credit to xuancong on the forums. [[https://forum.batocera.org/d/6829-tutorial-batocera-on-mhs-lcd-display-for-rpi4|Original post.]]
 +
 +==== PiStation Deluxe LCD display ====
 +
 +{{:retroflag-pistation-case-lcd-3.jpg?400|}}
 +
 +The PiStation was confirmed to work with the latest 64-bit builds of Batocera (**v33** was tested).
 +
 +  - Adjust settings in ''/boot/config.txt''
 +    - Comment out the line: ''#dtoverlay=vc4-kms-v3d-pi4''
 +    - Add the line: ''dtoverlay=vc4-fkms-v3d-pi4''
  
  • add_tft_screen_rpi_only.1638002694.txt.gz
  • Last modified: 5 years ago
  • by atari