t2linux / fedora

Patched linux kernel and packages for running Fedora on T2 macs.
https://wiki.t2linux.org/distributions/fedora/home/
13 stars 0 forks source link

6-5-12-300 f39 #25

Closed kashortiexda closed 3 months ago

kashortiexda commented 8 months ago

Hi When I did a dnf update on F39, it askd to download 6.5.12-300 F39 (though latest release here is 6.5.11-2 ??) but I keep getting this on 12-300...

unning scriptlet: kernel-core-6.5.12-300.t2.fc39.x86_64 1/1 dracut-install: Failed to find module 'apple_bce' dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.8QJpon/initramfs --kerneldir /lib/modules/6.5.12-300.t2.fc39.x86_64/ -m hid_apple snd_seq apple_bce dracut-install: Failed to find module 'apple_bce' dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.8QJpon/initramfs --kerneldir /lib/modules/6.5.12-300.t2.fc39.x86_64/ -m hid_apple snd_seq apple_bce

sharpenedblade commented 8 months ago

though latest release here is 6.5.11-2 ??

The repo moved to copr, which has 6.5.12-300.t2. If you haven't already, run sudo dnf install --refresh copr-sharpenedblade-t2linux-release.

dracut-install: Failed to find module 'apple_bce'

It works for me. Post the output sudo dnf repolist, cat /etc/yum.repos.d/copr-sharpenedblade-t2linux.repo, sudo dnf info kernel, and uname -a.

CaspianA1 commented 8 months ago

A similar issue is happening on my end (similar problems with these drivers have been happening for a few months now). When I run sudo modprobe apple_bce, this is the output:

modprobe: FATAL: Module apple_bce not found in directory /lib/modules/6.5.12-300.t2.fc39.x86_64

Adding to this, the build-in keyboard, mousepad, keyboard backlight, touchbar, and screen do not work. I am only able to run the command above via a Razer Core X eGPU, that has a separate keyboard, mouse, and monitor connected to it.

Running sudo dnf install --refresh copr-sharpenedblade-t2linux-release does not have an effect. This is the only output that I get:

Package copr-sharpenedblade-t2linux-release-1.0.0-1.fc39.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Some possibly relevant and related errors appear in the dmesg log:

