This program is used to copy primary framebuffer (eg. HDMI) to secondary framebuffer (eg. FBTFT).
Thanks to mrvanes for the callback-based fbcp functionality from https://github.com/mrvanes/rpi-fbcp
$ sudo apt-get install wiringpi libconfig-dev
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..
$ sudo cp build/Freeplay-fbcp /usr/local/bin
$ sudo cp freeplayfbcp.cfg /boot
$ sudo cp fbcp.sh /etc/init.d/
$ sudo update-rc.d fbcp.sh defaults
$ sudo nano /boot/freeplayfbcp.cfg
$ sudo service fbcp restart