Skip to content
No description or website provided.
Python Shell
Branch: f31
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files Fixes for bootloader step during installation + 5.4.8 kernel update Jan 8, 2020
screenshots Add bce and touchbar driver Aug 18, 2019
.gitignore Add bce and touchbar driver Aug 18, 2019
.travis.yml Add bce patch for kernel <=5.3 Dec 5, 2019
README.md Fedora Linux v5.4.10 + removing modified efi.py Jan 10, 2020
build.sh Fix MacOS Catalina security patches - efi=noruntime, gnome-initial-se… Dec 11, 2019
build_in_docker.sh EFI.py Anaconda fix - f31 Dec 9, 2019
build_local.sh
fedora-mbp.ks Fedora Linux v5.4.10 + removing modified efi.py Jan 10, 2020
patch_kernel.sh EFI.py Anaconda fix - f31 Dec 9, 2019

README.md

mbp-fedora

Build Status

Fedora ISO with Apple T2 patches built-in (Macbooks produced >= 2018).

All available Apple T2 drivers are integrated with this iso. Most things work, besides those mentioned in not working section.

Kernel - https://github.com/mikeeq/mbp-fedora-kernel

Drivers:

Tested on: Macbook Pro 15,2 13" 2019 i5 TouchBar Z0WQ000AR MV972ZE/A/R1

Boot ROM Version:	220.270.99.0.0 (iBridge: 16.16.6571.0.0,0)
MacOS Mojave: 10.14.6 (18G103)

How to install

Not working

TODO

  • add Fedora icon to usb installer

  • alsa/pulseaudio config

    • Dynamic audio input/output change (on connecting/disconnecting headphones jack)
    ## to manually change audio profile via PulseAudio cli execute
    # to headphones output
    pacmd set-card-profile $(pacmd list-cards | grep -B6 'alsa.card_name = "Apple T2 Audio"' | head -n1 | cut -d':' -f 2) output:codec-output+input:codec-input
    
    # to speakers output
    pacmd set-card-profile $(pacmd list-cards | grep -B6 'alsa.card_name = "Apple T2 Audio"' | head -n1 | cut -d':' -f 2) output:builtin-speaker+input:builtin-mic
    
  • disable iBridge network interface (awkward internal Ethernet device?)

  • disable not working camera device

    • there are two video devices (web cameras) initialized/discovered, don't know why yet
    ➜ ls -l /sys/class/video4linux/
    total 0
    lrwxrwxrwx. 1 root root 0 Aug 23 15:14 video0 -> ../../devices/pci0000:00/0000:00:1d.4/0000:02:00.1/bce/bce/bce-vhci/usb7/7-2/7-2:1.0/video4linux/video0
    lrwxrwxrwx. 1 root root 0 Aug 23 15:14 video1 -> ../../devices/pci0000:00/0000:00:1d.4/0000:02:00.1/bce/bce/bce-vhci/usb7/7-2/7-2:1.0/video4linux/video1
    ➜ cat /sys/class/video4linux/*/dev
    81:0
    81:1
    
  • verify brcmf_chip_tcm_rambase returns

Known issues

  • Kernel/Mac related issues are mentioned in kernel repo
  • Anaconda sometimes could not finish installation process and it's freezing on Network Configuration step, probably due to iBridge internal network interface

workaround - it's a final step of installation, just reboot your Mac (installation is complete)

  • Wifi could have problems with connecting to secure networks (WPA2)

    • wpa_supplicant error - CTRL-EVENT-ASSOC-REJECT bssid= status_code=16
      • there are two workaround available:

        • you can stick with wpa_supplicant as wifi backend and you will need to reload broadcom module every time you connect to network
        ## Run as root
        modprobe -r brcmfmac; modprobe brcmfmac
        
        • or you can change your wifi backend to iwd (it's less problematic, it's crashing sometimes, but it's more stable than wpa_supplicant [with broadcom wifi])
        ## Run all commands as root
        # Change wifi backend which NetworkManager is using
        vi /etc/NetworkManager/conf.d/wifi_backend.conf
        
        [device]
        wifi.backend=iwd
        
        # enable iwd autostart
        systemctl enable iwd
        
        # start iwd
        /usr/libexec/iwd
        systemctl start iwd
        systemctl restart NetworkManager
        
  • Macbooks with Apple T2 can't boot EFI binaries from HFS+ formatted ESP - only FAT32 (FAT32 have to be labelled as msftdata).

workaround applied - HFS+ ESP is reformatted to FAT32 in post-scripts step and labelled as msftdata

  • efibootmgr write command freezes Mac (it's executed in Anaconda during Install bootloader... step) - nvram is blocked from writing

    • since MacOS Catalina EFI is blocked even from reading, so access to EFI is blocked via adding efi=noruntime to kernel args
efibootmgr --c -w -L Fedora /d /dev/nvme0n1 -p 3 -l \EFI\fedora\shimx64.efi
  • ctrl+x is not working in GRUB, so if you are trying to change kernel parameters - start your OS by clicking ctrl+shift+f10 on external keyborad

Docs

Fedora

Github

Credits

  • @MCMrARM - thanks for all RE work
  • @ozbenh - thanks for submitting NVME patch
  • @roadrunner2 - thanks for SPI (touchbar) driver
  • @aunali1 - thanks for ArchLinux Kernel CI
  • @ppaulweber - thanks for keyboard and Macbook Air patches
You can’t perform that action at this time.