diff --git a/LCD-hdmi b/LCD-hdmi new file mode 100644 index 0000000..c1838b4 --- /dev/null +++ b/LCD-hdmi @@ -0,0 +1,6 @@ +sudo cp -rf ./usr/modules-HDMI /etc/modules +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo cp ./boot/config-nomal.txt /boot/config.txt +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo reboot diff --git a/LCD28-show b/LCD28-show new file mode 100644 index 0000000..00fcf2d --- /dev/null +++ b/LCD28-show @@ -0,0 +1,9 @@ +sudo mkdir /etc/X11/xorg.conf.d +sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/ +sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo +sudo cp -rf ./usr/99-calibration.conf-28 /etc/X11/xorg.conf.d/99-calibration.conf +sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp ./boot/config-28.txt /boot/config.txt +sudo reboot diff --git a/LCD32-show b/LCD32-show new file mode 100644 index 0000000..08aec0e --- /dev/null +++ b/LCD32-show @@ -0,0 +1,9 @@ +sudo mkdir /etc/X11/xorg.conf.d +sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/ +sudo cp ./usr/tft9341-overlay.dtb /boot/overlays/tft9341.dtbo +sudo cp -rf ./usr/99-calibration.conf-32 /etc/X11/xorg.conf.d/99-calibration.conf +sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp ./boot/config-32.txt /boot/config.txt +sudo reboot diff --git a/LCD35-show b/LCD35-show new file mode 100644 index 0000000..9fcc289 --- /dev/null +++ b/LCD35-show @@ -0,0 +1,9 @@ +sudo mkdir /etc/X11/xorg.conf.d +sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/ +sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo +sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf +sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp ./boot/config-35.txt /boot/config.txt +sudo reboot diff --git a/LCD397-show b/LCD397-show new file mode 100644 index 0000000..994622d --- /dev/null +++ b/LCD397-show @@ -0,0 +1,7 @@ +sudo cp -rf ./boot/config-397.txt /boot/config.txt +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo mkdir /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-397 /etc/X11/xorg.conf.d/99-calibration.conf +sudo reboot diff --git a/LCD43-show b/LCD43-show new file mode 100644 index 0000000..7d9adcf --- /dev/null +++ b/LCD43-show @@ -0,0 +1,7 @@ +sudo cp -rf ./boot/config-43.txt /boot/config.txt +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo mkdir /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-43 /etc/X11/xorg.conf.d/99-calibration.conf +sudo reboot diff --git a/LCD5-show b/LCD5-show new file mode 100644 index 0000000..2dc0d10 --- /dev/null +++ b/LCD5-show @@ -0,0 +1,7 @@ +sudo cp -rf ./boot/config-5.txt /boot/config.txt +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo mkdir /etc/X11/xorg.conf.d +sudo cp -rf ./usr/99-calibration.conf-5 /etc/X11/xorg.conf.d/99-calibration.conf +sudo reboot diff --git a/LCD7B-show b/LCD7B-show new file mode 100644 index 0000000..a66f8bd --- /dev/null +++ b/LCD7B-show @@ -0,0 +1,5 @@ +sudo cp -rf ./boot/config-7B-800x480.txt /boot/config.txt +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo reboot diff --git a/LCD7C-show b/LCD7C-show new file mode 100644 index 0000000..1fb0550 --- /dev/null +++ b/LCD7C-show @@ -0,0 +1,5 @@ +sudo cp -rf ./boot/config-7C-1024x600.txt /boot/config.txt +sudo cp ./usr/cmdline.txt /boot/ +sudo cp ./usr/inittab /etc/ +sudo cp -rf ./usr/99-fbturbo.conf-HDMI /usr/share/X11/xorg.conf.d/99-fbturbo.conf +sudo reboot diff --git a/ReadMe.txt b/ReadMe.txt new file mode 100644 index 0000000..b15cd03 --- /dev/null +++ b/ReadMe.txt @@ -0,0 +1,34 @@ + +[version] + v1.1 +[Driver installation] +Step1, Install Raspbian official mirror +1)Download Raspbian official mirror:https://www.raspberrypi.org/downloads/ +2)Use¡°SDFormatter.exe¡±to Format your TF Card£¬ +3)Use¡°Win32DiskImager.exe¡± Burning mirror to TF Card¡£ +Step2, Install LCD Driver +1)Copy ¡°LCD-show-160701.tar.gz¡± to the root directory of raspberry pi£¨you can copy it directly to TF card after Step1, or use SFTP to remote copy£© +2)Landing Raspberry pi system to user command line (Name:pi,Password:raspberry)£¬Execute the following command: +cd /boot +sudo tar zxvf LCD-show-160701.tar.gz +cd LCD-show/ +#For 2.8inch RPI LCD excute: +sudo ./LCD28-show +# For 3.2inch RPI LCD excute: +sudo ./LCD32-show +# For 3.5inch RPI LCD excute: +sudo ./LCD35-show +# For 3.97inch RPI LCD excute: +sudo ./LCD397-show +# For 4.3inch RPI LCD excute: +sudo ./LCD43-show +# For 5inch RPI LCD excute: +sudo ./LCD5-show +# For 7inch(B)-800X480 RPI LCD excute: +sudo ./LCD7B-show +# For 7inch(C)-1024X600 RPI LCD excute: +sudo ./LCD7C-show +# If you need to switch back to the traditional HDMI display excute: +Sudo ./LCD-hdmi + +3)Wait a few minutes,the system will restart automaticall , enjoy with your LCD. diff --git a/boot/config-28.txt b/boot/config-28.txt new file mode 100644 index 0000000..d385381 --- /dev/null +++ b/boot/config-28.txt @@ -0,0 +1,58 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +dtoverlay=tft9341:rotate=90 +dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-32.txt b/boot/config-32.txt new file mode 100644 index 0000000..7cc6e05 --- /dev/null +++ b/boot/config-32.txt @@ -0,0 +1,58 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +dtoverlay=tft9341:rotate=270 +dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=0,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-35.txt b/boot/config-35.txt new file mode 100644 index 0000000..16f27d3 --- /dev/null +++ b/boot/config-35.txt @@ -0,0 +1,58 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +dtoverlay=tft35a +dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-397.txt b/boot/config-397.txt new file mode 100644 index 0000000..454e2d9 --- /dev/null +++ b/boot/config-397.txt @@ -0,0 +1,63 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +display_rotate=3 +max_usb_current=1 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 480 800 60 6 0 0 0 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-43.txt b/boot/config-43.txt new file mode 100644 index 0000000..7b6d5c6 --- /dev/null +++ b/boot/config-43.txt @@ -0,0 +1,63 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +max_usb_current=1 +display_rotate=0 +max_usb_current=1 +hdmi_group=2 +hdmi_mode=87 +hdmi_timings=480 0 1 41 2 272 0 2 10 2 0 0 0 60 0 9000000 3 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-5.txt b/boot/config-5.txt new file mode 100644 index 0000000..9760f4c --- /dev/null +++ b/boot/config-5.txt @@ -0,0 +1,62 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +max_usb_current=1 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 800 480 60 6 0 0 0 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-7B-800x480.txt b/boot/config-7B-800x480.txt new file mode 100644 index 0000000..9760f4c --- /dev/null +++ b/boot/config-7B-800x480.txt @@ -0,0 +1,62 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +max_usb_current=1 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 800 480 60 6 0 0 0 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-7C-1024x600.txt b/boot/config-7C-1024x600.txt new file mode 100644 index 0000000..a2ef456 --- /dev/null +++ b/boot/config-7C-1024x600.txt @@ -0,0 +1,62 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on +max_usb_current=1 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 1024 600 60 6 0 0 0 +dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900 diff --git a/boot/config-nomal.txt b/boot/config-nomal.txt new file mode 100644 index 0000000..9184c55 --- /dev/null +++ b/boot/config-nomal.txt @@ -0,0 +1,56 @@ +# For more options and information see +# http://www.raspberrypi.org/documentation/configuration/config-txt.md +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment this if your display has a black border of unused pixels visible +# and your display can output without overscan +#disable_overscan=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +dtparam=i2c_arm=on +#dtparam=i2s=on +dtparam=spi=on +enable_uart=1 +# Uncomment this to enable the lirc-rpi module +#dtoverlay=lirc-rpi + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on diff --git a/lcd.c b/lcd.c new file mode 100644 index 0000000..e69de29 diff --git a/usr/99-calibration.conf-28 b/usr/99-calibration.conf-28 new file mode 100644 index 0000000..9520bf6 --- /dev/null +++ b/usr/99-calibration.conf-28 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "3770 171 239 3892" + Option "SwapAxes" "1" +EndSection diff --git a/usr/99-calibration.conf-32 b/usr/99-calibration.conf-32 new file mode 100644 index 0000000..bb27f01 --- /dev/null +++ b/usr/99-calibration.conf-32 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "115 3700 3865 155" + Option "SwapAxes" "1" +EndSection diff --git a/usr/99-calibration.conf-35 b/usr/99-calibration.conf-35 new file mode 100644 index 0000000..7f85eb0 --- /dev/null +++ b/usr/99-calibration.conf-35 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "3936 227 268 3880" + Option "SwapAxes" "1" +EndSection diff --git a/usr/99-calibration.conf-397 b/usr/99-calibration.conf-397 new file mode 100644 index 0000000..4e759e0 --- /dev/null +++ b/usr/99-calibration.conf-397 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "3865 158 289 3873" + Option "SwapAxes" "1" +EndSection diff --git a/usr/99-calibration.conf-43 b/usr/99-calibration.conf-43 new file mode 100644 index 0000000..489410f --- /dev/null +++ b/usr/99-calibration.conf-43 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "535 3860 254 3883" + Option "SwapAxes" "0" +EndSection diff --git a/usr/99-calibration.conf-5 b/usr/99-calibration.conf-5 new file mode 100644 index 0000000..c6fbc8c --- /dev/null +++ b/usr/99-calibration.conf-5 @@ -0,0 +1,6 @@ +Section "InputClass" + Identifier "calibration" + MatchProduct "ADS7846 Touchscreen" + Option "Calibration" "140 3951 261 3998" + Option "SwapAxes" "0" +EndSection diff --git a/usr/99-fbturbo.conf b/usr/99-fbturbo.conf new file mode 100644 index 0000000..8b039a9 --- /dev/null +++ b/usr/99-fbturbo.conf @@ -0,0 +1,16 @@ +# This is a minimal sample config file, which can be copied to +# /etc/X11/xorg.conf in order to make the Xorg server pick up +# and load xf86-video-fbturbo driver installed in the system. +# +# When troubleshooting, check /var/log/Xorg.0.log for the debugging +# output and error messages. +# Run "man fbturbo" to get additional information about the extra +# configuration options for tuning the driver. + +Section "Device" + Identifier "Allwinner A10/A13/A20 FBDEV" + Driver "fbturbo" + Option "fbdev" "/dev/fb1" + + Option "SwapbuffersWait" "true" +EndSection diff --git a/usr/99-fbturbo.conf-HDMI b/usr/99-fbturbo.conf-HDMI new file mode 100644 index 0000000..1f2fae0 --- /dev/null +++ b/usr/99-fbturbo.conf-HDMI @@ -0,0 +1,16 @@ +# This is a minimal sample config file, which can be copied to +# /etc/X11/xorg.conf in order to make the Xorg server pick up +# and load xf86-video-fbturbo driver installed in the system. +# +# When troubleshooting, check /var/log/Xorg.0.log for the debugging +# output and error messages. +# Run "man fbturbo" to get additional information about the extra +# configuration options for tuning the driver. + +Section "Device" + Identifier "Allwinner A10/A13/A20 FBDEV" + Driver "fbturbo" + Option "fbdev" "/dev/fb0" + + Option "SwapbuffersWait" "true" +EndSection diff --git a/usr/cmdline.txt b/usr/cmdline.txt new file mode 100644 index 0000000..936142b --- /dev/null +++ b/usr/cmdline.txt @@ -0,0 +1 @@ +dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo diff --git a/usr/inittab b/usr/inittab new file mode 100644 index 0000000..174e8fb --- /dev/null +++ b/usr/inittab @@ -0,0 +1,72 @@ +# /etc/inittab: init(8) configuration. +# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ + +# The default runlevel. +id:2:initdefault: + +# Boot-time system configuration/initialization script. +# This is run first except when booting in emergency (-b) mode. +si::sysinit:/etc/init.d/rcS + +# What to do in single-user mode. +~~:S:wait:/sbin/sulogin + +# /etc/init.d executes the S and K scripts upon change +# of runlevel. +# +# Runlevel 0 is halt. +# Runlevel 1 is single-user. +# Runlevels 2-5 are multi-user. +# Runlevel 6 is reboot. + +l0:0:wait:/etc/init.d/rc 0 +l1:1:wait:/etc/init.d/rc 1 +l2:2:wait:/etc/init.d/rc 2 +l3:3:wait:/etc/init.d/rc 3 +l4:4:wait:/etc/init.d/rc 4 +l5:5:wait:/etc/init.d/rc 5 +l6:6:wait:/etc/init.d/rc 6 +# Normally not reached, but fallthrough in case of emergency. +z6:6:respawn:/sbin/sulogin + +# What to do when CTRL-ALT-DEL is pressed. +ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now + +# Action on special keypress (ALT-UpArrow). +#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work." + +# What to do when the power fails/returns. +pf::powerwait:/etc/init.d/powerfail start +pn::powerfailnow:/etc/init.d/powerfail now +po::powerokwait:/etc/init.d/powerfail stop + +# /sbin/getty invocations for the runlevels. +# +# The "id" field MUST be the same as the last +# characters of the device (after "tty"). +# +# Format: +# ::: +# +# Note that on most Debian systems tty7 is used by the X Window System, +# so if you want to add more getty's go ahead but skip tty7 if you run X. +# +1:2345:respawn:/sbin/getty --noclear 38400 tty1 +2:23:respawn:/sbin/getty 38400 tty2 +3:23:respawn:/sbin/getty 38400 tty3 +4:23:respawn:/sbin/getty 38400 tty4 +5:23:respawn:/sbin/getty 38400 tty5 +6:23:respawn:/sbin/getty 38400 tty6 + +# Example how to put a getty on a serial line (for a terminal) +# +#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 +#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 + +# Example how to put a getty on a modem line. +# +#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 + + +#Spawn a getty on Raspberry Pi serial line +T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100 diff --git a/usr/modules-HDMI b/usr/modules-HDMI new file mode 100644 index 0000000..8dcd5f7 --- /dev/null +++ b/usr/modules-HDMI @@ -0,0 +1,13 @@ +# /etc/modules: kernel modules to load at boot time. +# +# This file contains the names of kernel modules that should be loaded +# at boot time, one per line. Lines beginning with "#" are ignored. +# Parameters can be specified after the module name. + +snd-bcm2835 +i2c-bcm2708 +i2c-dev + +#flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 +#fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24 +#ads7846_device model=7846 cs=1 gpio_pendown=17 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=60 x_min=200 x_max=3900 y_min=200 y_max=3900 diff --git a/usr/tft35a-overlay.dtb b/usr/tft35a-overlay.dtb new file mode 100644 index 0000000..31aeff9 Binary files /dev/null and b/usr/tft35a-overlay.dtb differ diff --git a/usr/tft9341-overlay.dtb b/usr/tft9341-overlay.dtb new file mode 100644 index 0000000..2162ba6 Binary files /dev/null and b/usr/tft9341-overlay.dtb differ diff --git a/xinput-calibrator_0.7.5-1_armhf.deb b/xinput-calibrator_0.7.5-1_armhf.deb new file mode 100644 index 0000000..bc5f57b Binary files /dev/null and b/xinput-calibrator_0.7.5-1_armhf.deb differ