2022-01-19
00:03marvin24 has quit [Ping timeout: 480 seconds]
00:07aleasto has quit [Remote host closed the connection]
00:07aleasto has joined #asahi
00:08aleasto has quit []
00:18user982492 has joined #asahi
00:24thevar1able has joined #asahi
00:29off^ has quit [Remote host closed the connection]
00:33artemist has joined #asahi
00:46Retr0id has joined #asahi
00:49Retr0id7 has joined #asahi
00:54Retr0id has quit [Read error: Connection reset by peer]
00:54Retr0id7 is now known as Retr0id
01:03thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
01:25thevar1able has joined #asahi
02:31thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
03:06user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:08user982492 has joined #asahi
03:23yuyichao has quit [Ping timeout: 480 seconds]
03:27thevar1able has joined #asahi
03:27PhilippvK has joined #asahi
03:30dominic_ has joined #asahi
03:31kov has quit [Quit: Coyote finally caught me]
03:31phiologe has quit [Ping timeout: 480 seconds]
03:31kov has joined #asahi
03:32dominic_Hi! I am a soft. eng. student in Canada and I really want to help on the project. Where can I start?
03:34dominic_ has quit []
03:37user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:55user982492 has joined #asahi
03:57akemin_dayo has quit [Ping timeout: 480 seconds]
04:08marvin24 has joined #asahi
04:12marvin24_ has quit [Ping timeout: 480 seconds]
04:21thevar1able has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
04:28yuyichao has joined #asahi
05:02artemist has quit [Quit: artemist]
05:10dominic_ has joined #asahi
05:11ArjunKarangiya[m] has left #asahi [#asahi]
05:12dominic_ has quit []
05:13artemist has joined #asahi
05:21thevar1able has joined #asahi
05:27homulilly[m] has joined #asahi
05:37thevar1able has quit [Quit: Textual IRC Client: www.textualapp.com]
05:43Glanzmannlandscape15[m]: This is the incomplete instructions, but I'll put in a script that you can build everything yourself: https://pbot.rmdir.de/eNJcYXGlD42aY5Xu4omNtQ
05:45GlanzmannMissing is the initrd. But it is a deboostrap + kernel + firmware (no propiertary apple stuff) + tmux + vim + tcpdump + vlan + bridge-utils, an empty root passowrd, and a symlink that starts systemd.
07:42marvin24_ has joined #asahi
07:45MajorBiscuit has joined #asahi
07:45marvin24 has quit [Ping timeout: 480 seconds]
08:25Major_Biscuit has joined #asahi
08:32MajorBiscuit has quit [Ping timeout: 480 seconds]
08:32landscape15[m]Glanzmann: thanks. But I was wondering how you can bundle all dtbs, because I usually cat m1n1 > dtb > Image, and with u-boot it should be m1n1 > dtb > u-boot
08:33landscape15[m]btw thanks for the guide, I will try u-boot when I have some time
08:35landscape15[m]jannau: oh that makes sense
09:09Glanzmannlandscape15[m]: I wondered about that as well when kettenis told me first about this, but this is of course very convenient. Because you can use the same binary for multiple types of systems.
09:10GlanzmannBtw. the Debian initrd is very nice. You can do everything, including desktop, install arbitrary software and use it to install also other distributions, if you have a root tar ball.
09:21landscape15[m]Yeah but I don’t think we will ever reach the point the end user needs only an img. Simply because you need to set m1n1 > u-boot first. Have you installed the kernel in the Debian initrd?
09:22landscape15[m]I mean, you installed the kernel directly with debootstrap right?
09:34Namidairo has quit [coherence.oftc.net nucleus.oftc.net]
09:34hendry has quit [coherence.oftc.net nucleus.oftc.net]
09:35Namidairo has joined #asahi
09:35hendry has joined #asahi
09:52eroux has quit [Ping timeout: 480 seconds]
09:52eroux_ has joined #asahi
10:12mpsI want to package m1n1 for alpine linux, what should I put as description? does 'experimentation playground for Apple Silicon' sounds good?
10:18user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:37aleasto has joined #asahi
10:51mpshmm, I installed 'llvm bash imagemagick dtc' but got error `make: *** No rule to make target 'data/bootlogo_128.png', needed by 'build/bootlogo_128.bin'. Stop.` seems something else is needed
11:05Glanzmannlandscape15[m]: No I did not, I just copied the modules over, but in the future I'll do that, because that allows for 'copy initrd to disk' installations. But honestly I was thinking more of users of the image could untar a rootfs or run debootstrap. But yes I should install the kernel in the image.
11:17Glanzmannlandscape15[m]: The user will run the asahi installer. That leaves him with m1n1 + u-boot.
11:17GlanzmannThan the user can you any efi enabled installation media to boot the installer and install the OS, easy peasy.
11:18GlanzmannAnd with the debian live you can now install debian and any linux distribution which has a rootfs lying around somewhere.
11:18Glanzmannlandscape15[m]: Kernel deb is here: https://tg.st/u/linux-image-5.16.0-asahi-next-20220118-14779-ga4d177b3ad21-dirty_5.16.0-asahi-next-20220118-14779-ga4d177b3ad21-dirty-5_arm64.deb (asahi + jannaus patch to make the keyboard work on the laptops).
11:23Glanzmannlandscape15[m]: I put a link to the kernel deb in https://tg.st/u/asahi-debian-live.txt and will tonight put it in the initrd.
11:25aleasto has quit [Quit: Konversation terminated!]
11:26aleasto has joined #asahi
11:26aleasto has quit [Remote host closed the connection]
11:26aleasto has joined #asahi
11:27aleasto has quit [Remote host closed the connection]
11:27aleasto has joined #asahi
11:27aleasto has quit [Remote host closed the connection]
11:27aleasto has joined #asahi
11:29aleasto has quit [Remote host closed the connection]
11:29aleasto has joined #asahi
11:33landscape15[m]Glanzmann: ok thanks. For now I’m gonna try jannau’s repo with asahi_defconfig, and see if the keyboard works. Maybe I should add the patch for Fn keys.
11:34_jannau_landscape15[m]: use asahi with the 2 last commits in https://github.com/jannau/linux/commits/bits/090-spi-hid
11:52aleasto has quit [Remote host closed the connection]
11:52aleasto has joined #asahi
11:58landscape15[m]Ok thanks I’ll try it with defconfig
12:10ChaosPrincess has quit [Quit: WeeChat 3.4]
12:11ChaosPrincess has joined #asahi
12:38eroux_ has quit []
12:47yuyichao has quit [Quit: Konversation terminated!]
12:48yuyichao has joined #asahi
12:53linearcannon has quit [Read error: No route to host]
12:54linearcannon has joined #asahi
12:54DmitrySboychakov[m] has joined #asahi
13:12boardwalk has quit [Quit: Ping timeout (120 seconds)]
13:12boardwalk has joined #asahi
13:13mpsI'll look later if I can make proxyclient as subpackage, if this will be needed for end users
13:19mpsI packaged m1n1.bin and m1n1.macho as they will be needed for u-boot to chainload all them properly
13:21gladiac has quit [Quit: k thx bye]
13:22gladiac has joined #asahi
13:29NightRaven[m]Can you use wifi without a second machine ?
13:30DmitrySboychakov[m]afaik - not yet
13:30DmitrySboychakov[m]but I assume soon
13:30DmitrySboychakov[m]uboot enables pci?
13:30DmitrySboychakov[m]good to know
13:31NightRaven[m]Oh ok thanks
13:31j`eyat least kettenis current branch, but they just said in -dev, that they wont submit the smc driver upstream
13:31NightRaven[m]Ohh ok
13:32NightRaven[m]So the same procedure build the kernel and the .bin file and the payload
13:32NightRaven[m]Ohh do I just copy the files ?
13:33NightRaven[m]Oh ok
13:33mpsasahi-installer contains script to extract firmware from macos and then to untar it to linux
13:34NightRaven[m]Oh ok I will get started later on that but thanks
13:56akemin_dayo has joined #asahi
14:11povikdidn't see anyting in the pmgr dump you sent the other day, mps, that would explain the issue you see
14:19povikwhich exact branch are you running? i should maybe build the same and remove the speaker from mac mini's devicetree, see if that doesn't reproduce it
14:27DmitrySboychakov[m]povik: what devices do you have? only mini?
14:31povikbut the new mbps have a different codec on the headphones jack, one that we don't have driver for
14:39DmitrySboychakov[m]I see. is there difference between 14/16 models? codec-wise
14:43yuyichao has quit [Ping timeout: 480 seconds]
14:52ChaosPrincessthat website is kinda broken
14:52ChaosPrincesscloses downloads before the end
14:54ChaosPrincesstrying to use that website
14:54V_ is now known as V
14:55Glanzmannpovik: tpaste.us often aborts download when you use curl, I often have to open it in a browser and than repaste.
14:55ChaosPrincessGlanzmann: which browser
14:56ChaosPrincessit still sometimes truncates in ff
14:56GlanzmannAnd as pastebot I use pbot.rmdir.de which does always give you the raw file and has a cli (I wrote it with a friend a decade ago)
14:56povikGlanzmann: have you tried asahi branch on the air? does the audio card show up? do you build with =m or =y?
14:57GlanzmannChaosPrincess: I see, most of the time it doesn't for me. At least on curl it always truncates and in firefox works.
15:02artemist has quit [Ping timeout: 480 seconds]
15:05yuyichao has joined #asahi
15:06kilrain[m] has left #asahi [#asahi]
15:06Glanzmannhttps://tg.st/u/screenshot-air-2022-01-19-16_06_31.png https://tg.st/u/screenshot-air-2022-01-19-16_06_36.png
15:09Glanzmannpovik: In alsamixer the 'nob' is all up: see: https://tg.st/u/screenshot-air-2022-01-19-16_09_19.png
15:10povik[ 18.410356] cs42l42 2-0048: ASoC: error at soc_component_read_no_lock on cs42l42.2-0048 for register: [0x00001d01] -6
15:10povikthere's some issue with register accesses to the codec over i2c, i have seen that on the mini during development too
15:11artemist has joined #asahi
15:12artemist has quit []
15:12artemist has joined #asahi
15:13Glanzmannpovik: No idea, I use u-boot/mini/grub chain But I could take u-boot out of the loop and try again, if that helps.
15:13yuyichao_ has joined #asahi
15:17yuyichao has quit [Ping timeout: 480 seconds]
15:19_jannau_nothing new yesterday just a rebase onto a newer linux-next tree since the old one had broken build system commits
15:21Glanzmannpovik: I also disabled the iboot startup sound because I boot to much and it get on the nerves of the family. So maybe iboot only initializes something if it is going to use it.
15:23Glanzmannj`ey: Could you give me a quick recap of the two smc streams today and yesterday. Anything interesting? I only read the chat.
15:23j`eyGlanzmann: next step is to make smc gpio available from the DT, so that it can be enabled automatically
15:24povikGlanzmann: iboot initializing or not should not be related to the i2c breakage, as we are taking the jack codec out of reset ourselves, starting with fresh slate
15:27Glanzmannpovik: I see. I hear two clicks when x starts same as before, but no sound. Also played with the mixer.
15:28Glanzmannj`ey: What features are in smc? I heard about enable pcie, powering off, lid close events, lcd brightness.
15:29j`eyand they should hopefully just go through normal kernel interfaces, so userland Just Works?
15:35mpsjust added m1n1 in alpine, waiting for patches kettenis posted to u-boot to be merged and then will add u-boot-m1 to alpine
15:36Glanzmannmps: Nice. The thing i posted yesterday night, can be used for all sorts of stuff. Should have done that earlier and it was really easy once I found out about the symlink for init.
15:36povikj`ey: ad trying m1n1 scripts. maybe later it will come to that, but i would need to brush one off for the jack. so far i think this breakage is something linux-specific
15:38Glanzmannmps: https://tg.st/u/asahi-debian-live.txt - This allows you to create usb stick with efi/grub on it. So you can tell u-boot to boot from the usb stick and than you have a full blown Debian testing in ram. from there you can install gnome and use it as a desktop or use it to install debian or any other linux distrinution that has a rootfs on the internal nvme.
15:39Glanzmannmps: I'll also install iwd on it an soemone could extract the wifi firmware and than you can use it with wifi ...
16:13sikkiladho[m] is now known as sikkileo[m]
16:23yuyichao has joined #asahi
16:26yuyichao_ has quit [Ping timeout: 480 seconds]
16:50poviki should probably focus on the regcache issue, which is something i can tinker with, which may have the same root cause as the breakage on Glanzmann's air
17:45Glanzmannpovik: If it helps, I can give you next week remote access to an air hooked up to a mini and a usb sound card that you can query remotely ...
17:54Major_Biscuit has quit [Ping timeout: 480 seconds]
17:55gor[m] has left #asahi [#asahi]
18:15yuyichao_ has joined #asahi
18:16joske has joined #asahi
18:17joskepovik: I have exactly the same issue as Glanzmann on macbook air (asahi branch of yesterday)
18:18Z751 is now known as Z750
18:19yuyichao has quit [Ping timeout: 480 seconds]
18:19povikapple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)
18:24joske has quit [Remote host closed the connection]
18:27Glanzmannpovik: This is from yesterday (when I had the kernel with the modules). It is full of it: https://tg.st/u/kern.log.1
18:28joske has joined #asahi
18:30povikGlanzmann: great, that seems to confirm that pwrstate issue is related to drivers being modules
18:31svenI don’t really see how that could happen, especially because the pwrstate change seems to be triggered
18:33svenmaybe it’s enabled and just want to keep the device in state 0x4 instead of going all the way to 0xf
18:33Glanzmannjoske: Do you have Debian, if that is the case I can give you my 'deb' where I had the messages and you can try it, if you want.
18:36poviki assume platform drivers are modprobed on demand autoamtically for platform device drivers
18:37joskepovik, then yes: [ 736.414344] apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)
18:41joske has quit [Remote host closed the connection]
18:44joske has joined #asahi
18:46joske has quit []
19:07bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:08bisko has joined #asahi
19:08bisko has quit []
19:09bisko has joined #asahi
19:11svenit sounds like a very strange timing issue. But I can’t think of anything that would trigger it
19:18user982492 has joined #asahi
19:47LUCAGIANGRANDI[m] has joined #asahi
19:49LUCAGIANGRANDI[m] is now known as djangro[m]
19:55eroux has joined #asahi
20:09eroux has quit [Read error: Connection reset by peer]
20:10eroux has joined #asahi
20:31jbowen has joined #asahi
20:42user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:49malvo has quit [Ping timeout: 480 seconds]
21:00landscape15[m]Is it a problem if I’m using python 3.8 for m1n1 proxy?
21:00landscape15[m]It seems to work good
21:15user982492 has joined #asahi
21:27akemin_dayo has quit [Ping timeout: 480 seconds]
21:38joske has joined #asahi
21:53bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:04jbowen has quit [Ping timeout: 480 seconds]
22:33akemin_dayo has joined #asahi
23:14povikhttps://github.com/torvalds/linux/blob/112450df61b7373529b0fe4c122ad13b89d80a8a/drivers/i2c/i2c-core-base.c#L2353
23:21user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:50rkjnsn[m]Glanzmann, I just noticed in your alsamixer screenshot, the "card" is set to the PulseAudio compatibility device. povik can correct me if I'm wrong, but I'm guessing you want to be looking for a MIXER knob on the actual audio device. You can press F6 to switch which card alsamixer is controlling.
23:58jbowen has joined #asahi