From 7df80c2d7fff86757125e567299c77f9af748351 Mon Sep 17 00:00:00 2001 From: mikeeq Date: Tue, 29 Oct 2019 18:21:41 +0100 Subject: [PATCH 1/5] F31 Linux v5.3.8 --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 7835889..7ddd9fc 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh -FEDORA_KERNEL_BRANCH_NAME=f30 -FEDORA_KERNEL_COMMIT_HASH=bb6f824ef6d6471ed1ba20779cdbd252a5936fc6 # Linux v5.3.5 - https://src.fedoraproject.org/rpms/kernel/commits/f30 +FEDORA_KERNEL_BRANCH_NAME=f31 +FEDORA_KERNEL_COMMIT_HASH=f60b42ed46ef58380467f69991c9b772b1327c10 # Linux v5.3.8 - https://src.fedoraproject.org/rpms/kernel/commits/f30 ### Debug commands echo "FEDORA_KERNEL_BRANCH_NAME=$FEDORA_KERNEL_BRANCH_NAME" From b298d635e327e584c5e9ea7aeaaa80efc66083d9 Mon Sep 17 00:00:00 2001 From: mikeeq Date: Tue, 29 Oct 2019 18:28:16 +0100 Subject: [PATCH 2/5] Patch number fix (kernel.spec Patch506 under Patch510...) --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 7ddd9fc..bb75b1c 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh FEDORA_KERNEL_BRANCH_NAME=f31 -FEDORA_KERNEL_COMMIT_HASH=f60b42ed46ef58380467f69991c9b772b1327c10 # Linux v5.3.8 - https://src.fedoraproject.org/rpms/kernel/commits/f30 +FEDORA_KERNEL_COMMIT_HASH=f60b42ed46ef58380467f69991c9b772b1327c10 # Linux v5.3.8 - https://src.fedoraproject.org/rpms/kernel/commits/f31 ### Debug commands echo "FEDORA_KERNEL_BRANCH_NAME=$FEDORA_KERNEL_BRANCH_NAME" @@ -31,6 +31,9 @@ git reset --hard $FEDORA_KERNEL_COMMIT_HASH git checkout -b fedora_patch_src dnf -y builddep kernel.spec +### Fixes for kernel.spec +sed -i "s/Patch506/Patch516/g" kernel.spec + ### Apply patches for patch_file in $(ls ../patches) do From 536a0572941513c30f8ad1cde01a6d1d90729a33 Mon Sep 17 00:00:00 2001 From: mikeeq Date: Tue, 19 Nov 2019 12:27:34 +0000 Subject: [PATCH 3/5] Update kernel to 5.3.11 F31 --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index bb75b1c..ae59ea3 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh FEDORA_KERNEL_BRANCH_NAME=f31 -FEDORA_KERNEL_COMMIT_HASH=f60b42ed46ef58380467f69991c9b772b1327c10 # Linux v5.3.8 - https://src.fedoraproject.org/rpms/kernel/commits/f31 +FEDORA_KERNEL_COMMIT_HASH=a4828aea55cf33e5cacf60ec2482496cf309aa18 # Linux v5.3.11 - https://src.fedoraproject.org/rpms/kernel/commits/f31 ### Debug commands echo "FEDORA_KERNEL_BRANCH_NAME=$FEDORA_KERNEL_BRANCH_NAME" @@ -32,7 +32,7 @@ git checkout -b fedora_patch_src dnf -y builddep kernel.spec ### Fixes for kernel.spec -sed -i "s/Patch506/Patch516/g" kernel.spec +sed -i "s/Patch509/Patch516/g" kernel.spec ### Apply patches for patch_file in $(ls ../patches) From 616d7ae691777ece2aa18dffd8f0dee3f27dddd2 Mon Sep 17 00:00:00 2001 From: mikeeq Date: Tue, 19 Nov 2019 13:03:53 +0000 Subject: [PATCH 4/5] Update README --- README.md | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1f3f6b1..42c2682 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,15 @@ # mbp-fedora-kernel -Fedora 30 kernel with Apple T2 patches built-in (Macbooks produced >= 2018). +Fedora kernel with Apple T2 patches built-in (Macbooks produced >= 2018). -Fedora 30 ISO (with mbp-fedora-kernel builtin) - +Fedora ISO (with mbp-fedora-kernel builtin) - + +There are multiple version of the kernel maintained on seperate branches (all compiled versions could be found in releases section): + +- 5.4-f31 - +- 5.3-f31 - +- 5.3-f30 - +- 5.1-f30 - ## CI status @@ -17,23 +24,27 @@ Travis kernel publish status - : - integrate `roadrunner2/macbook12-spi-driver` and `MCMrARM/mbp2018-bridge-drv` drivers - add `kernel-headers` rpm generation -### Known issues - -- 5.2 kernel - random kernel panics - - - - > Tested on: Macbook Pro 15,2 13" 2019 i5 TouchBar Z0WQ000AR MV972ZE/A/R1 -#### Not working +### Known issues + +- 5.2<= kernel random kernel panics - just disable thunderbolt driver -- Microphone + ``` + ➜ cat /etc/modprobe.d/blacklist.conf + blacklist applesmc + blacklist thunderbolt + ``` + - it's working on 5.1, because 5.1 is failing to load thunderbolt firmware +- Microphone (it's recognised with new apple t2 sound driver, but there is a low mic volume amp) - Dynamic audio outputs change (on connecting/disconnecting headphones jack) - Suspend/Resume (sleep mode) +- Thunderbolt #### Working with upstream stable kernel 5.1 - Display/Screen -- Thunderbolt 3/USB-C +- USB-C - Battery/AC - Ethernet/Video USB-C adapters - Bluetooth @@ -83,7 +94,8 @@ and the .txt to something like /lib/firmware/brcm/brcmfmac4364-pcie.Apple Inc.-M - GitHub issue (RE history): - VHCI+Sound driver (Apple T2): -- hid-apple keyboard backlight patch: +- AppleSMC driver (fan control): +- hid-apple keyboard backlight patch: - TouchBar driver: - Kernel patches (all are mentioned in github issue above): - ArchLinux kernel patches: From 6ff4767e4e3ccb599abca76f26e343a10fa6f86c Mon Sep 17 00:00:00 2001 From: mikeeq Date: Tue, 19 Nov 2019 17:48:02 +0000 Subject: [PATCH 5/5] Update docker build image to f31 --- .drone.yml | 2 +- build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0f89046..7e158d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ name: mbp-fedora-kernel steps: - name: build - image: fedora:30 + image: fedora:31 pull: always volumes: - name: build-artifacts diff --git a/build.sh b/build.sh index ae59ea3..c11359d 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/sh +## Update fedora docker image tag, because kernel build is using `uname -r` when defining package version variable FEDORA_KERNEL_BRANCH_NAME=f31 FEDORA_KERNEL_COMMIT_HASH=a4828aea55cf33e5cacf60ec2482496cf309aa18 # Linux v5.3.11 - https://src.fedoraproject.org/rpms/kernel/commits/f31