After fork and adjust files we can run two commands:
./RUN_LCD
./RUN_HDMI
And we know everything will be working on RPi 3 B+
and kali-linux-2021.3
.
Instructions below are related to the original project.
Used system kali-linux-2021.3-rpi4-nexmon-arm64.img.xz
- Install kali on sd card using
balenaEtcher
- Create backup of config.txt file
sudo cp /boot/config.txt /boot/config.txt.bk
- Run kali (l: kali, p: kali) and connect with the Internet
- Clone repo
git clone https://github.com/lcdwiki/LCD-show-kali
- Run command
cd LCD-show-kali && sudo ./LCD35-show
- now RPi will reboot and show kernel error
- Open SD card on the different computer and copy and replace code from
config.txt.bk
to/boot/config.txt
without last section, which should be like this:
... rest of code from config.txt ...
# If you would like to enable USB booting on your Pi, uncomment the following line.
# Boot from microsd card with it, then reboot.
# Don't forget to comment this back out after using, especially if you plan to use
# sdcard with multiple machines!
# NOTE: This ONLY works with the Raspberry Pi 3+
#program_usb_boot_mode=1
hdmi_force_hotplug=1
dtparam=i2c_arm=on
dtparam=spi=on
enable_uart=1
dtoverlay=tft35a:rotate=270
- Update packages
apt update
- now rpi should works with TFT LCD 3.5
- Instalal package for calibration
apt-get install xinput-calibrator
. - Edit file
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
with configuration:
Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "Calibration" "160 3723 3896 181"
Option "SwapAxes" "1"
Option "TransformationMatrix" "1 0 0 0 -1 1 0 0 1"
EndSection
- Reboot system by:
reboot
command and be happy with your kali linux on LCD.
-
To calibrate touch screen run command
xinput-calibrator
-
If you want back to HDMI connection run script
cd LCD-show-kali && sudo ./LCD35-show