raspberrypi-kernel : Breaks: raspberrypi-bootloader (< 1.201

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
Masterdka
 
Posts: 2
Joined: Wed Nov 22, 2017 12:34 am

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

Post by Masterdka »

Yes thank you this script worked for the tft3.5 on a pi zero W.

User avatar
bradbrok
 
Posts: 2
Joined: Tue Mar 03, 2015 3:55 am

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

Post by bradbrok »

Hello, I'm trying to install via the script but it keeps failing at:

Code: Select all

SELECT 1-5: 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!
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 792, in get_page
    "Cache-Control": "max-age=600",
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
    total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
./adafruit-pitft-helper2.sh: line 145: warning: command not found
[PITFT] Exiting due to error: Unable to install software
I did it once before a day before this but had to reflash the drive today, and now I am getting this every time for every option.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

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

Post by adafruit2 »

do you have pip installed? try "sudo apt-get install python-pip"

User avatar
bradbrok
 
Posts: 2
Joined: Tue Mar 03, 2015 3:55 am

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

Post by bradbrok »

I just tried it again, I did have PIP installed. Reinstalled and it still had an issue where it was timing out trying to install packages. I tried it again this morning and it worked without issue.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

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

Post by adafruit2 »

yay!

User avatar
ulaB
 
Posts: 2
Joined: Wed Nov 29, 2017 6:10 pm

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

Post by ulaB »

adafruit2 wrote:ok here's my first draft! its for all pitft acreens.

$ cd ~
$ wget https://raw.githubusercontent.com/adafr ... helper2.sh
$ chmod +x adafruit-pitft-helper2.sh
$ sudo ./adafruit-pitft-helper2.sh

you can select text console or PIXEL graphical!
Thank you for this. I've fiddled around with the old instructions for a week, Stretch, Jessie, the images you provide, uncountable tips and tricks via Google, but nothing worked correctly on my RPI3 / PiTFT+ 3.5r.

I finally got it running on Stretch with this helper script. Flashed a new image with /boot/ssh and /boot/wpa_supplicant.conf for a headless install. Then logged in with ssh and did: passwd; sudo apt update; sudo apt upgrade; sudo dpkg-reconfigure locales; sudo raspi-config --expand-rootfs; sudo reboot; and then your script. And it works fine.

The only confusing thing were the two questions:
Would you like the console to appear on the PiTFT display? [y/n]
I didn't understand this as "only console". I was expecting the console lines during boot, but not stop at a console prompt. Perhaps you can ask "Do you want the console [c] or the graphical interface [g] to be displayed?" or similar instead?

And I wasn't sure what to make of the other question either:
Would you like the HDMI display to mirror to the PiTFT display? [y/n]
With testing I got a blank screen with "n" as answer and the X I was looking for with a "y". Why would I want a blank screen? :)

Oh and it works fine being called multiple times while trying the different options too.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

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

Post by adafruit2 »

if you have PIXEL running, you can output it to HDMI and then mirror that to the pitft

User avatar
ulaB
 
Posts: 2
Joined: Wed Nov 29, 2017 6:10 pm

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

Post by ulaB »

adafruit2 wrote:if you have PIXEL running, you can output it to HDMI and then mirror that to the pitft
Yes, but why would I want to say "n" to that question? Are there other X desktops that would work without the mirroring?

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

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

Post by adafruit2 »

it takes time/memory to do the mirroring. so if you wanted to just use pygame to display images directly, maybe better to skip HDMI and write directly!

User avatar
glendon144
 
Posts: 1
Joined: Fri Dec 22, 2017 11:47 pm

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

Post by glendon144 »

I recently purchased the 2.4" TFT resistive screen for my Raspberry Pi version 3b, which was already running Debian Stretch. After running the script, the console now shows up on the TFT screen, thanks! I will keep you posted, but because I am a Linux expert, I think I can take it from here. :-) The main thing I wanted was a text console on the little screen, and your script accomplished that much at least. After booting, the HDMI monitor still shows the "Welcome to the Raspberry Pi Desktop" splash screen. Nice work.

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

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

Post by ppweron »

Hi,

I followed this thread without success, graphical output in HDMI but nothing in PiTFT.

- pi2 + PiTFT 2.8 resistive
- fresh 2017-09-07-raspbian-stretch
- apt-get update & apt-get upgrade, then reboot
- and the following script options:

Code: Select all

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: 1
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...
[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...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
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
Created symlink /etc/systemd/system/default.target -> /lib/systemd/system/graphical.target.
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] 
Ideas are welcome. Thanks.

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

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

Post by adafruit2 »

what happens if you put the console on the PiTFT? can you take a photo of what it looks like on your Pi?

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

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

Post by ppweron »

Please see the picture below, thanks.
pi2+pitft2.8.png
pi2+pitft2.8.png (957.2 KiB) Viewed 1298 times

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

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

Post by adafruit2 »

ok so it definitely *works* just not fbcp mode? run the script but put it back into HDMI mirror mode, whats on your TV/HDMI?

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

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

Post by ppweron »

and what I see in HDMI output:
pi2+pitft2.8_hdmi_.jpg
pi2+pitft2.8_hdmi_.jpg (215.23 KiB) Viewed 1288 times
and in PiTFT a black screen.

Other thing I checked, the HDMI output from the clean Stretch (before runing PiTFT script ) the image is fitting perfectly in the monitor display after the script execution,
it is as seen in the picture.

Any idea? Thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”