Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Nov 24, 2023
1 parent eec4186 commit 8332961
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,29 @@
# t2linux-fedora-kernel

This is a patched kernel for Fedora on T2 macs. A `dnf` repo is avaliable by installing the `t2linux-repo` package from the latest [release](https://github.com/t2linux/fedora-kernel/releases/latest).
Patched kernel and supporting packages for hardware enablement on t2 macs. Binary packages are available from [copr](https://copr.fedorainfracloud.org/coprs/sharpenedblade/t2linux). You can also download and install the `copr-sharpenedblade-t2linux-release` package.

The internal ssd, camera, mic, and the keyboard/trackpad work out of the box. WiFi and Bluetooth work with some extra steps. Read [this](https://wiki.t2linux.org/state/) for information about the latest hardware support.
The internal ssd, camera, mic, and the keyboard/trackpad work out of the box. WiFi and Bluetooth might work with some extra steps. Read [the wiki](https://wiki.t2linux.org/state/) for information about the latest hardware support.

This kernel is usually at the same version as the stable Fedora kernel. It is currently built for Fedora 38.
This kernel is usually at the same version as the stable Fedora kernel. It is currently built for Fedora 39.

## Instalation

Download the live ISO from [here](https://github.com/t2linux/fedora-iso). Follow the [installation guide](https://wiki.t2linux.org/distributions/fedora/installation/).

## WiFi/Bluetooth

Follow the [firmware guide](https://wiki.t2linux.org/guides/wifi/). When you get to the [On Linux](https://wiki.t2linux.org/guides/wifi-bluetooth/#on-linux) section, you can just run `firmware.sh`.

## Troubleshooting

- Problem: The touchbar is not working and is blank
Solution: Reboot into MacOS Recovery by holding `command`+`r` while booting up, then reboot into Fedora again.

- Problem: Suspend is not working
Solution: Put this in `/usr/lib/systemd/system-sleep/rmmod_wifi.sh`:
```bash
#!/usr/bin/env bash
if [ "${1}" = "pre" ]; then
modprobe -r brcmfmac_wcc
modprobe -r brcmfmac
elif [ "${1}" = "post" ]; then
modprobe brcmfmac
fi
```
Follow the [firmware guide](https://wiki.t2linux.org/guides/wifi/).

## Building from source

Clone this repo locally:

```bash
git clone --depth 1 https://github.com/t2linux/fedora-kernel
cd t2linux-fedora-kernel
git clone --depth 1 https://github.com/t2linux/fedora t2-fedora
cd t2-fedora
```

Then run the build container, which has dependencies already installed. The packages will be in the `_output` directory:
Then run the build container, which has dependencies already installed. The packages will be in `builddir`:

```bash
podman run -it -v "$PWD":/repo ghcr.io/t2linux/fedora-dev:latest /repo/build-packages.sh
Expand Down

0 comments on commit 8332961

Please sign in to comment.