Skip to content

Instantly share code, notes, and snippets.

@ayufan
Last active October 3, 2023 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayufan/cf1c8bf4ed99c8a32da14dae75c0c001 to your computer and use it in GitHub Desktop.
Save ayufan/cf1c8bf4ed99c8a32da14dae75c0c001 to your computer and use it in GitHub Desktop.
RPI0/2W optimisation + Hyperpixel/Fsytec CTP

/boot

cp /boot/bcm2710-rpi-3-b.dtb /boot/bcm2710-rpi-zero-2.dtb /boot/bcm2710-rpi-zero-2-w.dtb

/boot/config.txt append

dtoverlay=disable-bt
enable_uart=0
disable_splash=1
boot_delay=0
hdmi_ignore_hotplug=1
initial_turbo=30
#gpu_mem=16
arm_64bit=1
#arm_freq=1200
dtparam=sd_poll_once

/boot/cmdline.txt

console=tty1 root=PARTUUID=d6e12960-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait plymouth.ignore-serial-consoles

/etc/modules append

brcmfmac

/etc/dhcpcd.conf append

noarp
ipv4only
noipv6

/etc/fstab

proc            /proc           proc    defaults          0       0
PARTUUID=d6e12960-01  /boot           vfat    defaults          0       0
PARTUUID=d6e12960-02  /               ext4    defaults,noatime  0       1

Disable services

sudo systemctl disable dphys-swapfile.service
sudo systemctl disable keyboard-setup.service
sudo systemctl disable apt-daily.service
sudo systemctl disable wifi-country.service
sudo systemctl disable hciuart.service
sudo systemctl disable raspi-config.service
sudo systemctl disable avahi-daemon.service
sudo systemctl disable triggerhappy.service

wpa_supplicant.conf for WPA2/3-Mixed

network={
        ssid="SSID"
        psk="PSK"
        key_mgmt=WPA-PSK-SHA256
        ieee80211w=2
}

If using FSYTEC 40 CTP

/usr/share/X11/xorg.conf.d/99-fbturbo.conf

Add ShadowFB to avoid fbturbo_drv.so: undefined symbol: shadow Update Packed Weak.

Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"

        Option          "SwapbuffersWait" "true"
        Option          "ShadowFB" "false"
EndSection

FSYTEC-CTP40

cd /usr/src
git clone https://github.com/FYSETC/FYSETC-CTP40
cd FYSETC-CTP40/Pi3
./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment