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

i.MX6 4.4 kernel: update the patches set to all known in the wild #883

Merged
merged 1 commit into from Oct 30, 2016
Merged

i.MX6 4.4 kernel: update the patches set to all known in the wild #883

merged 1 commit into from Oct 30, 2016

Conversation

jerome-benoit
Copy link
Contributor

There's DVB and HID input drivers update, a bug fix to eMMC card booting, etc.

It's a safe patches set used by a lot of projects using kernel 4.4 for i.MX6

Signed-off-by: Jérôme Benoit jerome.benoit@piment-noir.org

There's DVB and HID input drivers update, a bug fix to eMMC card booting, etc.

It's a safe patches set used by a lot of projects using kernel 4.4 for i.MX6

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
@vpeter4
Copy link
Contributor

vpeter4 commented Oct 26, 2016

I really doubt that out there are users which are using all those remote controls and dvb devices. But probably can't hurt to include them anyway.

Btw: which projects using kernel 4.4 for i.MX6 (because you wrote a lot)? I don't know many of them.

@jerome-benoit
Copy link
Contributor Author

armbian, xbian, RPI v1 v2 and v3 projects are based on 4.4 often with some of the patches here, all GNU/Linux distributions that ship ARMv7 variant have used 4.4 at some point (Debian, Fedora, Ubuntu, OpenSUSE, Arch Linux ARM, etc.)

Fedora 24 is based on 4.7.X and lack OpenEGL support on i.MX6 but work with some bugs.

The patches set is tested here since 24 h on playlist that loop without any issues so far.

Regards.

@chewitt
Copy link
Member

chewitt commented Oct 26, 2016

@jerome-benoit LE has a minimalist approach towards hardware support. We are happy to add support for specific things that will be used (for a new hardware platform or a specific user request) but we do not speculatively add support for things that might be used. This approach helps us avoid "the death of a thousand cuts" and unnecessary bloat in our images. Attempting to support all possible devices is the job of general purpose distro's.

NB: If we add support we generally try to keep things in-sync across multiple build-system projects. In the case of iMX6 we also need to consider that we are downstream from mk01's Xbian work and some changes may be more appropriate there to reduce our local patch set.

@jerome-benoit
Copy link
Contributor Author

jerome-benoit commented Oct 26, 2016

Please read the patches set, it simply cover support for hardware that is commonly used and not might used by other projects.

New DVB drivers support and bugs fixed in the kernel DVB layer is not optional to a mediacenter distro.
New joysticks support and bugs fixed on very common one like PS/3 or XBOX is not optional to distribution centered on kodi that have support for games.

I agree that the handling of kernel patches in LE should be done differently but since LE do not have a smart way to share them across projects and same major kernel version, for now I've added them where it's relevant and known to work flawlessly. Make use of them across more projects can be done later when/if LE have the infrastructure to share patches across projects with same major kernel version. And as a bonus the patches set will benefit of some testing by i.MX6 users.

And pushing them in your i.MX6 upstream is orthogonal to adding them in LE, it's a simple matter of "git rm" when it's merged.

@vpeter4
Copy link
Contributor

vpeter4 commented Oct 26, 2016

There are not much imx6 users and I really doubt there will be anyone using any new dvb device or remote. Most only needs working cec.

Maybe @kivutar can comment if anything is useful for Lakka.

@kivutar
Copy link
Contributor

kivutar commented Oct 26, 2016

Yeah OUYA can be useful.

@jerome-benoit
Copy link
Contributor Author

On Wed, 26 Oct 2016 11:06:19 -0700 in
LibreELEC/LibreELEC.tv/pull/883/c256430303@github.com, "Peter V."
notifications@github.com wrote:

There are not much imx6 users and I really doubt there will be anyone
using any new dvb device or remote. Most only needs working cec.

Probably because there's no documentation detailing the
installation and setup of a DVB device on the wiki ;-)

The joystick support will be more important with the games repo in Kodi.

Maybe @kivutar can comment if anything is useful for Lakka.

Lakka already use this patches set with a 3.14.X kernel base.
They also have added support for the valve hardware.

Cheers,

Jérôme Benoit aka fraggle
Piment Noir - http://piment-noir.org
OpenPGP Key ID : 9FE9161D
Key fingerprint : 9CA4 0249 AF57 A35B 34B3 AC15 FAA0 CB50 9FE9 161D

@jerome-benoit
Copy link
Contributor Author

