0

Snake Eyes problem after upgrading kernel to 4.19 on PI3B
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Snake Eyes problem after upgrading kernel to 4.19 on PI3B

by f1iqf on Mon Jun 10, 2019 9:42 pm

Hi !

I have a project running on a PI3B using Adafruit Snake Eyes (2 eyes option / IPS pannels).
It was working very beautifuly (on raspian stretch lite 4.14 April 2019 version) untill last weekend when I updated the PI (sudo apt update then sudo apt upgrade);
Then nothing was working any more (one eye was fine, second one very glitchy). Other things like sound were glitchy as well.

I tried on an other PI, with a freshly flashed sd card (still on raspian stretch lite 4.14 April 2019 version) without any other software, only the PI_Eyes software.
I was working fine. I did the upgrade again, and it stopped working again.

Then I redid the same : but upgraded the PI before and THEN installed the PI software : still bad.

Then I redid the same, but installed the updated packages one by one to find the one that is making trouble with adafruit pi_eyes software (installed one package, rebooted, etc).
The package causing problem is raspberrypi-kernel/stable updating the kernel to 4.19.42-v7+. I have complete logs of the work of the upgrade available if you need...

Some more information :
I can make the pi_eyes somewhat working by launching fbx2 at a much lower bitrate (previously I was using the default 96Mhz to now about 8Mhz ; it is less glitchy (but not perfect) however the refresh rate of the picture is so bad that I do not wish to use it (it is ugly).

I also took snapshots of the CPU usage of both processes "python eyes.py" and "fbx2" with both kernel versions :
sudo ps -p `pgrep python` -o %cpu,%mem,cmd

Kernel 4.14 (Working perfectly) :
%CPU %MEM CMD
74.7 3.4 python eyes.py --radius 240

Kernel 4.19 (not working) :
%CPU %MEM CMD
74.9 3.4 python eyes.py --radius 240

Now for fbx2: sudo ps -p `pgrep fbx2` -o %cpu,%mem,cmd

Kernel 4.14 (Working perfectly) :
%CPU %MEM CMD
112 0.2 /boot/Pi_Eyes/fbx2 -i

Kernel 4.19 (not working) :
%CPU %MEM CMD
29.6 0.2 /boot/Pi_Eyes/fbx2 -i


In conclusion, I think there is a compatibility issue between the fbx2 software (the process that is getting data from the screen and sending it using SPI to both screens) and the new Kernel 4.19. Especialy for the second SPI1 (SPI0 for the first eye seem to be perfect).

Can you please help me ?

Thank you very much in advance / Nicolas (New York/Manhattan)

f1iqf
 
Posts: 1
Joined: Sat Dec 11, 2010 8:36 pm

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by adafruit2 on Tue Jun 11, 2019 9:34 pm

our solution for now is just to keep running on 4.14 - burn a new raspbian with 4.14 and don't upgrade - linux breaks stuff a lot, upgrading will always cause breakage!

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

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by Geeky_Tim on Sun Jul 07, 2019 1:57 pm

I've just started using my snake eyes (despite having 12 real ones in the house!). I'm using the latest OS (Buster) on a Pi 3, but I am only seeing a single eye on one of the displays. The other is blank. I have crossed my eyes over, and the same one is working, meaning both TFT screens and the wires are working fine. I have checked all soldering (I'm not brilliant, but I've been soldering Pi stuff for quite a number of years and produce my own kits), so I don't think there is anything wrong with that.

I suspect it may be Raspbian. I always use the latest, and delete old versions, despite knowing it would be good to have old versions. Have you tried on Buster? Does it work? Where can I get a really old version of Raspbian from?

Thanks

Tim

Geeky_Tim
 
Posts: 16
Joined: Sat Jun 27, 2015 7:40 am

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by adafruit2 on Sun Jul 07, 2019 2:07 pm


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

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by Geeky_Tim on Sun Jul 07, 2019 2:39 pm

Thanks - found an image, but it's not allowing me to SSH in despite SSH being enabled. I will get there.....

Geeky_Tim
 
Posts: 16
Joined: Sat Jun 27, 2015 7:40 am

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by Geeky_Tim on Mon Jul 08, 2019 3:21 pm

Installed on Raspbian 2018-03-13, and STILL only getting one eye :-( Could there be a problem with the board?

Geeky_Tim
 
Posts: 16
Joined: Sat Jun 27, 2015 7:40 am

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by adafruit2 on Mon Jul 08, 2019 3:28 pm

post up a pic of the non working screen and we'l look :)

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

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by Geeky_Tim on Mon Jul 08, 2019 3:30 pm

I unplugged my HDMI screen and rebooted. Nothing came on screen then. So I plugged in the screen again and I got two eyes on the HDMI screen but still nothing on the TFT screens.

On reboot, again I get one eye on the TFT and two on the screen.

Geeky_Tim
 
Posts: 16
Joined: Sat Jun 27, 2015 7:40 am

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by Geeky_Tim on Mon Jul 08, 2019 3:35 pm

May be getting somewhere now. Once again crossed my eyes over, and now the left one is working and the right is not. That takes me back once again to a non-working screen or cables..... watch this space.

Geeky_Tim
 
Posts: 16
Joined: Sat Jun 27, 2015 7:40 am

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by Geeky_Tim on Mon Jul 08, 2019 3:40 pm

Yay!!!! I have two eyes!! Turned out to be the dupont wires I was using - must be an issue with one of them.

They are creepy!

Geeky_Tim
 
Posts: 16
Joined: Sat Jun 27, 2015 7:40 am

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by adafruit2 on Mon Jul 08, 2019 4:10 pm

yay success

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

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by centralHarlem on Sat Jul 20, 2019 9:43 am

I’m having the exact same problem as the original poster here — second eye went all wonky. I’ve swapped out everything (monitors, cables, even the bonnet and the Pi itself) and the problem persists. It’s easy to believe that the OS is the problem at this point.

What is the most recent version known to be working? Which dated directory at http://downloads.raspberrypi.org/raspbian/images/ for example?

centralHarlem
 
Posts: 6
Joined: Tue Jun 19, 2018 7:00 pm

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by adafruit2 on Sat Jul 20, 2019 12:05 pm

according to above, 2018-03-13 works

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

Re: Snake Eyes problem after upgrading kernel to 4.19 on PI3

by centralHarlem on Sat Jul 20, 2019 12:55 pm

Per my experimentation, 2019-04-08 also works.

centralHarlem
 
Posts: 6
Joined: Tue Jun 19, 2018 7:00 pm

Please be positive and constructive with your questions and comments.