Page 1 of 2

Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 08 May 2017, 18:24
by PierreG64
Because I am a newbie and I understand the difficulties for some people like me to install a screen on runeaudio, i decide to participate with my modest contribution.
Sorry for my english, i use G....e for help. (i'm best in french ;) ).

I had a demand of my image of runeaudio 0.4b with pitft 3.5 working. For people who have difficulties with the code i put my image here:
The link: https://drive.google.com/open?id=0B1Lpxf_c0CmEcDhYZjlHaWVENFk
It's an image with no configuration. For configuring the screen you can read the end of my post.

For the others who want's to try by themselves, you can continue to read.

I have used much of the explanation of this post:
raspberry-3-runeaudio-and-tft-2-2-hat-install-t3496.html

And i used the RuneAudio image of hondagx35 (thank's to him), you can find here:
https://docs.google.com/uc?id=0B5E5WDN- ... t=download

And the software "WinSCP" ( to access certain files) and "PuTTY" ( to insert code and reboot...) ".

To Install the PITFT 3.5: (A part of the text is taken in integrality from the post i said before)
Get the device tree overlay:

Code: Select all
curl -L --output /boot/overlays/pitft35r.dtb https://github.com/AndrewFromMelbourne/raspi-device-tree/raw/master/pitft35r-overlay.dtb


Next I used the second command listed above to get the adafruit script and make it executable:

Code: Select all
curl -L --output /root/adafruit-pitft-helper https://raw.githubusercontent.com/adafruit/Adafruit-PiTFT-Helper/master/adafruit-pitft-helper && chmod +x /root/adafruit-pitft-helper


then I executed the script with this:

Code: Select all
export SYSTEMD=1 && /root/adafruit-pitft-helper -t 35r -u /root


I check that fb is on 1 and not on 0 (fb1 is for TFT an fb0 is for HDMI)

For that:
What is the output of the following command:

Code: Select all
ls -l /dev/fb*


If not, then the screen was not initialized correctly by the kernel/device tree,

Do that:

installed packages:

Code: Select all
pacman -Qe


And for finish:

Code: Select all
reboot


Now, if you want to correct the display, return it ....
I have made this:

To return the display:
In the file "boot/config.txt"
I change:

dtoverlay=pitft35-resistive,rotate=270,speed=25000000,fps=20

by:

dtoverlay=pitft35-resistive,rotate=90,speed=25000000,fps=20

And for the touchscreen to match the rotation of the screen make the following changes:
in the file "etc/x11/xorg.conf.d/99-calibration.conf"
Change:

Section "InputClass"
Identifier "calibration"
MatchProduct "stmpe-ts"
Option "Calibration" "3800 120 200 3900"
Option "SwapAxes" "1"
EndSection

By:

Section "InputClass"
Identifier "calibration"
MatchProduct "stmpe-ts"
Option "Calibration" "120 3800 3900 200"
Option "SwapAxes" "1"
EndSection

To adjust the display on the screen:
I made this:

Code: Select all
sudo nano  /root/.config/midori/config


Change the value "0.7" by the value "0.5"

And for finish (record and close the file)
Ctrl+O
Ctrl+X

And:

Code: Select all
reboot


I hope this will help beginners like me who spent a lot of time searching and finding a solution.
And a big thank you to all those who posted solutions on the forum, without them I will never have arrived.
Thank you

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 20 May 2017, 16:08
by jonsnow43
Thank you very much for your tutorial !!!

I try since months to have my TFT working on my Pi3 (adafruit 3.5" like yours). I tried with Volumio without success, they made a plugin to install TFT but it seems to work only for 7".

I tried with rune audio but i am stuck here:

Code: Select all
ls -l /dev/fb*

If not, then the screen was not initialized correctly by the kernel/device tree,


I visited the other topic in the first post who said that it is about the kernel version ... Should I try with runeaudio 0.3 instead of the 0.4 version you advise in your post? Any other idea ?

Thank you for your help !

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 22 May 2017, 21:05
by PierreG64
Hello jonsnow43,

For this code:
I tried with rune audio but i am stuck here:

Code: Select all
ls -l /dev/fb*

If not, then the screen was not initialized correctly by the kernel/device tree,



It's just to have the information if fb is on "0" or on "1". You find the information by reading the text that appears after typing the code. At a moment you read a "fb0" or "fb1"
If your screen don't work is because is on "0".

Go directely to the command
Code: Select all
pacman -Qe


and reboot.

in principle it works. For me it's ok with the runeaudio version 0.4b that you can find here: https://docs.google.com/uc?id=0B5E5WDN- ... t=download

I don't know if it works for another version.

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 27 May 2017, 17:54
by luamiennam
I still can not make the display on Pi3 run Runeaudio. Can you create an already installed img file for the 3.5 "screen and send it to me? Thank you so much.
P / s: I'm sorry, because my english is not good (I translated by google)

My Log:
root@runeaudio(rw):~# /opt/vc/bin/vcdbg log msg
000793.422: HDMI:EDID error reading EDID block 0 attempt 0
000794.686: HDMI:EDID error reading EDID block 0 attempt 1
000795.945: HDMI:EDID error reading EDID block 0 attempt 2
000797.203: HDMI:EDID error reading EDID block 0 attempt 3
000798.462: HDMI:EDID error reading EDID block 0 attempt 4
000799.720: HDMI:EDID error reading EDID block 0 attempt 5
000800.979: HDMI:EDID error reading EDID block 0 attempt 6
000802.237: HDMI:EDID error reading EDID block 0 attempt 7
000803.496: HDMI:EDID error reading EDID block 0 attempt 8
000804.754: HDMI:EDID error reading EDID block 0 attempt 9
000805.776: HDMI:EDID giving up on reading EDID block 0
000824.363: HDMI:Setting property pixel encoding to Default
000824.385: HDMI:Setting property pixel clock type to PAL
000824.405: HDMI:Setting property content type flag to No data
000824.425: HDMI:Setting property fuzzy format match to enabled
001012.858: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001012.883: hdmi: HDMI:>>>>>>>>>>>>>Rx sensed, reading EDID<<<<<<<<<<<<<
001013.268: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
001014.537: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
001015.801: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
001017.065: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
001018.328: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
001019.592: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
001020.857: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
001022.121: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
001023.385: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
001024.648: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
001025.676: hdmi: HDMI:EDID giving up on reading EDID block 0
001025.707: hdmi: HDMI: No lookup table for resolution group 0
001025.723: hdmi: HDMI: hotplug attached with DVI support
001025.781: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001026.143: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
001027.406: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
001028.669: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
001029.930: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
001031.193: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
001032.455: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
001033.717: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
001034.979: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
001036.242: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
001037.503: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
001038.529: hdmi: HDMI:EDID giving up on reading EDID block 0
001039.013: hdmi: HDMI: hotplug deassert
001039.028: hdmi: HDMI: HDMI is currently off
001039.043: hdmi: HDMI: changing mode to unplugged
001039.065: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001040.099: *** Restart logging
001041.045: Read command line from file 'cmdline.txt'
root=/dev/mmcblk0p2 rw rootwait fbcon=map:10 fbcon=font:VGA8x8 rootfstype=ext4 s elinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 dwc_otg.fi q_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_m
001410.781: Loading 'kernel7.img' to 0x8000 size 0x5d1870
001414.435: No kernel trailer (run mkknlimg to fix) - assuming DT-capable
001417.206: Loading 'bcm2710-rpi-3-b.dtb' to 0x5d9870 size 0x3e78
001513.763: dtparam: i2c_arm=on
001523.756: dtparam: i2s=on
001531.630: dtparam: spi=on
001539.699: dtparam: act_led_trigger=mmc
001550.618: dtparam: audio=on
001586.490: Failed to load overlay 'none'
001588.861: dtparam: spi=on
001596.884: dtparam: i2c1=on
001606.924: dtparam: i2c_arm=on
001637.306: Loaded overlay 'pitft35-resistive'
001637.323: dtparam: rotate=90
001638.417: dtparam: speed=25000000
001639.507: dtparam: fps=20
001640.717: dtparam: spi=on
001649.140: dtparam: i2c1=on
001659.623: dtparam: i2c_arm=on
001805.818: Loaded overlay 'pitft35-resistive'
001805.836: dtparam: rotate=90
001806.914: dtparam: speed=25000000
001807.982: dtparam: fps=20
002068.720: Device tree loaded to 0x2effb700 (size 0x4868)
002070.719: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
005652.220: vchiq_core: vchiq_init_state: slot_zero = 0xfac80000, is_master = 1
005655.617: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
root@runeaudio(rw):~#

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 29 May 2017, 20:26
by PierreG64
Ok, i try. I have made this image without configuration of the screen. Only runeaudio o.4b with pitft 3.5 who works.
You have to choise for the configuration (rotate and other like i have write in the end of my first post).
The link:https://drive.google.com/open?id=0B1Lpxf_c0CmEcDhYZjlHaWVENFk

Sorry for my english to.
I hope it will help you
Say me if it's ok or not.

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 02 Jun 2017, 16:50
by luamiennam
PierreG64 wrote:Ok, i try. I have made this image without configuration of the screen. Only runeaudio o.4b with pitft 3.5 who works.
You have to choise for the configuration (rotate and other like i have write in the end of my first post).
The link:https://drive.google.com/open?id=0B1Lpxf_c0CmEcDhYZjlHaWVENFk

Sorry for my english to.
I hope it will help you
Say me if it's ok or not.


I will install and report the result: D

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 10 Jun 2017, 14:46
by luamiennam
Done ... thanks all :D

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 23 Aug 2017, 13:09
by melo
thanks a lot for your tutorial!the tft screen now works, and show what is needed.

the only thing that I am missing is the touchscreen part.

is that working for you? Did I miss some extra step to perform to have that part working?

thanks for your help!

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 26 Aug 2017, 23:54
by PierreG64
the only thing that I am missing is the touchscreen part.

is that working for you? Did I miss some extra step to perform to have that part working?


Yes, the touchscreen is working for me.
I made the changes I wrote at the end of my first post.

To adjust the display on the screen:
I made this:

CODE: SELECT ALL
sudo nano /root/.config/midori/config


Change the value "0.7" by the value "0.5"

And for finish (record and close the file)
Ctrl+O
Ctrl+X

And:

CODE: SELECT ALL
reboot



As the display is small, I use a pen for touch screen. The fingers are too big (mine in any case).
Sorry for my english, it's a translation with the help of g****e translator.

Re: Adafruit PIFT 3.5 ( To help with installation)

PostPosted: 31 Aug 2017, 02:24
by melo
thanks a lot Pierre, or well..merci :)

I performed that step, I will troubleshoot the issue myself since there might be a problem with the drivers or the version of rune im using.

cheers!