From 5e03073fc598efd519aeef54eabcde790f7cf753 Mon Sep 17 00:00:00 2001 From: masbog Date: Sun, 18 Feb 2018 04:39:02 +0700 Subject: [PATCH 1/5] Update main.c Fix warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration] on "make" after "cmake" --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 7fb0d78..897facb 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,8 @@ #include #include -#include +#include +#include #include #include From 5092ac713ed0ea54dd65dffe92358634bbc79fb6 Mon Sep 17 00:00:00 2001 From: masbog Date: Sun, 18 Feb 2018 20:08:21 +0700 Subject: [PATCH 2/5] Update README.md add information how to use it --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index e053c3c..7fed3b0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Raspberry Pi Framebuffer Copy ============================= This program used for copy primary framebuffer to secondary framebuffer (eg. FBTFT). It require lastest raspberry pi firmware (> 2013-07-11) to working properly. +Tested on Raspberry Pi +====================== +2017-11-29-raspbian-stretch + Build ----- @@ -12,3 +16,16 @@ Build $ cmake .. $ make + + +How To Use +---------- +$ ./fbcopy + +Wanna to run from booting +------------------------- +$ sudo cp fbcopy /usr/bin +$ sudo chmod +x /usr/bin/fbcopy +$ sudo nano /etc/rc.local -> add new line before "exit 0" with "/usr/bin/fbcp &" without quote +$ sudo reboot + From 7040928a22890551032dbe0c4329d73ff4dee185 Mon Sep 17 00:00:00 2001 From: masbog Date: Sun, 18 Feb 2018 20:11:27 +0700 Subject: [PATCH 3/5] Update README.md typo fix --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7fed3b0..3d7b589 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,12 @@ Build How To Use ---------- -$ ./fbcopy +$ ./fbcp Wanna to run from booting ------------------------- $ sudo cp fbcopy /usr/bin -$ sudo chmod +x /usr/bin/fbcopy +$ sudo chmod +x /usr/bin/fbcp $ sudo nano /etc/rc.local -> add new line before "exit 0" with "/usr/bin/fbcp &" without quote $ sudo reboot From 3e3a611fa5bb2d4c49aa49ea6157b696c009b275 Mon Sep 17 00:00:00 2001 From: masbog Date: Sun, 18 Feb 2018 20:15:06 +0700 Subject: [PATCH 4/5] Update README.md add requirement --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3d7b589..9ab2a44 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,18 @@ Raspberry Pi Framebuffer Copy ============================= This program used for copy primary framebuffer to secondary framebuffer (eg. FBTFT). It require lastest raspberry pi firmware (> 2013-07-11) to working properly. -Tested on Raspberry Pi -====================== +Tested on Raspberry Pi 3 +======================== 2017-11-29-raspbian-stretch + +Requirement +----------- +cmake +libatlas-base-dev + +$ sudo apt-get install cmake libatlas-base-dev -y + Build ----- @@ -24,7 +32,7 @@ $ ./fbcp Wanna to run from booting ------------------------- -$ sudo cp fbcopy /usr/bin +$ sudo cp fbcp /usr/bin $ sudo chmod +x /usr/bin/fbcp $ sudo nano /etc/rc.local -> add new line before "exit 0" with "/usr/bin/fbcp &" without quote $ sudo reboot From 266128c87d0ca967ff8eed83c962f732db9c8e3b Mon Sep 17 00:00:00 2001 From: masbog Date: Sun, 18 Feb 2018 20:16:33 +0700 Subject: [PATCH 5/5] Update README.md add requirement fix --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ab2a44..51e6a8f 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,8 @@ Tested on Raspberry Pi 3 Requirement ----------- cmake -libatlas-base-dev -$ sudo apt-get install cmake libatlas-base-dev -y +$ sudo apt-get install cmake Build -----