0

raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1.201
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by adafruit2 on Fri Jan 05, 2018 7:51 pm

thats really weird. can you check if fbcp is running (use 'ps ef') ?
also paste the contents of /boot/config.txt ?

adafruit2
Site Admin
 
Posts: 15654
Joined: Fri Mar 11, 2005 7:36 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by ppweron on Fri Jan 05, 2018 8:12 pm

Please see the info below.

From ps ef:
Code: Select all | TOGGLE FULL SIZE
  PID TTY      STAT   TIME COMMAND
 1444 pts/1    Ss+    0:00 -bash LC_CTYPE=UTF-8 USER=pi LOGNAME=pi HOME=/home/pi PATH=/usr/local/bin:/usr/bin:/bin:/usr/games MAIL=/var/mail/pi SHELL=/bin/bash SSH_CLIENT=192.168.1.72 51146 22 SSH_CONNECTION=192.168.1.72 51146 192.168.1.92 22 SSH_TTY=/dev/pts/1 TERM=xterm
  834 pts/0    Ss     0:00 -bash LC_CTYPE=UTF-8 USER=pi LOGNAME=pi HOME=/home/pi PATH=/usr/local/bin:/usr/bin:/bin:/usr/games MAIL=/var/mail/pi SHELL=/bin/bash SSH_CLIENT=192.168.1.72 50768 22 SSH_CONNECTION=192.168.1.72 50768 192.168.1.92 22 SSH_TTY=/dev/pts/0 TERM=xterm
 1529 pts/0    R+     0:00  \_ ps ef LC_ALL=C LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=0
  522 tty1     S+     0:00 -bash TERM=linux LANG=en_GB.UTF-8 HOME=/home/pi SHELL=/bin/bash USER=pi LOGNAME=pi PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games MAIL=/var/mail/pi XDG_SESSION_ID=c1 XDG_RUNTIME_DIR=/run/user/1000 D

from ps ef | grep fbcp:
Code: Select all | TOGGLE FULL SIZE
1531 pts/0    S+     0:00  \_ grep --color=auto fbcp LC_ALL=C LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.a_vi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
...


"/boot/config.txt"
Code: Select all | TOGGLE FULL SIZE
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# --- added by adafruit-pitft-helper Fri Jan  5 22:49:55 UTC 2018 ---
[pi0]
device_tree=bcm2708-rpi-0-w.dtb
[pi1]
device_tree=bcm2708-rpi-b-plus.dtb
[pi2]
device_tree=bcm2709-rpi-2-b.dtb
[pi2]
device_tree=bcm2710-rpi-3-b.dtb
[all]
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=pitft28-resistive,rotate=90,speed=64000000,fps=30
# --- end adafruit-pitft-helper Fri Jan  5 22:49:55 UTC 2018 ---
hdmi_cvt=640 480 60 1 0 0 0

Once more thanks.

ppweron
 
Posts: 11
Joined: Wed May 11, 2016 6:46 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by ppweron on Fri Jan 05, 2018 8:27 pm

Ok, if I do "ps axf | grep fbcp" I cannot find it, is not running.

Then if I run "/usr/local/bin/fbcp" manualy then the PiTFT shows the graphics :-).

For some reason the fbcp launched from rc.local is not starting!! Now I only need to discover why that is happen?

Almost there :-)

ppweron
 
Posts: 11
Joined: Wed May 11, 2016 6:46 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by d00wirre on Fri Jan 05, 2018 8:53 pm

Hi,

Used the script and got my 3.5" 320x480 TFT w/Touch Screen up and running, very nice :).

I have the version of the TFT with the 26 pin header and like to use the SPI1 located on the pins not used by the TFT.

The dtoverlay=pitft35-resistive seams to remove both /dev/spidev0.0 and /dev/spidev0.1 is there a way to keep spidev0.1?

Mabe another overlay option that don't kill SPI1?

Br Oskar

d00wirre
 
Posts: 3
Joined: Fri Jan 05, 2018 8:45 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by ppweron on Fri Jan 05, 2018 8:58 pm

Solved.

First remove "/usr/local/bin/fbcp" from rc.local then lets create a service:

Create a unit file using the command as shown below:
Code: Select all | TOGGLE FULL SIZE
sudo vi /lib/systemd/system/pitft.service

Add in the following text :
Code: Select all | TOGGLE FULL SIZE
 [Unit]
 Description=PiTFT service
 After=multi-user.target

 [Service]
 Type=idle
 ExecStart=/usr/local/bin/fbcp

 [Install]
 WantedBy=multi-user.target

Then:
Code: Select all | TOGGLE FULL SIZE
sudo systemctl daemon-reload
sudo systemctl enable pitft
sudo systemctl start pitft

Done :-), and thank you for the support.
Last edited by ppweron on Fri Jan 05, 2018 9:19 pm, edited 1 time in total.

ppweron
 
Posts: 11
Joined: Wed May 11, 2016 6:46 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by adafruit2 on Fri Jan 05, 2018 9:00 pm

d00, both are used - one for touch and one for TFT - there is a *second* spi port. its used in this project
https://github.com/adafruit/Pi_Eyes
however, do not use this thread for any more replies, make a new thread. we're helping people here :)

adafruit2
Site Admin
 
Posts: 15654
Joined: Fri Mar 11, 2005 7:36 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by basselt on Sun Jan 07, 2018 12:18 pm

