2022-02-23
00:12zvwhat more is needed than to have (a) built the kernel as mentioned earlier, (2) dd'd a rootfs image to e.g. /dev/disk0p6, (3) linux.py with root=PARTUUID=... ?
00:22chadmed has joined #asahi
00:23yuyichao has quit [Ping timeout: 480 seconds]
00:29rolodondo9378[m] is now known as rolodondo[m]
00:54yuyichao has joined #asahi
01:12vmeson has quit [Remote host closed the connection]
01:14vmeson has joined #asahi
01:25tanty has quit [Ping timeout: 480 seconds]
01:26tanty has joined #asahi
01:48kovblazra[m], kit_ty_kate it even made it into the 2.34.6 stable release already \o/ https://trac.webkit.org/log/webkit/releases/WebKitGTK/webkit-2.34
01:49kovI am trying to gather the energy to submit tpw_rules' patch to chromium, but haven't been able yet
02:21riker77_ has joined #asahi
02:25riker77 has quit [Ping timeout: 480 seconds]
02:25riker77_ is now known as riker77
03:35PhilippvK has joined #asahi
03:39kov has quit [Quit: Coyote finally caught me]
03:39phiologe has quit [Ping timeout: 480 seconds]
03:39kov has joined #asahi
04:41marvin24_ has joined #asahi
04:47chadmed has quit [Quit: Konversation terminated!]
04:48marvin24 has quit [Ping timeout: 480 seconds]
04:51chadmed has joined #asahi
05:41chadmed has quit [Quit: Konversation terminated!]
05:46Glanzmannzv: For Debian, look at the wiki page. https://github.com/AsahiLinux/docs/wiki/Debian This automates the dding: https://tg.st/u/m1di.pl At the moment you have to boot the kernel the firs time manually: linux (hd0,gpt5)/boot/vmli<tab> root=/dev/nvme0n1p5 rw
05:47Glanzmannzv: Marcan currently works on the installer. As soon as he pushes, I'll prepare a Debian Image for the installer. Than all of that is completly automated.
05:48Glanzmannzv: I'm also working with Debian Guy on getting the official Debian installer in shape, but at the moment you can also use the official Debian installer. You just need to execute on script, when it fails to install grub from another console to install grub and the kernel.
05:49GlanzmannAnother option that does a friend of mine for 1,5 years: Just install Debian in a VM under macos. It runs with near native performance. Perfect for a build machine and easy to handle.
05:50Glanzmannzv: If you just want it as a build host and do not touch the kernel, in my experience Debian is very stable to run multiple weeks.
05:51Glanzmannzv: But if you want the latest and gratest features, you need to touch u-boot constantly which requires you to but into 1tr. than maybe you want pikvm with a opto coupler to the power button.
05:52GlanzmannAt some point we will have m1n1 chainload support, than you can update the device tree without fiddling in 1tr.
06:03zvGlanzmann: thanks. a VM is probably out of the question due to the extremely limited memory and wanting to minimize overhead. I'll look into the script above tomorrow.
06:09Glanzmannzv: If you have any problems, let me know. I made it a hobie to install Debian on these machines.
06:10Glanzmannzv: Oh and you can run Debian stable. The only thing you need 'testing' for at the moment is a newer libinput.
06:13eroux has joined #asahi
06:13GlanzmannMy kernel builds are currently all 4k due to the webkit issue but of course in the long run I would like to run 16k pages. And I'm contact with a Debian developer which might help us to get to a 16k kernel on Debian with alle the dependencies.
06:15Glanzmannmarcan: Yesterday evening I was working on Linux and used 'halt -p' to shutdown Linux. This morning my macbook air did not turn on. Normally it turns on when I open the lid. But for sure when I press the power button. So the first thing I thought is that, I forgot to specify -p and it drained my battery. But that was _not_ the case.
06:16GlanzmannSo I plugged in the charger and tried to turn it on, no luck, than I waited 10 minutes, and tried the power button again, no luck, than I press and hold the power button. The charger was connected in the rear most usb-c port.
06:16GlanzmannThan I unplugged the charger and put it in the front most port. And it made the chime and I was able to power on the system.
06:17GlanzmannDid that ever happen to you or someone else. For me. I think it was the second time that happened.
06:33chadmed has joined #asahi
06:58the_lanetly_052 has joined #asahi
07:47MajorBiscuit has joined #asahi
08:17mpsGlanzmann: about week ago I had a 'glitch' similar like you but not same. I powered down machine with battery above 95% full. one hour later I opened lid but machine didn't started as always does. I pressed power button but again it didn't started. then I press and hold power button for about 5-10 seconds and it started
08:22GlanzmannI think, I had this once with the mini and again with the air. But this glitch this morning I never had before. But again replugging the power supply to the front most port, gave me the charging chime and than I could power on.
08:22Glanzmannmarcan: Once you finish the installer, we need to build a fedora installation to unboard Linus.
08:23Glanzmannas400[m]: I don't think so, because when you run macos, you never turn off your device.
08:25as400[m]marcan: I noticed that upower does not properly read battery capacity on my mbp 14. Two questions: do you have the same on yours ? Would you like us to file issues like that on github ?
09:07maz has quit [Quit: ZNC 1.8.1+deb1 - https://znc.in]
09:08maz has joined #asahi
09:12marcanit seems upower converts that using the design min voltage, which we do provide, in the absence of a design max voltage, which I haven't found yet
09:24gladiac has quit [Read error: No route to host]
09:24gladiac has joined #asahi
09:28gladiac has quit [Read error: No route to host]
09:28gladiac has joined #asahi
10:01marcaneither way it's just a number, doesn't really matter if it doesn't match whatever apple uses in their marketing
10:09the_lanetly_052 has quit [Remote host closed the connection]
10:10the_lanetly_052 has joined #asahi
10:13as400[m]But anyway you need to have this estimate to estimate roughly how much time you have left on battery
10:40bisko has joined #asahi
10:45as400[m]I didn't know that. So this is where upower takes the value from to show you how much time is left ?
10:47the_lanetly_052 has quit [Remote host closed the connection]
10:48the_lanetly_052 has joined #asahi
10:54mpsas400[m]: https://tpaste.us/yped this is lua widget on my computers, and you can see how it calculates battery values
11:13eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:14as400[m]It's probably the same with plasma battery widget. AFAIR it let's upower do this and its calculating this value instead of reading it from time_to_empty.
11:15mpsI think upower and similar things are made to be 'generic' solutions and not taking specifics of different battery models
11:51animus98[m] has joined #asahi
11:54akemin_dayo has quit [Ping timeout: 480 seconds]
12:00eroux has joined #asahi
12:55chadmed has quit [Remote host closed the connection]
13:06GlanzmannI was mistaken. I thought i saw lua support for fvwm but must have it confused, because I just checked out the fvwm2 source code and there is no lua, but there is perl, not that I'm using it.
13:22m42uko_ has joined #asahi
13:27m42uko has quit [Ping timeout: 480 seconds]
13:46skepti has joined #asahi
14:23skepti has quit []
14:24GlanzmannDebian has a package that automatically resizes the root filesystem. I need to test this: cloud-initramfs-growroot
14:25Glanzmannmarcan: About having multiple Linux installations. So I assume the uuid of the rootfs will always be same, and the uuid of the esp will be different, correct?
14:28GlanzmannAnd IIUC what marcan is currently doing, than the answer is no. Because grub identifies the root partition using the uuid which is hardcoded in dd of the ext4.
14:30tpw_ruleshe said he also wanted to add something that randomizes the UUID on first start after resizing the partition
14:36mpsGlanzmann: bootaa64.efi uses gpt partition number to search for grub and then in grub.cfg 'everything is possible' to set
14:36as400[m]Glanzmann: what I'm saying is - lets not push marcan into users heads and anticipating "what would user want". The installer should be as simple as possible for the time being. That's my two cents.
14:37Glanzmannmps: On Debian it is different: /boot/efi/EFI/boot/grub.cfg > https://pbot.rmdir.de/jyyewXwB6WF11X5NH48x4w
14:39GlanzmannBut that fits my mo anyway because it makes it much easier to build Debian automated. I can currently build the complete Debian artefacts in less than 5 minutes.
14:40yuyichao has quit [Ping timeout: 480 seconds]
14:41mpsGlanzmann: I think debian use 'trick' to add something for grub on ESP to find grub files and conf and don't embed gpt part number in bootaa64.efi
14:41Glanzmannmps: On the m1 I prefer fsuuid over partuuid, because macos diskutil sometimes reassign partition numbers which change the partuuid IIUC.
14:42bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:42Glanzmannmps: I think, I pasted that before. Yes they have one or two patches: https://pbot.rmdir.de/VJCNncFWA2YCpQPW6Z0rrQ
14:44mpsbut not sure how other distro do this. I only know that grub in alpine uses upstream default with `grub-install`
14:52eroux_ has joined #asahi
14:57eroux has quit [Ping timeout: 480 seconds]
14:58yuyichao has joined #asahi
14:58the_lanetly_052__ has joined #asahi
15:04the_lanetly_052 has quit [Ping timeout: 480 seconds]
15:05bisko has joined #asahi
15:52bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:13eroux has joined #asahi
16:18eroux_ has quit [Ping timeout: 480 seconds]
16:29bisko has joined #asahi
16:44zopieux has quit [Ping timeout: 480 seconds]
16:46zopieux has joined #asahi
17:05MajorBiscuit has quit [Ping timeout: 480 seconds]
17:17marcanif you're installing SSH, deleting the SSH keys is one of the things you need to do before building a distributable image
17:18marcanre bootaa64.efi, I'll have to figure out how it finds the part, but I'm sure we can come up with something
17:25mpsmarcan: I saw on stackoverflow something about binary patching bootaa64.efi but didn't wrote url, will try to find it
17:28marcanyou may have noticed that this project is all about doing things the right way, not about hacking together the first thing that works ;)
17:29Glanzmannmarcan: I agree, but I think Debian does it the right way, but whatever meets your standards.
17:29Glanzmannmarcan: And probably you want to use the method of the distribution, so that grub updates don't break the boot chain.
17:29marcanyes, I agree that that's a good approach, and I guarantee we can come up with a better solution than "use the debian grub package"
17:30marcantpw_rules: it configures `prefix` relative to the EFI boot volume, then loads a config file from there to find the real config file by UUID
17:30Glanzmanntpw_rules: So Debian grub searches for grub.cfg in the same directory. In that grub.cfg it chainloads the real grub.cfg and uses that.
17:30marcanGlanzmann: fwiw, you can already achieve this with grub-mkimage, which is what grub-install calls anyway
17:33_jannau_also not correct if the grub binary is just copied to ESP during the install from macos
17:34___nick___ has joined #asahi
17:35___nick___ has quit []
17:36Glanzmannmarcan: My plan for Debian after reading how you do things is: Don't use grub-install during image building, boot using a grub.cfg simliar to the one I posted above to boot the first time.
17:36GlanzmannDuring first boot in the initrd, grow the filesystem and exchange the uuid of the ext4
17:37___nick___ has joined #asahi
17:37GlanzmannYou could do the same by patching the grub binary the same way the distro does it using python.
17:45axboelinus was balking at the pricing of the laptops, but sounds like he wants to go get a mini
17:48marcanand if you want it on t6000, go shout at the IOMMU maintainer, that's not happening until that gets looked at ;)
17:49marcanthere's actually not much missing there for a desktop, isn't there? other than wifi and cpufreq
17:50akemin_dayo has joined #asahi
17:52mazmarcan: I'll probably close the door on the irqchip stuff one -rc7 is out, so if you aiming for 5.18, the time is now...
17:53svenI’m still annoyed about that mystery lock that fixed the missed irqs but I’m out of ideas at this point :/
17:55axboemarcan: where's the last posting of the IOMMU patches? I'm quite happy to help drive some of these forward...
17:56marcanwith AIC2 and that, the kernel will boot on t6000, and I think there isn't even anything strictly missing, it'd be on par with t8103
17:58axboeI kind of take the approach of ensuring Joerg provides a reviwed-by and then just send it in yourself for the merge window with Robin on CC
18:00mazsven: Robin is on Libera Chat if you need to get hold of him (I saw him in #linux-rockchip).
18:27the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:50jx0 has quit [Quit: poof!]
19:04the_lanetly_052__ has joined #asahi
19:09MajorBiscuit has joined #asahi
19:13the_lanetly_052__ has quit [Ping timeout: 480 seconds]
19:19mpshm, I didn't enabled CONFIG_NVMEM_RMEM in my kernel build. should it be enabled for asahi kernel
19:20mps`This driver maps reserved memory into an nvmem device. It might be useful to expose information left by firmware in memory`
19:35kloenk has joined #asahi
19:46darkapex1 has joined #asahi
19:51darkapex has quit [Ping timeout: 480 seconds]
19:53MajorBiscuit has quit [Ping timeout: 480 seconds]
20:15eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:17jannauso far no reserved memory in the devicetree, dcp will probably use reserved memory but things will blow up if another driver grabs it
20:22eroux has joined #asahi
20:42mpsheh, very nice, just plugged in something which have headphone jack and saw this with lsusb `Bus 001 Device 002: ID 4c4a:4155 Jieli Technology UACDemoV1.0`
20:54mrkajetanp has quit [Read error: Connection reset by peer]
20:56mrkajetanp has joined #asahi
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:43atka has quit [Quit: WeeChat 3.4]
22:30simplyemu[m] has joined #asahi
23:03GlanzmannI've modified https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/ so that it should work with the future Asahi installer. The only thing I need to modify is where the firmware tarball on the efi parition will end up. Tar archive for the efi parition is: https://tg.st/u/efi.tgz dd image: https://tg.st/u/m1.tgz '/etc/rc.local':
23:03Glanzmannhttps://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blob/HEAD:/files/rc.local tested with: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blob/HEAD:/m1di.pl
23:12Glanzmannsarah[m]: Sure. u-boot max/pro, nvme and spi support, wifi, wifi firmware extractor, smc (battery, reboot, poweroff, rtc), asahi installer (retry downloads, warn user about recovery OS, m1n1 nvme support, robustness), dcp, debian installer, OpenBSD, Asahi Installer for Arch, backlight for 2020 laptops, wip: Audio speakers on 2020 models, stable audio jack output 2020 models, stable audio input capture
23:15GlanzmannYou're welcome, I'm sure m a r c a n will also write something up once he has upstreamed the kernel stuff and finished the asahi installer.
23:30GlanzmannHere is a recording of the Debian image with the fake asahi installer: https://tg.st/u/2022-02-24_00-16-19.mp4
23:31Glanzmannsarah[m]: Audio is coming at least for the 2020. Audio jack output and input already works. speakers are work in progress.
23:53chadmed has joined #asahi