Skip to content

Commit

Permalink
Fedora Linux v5.13.10 - mbp15 (#33)
Browse files Browse the repository at this point in the history
* Fedora Linux v5.13.5 - mbp16 (#28)

* Add provision script

* Squashed commit of the following:

commit f40b3ea
Author: mikeeq <miotk.mikolaj@gmail.com>
Date:   Tue Jun 22 18:16:35 2021 +0200

    Add shim packages to yum repo - x86_64

commit e7dae36
Author: mikeeq <miotk.mikolaj@gmail.com>
Date:   Tue Jun 22 18:15:35 2021 +0200

    Add shim packages to yum repo

commit 02a37aa
Author: mikeeq <miotk.mikolaj@gmail.com>
Date:   Tue Jun 22 12:49:17 2021 +0200

    Add grub2 packages to yum repo v2

commit 68c9746
Author: mikeeq <miotk.mikolaj@gmail.com>
Date:   Tue Jun 22 12:47:10 2021 +0200

    Add grub2 packages to yum repo

commit d6f1024
Author: Mikołaj Miotk <miotk.mikolaj@gmail.com>
Date:   Mon Jun 21 15:46:24 2021 +0200

    Merge to master (#24)

    * Fedora Linux v5.4.14

    * Add @aunali1 wifi patches for dynamic rambase address changing

    * Fedora Linux v5.4.17

    * Fedora Linux v5.4.19

    * MBP16 devices Addition - merging @jamlam fork (#5)

    * Add MBP16 devices

    * Update touchpad.patch

    * Formatting

    * Add mbp16 devices

    * Add mbp16 devices

    Co-authored-by: jamlam <jamesl@mbert.onmicrosoft.com>

    * Add lint job + fixes to @jamlam patches

    * CI Pipeline fixes

    * Added script for updating kernel on already installed mbp-fedora

    * Refresh discord invite and add wifi firmware link to README

    * Add installation of module compilation dependency to update_kernel_mbp.sh

    * Fedora Linux v5.5.5 (#6)

    * Fedora Linux v5.5.5

    * @aunali1 applesmc patches

    * Removing duplicated ci runs whenever pr is created

    * Add @aunali1 BT (ACPI) fix

    * Fedora Linux v5.5.6

    * New BT patch from @aunali1

    * Fedora Linux v5.5.7

    * [fix] update_kernel_mbp.sh - proper skipping macos boot option creation in grub

    * Add more information about WiFi issues

    * Feature/5.6.5 (#9)

    * Fedora Linux v5.6

    * Change branch to master

    * Commenting bt patch for other patches testing

    * Removing rambase patch for other patches testing

    * Bump to v5.6-rc7

    * Wifi.patch fix

    * Wifi.patch fix v2

    * Wifi.patch fix v3

    * Wifi.patch fix v4

    * Update script - RC download function

    * Update script - RC download function v2

    * Fedora Linux v5.6.4

    * Fedora Linux v5.6.5

    * Update readme

    * Change default branch for update script

    * Fedora Linux v5.6.6

    * Fix devm_led_classdev_register call (#10)

    You need to include leds.h as you call one of its methods.
    [hid-apple-mod.patch]

    * Revert "Fix devm_led_classdev_register call (#10)" (#11)

    This reverts commit 9782b82.

    * Fedora Linux v5.6.7

    * Fedora Linux v5.6.8

    * Fedora Linux v5.6.8 f32

    * Fedora Linux v5.6.11

    * Fedora Linux v5.6.13 + @aunali1 DP patch

    * Fedora Linux v5.6.15

    * [drone-CI] Fix linting job

    * Fedora Linux v5.6.19

    * Fedora Linux v5.6.19 v2

    * update_kernel_mbp.sh - dracut warning fix

    * update_kernel_mbp.sh - dracut warning fix v2

    * Fedora Linux v5.7 init (#15)

    * Fedora Linux v5.7 init

    * Test build without wifi.patch

    * Port wifi.patch

    * Port wifi.patch v2

    * Switch default branch for update_kernel_mbp sh

    * update_kernel_mbp.sh linting fix

    * Fedora Linux v5.7.7

    * Fedora Linux v5.7.8

    * Fedora Linux v5.7.12

    * README: Replace wifi instructions with link to t2linux wiki (#20)

    * Feature/v5.12 f34 (#23)

    * Initial commit v5.11-F34

    * update fedora images

    * update script

    * update script v2

    * 5.11.16

    * 5.11.16 libbpf

    * 5.11.16 libbpf v2

    * 5.11.16 libbpf v3

    * 5.11.16 test f34

    * 5.11.16 test f33

    * Update to 5.11.20

    * Update to 5.11.20 v2

    * Update to 5.11.20 v3

    * Test mbp15 wifi patch

    * revert mbp16 patch

    * Bump fedora kernel v2

    * Fedora kernel 5.12.8

    * Update kernel script

    * Add kernel patching fix

    * Add kernel patching fix v2

    * Test building on f34

    * Test building on f34 v2

    * Add kernel patching fix v3

    * Test build without wifi patch

    * Test build without wifi patch v2

    * Test build without wifi patch v3

    * Test building on f34 v3

    * Test building on f34 5.11.6

    * Bring f33 back

    * Test building on f34 5.12.7

    * Test building on f34 5.12.8

    * Test building on f34 5.12.11

    * test build with wifi patch 5.12.11

    * test build with wifi patch 5.12.8

    * test build with wifi patch 5.12.6

    * test build with wifi patch 5.12.5

    * test build with wifi patch 5.11.21

    * applesmc to 5.11

    * remove i915 patches

    * check 5.12.11 build with patch command F2

    * 5.12.11-mbp15

    * Fix linting

    * Fix linting v2

    Co-authored-by: jamlam <jamesl@mbert.onmicrosoft.com>
    Co-authored-by: marcosfad <60006035+marcosfad@users.noreply.github.com>
    Co-authored-by: Jakob-Niklas See <github@nwex.de>

* Remove grub2 packages

* Add some dependencies

* Add some outputs

* Remove commented code

* Remove commented code v2

* Remove commented code v3

* Fedora Linux v5.13.5 - init

* Update readme

* Update readme v2

* Update readme v3

* Skip aunalis x86 patches

* Change patch fuzz lines to 4

* Check jamlam patches

* Check jamlam patches v2

* Check jamlam patches v3

* Fix branches

* Add some info to readme

* Fedora Linux v5.13.10 - mbp16

* Fedora Linux v5.13.10 - mbp15
  • Loading branch information
mikeeq committed Aug 18, 2021
1 parent 0180aa8 commit ae93588
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,29 @@ Drivers:

## How to update kernel-mbp

```
### First run
```bash
### First run or if you want to update your copy of update_kernel_mbp script
sudo -i
curl -L https://raw.githubusercontent.com/mikeeq/mbp-fedora-kernel/v5.13-f34-mbp16/update_kernel_mbp.sh -o /usr/bin/update_kernel_mbp
chmod +x /usr/bin/update_kernel_mbp
update_kernel_mbp

### Next ones
### Next runs
sudo -i
update_kernel_mbp

### Update to specific version of kernel
# mbp 15,1/15,2
sudo -i
KERNEL_VERSION="5.13.10-f34-mbp15" update_kernel_mbp
# mbp 16,1/16,2 (differs in wifi patch)
sudo -i
KERNEL_VERSION="5.13.10-f34-mbp16" update_kernel_mbp

### Update to specific version of kernel using specific version of update script
#### Usually not needed, because scripts are shared between branches, but you can use it to update your update_kernel_mbp script
sudo -i
KERNEL_VERSION="5.13.10-f34-mbp16" UPDATE_SCRIPT_BRANCH="v5.13-f34-mbp16" update_kernel_mbp
```

## CI status
Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -eu -o pipefail

## Update fedora docker image tag, because kernel build is using `uname -r` when defining package version variable
RPMBUILD_PATH=/root/rpmbuild
FEDORA_KERNEL_VERSION=5.13.5-200.fc34 # https://bodhi.fedoraproject.org/updates/?search=&packages=kernel&releases=F34
MBP_VERSION=mbp15
FEDORA_KERNEL_VERSION=5.13.10-200.fc34 # https://bodhi.fedoraproject.org/updates/?search=&packages=kernel&releases=F34
REPO_PWD=$(pwd)

### Debug commands
Expand Down Expand Up @@ -43,7 +44,7 @@ done < <(find "${REPO_PWD}"/patches -type f -name "*.patch" | sort)

### Change buildid to mbp
echo >&2 "===]> Info: Setting kernel name... ";
sed -i 's/# define buildid.*/%define buildid .mbp/' "${RPMBUILD_PATH}"/SPECS/kernel.spec
sed -i "s/# define buildid.*/%define buildid .${MBP_VERSION}/" "${RPMBUILD_PATH}"/SPECS/kernel.spec

### Build non-debug rpms
echo >&2 "===]> Info: Bulding kernel ... ";
Expand Down
6 changes: 3 additions & 3 deletions patch_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ set -eu -o pipefail
APPLE_SMC_DRIVER_GIT_URL=https://github.com/jamlam/mbp-16.1-linux-wifi
APPLE_SMC_REPO_NAME=mbp-16.1-linux-wifi
APPLE_SMC_DRIVER_BRANCH_NAME=main
APPLE_SMC_DRIVER_COMMIT_HASH=46e4665e286862d76d29701a334515a77734c58f
APPLE_SMC_DRIVER_COMMIT_HASH=4521ec74b7c2671d4597450d3334206b292408e9
APPLE_WIFI_DRIVER_GIT_URL=https://github.com/aunali1/linux-mbp-arch
APPLE_WIFI_REPO_NAME=linux-mbp-arch
APPLE_WIFI_DRIVER_BRANCH_NAME=master
APPLE_WIFI_DRIVER_COMMIT_HASH=199a1512d80e228587852d5789e083cec281f223
APPLE_WIFI_DRIVER_COMMIT_HASH=9511d5ed2ae0e851dd6a82843daefb2be7d5e212

# TMP_DIR=~/temp_dir
TMP_DIR=/tmp/temp_dir
Expand All @@ -32,7 +32,7 @@ cd ..
while IFS= read -r file; do
echo "adding ${file}"
cp -rfv "${file}" "${PATCHES_DIR}"/"${file##*/}"
done < <(find "${APPLE_SMC_REPO_NAME}" -type f -name "*patch" | grep -v ZEN | grep -v wifi-bigsur | sort)
done < <(find "${APPLE_SMC_REPO_NAME}" -type f -name "*patch" | grep -v ZEN | grep -v wifi-bigsur | grep -v brcmfmac | sort)

### Apple WIFI fixes
git clone --single-branch --branch ${APPLE_WIFI_DRIVER_BRANCH_NAME} ${APPLE_WIFI_DRIVER_GIT_URL}
Expand Down

0 comments on commit ae93588

Please sign in to comment.