This program used for copy primary framebuffer to secondary framebuffer (eg. FBTFT). It require lastest raspberry pi firmware (> 2013-07-11) to working properly.
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ~
$ git clone https://github.com/wdmomoxx/rpi-fbcp.git
$ cd rpi-fbcp
$ sudo chmod +x autoinstall-pi1.sh
$ ./autoinstall-pi1.sh
$ cd ~
$ git clone https://github.com/wdmomoxx/rpi-fbcp.git
$ cd rpi-fbcp
$ sudo chmod +x autoinstall-pi3.sh
$ ./autoinstall-pi3.sh