Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White Screen in Media Center HAT after Pi Hole installation #17

Open
sensemonster opened this issue Nov 29, 2021 · 11 comments
Open

White Screen in Media Center HAT after Pi Hole installation #17

sensemonster opened this issue Nov 29, 2021 · 11 comments

Comments

@sensemonster
Copy link

sensemonster commented Nov 29, 2021

Instructions followed as per https://learn.pi-supply.com/make/pi-hole-monitoring-with-the-media-center-hat/

Desktop Image installed via Raspberry Pi Imager v1.6.2

The following may be useful for diagnosis:

pi@raspberrypi:~ $ apt policy raspberrypi-kernel
raspberrypi-kernel:
Installed: 1:1.20211029-1
Candidate: 1:1.20211029-1
Version table:
*** 1:1.20211029-1 500
500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
100 /var/lib/dpkg/status
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux

@tvoverbeek
Copy link
Contributor

Bullseye support for tft displays has changed.
From Adafruit:
The latest Raspberry Pi Bullseye release is new and may have issues with the PiTFT. In that case, you can try the previous buster release.

For now downgrade to buster.

@sensemonster
Copy link
Author

Ah! thanks. Will try that.

@sensemonster
Copy link
Author

Just like to add a comment after successfully installing: If apt upgrade is executed by following guidance from following message during the installation then the installation will break:

[i] It is recommended to update your OS after installing the Pi-hole!

So, I repeated the process by a fresh Buster download (including Desktop), I had to do apt update to get the installation to continue:

`
[✗] Update local cache of available packages
Error: Unable to update package cache. Please try "sudo apt-get update"pi@raspberrypi:~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
pi@raspberrypi:~ $

Then tried ...

pi@raspberrypi:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
E: Repository 'http://archive.raspberrypi.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:3 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.8 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
Fetched 13.6 MB in 13s (1,082 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
430 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@raspberrypi:~ $

Ignored the upgrade suggestion and tried again...

pi@raspberrypi:~ $ curl -sSL https://install.pi-hole.net | bash

[i] Root user check
[i] Script called with non-root privileges
The Pi-hole requires elevated privileges to install and run
Please check the installer for any concerns regarding this requirement
Make sure to download this script from a trusted source

[✓] Sudo utility check

[✓] Root user check

    .;;,.
    .ccccc:,.
     :cccclll:.      ..,,
      :ccccclll.   ;ooodc
       'ccll:;ll .oooodc
         .;cll.;;looo:.
             .. ','.
            .',,,,,,'.
          .',,,,,,,,,,.
        .',,,,,,,,,,,,....
      ....''',,,,,,,'.......
    .........  ....  .........
    ..........      ..........
    ..........      ..........
    .........  ....  .........
      ........,,,,,,,'......
        ....',,,,,,,,,,,,.
           .',,,,,,,,,'.
            .',,,,,,'.
              ..'''.

[✓] Update local cache of available packages

[✓] Checking apt-get for upgraded packages... 407 updates available
[i] It is recommended to update your OS after installing the Pi-hole!

[i] Checking for / installing Required dependencies for OS Check...
[✓] Checking for grep
[i] Checking for dnsutils (will be installed)

[i] Processing apt-get install(s) for: dnsutils, please wait...

(Reading database ... 91789 files and directories currently installed.)
...

[✓] Supported OS detected
[i] Checking for / installing Required dependencies for this install script...
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[✓] Checking for ca-certificates

[i] SELinux not detected

[i] Using interface: eth0
[i] Using upstream DNS: OpenDNS (ECS, DNSSEC) (208.67.222.222, 208.67.220.220)
[i] IPv4 address: 192.168.1.186/24
[✓] Set IP address to 192.168.1.186
[i] You may need to restart after the install is complete
[i] Found IPv6 GUA address
[i] IPv6 address: 2a00:23c7:8583:5a01:2091:9914:6ee1:508b
[i] Web Interface On
[i] Web Server On
[i] Logging On.
[✗] Check for existing repository in /etc/.pihole
[i] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole...HEAD is now at b5e0f14 Merge pull request #4405 from pi-hole/development
[✓] Clone https://github.com/pi-hole/pi-hole.git into /etc/.pihole

[✗] Check for existing repository in /var/www/html/admin
[i] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin...HEAD is now at ee50954 Merge pull request #1935 from pi-hole/devel
[✓] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin

[i] Checking for / installing Required dependencies for Pi-hole software...
[✓] Checking for cron
[✓] Checking for curl
[✓] Checking for iputils-ping
[✓] Checking for lsof
[✓] Checking for psmisc
[✓] Checking for sudo
[✓] Checking for unzip
[i] Checking for idn2 (will be installed)
[i] Checking for sqlite3 (will be installed)
[✓] Checking for libcap2-bin
[i] Checking for dns-root-data (will be installed)
[✓] Checking for libcap2
[i] Checking for lighttpd (will be installed)
[i] Checking for php-common (will be installed)
[i] Checking for php-cgi (will be installed)
[i] Checking for php-sqlite3 (will be installed)
[i] Checking for php-xml (will be installed)
[i] Checking for php-intl (will be installed)
[i] Checking for php-json (will be installed)
[i] Processing apt-get install(s) for: idn2 sqlite3 dns-root-data lighttpd php-common php-cgi php-sqlite3 php-xml php-intl php-json, please wait...
...
`
PADD_TFT_display_MediaCentreHAT

