Skip to content

Commit

Permalink
5.19.12-200 [rel]
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Oct 1, 2022
1 parent 8c4204c commit dd110f7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# t2linux-fedora-kernel

Patched kernel for fedora linux on T2 macs. It mostly works, but dont expect a MacOS like experience. If you have problems with wifi, follow the guide on the wiki. A dnf/yum repo is avaliable at [`https://t2linux-fedora-repo.netlify.app/repo/t2linux-fedora.repo`](https://t2linux-fedora-repo.netlify.app/repo/t2linux-fedora.repo).

Follow the [wifi guide](https://wiki.t2linux.org/guides/wifi/). Installing the wifi firmware will also enable bluetooth. The internal drive, camera, mic, and keyboard/trackpad **are** working. Wifi and bluetooth woork with some extra steps, see below. The fingerprint reader is not working. Make sure to leave some space for MacOS, it is the only way to get firmware updates. Look at [https://wiki.t2linux.org/state/](https://wiki.t2linux.org/state/) for the latest state of hardware enablement.
Expand All @@ -11,14 +12,15 @@ Follow the [wifi guide](https://wiki.t2linux.org/guides/wifi/). Installing the w

## Instalation

1. Partition disks using Bootcamp Assistant, but dont install windows
2. Write the [t2linux-fedora-iso](https://github.com/sharpenedblade/t2linux-fedora-iso) to a bootable drive.
3. Install Fedora like normal until you get to partitioning disks
4. On the partitioning screen, select the partition you created from MacOS, and use it for free space. Make sure to leave the MacOS partition.
5. Reboot while holding *option*
1. Partition disks using Bootcamp Assistant, but dont install windows
2. Write the [t2linux-fedora-iso](https://github.com/sharpenedblade/t2linux-fedora-iso) to a bootable drive.
3. Install Fedora like normal until you get to partitioning disks
4. On the partitioning screen, select the partition you created from MacOS, and use it for free space. Make sure to leave the MacOS partition.
5. Reboot while holding *option*

### TODO
- Signing the package
- Using upstream shim.
- Signed kernel modules
- Automaticaly seting up Wifi firmware

- Signing the package
- Using upstream shim.
- Signed kernel modules
- Automaticaly seting up Wifi firmware
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

FEDORA_KERNEL_VERSION=5.19.11-200.fc36
FEDORA_KERNEL_VERSION=5.19.12-200.fc36
PATCHES_GIT=https://github.com/Redecorating/linux-t2-arch
PATCHES_COMMIT=5355ddb032ff65577d3c9d1bc8f0ff80eeaaa359
PATCHES_COMMIT=ede033e1549091cda1471114f9d77f1053c40132

echo "=====INSTALLING DEPENDENCIES====="
dnf install -y fedpkg koji fedora-packager git curl pesign ncurses-devel libbpf fedpkg rpmdevtools ccache openssl-devel libkcapi libkcapi-devel libkcapi-static libkcapi-tools
Expand All @@ -25,7 +25,7 @@ mkdir /tmp/download && cd /tmp/download
git clone --single-branch --branch main ${PATCHES_GIT}
cd *
git checkout ${PATCHES_COMMIT}
rm -rf 0001-arch-additions.patch 2013-aaudio-set-the-card-driver-name-to-AppleT2x-channel-.patch
rm -rf 0001-arch-additions.patch

echo "=====PREPARING SOURCES====="
cd ~/rpmbuild/SPECS
Expand All @@ -46,8 +46,8 @@ KERNEL_TMP="$KSV.new"
cd $KERNEL_TMP

echo "=====PATCHING SOURCE TREE====="
git clone https://github.com/kekrby/apple-bce drivers/staging/apple-bce
cd drivers/staging/apple-bce && git checkout 9b59e0a8cd0aff218dacc88e64e113b51ced2818
git clone https://github.com/t2linux/apple-bce-drv drivers/staging/apple-bce
cd drivers/staging/apple-bce && git checkout f93c6566f98b3c95677de8010f7445fa19f75091
cd $KERNEL_TMP
git clone https://github.com/Redecorating/apple-ib-drv drivers/staging/apple-ibridge
cd drivers/staging/apple-ibridge && git checkout 467df9b11cb55456f0365f40dd11c9e666623bf3
Expand Down
2 changes: 1 addition & 1 deletion t2linux-config.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: linux-t2
Version: 5.19.11
Version: 5.19.12
Release: 1%{?dist}
Summary: System configuration for linux on t2 macs.
License: MIT
Expand Down

0 comments on commit dd110f7

Please sign in to comment.