On Wed, 26 Oct 2016 11:06:19 -0700 in
LibreELEC/LibreELEC.tv/pull/883/c256430303@github.com, "Peter V."
notifications@github.com wrote:

There are not much imx6 users and I really doubt there will be anyone
using any new dvb device or remote. Most only needs working cec.

In fact this patches set is not an improvement, it fix a regression
since the switch to linux kernel version 4.4 for i.MX6.

LE were shipping stable version based on 3.14 with this patches set
and even more.
LE is now shipping alpha version based on 4.4 without them.

Regards,

Jérôme Benoit aka fraggle
Piment Noir - http://piment-noir.org
OpenPGP Key ID : 9FE9161D
Key fingerprint : 9CA4 0249 AF57 A35B 34B3 AC15 FAA0 CB50 9FE9 161D

@vpeter4
Copy link
Contributor

vpeter4 commented Oct 27, 2016

imx6 le project will always be far, far back from other ones.
And it is not me who decide about including such patches.

@jerome-benoit
Copy link
Contributor Author

On Thu, 27 Oct 2016 08:57:38 -0700 in
LibreELEC/LibreELEC.tv/pull/883/c256687850@github.com, "Peter V."
notifications@github.com wrote:

And it is not me who decide about including such patches.

If LE project policy is to ship regression between release, do not
include them :-)

Jérôme Benoit aka fraggle
Piment Noir - http://piment-noir.org
OpenPGP Key ID : 9FE9161D
Key fingerprint : 9CA4 0249 AF57 A35B 34B3 AC15 FAA0 CB50 9FE9 161D

@vpeter4
Copy link
Contributor

vpeter4 commented Oct 28, 2016

Seems you are offering yourself for imx6 project head? Just let us know - but keep CEC working (which is broken atm) and keep my LVDS display working on Udoo dual/quad (which is also broken). And I will finally have much more free time :D

Oh, and I forgot TBS matrix v1.1 and v2.3.

@kivutar
Copy link
Contributor

kivutar commented Oct 28, 2016

This PR breaks these two things?

@vpeter4
Copy link
Contributor

vpeter4 commented Oct 28, 2016

No, both things are broken without this pr in master.

@kivutar
Copy link
Contributor

kivutar commented Oct 28, 2016

Then if this PR is not breaking things, and fixes a regression on eMMC I think it's worth merging it. @jerome-benoit said they were safe and well tested.
That plus the various joypad support added.

@jerome-benoit
Copy link
Contributor Author

Le 28/10/2016 à 14:54, Peter V. a écrit :

Seems you are offering yourself for imx6 project head?

Not at all, just a power user that can't use anymore is AverTV Volar HD
2 key and PS/3 joypad with his cubox-i after switching to LE alpha ;-)
Then finally found the reason and wanted to fix it.

Just let us know - but keep CEC working (which is broken atm) and keep
my LVDS display working on Udoo dual/quad (which is also broken). And
I will finally have much more free time :D

Is it broken on other hardware too ?

Regards,

Jérôme Benoit aka fraggle
Piment Noir - http://piment-noir.org
OpenPGP Key ID : 9FE9161D
Key fingerprint : 9CA4 0249 AF57 A35B 34B3 AC15 FAA0 CB50 9FE9 161D

@vpeter4
Copy link
Contributor

vpeter4 commented Oct 28, 2016

Let's merge then.
And move on to new challenges :)

@gdachs
Copy link
Contributor

gdachs commented Oct 28, 2016

@jerome-benoit: I am not aware of any other LE platform with broken CEC. The only other platform that has CEC is Amlogic.
The kernel drivers and libcec adapters for Amlogic have not so much in common with the drivers of the i.MX6.

I forgot Raspberry Pi, but this drivers are even more different.

@vpeter4
Copy link
Contributor

vpeter4 commented Oct 28, 2016

Broken cec on imx6 has nothing to do with amlogic.
It happens from v7.90.007 where it is fine and with v7.90.008 doesn't work anymore. Seems kernel bump but didn't have time to check what went wrong (working on LVDS display atm).

@gdachs
Copy link
Contributor

gdachs commented Oct 28, 2016

@vpeter4: but that is exactly what I told. It was jerome-benoit that was asking for other platforms.

@sopparus
Copy link
Contributor

if it means anything this works fine for me (not using any of the extra features)

@vpeter4 vpeter4 merged commit ae704a7 into LibreELEC:master Oct 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants