2021-12-23
00:11tertu2 has quit [Read error: Connection reset by peer]
00:11tertu has joined #asahi
00:37linearcannon has quit [Read error: Connection reset by peer]
00:40linearcannon has joined #asahi
00:51chadmed has joined #asahi
01:05chadmed has quit [Quit: Konversation terminated!]
01:05chadmed has joined #asahi
01:07eta has quit [Remote host closed the connection]
01:08eta has joined #asahi
01:12chadmed has quit [Quit: Konversation terminated!]
01:18chadmed has joined #asahi
01:23aleasto has quit [Quit: Konversation terminated!]
01:39yuyichao_ has quit [Ping timeout: 480 seconds]
01:43kit_ty_kate has quit [Quit: WeeChat 2.9]
01:44nobodynada has joined #asahi
01:52nobodynada has quit [Ping timeout: 480 seconds]
01:57nobodynada has joined #asahi
02:07nobodynada has quit [Ping timeout: 480 seconds]
02:11tpw_rulesso i tried to build chromium with some patches for 16k pages just for fun (took 166 minutes on a mac mini) but it appears its IPC mechanisms are kind of broken
02:21nobodynada has joined #asahi
02:22caef^ has quit [Ping timeout: 480 seconds]
02:22caef^ has joined #asahi
02:34nobodynada has quit [Ping timeout: 480 seconds]
02:44kit_ty_kate has joined #asahi
02:46yuyichao_ has joined #asahi
03:17jmr2 has joined #asahi
03:18jmr2I'm also unable to install the 12.0 beta8 stub, from either MacOS or 1TR. Similar symptoms in both cases - the fast loop never detects that the boot disk has changed.
03:18jmr2Issue not present when installing the 12.0.1 stub, at least when installing from MacOS. I haven't tried beta5.
03:18jmr2This is on a recently nuked MacBook Air, reinstalled with 12.1. So being "stuck" on 12.0.1 doesn't matter.
03:18jmr2Also, just tried the wifi/take1 branch: works perfectly on both bands, nothing to report. Great work!
03:22jmr2 has quit [Remote host closed the connection]
03:58phiologe has quit [Ping timeout: 480 seconds]
04:11marcanbefore the reboot, when you get the boot picker in the installer, run bputil -g in another terminal
04:16jmr2 has joined #asahi
04:17jmr2 has quit []
04:23marvin24 has joined #asahi
04:26marvin24_ has quit [Ping timeout: 480 seconds]
04:59GlanzmannInteresting that wifi works for jmr2. So maybe I have the old boot stub on the macbook air. I'll upgrade to 12.0.1 and try again.
05:01nobodynada has joined #asahi
05:10nobodynada has quit [Ping timeout: 480 seconds]
05:29Glanzmannmarcan: Still no luck with the wifi. I can give you ssh access to the macbook air, if that helps. I tried the latest stub (12.1) - same symptom: interface is there, associated, no traffic.
05:30Glanzmannmps: About the wifi, the log entries in dmesg about not finding the firmware is normal. It only prints the files it is not finding and than it finds the files. You can tell if you have an additional wlan interface in (ip a s)
05:44caef^ has quit [Read error: Connection reset by peer]
05:44caef^ has joined #asahi
05:45Dcow has quit [Ping timeout: 480 seconds]
05:45Dcow has joined #asahi
06:16tertu has quit [Ping timeout: 480 seconds]
06:21sailorek1234 has joined #asahi
07:03nobodynada has joined #asahi
07:06joske has joined #asahi
07:08MajorBiscuit has joined #asahi
07:09chengsun has quit [Quit: Quit]
07:11nobodynada has quit [Ping timeout: 480 seconds]
07:12chengsun has joined #asahi
07:13chengsun has quit []
07:14chengsun has joined #asahi
07:59mpsGlanzmann: interesting observation, though I think it is not 'normal'. and I don't have interface instantiated in kernel. Do you have any patch on top of wifi/take1 branch
08:21marcanbut I find it unlikely that this is a driver problem considering it works on the mini and the air literally uses the same chip and firmware
08:21mpsGlanzmann: thanks, but maybe only your config would be good to see diffs between it and mine
08:22Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:22Dcow_ has joined #asahi
08:23mpsGlanzmann: though I guess I have pmgr problem and that could be reason interface is not instated
08:46Glanzmannmarcan: I get it, but it does not work for me and mps, for jmr2 it seems to work, and I think there was another guy who also got it running on air. So maybe it is missing kernel option or problem with the userland?
09:00mpsGlanzmann: I have this line few times in dmesg out: apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)
09:03nobodynada has joined #asahi
09:04cth451_desktop has joined #asahi
09:05Major_Biscuit has joined #asahi
09:07Glanzmannmps: I'm currently using the macbook air on macos, so can't test right now, but i pasted my dmesg output using pastebot so it has to be in he backlog
09:07MajorBiscuit has quit [Ping timeout: 480 seconds]
09:13Glanzmannmarcan: bputil -g also failed for me: https://tg.st/u/Screenshot_2021-12-23_at_10.12.53.png
09:14GlanzmannOh, I picked accidently the wrong recovery os, let me try again I picked the newest one.
09:16nobodynada has quit [Ping timeout: 480 seconds]
09:17cth451_desktopraw m1n1.bin on mac os 12 seems to have issue initializing the framebuffer
09:17cth451_desktopTTY> fb init: 640x1136 (32) [s=640] @(nil)
09:18cth451_desktopj`ey: That's right
09:18cth451_desktopbut otherwise the system starts fine
09:25FireFox317Glanzmann, I can imagine that bputil -g only works in 1TR
09:47Glanzmannfirefox317: I thought so, too. But marcan asked me to: 05:11 <@marcan> before the reboot, when you get the boot picker in the installer, run bputil -g in another terminal
09:48joskehello everyone, tried several distros/desktops but none recognize the touchpad (clicking works, but no tapping, 2finger taps etc)
09:51mps"Touchscreen" section is not needed, I copied this from my chromebook which have touchscreen
09:53Glanzmannjoske: For me worked with debian testing and jannaus patch and config. At the moment I don't get it to work with the wifi branch which according to jannau is on par with the asahi branch regarding keyboard and touchpad.
09:55Glanzmannmarcan: I now tried with 12.0 beta 8 but no luck: https://tg.st/u/Screenshot_2021-12-23_at_10.52.08.png
09:59Glanzmannmps: I also nuked my working userland from both system because I wanted to do a quickstart video, but now I'm unable to get the mini with hdmi up and running again ...
09:59joskemps, not working for me unfortunately. How can you check Xorg is using that file from xorg.conf.d?
10:01___nick___ has joined #asahi
10:01FireFox317Glanzmann, what marcan said can also be done in 1TR, i suggest to try the installer in 1TR, you will also get the bootpicker in 1TR
10:01Glanzmannbtw, I don't know if you guys care, but I always swap alt and meta: setxkbmap -option altwin:swap_alt_win
10:02Glanzmannfirefox317: I already tried that, too. And guess what the installer told me to go to macos. :-)
10:02GlanzmannI also remeber that it was possible to run the installer from 1tr, but according to my tries that is no longer possible.
10:03aleasto has joined #asahi
10:04GlanzmannIf you're using a us keyboard but want to type europen umlauts, I always use that: https://pbot.rmdir.de/TBqEJojh3h9X0PbpfaWOWQ
10:04FireFox317Glanzmann, hmm okay
10:05mpsjoske: here is my kernel tar which contains config file https://dev.alpinelinux.org/~mps/m1/linux-5.16.0-rc5-a5.tar.gz
10:06mpsand here is my POC of installer for alpine linux https://tpaste.us/mqDJ which is simple shell script
10:12sailorek1234 has quit []
10:12sailorek1234 has joined #asahi
10:37Major_Biscuit has quit []
10:41MajorBiscuit has joined #asahi
10:42BastienSaidi[m] has joined #asahi
10:44cth451_desktop has quit [Remote host closed the connection]
10:45cth451_desktop has joined #asahi
10:50Major_Biscuit has joined #asahi
10:51___nick___ has quit []
10:52MajorBiscuit has quit [Ping timeout: 480 seconds]
10:52FireFox317I think we should just build kernels with the same config that distros like arch linux arm are using
10:52FireFox317That way we wont have these annoying config issues
10:54___nick___ has joined #asahi
10:55YJSNPI has joined #asahi
10:58YJSNPI has quit []
10:59YJSNPI has joined #asahi
11:01marcanthe recommended installation method is from 1TR, and the only one that will work for stubs not currently signed by Apple
11:01marcanI'm not even going to document doing installs from macOS once this is public, in fact I might add a warning to the installer if you're not in 1TR
11:02FireFox317marcan, there is some t2 linux discord that im in, should i ask them to test those patches?
11:03mpsjoske: this depends on ethernet device, I enabled one I have in my usb dongle and it works. you have to enable driver for your one and probably install firmware for it
11:03YJSNPI is now known as RedL0tus
11:03marcanit won't work with the old manual method or whatever random firmware-du-jour people have been using until now
11:03FireFox317yes, will tell them
11:04marcan(in fact I explicitly broke it for bcm4364, which was added upstream merging two revisions into one... which was just completely broken)
11:04marcan(so those people using vanilla upstream with 4364 and manually copied firmware will have to at least rename it to add the right rev to the filenames)
11:04RedL0tus is now known as YJSNPI
11:05YJSNPI is now known as RedL0tus
11:06RedL0tus is now known as YajuuSenpai
11:07YajuuSenpai is now known as RedL0tus
11:08RedL0tus is now known as Gur3n
11:08Gur3n has left #asahi [ARRRRRRRRRRRGH]
11:10YJSNPI has joined #asahi
11:24Dcow__ has joined #asahi
11:27Dcow has quit [Ping timeout: 480 seconds]
11:28Dcow has joined #asahi
11:32Dcow__ has quit [Ping timeout: 480 seconds]
11:43marcanso the MAC address shouldn't be in NVRAM if it's in SROM. I just need to change the firmware copier to not add it except for necessary platforms
11:43DragoonAethis has quit [Remote host closed the connection]
11:48DragoonAethis has joined #asahi
11:55mpsis that reason for 'brcmfmac 0000:01:00.0: brcmf_pcie_download_fw_nvram: FW failed to initialize' in dmesg out
12:17marcanmps: shouldn't be, you do get that if you're missing a macaddr on platforms that need one but my copier does add a dummy right now
12:27mps./include/linux/kern_levels.h:5:25: error: called object is not a function or function pointer
12:38ChaosPrincesskernel folks now set Werror by default
12:38ChaosPrincessthere is a config feature to disable it
13:00Gaspare has joined #asahi
13:43landscape15[m]mps: thanks a lot for your builds. They work perfectly.
13:44landscape15[m]I was able to run my custom rootFS
13:46Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:48chadmed has quit [Remote host closed the connection]
13:53Dcow_ has joined #asahi
14:05Gaspare has quit [Quit: Gaspare]
14:42landscape15[m]marcan: why did you need to fake MAC address before?
14:42yuyichao_ has quit [Ping timeout: 480 seconds]
14:44sailorek1234 has quit []
14:46Gaspare has joined #asahi
14:47psykose has quit [Remote host closed the connection]
14:49psykose has joined #asahi
14:49marcanlandscape15[m]: you need to have *some* MAC address in NVRAM, otherwise the M1 machine firmwares won't start without a MAC at all
14:50marcanpreviously I was just having a fake one in the nvram file and then setting the real one using firmware APIs on startup
14:50marcanbut I just now realize that doing that on dongles which *do* have a MAC in SROM like on T2s overrides it
14:50marcan(and I don't want to go having the firmware extractor decide whether to add the var or not based on platform)
14:51landscape15[m]Ok thanks. So does Asahi-installer also copy all the needed firmwares?
14:52marcanright now it just has that module that isn't otherwise used that you need to invoke by hand
15:03Gaspare has quit [Quit: Gaspare]
15:05joske has quit [Ping timeout: 480 seconds]
15:08mpsgot this: brcmfmac 0000:01:00.0: brcmf_pcie_init_ringbuffers: Allocating ring buffers failed
15:10nobodynada has joined #asahi
15:20nobodynada has quit [Ping timeout: 480 seconds]
15:22yuyichao_ has joined #asahi
15:24jmr2 has joined #asahi
15:26jmr2 has quit []
15:28landscape15[m]Yeah I know the installer is not meant for end users, but I hope you’ll keep a dev version like that for engineers.
15:30landscape15[m]Especially because manually creating partitions can be annoying
15:30aleasto has quit [Quit: Konversation terminated!]
15:31aleasto has joined #asahi
15:54aleasto has quit [Remote host closed the connection]
15:57aleasto has joined #asahi
15:59caef^ has quit [Ping timeout: 480 seconds]
15:59caef^ has joined #asahi
16:24marcanlandscape15[m]: dev version of what? the final installer will do all the repartitioning for you including resizing macos and creating the EFI partition and such
16:25marcanof course it will allow you to just create the stub+EFI partition if that's all you want, it's not going to force you to install a rootfs
16:25marcan(dunno if I will have a mode to do it without the EFI partition, seems kinda pointless since most people will want that anyway, but I will have a mode to re-create an existing stub with another version)
16:29Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:41jonnymac[m] has joined #asahi
16:45aleasto has quit [Quit: Konversation terminated!]
16:46aleasto has joined #asahi
16:46aleasto has quit []
16:46aleasto has joined #asahi
17:00zimsneexhShould the Firmware be re-extracted from macOS for wifi/take3? I saw the commit in the installer repo
17:59Gaspare has joined #asahi
18:08tertu has joined #asahi
18:08skipwich has joined #asahi
18:08landscape15[m]marcan: I mean, as there should be a fully-automated installer (for end user), a completely customizable installer is a good option.
18:09mpsanyone have idea why I got this in dmesg when loading brcmfmac module 'brcmfmac 0000:01:00.0: brcmf_pcie_init_ringbuffers: Allocating ring buffers failed'
18:09marcanlandscape15[m]: it's not just going to be a one-click installer; there will definitely be at least basic flexibility, possibly behind a toggle, if not an outright expert menu at some point
18:10marcanmps: I did increase the ringbuffer size, but I find it hard to see how it could behave differently on the Air and on the Mini, unless it's a firmware difference
18:26caef^ has quit [Ping timeout: 480 seconds]
18:26caef^ has joined #asahi
18:35nobodynada has joined #asahi
18:55nobodynada has quit [Ping timeout: 480 seconds]
18:57martinstewart has joined #asahi
18:58martinstewarthello
19:06Major_Biscuitmartinstewart: 👋
19:10Gaspare has quit [Quit: Gaspare]
19:11martinstewarthow is everyone
19:18nobodynada has joined #asahi
19:25landscape15[m]One question, which config should I use to compile the kernel (I tried with `make menuconfig` but I found nothing Apple related)?
19:30nobodynada has quit [Ping timeout: 480 seconds]
19:33martinstewart has quit [Remote host closed the connection]
19:38nobodynada has joined #asahi
19:44zimsneexhlandscape15[m]: Did you specify ARCH=arm64 and the crosscompiler flag? It's documented on the wiki
19:45joske has joined #asahi
19:54leo60228 has joined #asahi
19:55leo60228- has quit [Ping timeout: 480 seconds]
20:17landscape15[m]zimsneexh: yes I did, and I compiled with defconfig, which doesn’t contain any Apple specific config
20:21darkapex has joined #asahi
20:24SamAdams[m]pcie
20:26landscape15[m]j`ey: In fact, also USB doesn’t work having only ARCH_APPLE enabled
20:26darkapex4 has quit [Ping timeout: 480 seconds]
20:34* clover[m]sent a Building code block: https://matrix.org/_matrix/media/r0/download/matrix.org/JybAXtUxqwfHpkVHjHjDaCLk
20:37NightRaven[m]Any news on the wifi can you run it without a second machine
20:38clover[m]jannau: i do not, i will install that. would be nice to provide an explicit list of dependancies in the readme
20:38NightRaven[m]Hmm ok
20:38NightRaven[m]So u still need a second machine to get the wifi working
20:40martinstewart has joined #asahi
20:40NightRaven[m]Hmm ok
20:48arndj`ey it depends a bit on the subsystem maintainer. I generally like the 'tristate "some driver" if ARCH_APPLE ; depends on ARCH_APPLE || COMPILE_TEST ; default ARCH_APPLE' logic, but it's a bit wordy
20:48landscape15[m]jannau: latest linux-asahi
20:49arndj`ey: actually I just got that wrong myself, I mixed up the case where the driver should be hidden but enabled and the case where it should be visible
20:50arnda) is 'tristate "some driver" if COMPILE_TEST && !ARCH_APPLE; depends on THIS_SUBSYSTEM; depends on ARCH_APPLE || COMPILE_TEST ; default ARCH_APPLE'
20:51nobodynada has quit [Remote host closed the connection]
20:51nobodynada has joined #asahi
20:51arndj`ey: you'd do this for drivers that are absolutely required to boot the platform, but can be compile-tested
20:51martinstewart has quit [Ping timeout: 480 seconds]
21:06NightRaven[m]<mps> "NightRaven: what machine you..." <- MacBook pro 2020 13 inch
21:06NightRaven[m]I would really like to get the wifi working
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:09NightRaven[m]Boot with hypervisor ?
21:09NightRaven[m]I just use kmutil
21:09NightRaven[m]And that's it
21:10NightRaven[m]I will wait
21:22MajorBiscuit has joined #asahi
21:23Major_Biscuit has quit [Ping timeout: 480 seconds]
21:24martinstewart has joined #asahi
21:25Glanzmannmarcan: When I tried asahi-installer from 1tr it told me that it only allows me to change the security policy of the active boot volume. Since it was not possible for me to change that from 1tr because the boot picker endless looped me, this was not working out for me.
21:31mpsjoske: for u-boot, you have to set uefi partition and install needed files there and grub-efi
21:37FireFox317joske: you dont have to create those symlinks. The dmesg only showed error messages for the ones it tried, but IIRC it doesnt print a message of the one that actually succeeds
21:39joskeit seems to take several minutes before wireless networks (or even wlan0) show up in network manager
21:40FireFox317joske: probably the kernel loads the bcrmfmac driver before your rootfs is mounted, and thus it will fail to find the firmware on initial boot. I think it then tries to load the driver again after a minute or so, so the best solution here is put the firmware in a initramfs
21:41joskefirefox317, aha, maybe something like that. And then you pass the initrd as argument and not the actual rootfs?
21:42martinstewart has quit [Ping timeout: 480 seconds]
21:43FireFox317joske: i guess you are booting with a second pc right? you dont to change the linux boot-args (root=etc), but you can just concatenate a initramfs after the device tree
21:45FireFox317joske: jep, basically you need a directory with the same structure as the linux fs. So a new directory with /lib/firmware/brcm/<etc> and then put that into a cpio archive and gzip it
21:47jannaujoske: check if FW_LOADER_USER_HELPER_FALLBACK I think that adds a timeout for every tried firmware load
21:50martinstewart has joined #asahi
21:58martinstewart has quit [Ping timeout: 480 seconds]
22:00jannaujoske: disable CONFIG_FW_LOADER_USER_HELPER CONFIG_FW_LOADER_USER_HELPER_FALLBACK in the kernel config
22:14joske has quit [Ping timeout: 480 seconds]
22:25nobodynada has quit [Ping timeout: 480 seconds]
22:27hckr has joined #asahi
22:29hckr has quit []
22:33yuyichao has joined #asahi
22:33hckr has joined #asahi
22:36yuyichao_ has quit [Ping timeout: 480 seconds]
22:42yuyichao_ has joined #asahi
22:45MajorBiscuit has quit [Ping timeout: 480 seconds]
22:46yuyichao has quit [Ping timeout: 480 seconds]
22:49nobodynada has joined #asahi
22:52yuyichao_ has quit [Ping timeout: 480 seconds]
23:00nobodynada has quit [Ping timeout: 480 seconds]
23:08nobodynada has joined #asahi
23:18nobodynada has quit [Ping timeout: 480 seconds]
23:25hckr has quit [Quit: hckr]
23:31manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
23:31manawyrm has joined #asahi
23:45nobodynada has joined #asahi
23:53nobodynada has quit [Ping timeout: 480 seconds]