#
…

2021-11-21

00:33nsklaus has quit [Quit: WeeChat 3.3]
00:35RealityVoidI used this to apply all patches, seems to work well-ish
00:35RealityVoidfor i in ../AsahiLinux-PKGBUILD/linux-apple/*.patch; do echo Applying patch from $i && patch -p1 <$i; done
00:39klaus has joined #asahi
00:39klaus has quit []
00:46RealityVoidIt seems to build and load.
00:47RealityVoidIs that debian installer usable for you guys when using it from the pycon? Just a pin undersatanding what it's doing.
00:48RealityVoidLet's say I want to get the keyboard running, how would one go about that?
00:48RealityVoidLike.. the proper way. Something that could be mainlined or something.
00:55nsklaus has joined #asahi
01:07kenzie has quit [Quit: The Lounge - https://thelounge.chat]
02:36_chamomile has quit [Ping timeout: 480 seconds]
02:52chamomile has joined #asahi
03:06yuyichao_ has joined #asahi
03:06cth451_desktopI'm not using Debian (and thus not using the installer)
03:06cth451_desktopI have provisioned a root filesystem elsewhere and dumped that to a thumb drive
03:08aquijoule_ has joined #asahi
03:14cth451_desktopThe goal was to boot from iSCSI (which I had originally planned for 10GE) but alas
03:14richbridger has quit [Ping timeout: 480 seconds]
03:14psykose has quit [Remote host closed the connection]
03:15psykose has joined #asahi
03:16PhilippvK has joined #asahi
03:20phiologe has quit [Ping timeout: 480 seconds]
03:38kov has quit [Quit: Coyote finally caught me]
04:02palmer_ has joined #asahi
04:02palmer_ has quit [Remote host closed the connection]
04:26marvin24_ has joined #asahi
04:29marvin24 has quit [Ping timeout: 480 seconds]
04:35phire_ has joined #asahi
04:35phire is now known as Guest6421
04:35phire_ is now known as phire
04:37Guest6421 has quit [Ping timeout: 480 seconds]
05:13Glanzmann has joined #asahi
05:14GlanzmannRealityVoid: I used the following procedure to install Debian based on what allyssa did. https://ab34.de/u/asahi.txt
05:15GlanzmannThat is on the mini. I than installed xorg, firefox, fvwm2, you name it and was able to work from it for a week.
05:15GlanzmannOf course you could also boot via iscsi or nvme-over-tcp.
05:47Dcow has joined #asahi
05:55Dcow has quit [Ping timeout: 480 seconds]
05:56chamomile has quit [Ping timeout: 480 seconds]
06:00chamomile has joined #asahi
06:02Dcow has joined #asahi
06:10Dcow has quit [Ping timeout: 480 seconds]
06:30chamomile has quit [Ping timeout: 480 seconds]
06:36tertu has quit [Ping timeout: 480 seconds]
06:36tertu has joined #asahi
07:47aquijoule_ is now known as richbridger
07:47jannaucth451_desktop: please copy the m1n1 output and the kernel boot log to a pastebin
07:49richbridger has quit []
07:49richbridger has joined #asahi
07:50richbridger has quit [Remote host closed the connection]
07:50richbridger has joined #asahi
07:57Dcow has joined #asahi
08:01GlanzmannDoes someone have a tree that works ond a macbook air including keyboard, wifi and framebuffer x?
08:08inertia has quit []
08:22cth451_desktopjannau: m1n1 output on the chainloader with PR125 applied - https://pastebin.aosc.io/paste/jWSM9QL1vQDwJjpB2Ol2TA
08:26j_ey[ 1.307838] systemd[1]: Listening on Journal Audit Socket.
08:27j_eythis pastebin is terrible for selecting text..
08:27j_ey[ 2.090276] r8152 3-1:1.0: Direct firmware load for rtl_nic/rtl8153a-3.fw failed with error -2
08:27cth451_desktopYeah this is an ethernet dongle on USB-C
08:29cth451_desktopThe firmware wasn't added to the initrd
08:29cth451_desktopbut this should be independent from the 10GE issue
08:30richbridger has quit [Remote host closed the connection]
08:31cth451_desktopNot entirely sure whether this is related, but for some reason the NVMe SSD itself is not present under lspci
08:37marcanit's not PCI
08:38jannauthe problem is pcie-apple 690000000.pcie: /soc/pcie@690000000/pci@2,0 link didn't come up
08:48jannauthe device config seem readable later though. I suspect the pci init is not sufficient for the 10ge variant
08:52marcando we have an ADT from that variant?
08:52marcanI'm wondering how link bonding works
08:52marcanI assume the 10ge variant has more than a 1x pcie link
08:52marcanI think all the other devices are 1x?
08:53marcanthen again on the M1 Mini with 3 physical ports, how would they do that?
08:54marcanI guess 10ge would just about saturate a PCIe 3.0 link so maybe they do only need one lane
09:01mpsis tree https://github.com/jannau/linux/tree/apple-m1-exp_v5.16-rc1 ok starting point for kernel, and add keyboard patches on it?
09:02mpsj_ey: thanks
09:05j_ey(most of the patches in the apple-m1-exp_v5.16-rc1 tree are for the pro/max, but dont hurt anyway)
09:34jannaumarcan: the j274 template ADT has lan-10g and some "*-10g" properties in pci-bridge2
09:35jannauit has maximum-link-speed = 4 so I assume it uses 4 PCIe 3 links
09:41marcanI think you're confusing link speed with link width
09:41marcanmaximum-link-speed = 4 probably means PCIe Gen4
09:42marcanI'm pretty sure t8103 only has 3 lanes total and t600x only has 4 lanes total
09:42marcan(which also means the 16 bound in your patch isn't quite right :))
09:43marcanyeah, definitely only 3 lanes on t8103
09:44jannaumakes sense
09:44marcanso all links are 1x on t8103 and t600x (at least on current devices; not sure if they might be able to bond links into one root port, maybe? but not on current devices)
09:45marcanit's entirely possible that Gen4 needs more initialization than we currently do
09:45marcanOTOH, I would *expect* both sides to fall back to an older gen if things go wrong during link training
09:45marcanso it's a bit weird that it wouldn't work at all
10:15kov has joined #asahi
10:21aleasto has joined #asahi
10:27kettenisfunction-pcie_port_control = 49:PrtC(0x3b)
10:28kettenisthat is present on lan-10gb but not on lan-1gb
10:53gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:53gabuscus has joined #asahi
11:05jannauthe pcie usb controller has "function-pcie_port_control = 49:PrtC(0x35)" and works out of the box
11:15Glanzmann has quit [Quit: EOF]
11:43gladiac is now known as Guest6447
11:43gladiac has joined #asahi
11:47gladiac has quit []
11:47gladiac has joined #asahi
11:49Guest6447 has quit [Ping timeout: 480 seconds]
12:17gladiac is now known as Guest6448
12:17gladiac has joined #asahi
12:23Guest6448 has quit [Ping timeout: 480 seconds]
12:53aleasto has quit [Remote host closed the connection]
13:20gladiac is now known as Guest6452
13:20gladiac has joined #asahi
13:26Guest6452 has quit [Ping timeout: 480 seconds]
14:19nsklaus has quit [Quit: WeeChat 3.3]
14:22klaus has joined #asahi
15:21Dcow has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
15:27mpsnow that I got boot macbook and can see nvme disk with partitions, how and where I can install linux root FS on it
15:33mpson nvme0n1p5 which is vfat and size is 198GB?
16:06marcanjannau: pull/125 does nothing because Linux currently ignores the max speed prop, see -dev :-)
16:09marcanbut if the link isn't up then it isn't up
16:10marcanISTR maz mentioned something about PERSTN?
16:12marcanah yes, that one
16:13marcanyou can try this to fix the link speed problem, but I doubt that will make it work (it should still negotiate at Gen1): https://github.com/AsahiLinux/linux/commit/35ee181fdfdea4c5c87b2365c6f3de707ddef745
16:13jannauthe adt even has "t-refclk-to-perst" and "perst-to-config" both set to 100
16:14jannaucth451_desktop: ^^^
16:14jannauI don't have a 10g ethernet mac mini
16:17marcanthere is an i2c device associated with the 10ge
16:18marcanaqc-a on i2c3
16:19marcanthis has to do with the BMC type functionality that is supposedly supported on these macs maybe?
16:20marcanhm, the datasheet says Gen2/Gen3
16:20marcanso maybe indeed it does refuse to train at Gen1? if so try my patch
16:21jannaumaybe it seems to have an additional mac address, whatever "extlom" is
16:21marcanfor the BMC
16:21marcanlom = "lan on motherboard"
16:22marcanthis is server terminology
16:22marcanthe second MAC would be for the BMC
16:22marcanoh sorry, "lights out management"
16:22marcansilly overloaded terms
16:27marcansupposedly it talks IPv6/TLS using the onboard CPU and can turn the computer on and off
16:27marcanpresumably it is provisioned via that i2c link
16:28kettenisso maybe they did the sane thing and disabled it by default?
16:28kettenis(I firmly believe that only LOM/BMC solution that use a dedicated network port are acceptable)
16:35marcanapparently it even does mDNS, heh
16:36jnoh, dreaded NC/SI...
16:36marcanyes, it does that too
17:00eichin has quit [Remote host closed the connection]
17:00jkkm has quit [Remote host closed the connection]
17:00eric_engestrom has quit [Remote host closed the connection]
17:00cptcobalt has quit [Remote host closed the connection]
17:00nkaretnikov has quit [Remote host closed the connection]
17:00steev has quit [Remote host closed the connection]
17:00Vaughn has quit [Remote host closed the connection]
17:07jabashque has quit [Remote host closed the connection]
17:11sorear has quit [Remote host closed the connection]
17:11brinly has quit [Remote host closed the connection]
17:11taowa has quit [Remote host closed the connection]
17:11stblassitude has quit [Remote host closed the connection]
17:23austriancoder has quit [Ping timeout: 480 seconds]
17:24esden has quit [Ping timeout: 480 seconds]
17:24philpax has quit [Ping timeout: 480 seconds]
17:25tom-w has quit [Ping timeout: 480 seconds]
17:25robher has quit [Ping timeout: 480 seconds]
17:25kendfinger has quit [Ping timeout: 480 seconds]
17:25Chainsaw has quit [Ping timeout: 480 seconds]
17:25Ariadne has quit [Ping timeout: 480 seconds]
17:25ZLSA has quit [Ping timeout: 480 seconds]
17:26sjg1 has quit [Ping timeout: 480 seconds]
17:26rann has quit [Ping timeout: 480 seconds]
17:26ovf has quit [Ping timeout: 480 seconds]
17:26arnd_ has quit [Ping timeout: 480 seconds]
17:27daniels has quit [Ping timeout: 480 seconds]
17:28maennich has quit [Ping timeout: 480 seconds]
17:36Dcow has joined #asahi
18:52sorear has joined #asahi
18:53stblassitude has joined #asahi
18:54saintdev_ has joined #asahi
18:54taowa has joined #asahi
18:55tardyp has joined #asahi
18:55brinly has joined #asahi
18:55enomem has joined #asahi
18:56guan has joined #asahi
18:57NekomimiScience has joined #asahi
18:58mustache_ride___ has joined #asahi
18:59aeroraptor has joined #asahi
19:01jabashque has joined #asahi
19:04ovf has joined #asahi
19:04arnd_ has joined #asahi
19:04kendfinger has joined #asahi
19:04esden has joined #asahi
19:04robher has joined #asahi
19:05sjg1 has joined #asahi
19:05daniels has joined #asahi
19:06steev has joined #asahi
19:06rann has joined #asahi
19:07eichin has joined #asahi
19:08Vaughn has joined #asahi
19:08cptcobalt has joined #asahi
19:09jkkm has joined #asahi
19:09maennich has joined #asahi
19:09nkaretnikov has joined #asahi
19:10Chainsaw has joined #asahi
19:10philpax has joined #asahi
19:10Ariadne has joined #asahi
19:10ZLSA has joined #asahi
19:10eric_engestrom has joined #asahi
19:11austriancoder has joined #asahi
19:13jannausigh, I missed that j293 has i2c4
19:14tom-w has joined #asahi
19:20arahael3 has quit [Ping timeout: 480 seconds]
19:22sveni2c should also be a separate commit from cd321x imho
19:25kettenisalso some of the diffs had v2 in the subject and others didn't...
19:39kettenissven: I see no trace of the endpoint number for the SMC in the ADT
19:40kettenisso I assume the macos driver just knows the endpoint number?
19:41maor26 has joined #asahi
19:50thunfisch has quit [Remote host closed the connection]
19:50thunfisch has joined #asahi
19:52chamomile has joined #asahi
19:56svenkettenis: yes. afaict most endpoint numbers are hardcoded inside the drivers
19:56thunfisch has quit [Remote host closed the connection]
19:57thunfisch has joined #asahi
20:05thunfisch is now known as Guest6468
20:05thunfisch has joined #asahi
20:05Guest6468 has quit [Ping timeout: 480 seconds]
20:12mpsis it possible to kernel cmdline when creating chainload image? I saw that linux.py have this option (-b) but can't find is it possible for chainload
20:13mpss/to kernel/to add kernel/
20:16thunfisch has quit [Remote host closed the connection]
20:16thunfisch has joined #asahi
20:16j_eycat m1n1.macho <(echo 'boot-args=here are boot args') linux.gz dtb.dtb etc
20:17mpsj_ey: many thanks
20:19mpscould I repeat my question about nvme partition on which to install (actually copy from usb) linux root FS
20:20mpslooks like it is nvme0n1p5 in my case, but I'm not sure
20:20chamomile has quit [Ping timeout: 480 seconds]
20:22mpsit is vfat fs 'formated' and I think it should be 'reformated' as ext4, though not sure will that make a mess for macos
20:23chamomile has joined #asahi
20:25kettenismps: nobody can answer that question with just that snippet of information
20:26gladiac is now known as Guest6469
20:26gladiac has joined #asahi
20:26kettenisall I can say that a normal macos installation does not have any vfat partitions
20:26mpskettenis: ok, so I have to risk and see results :)
20:28kettenisok, I've got u-boot working with something that resembles sven's mailbox/ANS2 bindings
20:29mpskettenis: I followed quickstart and created these two vfat partitions, one for /boot and one for /root, iiuc
20:30kettenisthen you should have one small and one large vfat partition
20:31mpsyes, that is
20:31Guest6469 has quit [Ping timeout: 480 seconds]
20:32mpsI'll risk after I finish with kernel upgrade
20:33cth451_desktopjannau: The ethernet card came up with the two patches applied
20:33cth451_desktop("Configure link speed properly" and "Reset the port for 100ms on probe")
20:33kettenisif nvme0n1p4 is your small vfat partition and nvme0n1p5 is the large vfat partition then nvme0n1p5 is almost certainly your root partition
20:34cth451_desktopCurrentlly operating at GE speed. I need to move the mini into the rack for 10G connectivity and will try that later.
20:34cth451_desktop03:00.0 Ethernet controller: Aquantia Corp. Device 04c0 (rev 03)
20:37mpskettenis: that is also my thinking
20:39sveni think the M1 actually has ANS3 fwiw: +-o AppleANS3NVMeController <class AppleANS3NVMeController, id 0x1000003c2, registered, matched, active, busy 0 (159 ms), retain 20>
20:40kettenisADT says ANS2 in several places ;)
20:41svenANS2.5 then i guess
20:41jannausart-ans is version 3
20:42kenzie has joined #asahi
20:42svenyeah, but that's different
20:50Dcow_ has joined #asahi
20:50cth451_desktopjannau: but the mac address seems unstable and keeps changing across reboots
20:52kettenisthe driver probably needs code to read the mac address from the device tree
20:53cth451_desktopYeah I'll hardcode a MAC address in NetworkManager for now
20:55Dcow has quit [Ping timeout: 480 seconds]
20:57kenzie has quit [Quit: The Lounge - https://thelounge.chat]
20:58kenzie has joined #asahi
21:02cth451_desktop[ 1.128309] atlantic 0000:03:00.0 (unnamed net_device) (uninitialized): MAC is invalid, will use random.
21:08mpskettenis: installing root FS on this internal partition works
21:08X-Scale has joined #asahi
21:12cth451_desktopThe device tree has the right MAC address populated so kettenis you could be right that the driver isn't looking at dt
21:13X-Scale` has quit [Ping timeout: 480 seconds]
21:16lovesegfaultWhat's the status of the M1 Pro work?
21:17j_eypretty much on par with the original M1s
21:17lovesegfaultNice, I'm tempted to get one to play with
21:19jannausupport currently only in the asahilinux tree and not mainline linux though
21:19matthewayers[m]I have a M1 Max as my daily driver but I am eager to test some stuff out after I finish finals next month
21:19lovesegfaultI imagine the lack of wifi is the main drag right now
21:20j_eywifi works
21:20lovesegfaultI thought it didn't work on the pro yet, that's awesome
21:21j_eyDunno if anyone has tried on the pro actually, jannau?
21:21j_eypro/max
21:34jannauI haven't tried wifi on the m1 max yet
21:43kenzie has quit [Quit: The Lounge - https://thelounge.chat]
21:45kenzie has joined #asahi
21:45X-Scale` has joined #asahi
21:50jevinskie[m]marcan: as to why I want to boot xnu without the proxy: setting DT entries like debug-enabled is handy for macOS research and it would be nice to be able to use a custom DT config untethered from the proxy loader
21:50X-Scale has quit [Ping timeout: 480 seconds]
21:50jevinskie[m]I’m making progress on it :)
21:54kenzie has quit [Quit: The Lounge - https://thelounge.chat]
21:57marcanI don't think anyone has tried wifi on the pro, but it should work with that horrible patch...
21:58marcanI just really don't want to rely on it so I'm using that excuse to make me rewrite it
21:58marcan... as soon as I send the PMGR series :p
21:58marcancth451_desktop: glad to hear it works :)
22:00cth451_desktopQuickly devising a dirty patch to nudge atlantic to read MAC from dt if hw reports an invalid one
22:03kenzie has joined #asahi
22:04kenzie has quit []
22:05kenzie has joined #asahi
22:40RealityVoid has quit [Remote host closed the connection]
22:40RealityVoid has joined #asahi
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:11cth451_desktopThe patch to make 10GE card respect the MAC address supplied by DT https://pastebin.aosc.io/paste/TXJ-Rn8GhOBN8548XDQb0w
23:12yrlf has joined #asahi
23:23maor26 has quit [Ping timeout: 480 seconds]
23:31palmer_ has joined #asahi
23:32palmer_ has quit [Remote host closed the connection]
…