I created pitft.service, executed the three systmctl commands as in ppweron 's post, changed my /boot/config.txt (after install 90,) to 270 degrees and voila, finally(!) my PiTFT is working with a properly aligned touchscreen and a (great) picture.
Site Admin and ppweron, thanks for all the great help and hints!
I appreciated all the effort,
rgds
Bob

basselt
 
Posts: 23
Joined: Mon Nov 30, 2015 8:19 am

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by cwaa on Mon Jan 15, 2018 1:23 pm

I have a new pi 3 b and a 2.8 capacitive touch screen. I have tried all of the std. methods on your site to install the screen, but nothing worked. I have now found and reviewed this thread. I used the script on a new stretch os and it runs and gives me the tft options. Finally it says "success" and asks to reboot. After reboot the tft remains blank and the hmdi output is too large for my screen. How can I test the tft? I have spent hours trying to get this to work and am about to give it up. Any help or direction would be appreciated. I started a new thread on this forum some days ago and it was never answered. How else can I get help?

cwaa
 
Posts: 10
Joined: Fri Jan 12, 2018 4:10 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by adafruit2 on Mon Jan 15, 2018 1:24 pm

cwaa please post the output of the script you ran!

adafruit2
Site Admin
 
Posts: 15654
Joined: Fri Mar 11, 2005 7:36 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by cwaa on Mon Jan 15, 2018 2:56 pm

login as: pi
pi@192.168.1.27's password:
Linux raspberrypi3 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 15 17:25:09 2018
pi@raspberrypi3:~ $ sudo ./adafruit-pitft-helper2.sh
This script downloads and installs
PiTFT Support using userspace touch
controls and a DTO for display drawing.
one of several configuration files.
Run time of up to 5 minutes. Reboot required!

Select configuration:
1. PiTFT 2.4", 2.8" or 3.2" resistive (240x320)
2. PiTFT 2.2" no touch (240x320)
3. PiTFT 2.8" capacitive touch (240x320)
4. PiTFT 3.5" resistive touch (320x480)
5. Quit without installing

SELECT 1-5: 3
Select rotation:
1. 90 degrees (landscape)
2. 180 degrees (portait)
3. 270 degrees (landscape)
4. 0 degrees (portait)

SELECT 1-4: 1
[PITFT] Checking init system...
Found systemd
/boot is mounted
[PITFT] System update
Updating apt indexes...
.........
Reading package lists...
.........
[PITFT] Installing Python libraries & Software...
Installing Pre-requisite Software...This may take a few minutes!
[PITFT] Updating /boot/config.txt...
Already have an adafruit-pitft-helper section in /boot/config.txt.
Removing old section...
[PITFT] Updating SysFS rules for Touchscreen...
[PITFT] Updating TSLib default calibration...
Would you like the console to appear on the PiTFT display? [y/n] n
[PITFT] Making sure console doesn't use PiTFT
Removing console fbcon map from /boot/cmdline.txt
Screen blanking time reset to 10 minutes
Would you like the HDMI display to mirror to the PiTFT display? [y/n] y
[PITFT] Adding FBCP support...
Installing cmake...
Downloading rpi-fbcp...
Uncompressing rpi-fbcp...
Building rpi-fbcp...
Installing rpi-fbcp...
Add fbcp to /etc/rc.local...
Setting raspi-config to boot to desktop w/o login...
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Configuring boot/config.txt for forced HDMI
Using x2 resolution
[PITFT] Updating X11 default calibration...
[PITFT] Success!

Settings take effect on next boot.

REBOOT NOW? [y/N] login as: pi

cwaa
 
Posts: 10
Joined: Fri Jan 12, 2018 4:10 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by adafruit2 on Mon Jan 15, 2018 2:59 pm

try saying Y to 'console' - something broke with the hdmi mirroring code in the last few days

adafruit2
Site Admin
 
Posts: 15654
Joined: Fri Mar 11, 2005 7:36 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by cwaa on Mon Jan 15, 2018 4:33 pm

When I say yes to the console question, the screen locks up on reboot. The screen is the welcome screen and in the lower left of the screen is "rc-local.service". I logged in to the Pi via ssh and it responds. If I go in via the VNC viewer, I get a black screen with limited menu at the very top. There is nothing but a white screen on the TFT.

cwaa
 
Posts: 10
Joined: Fri Jan 12, 2018 4:10 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by adafruit2 on Mon Jan 15, 2018 4:41 pm

cwaa can you post a phoot of the back of your PiTFT, what Pi are you using it with?

adafruit2
Site Admin
 
Posts: 15654
Joined: Fri Mar 11, 2005 7:36 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by cwaa on Mon Jan 15, 2018 5:12 pm

The Pi is Raspberry Pi 3 Model B V1.2
Attachments
2018-01-15 001.jpg
2018-01-15 001.jpg (154.15 KiB) Viewed 45 times

cwaa
 
Posts: 10
Joined: Fri Jan 12, 2018 4:10 pm

Re: raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1

by c0unt0 on Mon Jan 15, 2018 5:25 pm

Just tried it on pi zero w + TFT resistive 2.8 running a fresh stretch install, console mode worked a charm.
I didn’t manage to get HDMI mirroring working yet, but I’ve not spent any sort of time on this, I’ll report back later!

[edit]
Got fbcp running as well, but I had to follow ppweron’s instruction to get it to stick.
Thanks for all the help everybody!

Thanks,
Alex.

(And this screen is insannnelly cute!)

c0unt0
 
Posts: 1
Joined: Mon Jan 15, 2018 5:06 pm

Please be positive and constructive with your questions and comments.