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

linux: Update to 4.7 (WIP) #481

Merged
merged 9 commits into from Jul 31, 2016
Merged

linux: Update to 4.7 (WIP) #481

merged 9 commits into from Jul 31, 2016

Conversation

MilhouseVH
Copy link
Contributor

@MilhouseVH MilhouseVH commented Jun 23, 2016

Starting with 4.7-rc4. I'll update this PR as new release candidates appear, until eventually 4.7.0 is released and updated in this PR.

The following patches are now merged upstream in 4.7:

packages/linux/patches/4.7-rc4/linux-056-add_Adaptec_eHome_Infrared_Receiver.patch
packages/linux/patches/4.7-rc4/linux-063-xpad-add-3rdparty-controllers.patch
packages/linux/patches/4.7-rc4/linux-223-Fix-video-artifacts-with-tt-3600-s2-usb.patch
packages/linux/patches/4.7-rc4/linux-230-elgato-eyetv-sat-v3.patch

The following patch is no longer compatible - it may have been included in a different way, or needs to be updated, but currently doesn't apply:

projects/Generic/patches/linux/linux-030-BYT-CHT-SOC-audio-support.patch

@popcornmix
Copy link
Contributor

Pi config options look fine for me. Only difference with raspbian kernel is I chose CONFIG_NMI_LOG_BUF_SHIFT=12 but I'm happy with either setting.

@MilhouseVH
Copy link
Contributor Author

MilhouseVH commented Jun 24, 2016

CONFIG_TRIM_UNUSED_KSYMS=y breaks Generic, resulting in numerous unset symbols in various drivers:

[    8.869908] snd_hda_intel: Unknown symbol snd_hdac_bus_enter_link_reset (err 0)
[    8.869924] snd_hda_intel: Unknown symbol azx_probe_codecs (err 0)
[    8.869944] snd_hda_intel: Unknown symbol azx_init_streams (err 0)
[    8.869980] snd_hda_intel: Unknown symbol azx_stop_all_streams (err 0)
[    8.869988] snd_hda_intel: Unknown symbol snd_hdac_bus_free_stream_pages (err 0)
[    8.869995] snd_hda_intel: Unknown symbol snd_hdac_bus_exit (err 0)
...
[    8.957673] rt2800pci: Unknown symbol rt2x00mmio_uninitialize (err 0)
[    8.957686] rt2800pci: Unknown symbol rt2x00mac_sw_scan_complete (err 0)
...
[    9.515297] nvidia: Unknown symbol cpufreq_get (err 0)
[    9.515312] nvidia: Unknown symbol set_memory_uc (err 0)
[    9.515322] nvidia: Unknown symbol drm_open (err 0)

etc., and a non-functional xorg (and probably other drivers).

Since this seems to be an inappropriate setting for Generic I've disabled it on RPi/RPi2 too, even though they seemed fine without it (but maybe would fail later when loading overlays etc.).

With this change RPi, RPi2 and Generic (Revo3700/ION2) are all booting and apparently running normally with 4.7-rc4.

Here's some background on this option: https://lwn.net/Articles/679934/

Size differences with this option enabled/disabled (Generic build):

CONFIG_TRIM_UNUSED_KSYMS=y
-rw-r--r--  1 neil neil  11451648 Jun 24 02:41 kernel.img
-rw-r--r--  1 neil neil 213987328 Jun 24 02:41 SYSTEM
# CONFIG_TRIM_UNUSED_KSYMS is not set
-rw-r--r--  1 neil neil  11501248 Jun 24 03:23 kernel.img
-rw-r--r--  1 neil neil 214188032 Jun 24 03:23 SYSTEM

A modest increase of 250KB by disabling this option (in return for a working system!)

@MilhouseVH
Copy link
Contributor Author

4.7-rc4 test build #0623x: RPi, RPi2, Generic

@piotrasd
Copy link
Contributor

piotrasd commented Jun 24, 2016

projects/Generic/patches/linux/linux-030-BYT-CHT-SOC-audio-support.patch

New patch will available after relase final kernel 4.7 :( so on RC stage no update for now .

@MilhouseVH
Copy link
Contributor Author

Updated to 4.7-rc5.

@MilhouseVH
Copy link
Contributor Author

Updated to 4.7-rc6.

@MilhouseVH
Copy link
Contributor Author

Bump RTL8812AU driver to fix hard lock on RPi2.

@MilhouseVH
Copy link
Contributor Author

Updated to 4.7-rc7.

@MilhouseVH
Copy link
Contributor Author

Updated to 4.7.0 release.

Will add updated RPi kernel commits and firmware once @popcornmix has had a chance to rebase the rpi-4.7.y branch.

@MilhouseVH
Copy link
Contributor Author

Updated with RPi/RPi2 patches and firmware.

Mirror (web03) needs updating with new 4.7 source tarball and bcm2835 mkpkg in order for anyone to build - I don't have access.

I'll include this PR in my test builds (as I have been for the last month), I'll remove "Don't Merge" label on Wednesday assuming there are no issues.

@MilhouseVH
Copy link
Contributor Author

Mirror updated with4.7 tarball and latest firmware.

@piotrasd Are there any 4.7 audio patches for Cherrytrail?

@lrusak
Copy link
Member

lrusak commented Jul 27, 2016

The audio patches haven't been rebased yet. We can add them later.

how close are we to merging this?

@MilhouseVH
Copy link
Contributor Author

how close are we to merging this?

Personally I think it's ready to go - I see no point continuing with 4.6.x.

There is this conversation raspberrypi/linux@3a4a43e#comments - assuming clivem doesn't respond with any changes then I think we can merge as-is, otherwise I can force push (or if you've already merged I'll push another PR). I'd suggest waiting until Thursday to merge.

@MilhouseVH
Copy link
Contributor Author

MilhouseVH commented Jul 27, 2016

Forgot we need to install the new libbrcmEGL/libbrcmGLESv2 libraries with latest firmware. See raspberrypi/firmware#625.

We create symbolic links for the old libraries for backward compatibility.

@MilhouseVH
Copy link
Contributor Author

Updated with fix for IR autorepeat - thanks @HiassofT

@MilhouseVH
Copy link
Contributor Author

Updated with an i915/ Valley View patch that I've been using since #520 and which may fixe some display problems.

That's pretty much the last of the commits I've been carrying around in my builds... this should be good to go now.

@lrusak
Copy link
Member

lrusak commented Jul 30, 2016

@MilhouseVH can you update the date of the commits?

git rebase --ignore-date upstream/master

then force push

@MilhouseVH
Copy link
Contributor Author

Done!

@piotrasd
Copy link
Contributor

@piotrasd Are there any 4.7 audio patches for Cherrytrail?

Not yet :( i will let you know

@lrusak lrusak merged commit 63a74ad into LibreELEC:master Jul 31, 2016
@MilhouseVH
Copy link
Contributor Author

Kodi libEGL/libGLESv2 build failures are fixed by #592.

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

Successfully merging this pull request may close these issues.

None yet

4 participants