Git Product home page Git Product logo

juliannojungle / gc9a01-tinycorelinux-tcz Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 4.61 MB

Easy method to use GC9A01 based displays on TinyCoreLinux with tcz extensions (without compiling kernel).

License: GNU Affero General Public License v3.0

Shell 100.00%
display extension extensions gc9a01 kernel lcd linux module modules overlay raspberry raspberry-pi raspberry-pi-zero raspberrypi tinycore tinycorelinux tcz

gc9a01-tinycorelinux-tcz's Introduction

GC9A01 with TinyCoreLinux with tcz extensions

Easy method to use GC9A01 based displays on TinyCoreLinux with tcz extensions (without compiling kernel).

  1. Connect the LCD screen to the Raspberry Pi as described here;

  2. Download this repository and copy the following to the Raspberry Pi's sdcard:

    • overlays/gc9a01.dtbo to the <sdcard>/overlays directory;
    • tcz directory, bootlocal.sh and onboot.lst to the root of the sdcard;
    • config.txt to the root of the sdcard, but BACKUP THE ORIGINAL ONE. This file is configured to Raspberry Pi Zero W and if you have a different device (or need), copy only the following section to your config.txt file:
hdmi_force_hotplug=1 #force HDMI output rather than DVI.
dtoverlay=gc9a01 #setup GC9A01 based LCD to '/dev/fb1' on 'spi0'
hdmi_cvt=240 240 60 1 0 0 0 #<width> <height> <framerate> <aspect> <margins> <interlace>
hdmi_group=2 #set DMT group (Display Monitor Timings: the standard typically used by monitors)
hdmi_mode=87 #set DMT mode.
hdmi_drive=2 #force a HDMI mode rather than DVI.

* more info about available parameters at the GC9A01 overlay repository

  1. Boot into TinyCore. At the terminal, enter the following:
sudo mount /dev/mmcblk0p1
mv /opt/bootlocal.sh /opt/bootlocal.sh.bkp
cp /mnt/mmcblk0p1/bootlocal.sh /opt/
sudo chmod 775 /opt/bootlocal.sh
mv /mnt/mmcblk0p2/onboot.lst /mnt/mmcblk0p2/onboot.lst.bkp
cp /mnt/mmcblk0p1/onboot.lst /mnt/mmcblk0p2/tce/
sudo chmod 664 /mnt/mmcblk0p2/onboot.lst
sudo umount /mnt/mmcblk0p1
sudo filetool.sh -b
sudo reboot

Note that in onboot.lst there's only the necessary extensions to display image on the screen as soon as possible. The remaining extensions will be loaded manually on the bootlocal.sh script file, that was also altered to display image as soon as possible and only afterwards do the remaining tasks such as load wifi firmware and tools.

If you have different needs, it's up to you to alter those files on your own.

RPiZeroW-LCD.jpg


@juliannojungle, 2022

gc9a01-tinycorelinux-tcz's People

Contributors

juliannojungle avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.