2021-12-22
00:32Redecorating[m]marcan: on bcm4364b3 otp data doesn't seem to be in the first 0x800 words with base 0: https://gist.github.com/Redecorating/d65eef7286babe63d08334f2d82c6ce9
00:32Redecorating[m]could the otp data be stored on a different core?
00:38crabbedhaloablut has joined #asahi
00:40kit_ty_kate has quit [Quit: WeeChat 2.9]
00:41kit_ty_kate has joined #asahi
00:41loki_val has quit [Ping timeout: 480 seconds]
00:51chadmed has joined #asahi
01:05yuyichao_ has joined #asahi
01:06chadmed has quit [Quit: Konversation terminated!]
01:07chadmed has joined #asahi
01:12amwGlanzmann: I'm using Debian bullseye (stable) so many of your packages are not found for me e.g. gcc-11 (only have gcc-9 and -10)
01:18chadmed has quit [Quit: Konversation terminated!]
01:25chadmed has joined #asahi
01:37boardwalk has quit [Quit: The Lounge - https://thelounge.chat]
01:47boardwalk has joined #asahi
02:22amwMy trackpad is found by the driver and appears in the X11 log but it isn't used as input - see Xlog here https://paste.debian.net/1224365/
02:36darkapex4 has joined #asahi
02:41darkapex3 has quit [Ping timeout: 480 seconds]
02:50amwOk - found the answer for debian have to remove xserver-xorg-input-synaptics - it silently doesn't work
02:51amwYou need the newer xserver-xorg-input-libinput package as per https://unix.stackexchange.com/questions/337008/activate-tap-to-click-on-touchpad
03:52phiologe has joined #asahi
03:55jmr2 has joined #asahi
03:58jmr2chadmed: why don't you check before making such an assumption? https://packages.debian.org/stable/xserver-xorg That SO discussion is 5 years old.
03:58jmr2 has quit []
04:02chadmedi didnt make an assumption, i asked a question. a question by which i meant no offence. interesting that amw needed to manually remove the synaptics package and install libinput instead if its a dependency in the debian xorg input metapackage
04:24marvin24_ has joined #asahi
04:28marvin24 has quit [Ping timeout: 480 seconds]
06:04off^ has quit [Ping timeout: 480 seconds]
06:04Glanzmann has joined #asahi
06:08Glanzmannmarcan[m]: Wifi is stable on the mini. I ran https://tg.st/u/wifitest.sh for approx 8 hours. No dmesg output, transfer logs are consistent: https://tg.st/u/wifi.log.gz (this was with 2 GHz). As soon as I find out how to use 5 GHZ, I will try that as well.
06:11Glanzmannamw: I'll rewrite the guide to use stable, since there is probably no reason to use testing and you can always ugprade if you need it easily.
06:13Glanzmannamw: I always run echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/06norecommends # first. This is probably why I did not had the synaptics tocuh pad driver to beginn with.
07:34zimsneexh has quit [Quit: Leaving.]
07:46Major_Biscuit has joined #asahi
07:47Major_Biscuit has quit []
07:47MajorBiscuit has joined #asahi
07:51rkjnsn[m]marcan, are you still looking for folks to test the brcmfmac-do-not-release-d11-resets.patch on other hardware?
07:52rkjnsn[m]Assuming I applied the patch properly (relatively new to NixOS, but it did build a new kernel when I added the patch to my config), I see no change in behavior versus without that patch.
07:54rkjnsn[m]I do see "AXI timeout; APB Bridge 0" coming out of hibernate, but it looks like that happens without the patch, too, so not a regression.
07:56rkjnsn[m]This is a 2015 MBP (Firmware: BCM43602/1 wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8)
08:13sailorek1234 has joined #asahi
08:44mpsxorg synaptics driver works for me on alpine, I used it some time because touchpad is too sensitive and can't set touch high/low threshold with libinput driver
09:43joske has joined #asahi
09:47joskehello, been following for a while now and today decided to take the plunge and install asahi
09:47joskeI've followed the steps by glanzmann, was able to resize the macOS partition and run the installer
10:13FireFox317j`ey, there is no 12.1 IPSW in the asahi-installer yet
10:15FireFox317I guess it kinda makes sense it works then, because you will go into the 1TR of the OS stub you just installed, instead of using the systemwide one
10:20FireFox317joske, https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart#debian-build-dependencies tells you to install ´pip install pyserial construct serial.tool´
10:22Dcow has quit [Read error: Connection reset by peer]
10:22joskeRequirement already satisfied: construct in ./.local/lib/python3.9/site-packages (2.10.67)
10:22joskeRequirement already satisfied: pyyaml>=3.13 in ./.local/lib/python3.9/site-packages (from serial) (6.0)
10:22Dcow__ has joined #asahi
10:22joskeRequirement already satisfied: iso8601>=0.1.12 in ./.local/lib/python3.9/site-packages (from serial) (1.0.2)
10:22joskeRequirement already satisfied: future>=0.17.1 in ./.local/lib/python3.9/site-packages (from serial) (0.18.2)
10:23FireFox317joske, well maybe chengsun suggestions is true and you need serial.tools instead
10:24FireFox317joske, please use some pastebin next time to show these messages. Im not sure what you are missing here
10:25chengsunpyserial provides the "serial" library that you want, and i'm going to guess there's some naming conflict caused by you also installing serial
10:25FireFox317joske, also make sure you are actually using the correct python version, maybe you have to call python3 or whatever
10:39FireFox317joske, sometimes it gets assigned to ttyACM0 and sometimes to ttyACM1, there is a way in udev to make it consistent tho
11:10Major_Biscuit has joined #asahi
11:11MajorBiscuit has quit [Ping timeout: 480 seconds]
11:12caef^ has joined #asahi
11:41Glanzmannsven: No issue, I'll give it a try. Marcan also mentioned on -dev that he will merge it soon.
11:41Glanzmannjoske: If you managed to boot from the usb stick, you can also create the linux partition with parted. That is what I did the last time.
11:42GlanzmannI really have to write a howto and record a video how to install Debian Linux in 10 minutes on a m1 machine.
11:43rose_ has joined #asahi
11:52amwGlanzmann: Thanks for updating your notes. Does the firmware grabging step work on 11.x MacOS ?
11:54marcanRedecorating[m]: I have a 4364b3 too on this T2 I'm borrowing, so let's see what I can find
11:55marcan(holy shit these intel machines really are terribad at power consumption... even just idle with an external screen the fans are already annoyingly loud, since I guess that clocks up the GPU?)
11:57Glanzmannjoske: It says in the notes that you should extract the rootfs to a usb stick. Than on your first boot you have to say root=/dev/sda1 or something.
12:01Glanzmannjoske: Once you boot from the usb stick you can than use debootstrap. But I'll modify the howto to be simpler and also build a rootfs that you can just dd on your partition. Than you need only one machine and it will be easy to install Linux in 10 minutes or so.
12:02joskeGlanzmann, maybe I'm too stupid, but it was not clear to me, I only see root=/dev/nvme... in the notes
12:05rose_hey, i've just been handed this m1 mini which apparently has u-boot and m1n1 on it and been asked to get macos back. i booted into 1tr and clicked the big "install macos big sur" button but once it finished and rebooted it told me "custom kernel failed to boot". apparently u-boot was installed with this guide:
12:05rose_https://wiki.netbsd.org/ports/evbarm/apple/ which seems to use kmutil to configure u-boot instead of the macos kernel - does anyone know how i can fix this and boot macos again?
12:06j`eyrose_: https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart#installation "bputil -n
12:07Glanzmannjoske: So the idea in the howto is to get a usb stick, partition it, create an ext4, put the rootfs on it.
12:07dottedmagrose_: Another option to consider: connect to another Mac and use Apple Configurator 2 to wipe it.
12:08GlanzmannBoot once from the usb stick, create an ext4 on the nvme partition and copy rootfs over or run debootstrap.
12:09rose_thanks for the suggestions. i tried bputil -n just now and it "failed to create local policy" which might be something to do with me cancelling the second attempt at reinstalling macos :P
12:10rose_so i'll let it run all the way through this time and try again, and if that doesn't work i'll get the other mac and try the configurator thing
12:16Redecorating[m]marcan: on t2macs you need patches to applesmc + a patched version of mbpfan to get fan control. It makes it quieter, but I doubt it'll be as quiet as m1 macs. There's no harm in not getting fan control, but if you want it, see patches 3001-3006 here https://github.com/aunali1/linux-mbp-arch and https://wiki.t2linux.org/guides/fan/
12:16FireFox317rose_, there is also idevicerestore which let you restore it from linux instead
12:23marcanRedecorating[m]: the fans are automatically scaling properly, and it does this on macOS too
12:24_jannau_there's no difference in keyboard/trackpad support between asahi and wifi-take1. Make sure CONFIG_SPI_HID_APPLE and CONFIG_PINCTRL_APPLE_GPIO are set in the kernel config
12:46Glanzmannjoske: Btw. I finished the rootfs for dd, still working on the instructions: https://tg.st/u/m1-rootfs-stable-2021-12-22-wifi.gz
12:47aleasto has joined #asahi
12:48rose_for those following the macos installation saga the 3rd attempt at reinstalling using 1tr failed after nearly an hour. now onto idevicerestore
12:50Glanzmannrose_: I was able to do it without idevicerestore, but it took 3 - 5 tries until it worked.
12:51GlanzmannBy loosing I mean, I had now idea that the 1tr partition was 1tr and deleted it ... afterwards everything was fine except that I could no longer update macos.
12:52rose_also im quickly realising i dont know what im doing with idevicerestore lol like how do i even plug it in to my laptop
12:55Glanzmannrose_: I always use the usb ports that are closest to the power on the mini and farer away from me on the macbook air.
13:03FireFox317rose_, you might have to put it in this dfu/recovery mode first?
13:03rose_if i use kmutil to point the bootloader at m1n1, surely i can use kmutil to point the bootloader at macos' kernel? only problem is i don't know where on the disk macos' kernel is
13:03FireFox317im not sure how to do that, since i never did that xd
13:04FireFox317rose_, well using bputil -n that should work, but that doesnt work right?
13:06FireFox317according to this, you might have to do csrutil clear first? https://apple.stackexchange.com/questions/408016/local-policy-error-when-disabling-sip-on-big-sur-m1
13:06FireFox317rose_, ^
13:06FireFox317but im just guessing too haha
13:13FireFox317rose_, i guess you dont have the credentials of the machine owner right? in that case i think the only way to restore such a machine would be with with idevicerestore or another mac device
13:14rose_well, i have the password that it asks for when i run these things, i don't know if there's any other credentials
13:16FireFox317oh okay, well im kinda out of ideas xd
13:22chadmed has quit [Quit: Konversation terminated!]
13:25rose_ok now the led is amber and idevicerestore sees it (if i run it as root) but it is "unable to discover device type"
13:27FireFox317rose_, make sure you have the latest idevice
13:27FireFox317yeah exactly
13:33zimsneexh has joined #asahi
13:45Gaspare has joined #asahi
13:48Glanzmannmarcan: Using the asahi installer I created a 11.5.2 boot environment. Than it told me the m1n1.macho with the following command line: kmutil configure-boot -c m1.bin --raw --entry-point 2048 --lowest-virtual-address 0 -v /Volumes/Linux
14:01j`eyhm, actually now im unsure, when you have a paired recoveryOS, is it the same version as the stub, or is it the latest version?
14:04GlanzmannBut I was able to install a few days asahi. in my macbook air but I used the oldest available version. So now I'm trying and let you know how it went.
14:10Glanzmannj`ey: It seems I'm screwed. I'm unable to install m1n1.macho any longer on 11.x: https://tg.st/u/IMG_20211222_150925727_HDR.jpg
14:10GlanzmannI'll now try the latest and greatest and see if m1n1.bin comes up (even without video).
14:13j`eyGlanzmann: yeah so, since recoveryOS is 12.1, you have to use the raw option. sorry, I thought the recoveryOS was the same as the macOS version
14:15FireFox317j`ey, interesting how for the other person this morning it did work
14:16joskefirefox317, I also used the command without the --raw (after booting into the stub recovery if that makes sense)
14:17j`eyGlanzmann: can you apply https://paste.gg/p/anonymous/4e74f52363c846b48eca792b51c2f1b1 to m1n1 and rebuild?
14:22mpsjoske: wifi works only if you boot machine with hypervisor for now, and build kernel from wifi/take1
14:23j`eyGlanzmann: the patch is just a compile time assertion that things have built correctly, and it looks like they havent here
14:23Glanzmannmps: For me wifi works without the hypervisor, but I need a proxyclient to apply the pci enable experiment.
14:25j`eyGlanzmann: either that, or m1n1 is expecting something to be built in a specific way that isnt guaranteed
14:25mpsjoske: you can set parameters with xinput utility or create /etc/X11/xorg.conf file to set libinput params
14:26FireFox317mps, you can just chainload instead of running it under the hypervisor, but for all cases you need a second pc
14:27j`eyGlanzmann: in the meantime, can you revert it, and build, and then upload that .bin somewhere
14:28mpsfirefox317: but iirc marcan told me that I have to boot with hypervisor if I want to run any of proxy commands
14:30j`eymps: you misunderstood, you just need to get to the proxy, to be able to run that script, then you can run with or without the hypervisor, but anyway, an smc driver will appear at some point and make all this not needed :P
14:32mpsj`ey: so that means it is not make difference if I boot target with hypervisor or 'bare metal' boot?
14:33j`eymps: for wifi, no. but you have to currently have a bare m1n1 (aka not m1n1+uboot), to be able to run the python script
14:33Glanzmannjoske: Can you post the output of lspci; ip l s; dmesg; find /usr/lib/firmware/brcm somewhere?
14:33yuyichao_ has quit [Ping timeout: 480 seconds]
14:34j`eyGlanzmann: just noticed that you applied the patch to the wrong file, it was for m1n1-raw.ld not m1n1.ld
14:34sailorek1234 has quit [Quit: sailorek1234]
14:39FireFox317joske, probably be coincidence, shouldnt matter
14:41Glanzmannj`ey: Sorry about the wrong patch apply. Good catch the paste bot stripped the last \n so it was not applying. So I edited manually and did a mistake. This pbot does not strip newlines: https://tg.st/p
14:42j`eyGlanzmann: no worries, I was confused when I downloaded your m1n1 and verified the offsets were right!
14:48joske has quit [Ping timeout: 480 seconds]
14:49Gaspare has quit [Quit: Gaspare]
14:51Glanzmannj`ey: I ran the asahi installer again with the newest version and it worked. I have no longer video on the mini, but it worked.
14:52rose_ has quit [Quit: Connection closed]
14:53rose_ has joined #asahi
14:58rose_alright, now idevicerestore makes decent progress, but when the mini reboots, idevice waits for it to enter restore mode so it can continue talking over usb, but this doesn't happen and both sides eventually time out. im getting an apple logo and an empty progress bar on the screen, and after a while the mac falls off lsusb and displays a link to
14:58rose_apple support. idevice tells me to make sure usbmuxd is running, and i have done. why do the gods hate me
15:00rose_hmm, dmesg is showing the mini *dis*connecting twice as "Apple Mobile Device (Recovery Mode)" and once as "Mac mini"
15:02yuyichao_ has joined #asahi
15:05bgb has joined #asahi
15:07Gaspare has joined #asahi
15:17Dcow has joined #asahi
15:19rusty-nail[m] has joined #asahi
15:20joske has joined #asahi
15:20Dcow__ has quit [Ping timeout: 480 seconds]
15:28joske has quit [Ping timeout: 480 seconds]
15:31bgb has quit [Ping timeout: 480 seconds]
15:56leo60228- has joined #asahi
15:58leo60228 has quit [Ping timeout: 480 seconds]
16:17tpw_rulesif it's ready it will have the asahi linux logo in the middle and say "Running proxy..." at the bottom
16:18tpw_rulesbut yes, if m1n1 has u-boot or a kernel appended to it, it will launch that automatically instead of starting the proxy
16:18GlanzmannThan power off, power on. It loads m1n1 and waits, than you can do all the commands using a second linux system conencted via usb cable.
16:18Gaspare has quit [Quit: Gaspare]
16:19mpsGlanzmann: ah, so m1n1.macho must be on Linux macos partition (not sure about macos terminology)
16:22mpsI tested all this about two months ago but that vanished from the head and I don't take notes
16:23Glanzmannmps: This always happened to me. Btw. I'm no longer able to install m1n1.macho on 11.x on the mini
16:23GlanzmannIt worked a week ago and I have no idea why. So I can't use my mini at the moment with a screen.
16:25mpsI prepared cables and other things, just have to upgrade kernel on machine from which I will control target
16:28rose_ has quit [Quit: Connection closed]
16:41Glanzmanntpw_rules: So I'm on the lates macos, I run asahi installer, I choose number 1 (the oldest) I also tried 2 (second oldest). Than I boot in 1tr. Than I get the error that I can't kmutil the m1n1.macho.
16:44GlanzmannI thought the command from the wiki, but I will try one more time and report back. Takes a while because I have to do the delete partition free up space dance.
16:48Glanzmanntpw_rules: Btw. I'm working on a guide using your tar trick to dd a debian rootfs. Almost finished, but I'm unable to install m1n1 on the mini (at least not with hdmi)
16:50tpw_rulestheoretically it should be able to boot the debian installer off usb if you know how to build one with the right kernel
16:51Glanzmanntpw_rules: I see, this is why could not find it. I wrote down the url now. And took a backup just to be sure.
16:54tpw_rulesthe old ones are still in the git history. but i'm not sure a backup is great because this all changes pretty quickly.
16:54tpw_rulesi mean the trick is basically that if you have a .tar.gz with one file which is your rootfs image, you can use tar -xO to extract it in recoveryOS
16:57Glanzmannmarcan: https://pbot.rmdir.de/51FNpzGbOXqxqsUyQqUAdQ This is what I get when I try to do 'ifup wlan0' with wpa_supplicant.
17:12Glanzmannjannau: On Debian stable the touchpad and keyboard works. But the middle and right click does no longer work: 2 finger click (right) and 3 finger click (middle) if multitouch is working - any idea what I need to do to enable multitouch?
17:13Glanzmanntpw_rules: About the mini and m1n1. Which version did you choose in the asahi installer?
17:15zimsneexhWith 12.1 you need the --raw flag, you are using the .bin file instead of the .macho right?
17:15tpw_ruleslike i said i think if you are using 12.1 with an 11.4 stub, you might be able to use --raw and the macho
17:21mpsgot wifi in lspci out and module loaded but dmesg says it can't find firmware though I installed firmware but kernel tries to load some other files
17:27jannauGlanzmann: that might depend on the libinput configuration. does right click by clicking in lower right part of the touchpad work?
17:39mpscreated symlinks for missed firmware and now 'modprobe brcmfmac' loads them but I see this in dmesg: [ 952.204243] brcmfmac 0000:01:00.0: brcmf_pcie_download_fw_nvram: FW failed to initialize
17:39SamAdams[m]On Ubuntu 22.04 Daily Build, the touchpad is working great! I can even swipe through the gnome workspaces with the 3 finger swipe, scrolling works great, and tap to click is even supported! It's actually very responsive. Pinching to zoom is more responsive than Mac OS!
17:43thasti has joined #asahi
17:57mpsmarcan: you asked me about week ago to send dump from tools/dump_pmgr.py, here it is in case you still need it https://tpaste.us/8Ea8
18:03Gaspare has joined #asahi
18:09Major_Biscuit has quit []
18:16Glanzmannjannau: I see. It seems to always do the same no matter where I click. I'm on debian stable maybe I update to testing.
18:16GlanzmannSamAdams[m]: For me scrolling, left, middle and right click was working on Debian Testing out of the box as well in fvwm2
18:17MajorBiscuit has joined #asahi
19:03Glanzmannzimsneexh: I have all the usb cables and devices, but never used idevicerestore before.
19:29Gaspare has quit [Quit: Gaspare]
19:48nobodynada has joined #asahi
19:56nobodynada has quit [Quit: Lost terminal]
20:29Glanzmannmarcan: regading kmutil, does that mean I can kmutil --raw the macho file and than it will boot in 11.4 partition?
20:30marcananyway, I don't know why people keep using 11.4 stubs? just use 12.0 beta8, that one should work on the mac mini with HDMI and won't have problems with kmutil
20:31marcanI really want people to stop using 11.x, it's going to be deprecated soon enough and the only reason I haven't nuked it from the installer is that 12.0.1 has the stupid HDMI problem left to solve
20:32mpsmarcan: I followed your guide only. Also Glanzmann told me that on his machine have same problem
20:32joske has joined #asahi
20:32Glanzmannmarcan: I also send mps my firmware dump, same content. But to be honest on my air I only tried once, and I copied the firmware after the boot and unloaded and loadded the module.
20:33marcanso do you know what firmware is supposedly missing? that's more useful to know than "I symlinked something" :p
20:33GlanzmannI also have not figured out how to use 5 Ghz on the mini. But the 2 GHZ is rock stable. 9 hour endless loop burst transfers in both directions.
20:35Glanzmannmarcan: Here is the ioreg -l otuptu from the air: https://tg.st/u/macbook_air_m1_ioreg_l.txt
20:38marcanGlanzmann: I literally used the same exact IDs for the example in the commit message in e2b4b1ea44
20:39marcanlrwxrwxrwx 1 marcan marcan 39 Jan 1 1970 brcmfmac4378b1-pcie.apple,shikoku.bin -> brcmfmac4378b1-pcie.apple,atlantisb.bin
20:45marcaneither way, I did get an ALARM install on an external HDD today so I can easily test on all the machines later
20:57suricato_ has joined #asahi
20:58suricato has quit [Ping timeout: 480 seconds]
21:26lockejan[m] has left #asahi [#asahi]
21:27RianSouzaSantos[m] has joined #asahi
21:48GlanzmannMarcan, I tried the asahi installer to boot 12.0 beta8, I got that: https://tg.st/u/Screenshot_2021-12-22_at_22.18.05.png Than I tried to boot in 1tr and use the boot picker, it ends up in an endless progress bar: https://tg.st/u/IMG_20211222_224132138.jpg So I gave up and go without hdmi for now.
22:25joske has quit [Ping timeout: 480 seconds]
22:45nobodynada has joined #asahi
22:46Glanzmannmarcan: About the wifi on macbook air. I have an interface, I can associate to the access point, but I can't do any traffic over the wlan interface (dhcp, ipv6 route advertisement; ping when I manually set an IP address) https://pbot.rmdir.de/HehUvWMel8NJGl_VdINrhg https://pbot.rmdir.de/c8wTQiOeknO7uC_jOsdrGQ
23:08nobodynada has quit [Ping timeout: 480 seconds]
23:17MajorBiscuit has quit [Quit: WeeChat 3.3]
23:57aleasto has quit [Quit: Konversation terminated!]
23:59aleasto has joined #asahi