#
…

2021-12-19

00:11MajorBiscuit has quit [Quit: WeeChat 3.3]
00:18marcanj`ey: I'm bringing up support on a new chip; there's a good chance it works on the M1 chip just adding the IDs now
00:24nabaiste^ has quit [Ping timeout: 480 seconds]
00:47j`eymarcan: oh ok, cool!
01:06nabaiste^ has joined #asahi
01:09fionera[m]Hi y'all I finally got myself a m1 max today and made it boot a nixos install with the asahi kernel. I noticed that the system doesnt reset on shutdown and just halts, is that a known issue?
02:15Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:16Dcow has joined #asahi
02:22steffen[m]fionera: a watchdog driver is required for reboot. I don't know if that's in the asahi kernel branch yet. https://github.com/AsahiLinux/docs/wiki/HW:WDT
02:36Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:53riker77_ has joined #asahi
02:58riker77 has quit [Ping timeout: 480 seconds]
02:58riker77_ is now known as riker77
03:01darkapex1 has joined #asahi
03:06darkapex has quit [Ping timeout: 480 seconds]
03:41kov has quit [Quit: Coyote finally caught me]
03:41tpw_rulesthe watchdog driver is in the asahi branch
03:42tpw_rulesand it works fine in nixos on mac mini with the CONFIG_APPLE_WATCHDOG=y
03:42tpw_rulesfionera[m]: does the built in keyboard work for you?
03:43tpw_rules(the watchdog facilitates reboot, it hangs on shutdown for me too)
03:43tpw_rulesfionera[m]: ^
04:02phiologe has quit [Ping timeout: 480 seconds]
04:23marcanj`ey: BCM4378 (the one in M1s) works perfectly fine with the work I did yesterday, just added the IDs and rambase
04:23marcanwell, at least as far as "ip link set wlan0 up"; haven't bothered trying a full install with wireless tools yet
04:24marcanso yes, whatever's broken it's something about the new chip
04:25tpw_rulesmarcan: have you published anywhere the script you used to extract the firmware?
04:25marcanit's not pushed yet
04:26marcanit's not an extraction script right now, it's a renaming script
04:27marvin24 has joined #asahi
04:28marcanpushed to asahi-installer, go to src/ and run python -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar
04:28marcanthis will be integrated into the installer itself later, right now it's just that part of the logic
04:29marcan(and won't read from /usr but rather from a mounted recovery dmg instead)
04:29tpw_rulesis there any meaningful differences between the firwmare in the different OS versions?
04:30marcanno idea, but probably? they do have security bugs in there
04:30marcanthey had a nice wifi pwn recently
04:30marvin24_ has quit [Ping timeout: 480 seconds]
04:32tpw_rulesoh, does the installer avoid downloading the whole ipsw and just get the central directory first?
04:32marcanit streams it
04:32tpw_rulesvery clever
04:33marcanit's just an HTTP-backed block cache layer under the standard zip support in python
04:34marcanwe're already downloading the whole 1GB recovery image part anyway, so the wifi firmware isn't anything extra
04:35marcanthis also means we don't need any staging space for the ipsw; everything is downloaded straight to the destination
04:53amarioguy has quit [Ping timeout: 480 seconds]
04:59nabaiste^ has quit [Ping timeout: 480 seconds]
05:25marcanah, actually, NVRAM wasn't being downloaded; with that added it fails... because apparently it *really* wants a macaddr entry in the nvram? heh
05:27marcanlooks like all but one of the standard linux-firmware nvram files have a default MAC burned in
05:27marcanalso there's some spurious whitespace in a few of Apple's nvram files that Linux hates
05:27marcansounds like I should have the firmware copier also fix these things
05:28tpw_rulesit would also be good if you could have it sort the files before putting them in the tar, for reproducibility
05:29marcanyeah, I think right now I sort the files at scan time but not directories?
05:29tpw_rulesi admit i checked in a pathological case, but that is not enough
05:30marcanyeah, I'll just sort the output of the final file generator
05:32tpw_rulesalso, are all those different firmwares really relevant to m1 machines?
05:32marcanno, some are for T2 machines
05:32marcanwhich are largely identical as far as wifi, except the module name and antenna SKU will have to come from DMI or UEFI vars or something
05:32marcanI intend to work that out once the M1 stuff is done, so the same patch works for everyone
05:33tpw_rulesok. i don't think 9 megs is a problem but not carrying around the T2 ones might help reduce the number of versions of that tar
05:33marcanmaybe, but then we'd have to start shipping a list of firmwares to filter, and meh
05:33tpw_rulesthat's fair
05:33marcanI'd rather just ship everything for everyone
05:55tpw_rulesdoes idevicerestore work on m1 macs yet? can it recover from destruction of the NOR flash?
05:59marcantpw_rules: it works, I haven't tested NOR destruction yet
05:59marcanI semi-recently made it work for Monterey, it should work on all machines
06:15Glanzmann has quit [Quit: EOF]
06:23long[m]thanks everyone for all that you do. I'm excited to get an M1 Mac sometime soon, but have a 2019 Macbook Air (2019 Intel) with a T2 chip in it. Am I understanding it correctly that with all the work that's being done for the M1 Mac's I'd be able to benefit from it on my Intel Macbook Air 2019 with a T2 chip in it? Sorry for the silly question, but a lot of this is waaay over my head.
06:24long[m]wanting to eventually get Linux properly working on that 2019 Macbook Air so it's not just sitting in a drawer lol
06:39marcanlong[m]: wifi yes, also keyboard/touchpad may improve (at least code-wise, not sure if anything users would notice)
06:40marcanmost of the rest is not really related
06:40long[m]great! thank you marcan. I was debating selling it to aid in paying for the M1 Macbook Air
06:42chadmed has joined #asahi
07:12jannauthe updated touchpad driver will report pressure and we will probably figure out how to use the force touch actuator
07:13jannaunot sure where force touch would be implemented
07:18marcanlooks like 4387 works fine too with the macaddr fix and proper ramsize
07:18marcannot sure why the ramsize calculation that works for all the other chips doesn't work here
07:18marcanI guess there's some kind of carveout or something we don't know about
07:23marcanah... I think I know what's going on
07:24marcandifferent bank sizes for chunks of RAM at the end; the calculation assumes a constant bank size
07:35marcanspoke too soon, fails now? maybe there's some race
07:42marcanyeah, it works sometimes and fails sometimes, wonder what's up
07:45chadmedjannau: you could probably just have it report to libinput as a gesture so that its user/DE configurable
07:45chadmedor as mouse button 3
07:48amarioguy has joined #asahi
07:48jannauthe pressure? that is already reported as pressure and libinput / user space may do with it what they want
07:49chadmednah i mean the force touch event, as i understand your msg that is registered by the touchpad independent of the pressure reporting
07:51jannauah, that is already reported as click, I was speaking about the feedback
07:52chadmedah right yeah that makes more sense
08:08amarioguy has quit [Ping timeout: 480 seconds]
08:31zimsneexhI'd love to try the wifi patches but how does wifi.py work? What args does it need?
08:33somdkls^ has joined #asahi
08:34marcan13:28:34 <@marcan> pushed to asahi-installer, go to src/ and run python -m firmware.wifi /usr/share/firmware/wifi /tmp/linux-firmware.tar
08:34marcanthe wifi patches aren't ready yet
08:35zimsneexhoh i read the tweet about it working fine on M1 and thought i'd try, guess i'll wait more then
08:36mpsmarcan: you mean this branch https://github.com/AsahiLinux/linux/commits/wifi-wip is not ready yet?
08:36zimsneexhThat's the branch i was gonna try aswell
08:37marcanyes, it's not ready yet, that's why it says "wip"
08:37marcanseriously, you guys...
08:37* mpsimpatiently wait for it
08:37marcanthat's just something I pushed last night because alyssa wanted to look at my OTP parser
08:38marcan"it worked once for me" != "here's a branch for everyone to test"
08:38marcanif I didn't link a branch for people to try then it's not ready
08:38mpsmarcan: np, I can wait for sure. and thanks again for good work
08:38zimsneexhof course.
08:39zimsneexhI was just curious and thought I'd give it a try - I didn't expect it to be working flawlessly or anything of the sorts
08:41marcansure, but until we're at the point where it works properly for *me* and I've implemented everything that needs implementing there's no point in people trying it, because you're all just going to run into all the issues I already know about
08:42kettenismarcan: on the j293 the wifi firmware sometimes doesn't come up
08:42kettenis(with the OpenBSD driver)
08:42kettenisbut on j274 it always seems to work
08:43zimsneexhWell aware, just curiousity like I said
08:44marcankettenis: I suspect there's a race condition somewhere, where the firmware comes up before the host has initialized something it needs to initialize, and crashes
08:45kettenismarcan: so your issue is also that the firmware sometimes doesn't come up?
08:46marcanit outright crashes; at least the '87 has console debug and spits out a big crashlog
08:47kettenis(I haven't spent a lot of time investigating that problem since it tries a 2nd time when the interface is brought up and that attempt almost always succeeds)
08:47marcanit actually comes up, then immediately crashes
08:57Namidairodid brcm80211 even have any 11ax hardware before this
08:59MajorBiscuit has joined #asahi
09:16kov has joined #asahi
09:22NightRaven[m]@mps it works image2.gz thanks so much give me a Ping if you want be to try to any other .gz files
09:36chadmed has quit [Remote host closed the connection]
09:44chadmed has joined #asahi
09:46NightRaven[m]Hi I am stuck on something I have added a user but how can I add it to the login system
09:51mpsNightRaven[m]: well, I think I will build kernels next days as new things (drivers) are added (and improved or fixed)
09:52mpsI hope I will start to write short howto and scripts about installing alpine
09:53mpsbut as usual depends on free time and how much I have to work on $day_job
09:55chadmedthe easy solution is to simply not have a day job ;)
09:55mpschadmed: :-)
09:56Glanzmann has joined #asahi
09:56Glanzmannmps: I was thinking about doing the same thing for Debian Linux.
09:56Glanzmannmps: Like my asahi.txt but with less complicated steps and a video.
09:57mpsGlanzmann: nice, then we could share work
09:58chadmedi had planned on working on something for artix and gentoo while i have some time off but my 14" is still in processing and isnt due to ship until im meant to be on a sailing trip :(
09:59chadmedhopefully i have some time toward the end of jan to have a look at it before uni starts again
09:59NightRaven[m]mps: I found something when you do reboot it work but when you try to shutdown it gets stuck
10:00j`eyNightRaven[m]: known issue
10:00mpsbesides all works I do, I'm nominated by alpine to get one SBC from RISC-V foundation to add/improve alpine on riscv64
10:01mpsboard is not arrived so maybe I should hurry with m1
10:01mpsNightRaven[m]: poweroff still doesn't work, driver is not yet added to kernel
10:03NightRaven[m]Oh ok makes sense
10:03Glanzmannmps: My idea was the following, boot to 1tr, use the asahi installer to get the sub partition, create a partition and curl | gunzip | dd a minimum debian installation on the block device. And supply a boot chain that can boot of that netboot image.
10:05MajorBiscuit has quit [Ping timeout: 480 seconds]
10:07mpsGlanzmann: well, that could be long-term solution ofc. for now I thinking about creating installation on usb (maybe with u-boot) and instructions how to 'move' it to nvme
10:07GlanzmannGlanzmann: I assume marcan will end up doing something similiar but much more furbished and safe in the installer in the end.
10:08Glanzmannmps: I see, but I see so many people wanting to try it out in here but struggeling. So I thought about how to make it as fast and easy as possible.
10:08mpshackish yes, but for now i intend to write it for experienced users
10:08mpslater when things settle write 'true' installer
10:08svenyeah, it doesn't really help anyone at this point if unexperienced end users are struggling to get something to work that they won't be happy with anyway
10:09GlanzmannAnd to be honest, if I have not done an installation recently I take 2 hours to install Linux on a mac, because I forgot how the asahi installer works and I forget that I need to boot to 1tr to create an empty partition to use, etc ...
10:09marcanreminder that u-boot cannot do nvme properly with linux yet
10:09mpsmarcan: yes, I know
10:09svenanother reminder that nvme in asahi can kernel panic if you look at it wrong :P
10:10mpssven: I'm lucky then, didn't happened to me, knocks on wood
10:10Glanzmannsven: For me nvme never paniced on the mini and worked several days with it, but i keep that in mind.
10:10svenit'll happen when a command times out and the error recovery path is triggered
10:11Glanzmannsven: I read that and can imagine it, but it never happened to me. How did you trigger that behaviour?
10:11svendon't remember the exact condition, maybe it was also only admin commands
10:12GlanzmannProbably. I did a lot of I/O testing also with concurrent I/O, debootstrapped, install hundreds of packages and used it to work with it 12 hours a day ...
10:12egavinc has quit [Quit: Leaving]
10:13mpsalso I used it about 16 hours on day in last few days
10:13GlanzmannOnly thing that gets on my nerves is the bad random 4k performance, but 'eaymydata' is my friend and than it is fucking fast obviously. But after reading the backlog from sven in -dev I got an idea how fucking complicated this nvme on m1 is.
10:13sven🤷‍♂️
10:13sventhis thing is still WIP, i _know_ it has issues
10:14Glanzmannmps: Me, too. I also do not reboot unless I want to try a new kernel. So I had already uptime with 7 days and longer. And currently my mini has 2 days uptime ...
10:14mpsI make daily archives to be safe
10:14Glanzmannsven: I know, I'm not complaining. I'm just telling you how fucking good it works. :-)
10:15Glanzmannmps: I have no state on my workstations that is not somewhere else, so I don't care if I loose all data on my workstation (mostly git repositories).
10:15mpsonly what irritates me is usb realtek wifi dongle, too often reconnents to wifi AP
10:15GlanzmannBut I never lost anything. Only stupid thing I did is deleting 1tr and wondering why macos was no longer able to apply updates. But marcan talked me through a complete device restore using a second mac, which worked after 3 to 4 retries.
10:17Glanzmannmps: I recently bought a wifi-6 access point from tp (EAP660). This thing has a 2.5 GBit/s port. But funny thing is that it give me more throughput when I connect it on a 1 Gbit/s port. Only like 5-10% more.
10:19mpsI left these things to my son to care for them
10:23Glanzmannsven: I just checked, the mini did not give me issues since 27th Sep with the various versions of the NVMe driver. https://pbot.rmdir.de/OxO-xhIPosnjYlIHQSiYbg
10:23svendoesn't matter
10:23svenas i said, this thing is WIP and i've almost rewritten it
10:25aleasto has joined #asahi
10:25Glanzmannsven: Do did a good job. :-)
10:25sventhere will be a time where testing like this will be incredibly helpful, but right now i already know that the driver has issues and that i've essentially rewritten it anyway
10:26Glanzmannsven: Btw. is there an easy way to tell Linux to never flush the cache or do I need to change the kernel, if I don't want to flush the cache on a sync?
10:26svenno idea
10:42landscape15[m]<tpw_rules> "landscape15: did you ever get..." <- I didn’t tried yet. I’ll give a feedback if it works ;)
10:53gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:54gabuscus has joined #asahi
11:04amarioguy has joined #asahi
11:08Glanzmannmps: Have you tried this tree? https://github.com/pipcet/linux/commits/pearl The commits from the last 24 hours sound promising. :-)
11:09dottedmagAn interesting twist: Apple produces so few variants of the computers, and the hardware between variants is so similar that user-testing is of way lesser importance than on PC platform. There are just not many variants to test.
11:09j`eypipcet is doing their own thing.. that's not based on anything that will go upstream
11:09j`eyso my suggestion is to not use that, or if you do, at least dont report any issues or whatever here!
11:09GlanzmannOh, I did not know.
11:12landscape15[m]mps: honestly I would have set a stricter license for asahi (not MIT)
11:16___nick___ has joined #asahi
11:16___nick___ has quit []
11:18___nick___ has joined #asahi
11:24MajorBiscuit has joined #asahi
11:24amarioguy has quit [Ping timeout: 480 seconds]
11:35darkapex2 has joined #asahi
11:40darkapex1 has quit [Ping timeout: 480 seconds]
12:01chadmedlandscape15: how come?
12:16Dcow has joined #asahi
12:25m42uko has quit [Quit: Leaving.]
12:25m42uko has joined #asahi
12:38Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:38fionera[m]<tpw_rules> "and it works fine in nixos on..." <- I try to build the kernel in nixos itself rn and then keyboard doesnt work anymore. tho the manually build one works. So its probably smth with the config. I didnt try reboot yet, let me see
12:44jannaufionera[m]: keyboard/tp need CONFIG_SPI_HID_APPLE, CONFIG_HID_APPLE, CONFIG_HID_MAGICMOUSE
12:45jannauthose are currently not enabled by default. mostly an oversight
12:45j`eyCONFIG_PINCTRL_APPLE_GPIO=y
12:46MajorBiscuit has quit [Ping timeout: 480 seconds]
12:48Dcow has joined #asahi
12:50fionera[m]<jannau> "fionera: keyboard/tp need CONFIG..." <- Yeah I made a derivation that uses the recommended config from the wiki but smh that doesnt work
12:51j`ey wiki is out of date
12:51svenmaybe we should just delete those pages
12:51fionera[m]j`ey: It works for me with that tho
12:53j`eyok I guess amw updated it
12:53MajorBiscuit has joined #asahi
12:59Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:05aleasto has quit [Remote host closed the connection]
13:11JamesTaylor[m] has joined #asahi
13:15MajorBiscuit has quit [Ping timeout: 480 seconds]
13:16MajorBiscuit has joined #asahi
13:20somdkls^ has quit [Remote host closed the connection]
13:21amarioguy has joined #asahi
13:53chadmed has quit [Remote host closed the connection]
14:02n1c has joined #asahi
14:03dsrt^ has joined #asahi
14:45egavinc has joined #asahi
15:29Dcow has joined #asahi
15:32Dcowmarcan: congrats on the wifi success. really appreciate this.
15:32marcanit's not done yet
15:33Dcowlol. checked your twitter and thought it's done. it's better than yesterday anyway
15:33marcanthe firmware likes to crash on startup for some reason
15:34DcowI've always thought that bluetooth will came with wifi, since it's the same chip... could you give us some light on the bluetooth plans?
15:34marcanit's a different function
15:35marcanit needs its own changes
15:35Dcowbig or small?
15:35Dcoware you planning to work on this in the near future?
15:49leah2 has quit [Remote host closed the connection]
15:51leah2 has joined #asahi
16:08leo60228 has quit [Ping timeout: 480 seconds]
16:39SamAdams[m]Have we consulted with this person regarding wifi drivers on Mac OS/Linux? They are doing the same thing, but reverse, transforming Linux wifi drivers to Mac OS. We have the Mac OS Wifi drivers and need to bring them to Linux.
16:39tpw_rulesthat problem is already solved
16:39tpw_rulesmore or less
16:54egavinc has quit [Quit: Leaving]
17:11chengsun has joined #asahi
17:35Fruit has left #asahi [#asahi]
17:54Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:19Dcow has joined #asahi
18:31Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:33Dcow has joined #asahi
19:06mpsGlanzmann: I looked at pipcet kernel few months ago and talked with him in private but decided to not play with because I want to follow that what will be upstreamed
19:06mpsand using debian is not option for me
19:07mpslandscape15[m]: what you mean with 'stricter license for asahi'? I didn't set any licence and I don't work on asahi project. did you meant to send msg to someone else?
19:10Glanzmannmps: I see.
19:15Glanzmannmps: Since you're using Linux on an m1 laptop, do you have anything to adopt the backlight or turn it off?
19:16mavericks has joined #asahi
19:20landscape15[m]mps: sorry, I meant the official asahi repo.
19:21mpslandscape15[m]: I'm not asahi project member
19:21mpsGlanzmann: no, nothing yet
19:21darkapex3 has joined #asahi
19:24mps /sys/class/backlight is empty
19:28darkapex2 has quit [Ping timeout: 480 seconds]
19:31Glanzmann has quit [Quit: EOF]
19:34n1c has left #asahi [#asahi]
20:01Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:01leo60228 has joined #asahi
20:11gladiac is now known as Guest8870
20:11gladiac has joined #asahi
20:17Guest8870 has quit [Ping timeout: 480 seconds]
20:18Dcow has joined #asahi
21:05MajorBiscuit has quit [Quit: WeeChat 3.3]
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:44fionera[m]is it known that atleast on the m1 max the usb gadged is kinda flaky and fails to init hpm0?
21:46svenand the usb curse strikes again!
21:47sveni hoped we had fixed hpm issues at this point :(
21:47j`eyfionera[m]: heres the old m1n1 issue https://github.com/AsahiLinux/m1n1/issues/101
21:47fionera[m]it doesnt happen if I dont have a cable in the machine while booting but its very very flaky and even without touching anything it stops working
21:49fionera[m]right now I cant get it to work at all :/ but I dont know why yet
21:57Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:59Dcow has joined #asahi
22:07jannaufionera[m]: under linux? only hpm0? how do you boot?
22:08fionera[m]I dont boot at all :( I have to reboot m1n1 until it doesnt happen
22:08fionera[m]manually ofc
22:13fionera[m]oh now it happend on hpm2. (/me is now actively watching it)
22:16jannauI haven't seen any issues but my on device m1n1 is from november 8th with modifications
22:17jannauI haven't noticed any issues with chainloading though
22:40jannauinteresting, I can't update it although kmutil configure-boot did not complain
22:46jannauworked now. I might have typed `bputil configure-boot ...`
22:54jannauI can't reproduce with vf2eac15 but I feel your pain. rebooting m1n1 through long pressing power is annoying
22:56jannaufionera[m]: I don't think the hpm init should be affected by a bad cable but have you tried with a different cable or can easily try?
22:56fionera[m]I sadly dont have a reliable way to reproduce it yet since I also dont have a clue how to fix. It fixed itself either by time or switching cables
22:57fionera[m]the cable is the official nintendo switch cable so i dont think its bad quality
22:59Latrina has quit [Quit: Powered by AlpineLinux under the supervision of Docker.]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:00Latrina has joined #asahi
23:01yrlf has joined #asahi
23:42el_mugroso has joined #asahi
23:44el_mugroso has quit []
23:44el_mugroso has joined #asahi
23:47el_mugroso has quit []
…