@sensemonster
Copy link
Author

sensemonster commented Nov 30, 2021

Further information just in case someone ends up doing the same as me. raspi-config had to be updated so that the Boot/Auto Login options shown in this guide are available.

Final OS information at end of successful installation:

pi@raspberrypi:~ $ apt policy raspberrypi-kernel
raspberrypi-kernel:
Installed: 1.20190709-1
Candidate: 1:1.20211029-1buster
Version table:
1:1.20211029-1
buster 500
500 http://archive.raspberrypi.org/debian buster/main armhf Packages
*** 1.20190709-1 100
100 /var/lib/dpkg/status
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~ $

@rpi-tom
Copy link

rpi-tom commented Jan 9, 2022

Sensemonster - could you run through the steps you used to install this and the old RPi desktop packages you used to make it work?
I am trying to get this hat working on an old RPi 4B, and unclear as to whether its the version of Buster I am using or the fact I am running an RPi. Any guidance you can give is appreciated.

@sensemonster
Copy link
Author

@rpi-tom how far are you getting when you try the approach I took?

@rpi-tom
Copy link

rpi-tom commented Jan 10, 2022

@sensemonster I have not tried installing Pihole yet as I still cannot get the screen to work with a vanilla RPi desktop installation.
I have attempted an install on the following OS versions using Raspberry Pi Imager v1.6.2 to create the SD card:

  • Bullseye 2021-10-30 [screen always white]
  • Buster 2021-12-02 [screen black and wouldn't turn on]

I would be interested in what you installed as the base OS, and a link for where the IMG can be downloaded from.
Were you able to get the screen working before you installed PiHole?

@sensemonster
Copy link
Author

The HAT display was completely dark until I completed the PiHole and PADD steps described in the guide I referenced earlier in my post (https://learn.pi-supply.com/make/pi-hole-monitoring-with-the-media-center-hat/)

@rpi-tom
Copy link

rpi-tom commented Jan 12, 2022

@sensemonster - eventually managed to get this working when I dug out an old archived Buster image. The more recent versions do not work for some reason.
I ended up using this: https://downloads.raspberrypi.org/raspbian_full/images/raspbian_full-2019-07-12/

@tvoverbeek
Copy link
Contributor

@sensemonster @rpi-tom
I just committed a fix for the current buster version to the media center hat repository.
The problem is the gpio definitions in the media-center device-tree overlay.
Different kernel versions need different gpio settings.
The original overlay (as in the eeprom) was used for the 4.x kernels. and results in a white screen on the current kernel (5.10.63).
The overlay in the current buster release is for the 5.4.x kernel and results in a black screen.

Replace the media-center.dtbo overlay in /boot/overlays with the fixed one now in the repository (https://github.com/PiSupply/Media-Center-HAT/blob/master/Software/media-center.dtbo).
Works for me on the current buster release with kernel 5.10.63

Note; You will need to add an empty dtoverlay=line to /boot/config.txt before any dtparam and dtoverlay statements. This to prevent the eeprom version from loading.

@sensemonster
Copy link
Author

Many thanks @tvoverbeek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants