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 Masterdka on Sat Nov 25, 2017 10:15 am

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

Masterdka
 
Posts: 2
Joined: Wed Nov 22, 2017 12:34 am

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

by bradbrok on Sun Nov 26, 2017 10:01 pm

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

Code: Select all | TOGGLE FULL SIZE
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.

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

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

by adafruit2 on Sun Nov 26, 2017 10:21 pm

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

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

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

by bradbrok on Mon Nov 27, 2017 2:38 pm

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.

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

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

by adafruit2 on Mon Nov 27, 2017 2:51 pm

yay!

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

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

by ulaB on Wed Nov 29, 2017 6:34 pm

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.

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

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

by adafruit2 on Wed Nov 29, 2017 6:44 pm

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

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

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

by ulaB on Wed Nov 29, 2017 7:20 pm

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?

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

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

by adafruit2 on Wed Nov 29, 2017 7:22 pm

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!

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

Please be positive and constructive with your questions and comments.