Skip to content

Commit

Permalink
6.0.7-200 [rel]
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed Nov 12, 2022
1 parent 1cd7f38 commit 5c90c1f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Follow the [wifi guide](https://wiki.t2linux.org/guides/wifi/). Installing the w

Secure boot is disabled when using this kernel. **This is not a bad thing**. Mac firmware does not enforce secure boot; even when the shim loads a signed kernel, the shim itself can be modified. It is imposible to have secure boot on macs, a signed kernel does not help, it is a false scence of security. To protect yourself from evil maid atacks, you should never give other people access to your computer.

This kernel will follow the latest stable kernel version in the updates repo of the latest fedora release.
This kernel will follow the latest stable kernel version in the updates repo of the latest fedora release. The latest release is currently for Fedora 36, but it should work with newer releases.

### Wifi

Follow the [wifi guide](https://wiki.t2linux.org/guides/wifi/). Installing the wifi firmware will also enable bluetooth.
Follow the [wifi guide](https://wiki.t2linux.org/guides/wifi/). Installing the wifi firmware will also enable bluetooth. First download the wifi script from the wiki. Then run the script from MacOS, after that reboot into Fedora. From Fedora run `sudo mount /dev/nvmen1p1 /mnt && sudo /mnt/wifi.sh`. Reboot, Wifi, Bluetooth, and suspend will work now.

## Instalation

Expand All @@ -22,10 +22,18 @@ Follow the [wifi guide](https://wiki.t2linux.org/guides/wifi/). Installing the w
6. Install Fedora, do not close the installer.
5. Reboot while holding *option*.

## Troubleshooting

- Q: Suspend is not working.
A: Install the mac firmware. Follow the [wifi section](#wifi).
- Q: The keyboard backlight is not working.
A: It is not working properly yet. Run `echo 60 > /sys/class/leds/apple::kbd_backlight/brightness` to turn it on.
- Q: Touchbar is blank.
A: Reboot into MacOS. Restart into MacOS again. Shut down from MacOS. Reboot into Fedora.

### TODO

- ~~Signing the package~~
- ~~Using upstream shim~~
- Signed kernel modules
- Automaticaly seting up Wifi firmware
- ~~Better initramfs integration~~
- Automaticaly setting up Wifi firmware
- No extra modules in initramfs
- Keyboard backlight
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

FEDORA_KERNEL_VERSION=6.0.5-200.fc36
FEDORA_KERNEL_VERSION=6.0.7-200.fc36
PATCHES_GIT=https://github.com/Redecorating/linux-t2-arch
PATCHES_COMMIT=b30a1c33146e68947e3f1123ee58fee14ca76b4a
PATCHES_COMMIT=94a65c4bfaba5f47cff03071d61a978c778276bb

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 rpm-sign
Expand Down
14 changes: 6 additions & 8 deletions t2linux-config.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ cp %{_sourcedir}/rmmod_tb.sh %{_builddir}
tar -xf %{_sourcedir}/t2-better-audio-%{audio_config_commit}.tar.gz

%build
echo -e 'apple_bce\nsnd-seq' > apple_bce.conf
echo -e 'apple_bce\nsnd-seq' > t2linux.conf

echo -e 'add_drivers+=" apple_bce snd_seq "' > apple_bce_install.conf

echo -e 'SUBSYSTEM=="leds", ACTION=="add", KERNEL=="*::kbd_backlight", RUN+="/bin/chgrp video /sys/class/leds/%k/brightness", RUN+="/bin/chmod g+w /sys/class/leds/%k/brightness"'
echo -e 'add_drivers+=" apple_bce snd_seq "' > t2linux-install.conf

%install
mkdir -p %{buildroot}/etc/dracut.conf.d/
mv apple_bce_install.conf %{buildroot}/etc/dracut.conf.d/apple_bce_install.conf
mv apple_bce_install.conf %{buildroot}/etc/dracut.conf.d/t2linux-install.conf

mkdir -p %{buildroot}/etc/modules-load.d/
mv apple_bce.conf %{buildroot}/etc/modules-load.d/apple_bce.conf
mv apple_bce.conf %{buildroot}/etc/modules-load.d/t2linux.conf

mkdir -p %{buildroot}/lib/systemd/system-sleep
mv %{_builddir}/rmmod_tb.sh %{buildroot}/lib/systemd/system-sleep/rmmod_tb.sh
Expand All @@ -54,9 +52,9 @@ grubby --remove-args="efi=noruntime" --update-kernel=ALL
grubby --args="intel_iommu=on iommu=pt pcie_ports=compat" --update-kernel=ALL

%files
/etc/modules-load.d/apple_bce.conf
/etc/modules-load.d/t2linux.conf
/lib/systemd/system-sleep/rmmod_tb.sh
/etc/dracut.conf.d/apple_bce_install.conf
/etc/dracut.conf.d/t2linux-install.conf
/usr/share/alsa-card-profile/mixer
/usr/share/pulseaudio/alsa-mixer
/usr/lib/udev/rules.d/

0 comments on commit 5c90c1f

Please sign in to comment.