pangren
Posts: 42
Joined: Thu Dec 19, 2013 2:52 pm

3.5" LCD Recalbox and fbcp compiling

Sun Jan 08, 2017 9:50 am

Hi I bought a 3.5" rasberry pi TFT touchscreen lcd from china
https://item.taobao.com/item.htm?spm=a1 ... d34c4p87d5

And I'm trying to use it for the recalbox OS. I've tried it on a raspbian and it seems to work like the Waveshare brand of LCDs. So I'm following the tutorial here.
https://github.com/recalbox/recalbox-os ... s-%28EN%29

until I came upon this thing call "fbcp"
that when i typed the command it said "command not found"

Then i went to read :
https://github.com/recalbox/recalbox-os ... creen-(EN)

and tried to build it but still... i can't get this "make" function to work. Basically I don't really know how to get fbcp installed and running. Has anyone tried it in Recalbox and have like an idiots guide as to how to compile this? I'm quite a noob , but i know how to SSH but compiling is rather confusing as of now. Any form of help is greatly appreciated.

yogi2016
Posts: 26
Joined: Thu Mar 17, 2016 4:49 pm

Re: 3.5" LCD Recalbox and fbcp compiling

Mon Jan 09, 2017 1:53 pm

So I don't know how much help I can be as I don't know recalBOX and have a 3.5" LCD coming from China. As I understand, the fbcp program moves the screen data from framebuffer 0, HDMI, to framebuffer 1, LCD. This allows you to display your desktop on the LCD but has a performance hit so you can't achieve a full 60fps.
Your second link does include a link to the fbcp Git hub, https://github.com/ian57/rpi-fbcp. At that link there are precompiled bins that should work, just copy into /usr/bin You shouldn't need to compile unless you are making changes to fbcp.
Your link also has a section on why the 3.5" LCD is not recommended, but with a Pi2 or 3 it can be useable.
Eager to hear your progress,
Yogi

pangren
Posts: 42
Joined: Thu Dec 19, 2013 2:52 pm

Re: 3.5" LCD Recalbox and fbcp compiling

Tue Jan 10, 2017 1:09 pm

hi yogi2016! thanks for your reply. so you mean if i download this exact file :
https://github.com/ian57/rpi-fbcp/tree/master/Pi3Binary

and put it into /usr/bin

I should be able to type "fbcp" on the terminal and get a response?

yogi2016
Posts: 26
Joined: Thu Mar 17, 2016 4:49 pm

Re: 3.5" LCD Recalbox and fbcp compiling

Tue Jan 10, 2017 2:59 pm

Yes that should work. The bin is a pre-compiled file and as long as you put it into the correct folder it will work. Follow this:
Get or compile the right binary from https://github.com/ian57/rpi-fbcp according to your Pi version. Copy it in the /usr/bin directory. You'll need to get write access on the system for that :

mount -o remount, rw /boot
mount -o remount, rw /
These commands remount the FS with read/write access. Then copy fbcp to /usr/bin

Then get the .dtb driver. According to this:
Get the files waveshare35a-overlay.dtb and waveshare32b-overlay.dtb respectively for the WaveShare 3,2" 320x240 screen and the WaveShare 3,5" 320x480 screen. For the new 4.4 kernels, we have to rename the dtb files in dtbo files to match the new overlay tree naming. Rename waveshare35a-overlay.dtb to waveshare35a.dtbo and ̀waveshare32b-overlay.dtbto ̀waveshare32b.dtbò and copy them in the /boot/overlays directory

Now we modify the ̀/boot/config.txt file to support the new screen :

#tft screen
#Waveshare 3.5 TFT Screen
#same resolution for hdmi and tft
hdmi_force_hotplug=1
hdmi_cvt=480 320 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87

dtparam=spi=on
dtoverlay=waveshare35a:rotate=270,speed=27000000
As long as the waveshare drivers work with your display should work, but you have tested it with a plain Raspbian. So make sure about the .dtb vs .dtbo naming they mention above; you may want to go to /boot/overlays and look through the existing dtb files, the waveshare 3.5 driver may already be in the latest kernel ( I think I saw it the other day looking at another project, but it would depend on the recalBox img).
Like I said before, I can't try this out for myself so my advice is limited :)
Yogi

pangren
Posts: 42
Joined: Thu Dec 19, 2013 2:52 pm

Re: 3.5" LCD Recalbox and fbcp compiling

Wed Jan 11, 2017 3:28 pm

But that is already extremely helpful for me yogi! at least i understand that what that github was actually putting a pre-compiled file for me to download.

Yeap I'll try it out. The screen seems to work with the waveshare drivers on plain raspbian. I guess it should work with this. Thanks!

pangren
Posts: 42
Joined: Thu Dec 19, 2013 2:52 pm

Re: 3.5" LCD Recalbox and fbcp compiling

Fri Jan 20, 2017 3:32 pm

Hi , just want to ask, for the link :

https://github.com/ian57/rpi-fbcp

besides a Pi3Binary folder with a file fbcp inside.
There are other files which includes, Main.C and CMakeLists.txt
What are they and what do they do?

I've copied fbcp into my /usr/bin and when i typed "fbcp" on the terminal its still the same response. "command not found" I'm really confused as to what these github binaries are for and how we should use them.

Return to “Graphics, sound and multimedia”