[    9.542084] brcmfmac 0000:e5:00.0: Direct firmware load for brcm/brcmfmac4364b3-pcie.apple,trinidad-HRPN-u-7.7.bin failed with error -2
[    9.542110] brcmfmac 0000:e5:00.0: Direct firmware load for brcm/brcmfmac4364b3-pcie.apple,trinidad-HRPN-u.bin failed with error -2
[    9.542135] brcmfmac 0000:e5:00.0: Direct firmware load for brcm/brcmfmac4364b3-pcie.apple,trinidad-HRPN.bin failed with error -2
[    9.542185] brcmfmac 0000:e5:00.0: Direct firmware load for brcm/brcmfmac4364b3-pcie.apple,trinidad-X0.bin failed with error -2
[   64.770636] applesmc: probe of applesmc.768 failed with error -5
[  119.743636] applesmc: driver init failed (ret=-5)!
[  175.272616] applesmc: probe of applesmc.768 failed with error -5
[  229.986991] applesmc: driver init failed (ret=-5)!
[  698.909611] applesmc: probe of applesmc.768 failed with error -5
[  753.880263] applesmc: driver init failed (ret=-5)!
[    0.249040] pci 0000:00:02.0: assigning 11 device properties
[    0.249048] apple-properties: device path parse error -524 at 0x8:
[    0.249051] apple-properties: 00000000: 76 00 00 00 01 00 00 00 03 0a 2c 00 1b 61 99 42  v.........,..a.B
[    0.249053] apple-properties: 00000010: c9 4c df 43 88 2b 2a 07 07 a4 a9 5f 53 da cd 73  .L.C.+*...._S..s
[    0.249054] apple-properties: 00000020: f2 95 b4 42 bc 87 6e 5f 0d 2c 53 5b 00 56 e1 34  ...B..n_.,S[.V.4
[    0.249055] apple-properties: 00000030: 74 92 27 01 01 01 06 00 00 01 01 01 06 00 00 00  t.'.............
[    0.249056] apple-properties: 00000040: 01 01 06 00 00 00 01 01 06 00 00 00 7f ff 04 00  ................
[    0.249057] apple-properties: 00000050: 22 00 00 00 53 00 74 00 61 00 72 00 74 00 75 00  "...S.t.a.r.t.u.
[    0.249058] apple-properties: 00000060: 70 00 44 00 69 00 73 00 70 00 6c 00 61 00 79 00  p.D.i.s.p.l.a.y.
[    0.249059] apple-properties: 00000070: 00 00 04 00 00 00                                ......
[    0.249064] pci 0000:00:0d.2: assigning 10 device properties
[    0.249071] apple-properties: device path parse error -19 at 0x1a:
[    0.249072] apple-properties: 00000000: f8 00 00 00 03 00 00 00 02 01 0c 00 d0 41 03 0a  .............A..
[    0.249073] apple-properties: 00000010: 00 00 00 00 01 01 06 00 00 07 01 01 06 00 00 00  ................
[    0.249074] apple-properties: 00000020: 7f ff 04 00 46 00 00 00 54 00 75 00 6e 00 6e 00  ....F...T.u.n.n.
[    0.249075] apple-properties: 00000030: 65 00 6c 00 20 00 45 00 6e 00 64 00 70 00 6f 00  e.l. .E.n.d.p.o.
[    0.249076] apple-properties: 00000040: 69 00 6e 00 74 00 20 00 44 00 65 00 76 00 69 00  i.n.t. .D.e.v.i.
[    0.249077] apple-properties: 00000050: 63 00 65 00 20 00 56 00 65 00 6e 00 64 00 6f 00  c.e. .V.e.n.d.o.
[    0.249078] apple-properties: 00000060: 72 00 20 00 49 00 44 00 00 00 08 00 00 00 27 01  r. .I.D.......'.
[    0.249079] apple-properties: 00000070: 00 00 44 00 00 00 54 00 75 00 6e 00 6e 00 65 00  ..D...T.u.n.n.e.
[    0.249080] apple-properties: 00000080: 6c 00 20 00 45 00 6e 00 64 00 70 00 6f 00 69 00  l. .E.n.d.p.o.i.
[    0.249081] apple-properties: 00000090: 6e 00 74 00 20 00 44 00 65 00 76 00 69 00 63 00  n.t. .D.e.v.i.c.
[    0.249082] apple-properties: 000000a0: 65 00 20 00 4d 00 6f 00 64 00 65 00 6c 00 20 00  e. .M.o.d.e.l. .
[    0.249082] apple-properties: 000000b0: 49 00 44 00 00 00 08 00 00 00 02 00 00 00 2e 00  I.D.............
[    0.249083] apple-properties: 000000c0: 00 00 54 00 75 00 6e 00 6e 00 65 00 6c 00 20 00  ..T.u.n.n.e.l. .
[    0.249084] apple-properties: 000000d0: 45 00 6e 00 64 00 70 00 6f 00 69 00 6e 00 74 00  E.n.d.p.o.i.n.t.
[    0.249085] apple-properties: 000000e0: 20 00 47 00 55 00 49 00 44 00 00 00 0c 00 00 00   .G.U.I.D.......
[    0.249086] apple-properties: 000000f0: 00 56 e1 34 74 92 27 01                          .V.4t.'.
[    0.249088] apple-properties: device path parse error -19 at 0x1a:
[    0.249089] apple-properties: 00000000: 04 01 00 00 03 00 00 00 02 01 0c 00 d0 41 03 0a  .............A..
[    0.249090] apple-properties: 00000010: 00 00 00 00 01 01 06 00 00 07 01 01 06 00 00 00  ................
[    0.249091] apple-properties: 00000020: 01 01 06 00 00 04 01 01 06 00 00 00 7f ff 04 00  ................
[    0.249092] apple-properties: 00000030: 46 00 00 00 54 00 75 00 6e 00 6e 00 65 00 6c 00  F...T.u.n.n.e.l.
[    0.249093] apple-properties: 00000040: 20 00 45 00 6e 00 64 00 70 00 6f 00 69 00 6e 00   .E.n.d.p.o.i.n.
[    0.249094] apple-properties: 00000050: 74 00 20 00 44 00 65 00 76 00 69 00 63 00 65 00  t. .D.e.v.i.c.e.
[    0.249094] apple-properties: 00000060: 20 00 56 00 65 00 6e 00 64 00 6f 00 72 00 20 00   .V.e.n.d.o.r. .
[    0.249095] apple-properties: 00000070: 49 00 44 00 00 00 08 00 00 00 27 01 00 00 44 00  I.D.......'...D.
[    0.249096] apple-properties: 00000080: 00 00 54 00 75 00 6e 00 6e 00 65 00 6c 00 20 00  ..T.u.n.n.e.l. .
[    0.249097] apple-properties: 00000090: 45 00 6e 00 64 00 70 00 6f 00 69 00 6e 00 74 00  E.n.d.p.o.i.n.t.
[    0.249098] apple-properties: 000000a0: 20 00 44 00 65 00 76 00 69 00 63 00 65 00 20 00   .D.e.v.i.c.e. .
[    0.249099] apple-properties: 000000b0: 4d 00 6f 00 64 00 65 00 6c 00 20 00 49 00 44 00  M.o.d.e.l. .I.D.
[    0.249100] apple-properties: 000000c0: 00 00 08 00 00 00 03 00 00 00 2e 00 00 00 54 00  ..............T.
[    0.249101] apple-properties: 000000d0: 75 00 6e 00 6e 00 65 00 6c 00 20 00 45 00 6e 00  u.n.n.e.l. .E.n.
[    0.249102] apple-properties: 000000e0: 64 00 70 00 6f 00 69 00 6e 00 74 00 20 00 47 00  d.p.o.i.n.t. .G.
[    0.249103] apple-properties: 000000f0: 55 00 49 00 44 00 00 00 0c 00 00 00 00 ec a1 a8  U.I.D...........
[    0.249103] apple-properties: 00000100: 6f e3 27 01                                      o.'.
[    0.249107] pci 0000:00:0d.3: assigning 9 device properties

And the result of sudo modprobe applesmc is this:

modprobe: ERROR: could not insert 'applesmc': Device or resource busy


For the commands that you requested, here are their outputs:

sudo dnf repolist:

repo id                                                                             repo name
code                                                                                Visual Studio Code
copr:copr.fedorainfracloud.org:sharpenedblade:t2linux                               Copr repo for t2linux owned by sharpenedblade
fedora                                                                              Fedora 39 - x86_64
fedora-cisco-openh264                                                               Fedora 39 openh264 (From Cisco) - x86_64
google-chrome                                                                       google-chrome
protonvpn-fedora-stable                                                             ProtonVPN Fedora Stable repository
rpmfusion-free                                                                      RPM Fusion for Fedora 39 - Free
rpmfusion-free-updates                                                              RPM Fusion for Fedora 39 - Free - Updates
rpmfusion-nonfree-steam                                                             RPM Fusion for Fedora 39 - Nonfree - Steam
updates                                                                             Fedora 39 - x86_64 - Updates

cat /etc/yum.repos.d/copr-sharpenedblade-t2linux.repo:

[copr:copr.fedorainfracloud.org:sharpenedblade:t2linux]
name=Copr repo for t2linux owned by sharpenedblade
baseurl=https://download.copr.fedorainfracloud.org/results/sharpenedblade/t2linux/fedora-$releasever-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/sharpenedblade/t2linux/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
priority=80

sudo dnf info kernel:

Last metadata expiration check: 0:04:03 ago on Sat 02 Dec 2023 10:00:08 PM EST.
Installed Packages
Name         : kernel
Version      : 6.5.11
Release      : 300.t2.fc39
Architecture : x86_64
Size         : 0.0  
Source       : kernel-6.5.11-300.t2.fc39.src.rpm
Repository   : @System
From repo    : t2linux-fedora
Summary      : The Linux kernel
URL          : https://www.kernel.org/
License      : GPLv2 and Redistributable, no modification permitted
Description  : The kernel meta package

Name         : kernel
Version      : 6.5.12
Release      : 300.fc39
Architecture : x86_64
Size         : 0.0  
Source       : kernel-6.5.12-300.fc39.src.rpm
Repository   : @System
From repo    : updates
Summary      : The Linux kernel
URL          : https://www.kernel.org/
License      : GPLv2 and Redistributable, no modification permitted
Description  : The kernel meta package

Name         : kernel
Version      : 6.5.12
Release      : 300.t2.fc39
Architecture : x86_64
Size         : 0.0  
Source       : kernel-6.5.12-300.t2.fc39.src.rpm
Repository   : @System
From repo    : copr:copr.fedorainfracloud.org:sharpenedblade:t2linux
Summary      : The Linux kernel
URL          : https://www.kernel.org/
License      : GPLv2 and Redistributable, no modification permitted
Description  : The kernel meta package

Available Packages
Name         : kernel
Version      : 6.5.12
Release      : 300.t2.fc39
Architecture : src
Size         : 137 M
Source       : None
Repository   : copr:copr.fedorainfracloud.org:sharpenedblade:t2linux
Summary      : The Linux kernel
URL          : https://www.kernel.org/
License      : GPLv2 and Redistributable, no modification permitted
Description  : The kernel meta package

uname -a:

Linux caspiana1-fedora 6.5.12-300.t2.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Nov 26 21:26:12 UTC 2023 x86_64 GNU/Linux
sharpenedblade commented 8 months ago

A update with the fix has been pushed.

CaspianA1 commented 8 months ago

You said The update was pushed but its the same version so it doesnt get installed by dnf, you need to manually download and install it - how would I do so?

And is the update with the fix that you're referring to, this one? https://github.com/t2linux/fedora/commit/fb29c9624c905ee5aec86fce86de7dd13ae66fc4

sharpenedblade commented 8 months ago

yes, but I pushed 6.6 now so normal updates should work in a few hours

CaspianA1 commented 8 months ago

Awesome thanks

:

yes, but I pushed 6.6 now so normal updates should work in a few hours

— Reply to this email directly, view it on GitHub https://github.com/t2linux/fedora/issues/25#issuecomment-1837345415, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKADDOKSLIJKNALA6ZV2LSLYHP2JTAVCNFSM6AAAAAA77YPBZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM2DKNBRGU . You are receiving this because you commented.Message ID: @.***>

sharpenedblade commented 8 months ago

And it broke, il will try to fix it later

kashortiexda commented 8 months ago

I’ve had to roll back a few versions to be able to boot and be able to use trackpad MacBook Pro 209 intel. The 39 kernel before switching to new repo worked fine, but version on new repo borked my system. (resolution was tiny and trackpad non responsive) I could use an external mouse and a Bluetooth keyboard fortunately. Looking forward to new working version again
Appreciate all your work and support @sharpenedblade thank you