Chipsee / industrial-pi

Industrial Pi drivers for LCD, touch panel, WiFi, Bluetooth, RTC, serial ports, SD cards, 4G module.
https://chipsee.com/product-category/ipc/?query_type_cpu=or&filter_cpu=cortex-a53-raspberry-pi,cortex-a72-raspberry-pi
6 stars 7 forks source link
raspberry-pi-3 raspberry-pi-4

Introduction

We will use this repo to contain the source code and config for Chipsee Raspberry Computer Module Hardware.

How to use this repo to add drivers and configrations on Supported Raspberry Official OS?

Supported Raspberry Official OS

This repository only support follow Raspberry Pi official system now:

If the system you are downloading not list in the above supported list, you also can try, use latest kernel branch to compile, maybe need to do some modification.

1. Prepare system

Install Raspberry Pi official system and boot, run follow commands in ssh or serial debug console. The Chipsee Industrial-Pi network and serial debug port is supported by Raspberry Pi official system default.

2. Download industrial-pi repository

This repository only supports tested kernel version listed in branches. If the kernel version of your system is not in the branches lists, you should select one closer kernel version that you had. If your kernel version is listed in the branches,use follow commands,

git clone --depth=1 --branch `uname -r` https://github.com/Chipsee/industrial-pi.git

If there is some error about branch, check if the kernel you are using is listed in the branchs, if not, check the following section, or ignore it.

ISSUE: The kernel version you are using is not listed in the branches?

If your kernel version is not listed in the branches, checkout the branches closer to your kernel, check your kernel,

uname -r

select one closer branches, for example your kernel version is 5.10.17-v71+, you can select 5.10.63-v71+ branches

git clone --depth=1 --branch 5.10.63-v71+ https://github.com/Chipsee/industrial-pi.git

and do the following modification

1. modify Makefile
diff --git a/Makefile b/Makefile
index b98ad3c..98de440 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,6 @@ help:
 ##############################################################
 install:
        @apt-get update
-       @dpkg -i $(TOPDIR)/tools/*.deb
        @make -C $(GT9XX_DIR)
        @echo "Install GT9XX success!!"
        @make -C $(LSM6DS3_DIR)

2. install raspberrypi-kernel-headers packages
sudo apt update
sudo apt install raspberrypi-kernel-headers

3. Compile and install

cd industrial-pi
sudo make install

If there is no error, reboot your board.

4. Uninstall

cd industrial-pi
sudo make uninstall

5. More commands

cd industrial-pi
make help

Supported Chipsee Board

This repository only support follow Chipsee Industrial Board, you can order them from the official Chipsee Web chipsee web site or from your nearest distributor.

Latest system images

2022-09-22 V5 64bit

2021-10-30 V2 32bit

Release notes

2022-9-22 V5:

2022-9-22 V2:

2021-10-30 V2:

2021-10-30 V1:

2020-12-02 V4:

2020-12-02 V3:

Older system images

2022-09-22 V3 64bit

Q & A

1. System is upgraded, the touchscreen driver is broken, how to fix it?

Solution One(recommend):

Use the upstream goodix touchscreen driver.

  1. comment the gt9xx line in /opt/chipsee/chipsee-init.sh
    $ sudo sed -i "s/^modprobe gt9xx/# modprobe gt9xx/g" /opt/chipsee/chipsee-init.sh

    The diffrence,

    255c255
    < modprobe gt9xx
    ---
    > # modprobe gt9xx
  2. Replace gt9xx dtoverlay by using goodix in /boot/config.txt
    $ sudo sed -i "s/^dtoverlay=gt9xx/dtoverlay=goodix/g" /boot/config.txt

    The diffrence,

    103c103
    < dtoverlay=gt9xx,interrupt=20,reset=21
    ---
    > dtoverlay=goodix,interrupt=20,reset=21
  3. reboot to check
    $ sudo reboot

    Solution two:

    Rrecompile the Chipsee touchscreen driver.

    $ git clone --depth=1 --branch 6.1.21 https://github.com/Chipsee/industrial-pi.git
    $ sudo apt update
    $ sudo apt install raspberrypi-kernel-headers

    if your kernel is updated to 64bit from 32bit, the above commands will install armhf version raspberrypi-kernel-headers. as the filesystem is 32bit, you should add "arm_64bit=0" to /boot/config.txt to switch the kernel to 32bit first. then reboot to compile touchscreen driver. you can use "uname -ra" to check the current kernel.

    $ cd industrial-pi/gt9xx/
    $ sudo make
    $ sudo reboot