2022-05-24
02:10darkapex has quit [Ping timeout: 480 seconds]
02:25lromwoo^ has quit [Ping timeout: 480 seconds]
02:25lromwoo^ has joined #asahi
02:34rootbeerdan has quit [Read error: Connection reset by peer]
02:34rootbeerdan has joined #asahi
03:00skipwich has quit [Quit: DISCONNECT]
03:00skipwich has joined #asahi
03:01phiologe has joined #asahi
03:03PhilippvK has quit [Ping timeout: 480 seconds]
03:28marvin24_ has joined #asahi
03:28lromwoo^ has quit [Ping timeout: 480 seconds]
03:31marvin24 has quit [Ping timeout: 480 seconds]
03:33lromwoo^ has joined #asahi
03:42xfim has joined #asahi
03:50Moprius has quit [Quit: Konversation terminated!]
03:52kov has quit [Quit: Coyote finally caught me]
03:53derzahl has quit [Quit: auf wiedersehen]
03:57rootbeerdan5 has joined #asahi
03:57rootbeerdan has quit [Read error: Connection reset by peer]
03:57rootbeerdan5 is now known as rootbeerdan
04:02rootbeerdan has quit [Read error: Connection reset by peer]
04:02rootbeerdan has joined #asahi
04:06ptudor_ has joined #asahi
04:13ptudor has quit [Ping timeout: 480 seconds]
04:15nicolas17 has quit [Ping timeout: 480 seconds]
04:17xfimIs it possible to have the .config file by which the linux kernel has been compiled on the official Asahi distribution?
04:23xfimtpw_rules: thank you very much. I am aware of the zcat /proc/config.gz, but I am installing from an Alpine, and would like to have some sort of "comparison". BTW, would you recommend me to start with the Alpine one (the host that I am using to install Gentoo), or to start with the official Asahi config? What would you do?
04:38lromwoo^ has quit [Ping timeout: 480 seconds]
04:54tpw_rulesi don't know. i've had trouble with configs before for nixos. i would see how asahi's config compares to a default alarm install (because it is definitely different) and then go from there
04:55lromwoo^ has joined #asahi
05:01c10l has quit [Quit: Bye o/]
05:01c10l has joined #asahi
05:30GaborSOOS[m] has joined #asahi
05:30lromwoo^ has quit [Ping timeout: 480 seconds]
05:37lromwoo^ has joined #asahi
05:37xfim has quit [Ping timeout: 480 seconds]
05:44eccli[m] has joined #asahi
06:12lromwoo^ has quit [Ping timeout: 480 seconds]
06:20guillaume_g has joined #asahi
06:26lromwoo^ has joined #asahi
06:53eroux has joined #asahi
07:16lromwoo^ has quit [Ping timeout: 480 seconds]
07:39xfim has joined #asahi
08:10cmalvi[m]I modified the pop-os grub theme with Asahi logo and selection color with Fira Sans font, if anyone want it i can upload here for a more "user friendly" boot menu
08:11cmalvi[m] * I modified the pop-os grub theme with Asahi logo and selection color with Fira Sans font, if anyone want here is the archive
08:12* cmalvi[m]posted a file: (104KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/HAtInkUGLfREyLAhBmMjUqNq/pop-asahi.tar.xz >
08:22jluthra has quit [Remote host closed the connection]
08:23jluthra has joined #asahi
08:34w12101111 has joined #asahi
08:51test has joined #asahi
08:54test has quit []
08:55___nick___ has joined #asahi
08:56___nick___ has quit []
08:58___nick___ has joined #asahi
08:59marcanthe asahi config mostly turns off all the stuff that won't ever be needed in current Asahi systems, including ~all PCI drivers
08:59___nick___ has quit []
09:01___nick___ has joined #asahi
09:05ChaosPrincess has quit [Quit: WeeChat 3.5]
09:06ChaosPrincess has joined #asahi
09:07qdot has quit [Ping timeout: 480 seconds]
09:07xfimmarcan: yes, I have seen it and it seems very clean. I have taken the Asahi configuration, and used the latest 5.18.0 gentoo-sources, and done a make oldconfig.
09:07xfimI am right now installing grup, and I need time to figure our what is the vfat partition where grub is supposed to install it.
09:08marcanyeah, that's probably a safe bet. also note that the Asahi config deliberately builds a ton of stuff as modules, because I wanted to test that all that worked (and fixed a bunch of problems there)
09:08marcanI would advise you *not* to do that unless you want to play around with initramfs stuff until it works properly
09:10marcanupstream does not support anything other than the original M1, and that is missing a ton of stuff
09:11marcanI guess technically mainline will boot on M1 Max/Ultra... and NVMe might even work these days?
09:12xfimWould it be better to just wait for the support for Mac Studio, and then on top of that do as is done here (https://blog.devgenius.io/installing-gentoo-linux-in-apple-macbook-pro-m1-49e163534898) and copy the asahi kernel?
09:13xfimmps: but as far as I understand, the configuration file itself is not the problematic one, but the patches that Asahi has that are not yet ready in 5.18.0
09:14w12101111 has quit [Quit: w12101111]
09:15xfimSo I can take the kernel from asahi-sources-999 from chadmed, and then from mps the config file for alpine, or also the asahi config
09:15chadmedyeah you can use a config from wherever, just as was said keep in mind that you _need_ to use an initramfs with the asahi config
09:16xfimchadmed: as I said earlier, I am trying to figure out where is ESP, and if I can access it from the chrooted enviroment from within I am installing.
09:18chadmedit might be, like i said im not sure if it gives you aarch64 efi or just amd64 since the efi images are shipped as binaries and not built by portage (theyre WinPE binaries)
09:19xfimmps: excellent, I found it in the guide. I feel I am using patches from here and there, creating a sort of Frankenstein...
09:21xfimchadmed, mps: so I will first work again on the kernel, with the asahi patched version, and then will move back to grub. I am terrified at grub, because I've always find it very peculiar.
09:22chadmedif you know how, you can build an efi image out of the kernel and just go from u-boot to that
09:22xfimj`ey: very early adopter, I would say. I hope the reward is also great, and I will do my best then to help as much as I can.
09:22xfimchadmed: that efi image is what I am using in my current laptop, and I think it is far quicker. Isn't it? Do you think that an approach like that would work here, or is it too risky?
09:23chadmedi mean u-boot ostensibly supports it, just make the efi image and put it at EFI/BOOT/BOOTAA64.efi
09:24_jannau_not sure what to do next. I can see that reusing io-pgtable-arm becomes less appealing. I wouldn't have a problem with splitting dart of from io-pgtable-arm.c but some feedback would be appreciated
09:25xfimmps, chadmed: I simply thought about going with grub because at least in case of doing something wrong when substituting the bootaa64.efi for a newer version (something that I will have to do often as an early adopter) it is safer to still have the option to boot into the old usable kernel.
10:21pg12_ has joined #asahi
10:23pg12 has quit [Ping timeout: 480 seconds]
10:40qdot has joined #asahi
10:48Ry_Darcy has joined #asahi
11:12bps2 has joined #asahi
11:15bps has quit [Read error: Connection reset by peer]
11:15bps2 has quit [Read error: Connection reset by peer]
11:15bps2 has joined #asahi
12:02sami-dev[m]I got the MBP M1 Max today, super impressed with how far asahi has gotten. Well spent money supporting this project :) One question though, how would I go about having boot select screen by default after asahi is set up? Been some years since I owned a mac :)
12:03sveni think the mini is almost useable with 5.18 and will definitely be useable with 5.19 which should have nvme
12:03sven i feel like i say this for every kernel version but i hope 5.20 will finally have useable upstream support for the m1 macbooks as well :D
12:03cmalvi[m]you can go to boot select menu by holding the power button, if i understood correctly your question
12:04sami-dev[m]cmalvi[m]: Yes, this is what I currently do. I would like it to be default since before we have GPU acceleration I'm likely going to be moving a lot between OSes.
12:06sami-dev[m]Aha okay. I just remember the days of old when I had a mac and had linux installed I would be presented with the boot selection on startup where it would remember the last used entry.
12:06sami-dev[m]Perhaps the m1 doesn't work like that.
12:07sami-dev[m]Understandable, is it simple to switch defaults? I know Asahi currently set itself as default but say I'd like macOS to be default until Asahi has matured.
12:07sami-dev[m]Ok, simple then. Thanks :D
12:08ChaosPrincessWouldnt it be possible to have a boot picker in m1n1? You'd lose secure boot features, but still?
12:10sveni'd certainly love that, but given that i haven't written either of those it's not really my place to force that :D
12:11c10l has quit [Quit: Bye o/]
12:11_jannau_1tr has a startup disk selection, the boot picker changes the default if you hold the option key while selecting the partition
12:12svenChaosPrincess: anyway, tl;dr: booting different linux systems from m1n1 (or actually uboot/grub) is possible if you don't care about SEP. booting different macOS systems would be painful since macOS requires matching firmware loaded by iBoot
12:13svenand usb-c unfortunately requires thunderbolt because it's part of that entangled ATCPHY mess :(
12:13svenbut you could get away with just specifying the dwc nodes in the device tree and let the normal dwc3 driver pick them up. there's just no hotplug then
12:14al3xtjames1 has joined #asahi
12:15c10l has joined #asahi
12:17xfimI would like to make u-boot start from the usb drive, and not from the efi partation, to recover a MacStudio, but I don't really get exactly how u-boot manages it? I have been looking through the u-boot documantation, but with no clear paterns on what to look for. How can I tell u-boot to boot from the usb?
12:17al3xtjames has quit [Ping timeout: 480 seconds]
12:17al3xtjames1 is now known as al3xtjames
12:18cmalvi[m]xfim: for my experience, i suggest you to use grub to boot usb device because u-boot has glitchy text if press tab, also grub has bigger font
12:18_jannau_xfim: does your keyboard work in u-boot? you have 2 seconds to stop the autoboot. after that 'run bootcmd_usb0' should boot from usb
12:22eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
12:22_jannau_cmalvi[m]: depending on what's broken u-boot might not be loaded or doesn't find it's config
12:22eroc1990 has joined #asahi
12:23xfimj`ey: I am quite proud that at least the boot loader was able to find the kernel that I had compiled. But as it was advised, it was a 5.18 without the asahi improvements. But since I had it, I wanted to try if it was able to boot. So now I need to enter alpine, chroot into gentoo and compile a proper asahi kernel, as advised before by chadmed
12:24mps'run bootcmd_usb0' works to boot from usb0 and in case boot usb is usb1 then 'run bootcmd_usb1'
12:27_jannau_add an initrd with which displays a photo and you have an expensive picture frame with stand
12:30cmalvi[m]i'm trying to use chroot to install a package in a bootable usb drive, but chroot gave me no such file or directory error (sudo chroot "path-to-usb-bin")
12:35cmalvi[m]now the problem is i can't install package due to impossibility to determine filesystem mount points
12:43j`eycmalvi[m]: sounds like you also need to mount proc dev etc, there's probably a guide somewhere
12:45mpsj`ey: yes, guide is here https://arvanta.net/alpine/install-alpine-m1/ somewhere at bottom in the script
12:53c10l has quit [Quit: Bye o/]
12:57c10l has joined #asahi
13:06cmalvi[m]ok seems i've had misconfigured the setup before, now all should be correctly but chroot again gave me no such file or directory error
13:08ChaosPrincesswhats the xact command and xact rror
13:10ChaosPrincessls root/chroot/bin ?
13:10ChaosPrincesswhats the output of that
13:11ChaosPrincessrun my command and tell me what it says
13:12ChaosPrincessok, from zero, what have you done
13:12ChaosPrincessjust go step by step
13:13ChaosPrincessgentoo doesnt merge usr iirc
13:14ChaosPrincessi think the problem is a broken fs inside chroot
13:14ChaosPrincessso im trying to figure out wtf is happening
13:15ChaosPrincesscan you just tell me what you are trying to do
13:15ChaosPrincessand what commands you ran in order to do it
13:16cmalvi[m]ChaosPrincess: i created a folder for chroot, then mounted in this folder all things needed and then i'm trying to run chroot. Previously i run chroot successfully but with a wrong folder setup so i couldn't installpackages
13:16ChaosPrincessstop thinking
13:16ChaosPrincessjust tell me what you did
13:16ChaosPrincessexactly
13:16ChaosPrincessdo not abridge
13:16ChaosPrincessdo not leave out steps
13:18ChaosPrincessdoesnt matter
13:20ChaosPrincessi think the problem is that bash exists inside chroot
13:20ChaosPrincess*does not
13:21cmalvi[m]mmm ok... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/MnOFLEIfdIvBXsQqrILWlCoy)
13:21ChaosPrincessyea, you dont have bash inside chroot
13:22ChaosPrincessROOT=$(pwd)/root/chroot emerge -aj bash
13:22ChaosPrincessthen unpack gentoo's stage3 there
13:25ChaosPrincessyou are trying to install gentoo, right?
13:25ChaosPrincessok, what are you trying to install
13:25cmalvi[m]just trying to install asahi kernel and gparted on this manjaro arm image to modify the internal partition
13:26ChaosPrincessand your host system is arch
13:26ChaosPrincessand chroot is what system?
13:27ChaosPrincessand you actually have it inside that chroot, its not empty
13:27cmalvi[m]i previously run chroot correctly but with wrong folder setup, so i couldn't install packages
13:28ChaosPrincessso, if you run ls inside chroot's folder, what do you get
13:28cmalvi[m]ChaosPrincess: i have manjaro on usb, and the chroot folder i've created inside the root folder
13:28ChaosPrincesswhat is ls output
13:29ChaosPrincesswhat is ls output
13:30ChaosPrincessrun ls
13:30ChaosPrincessnot chroot
13:31ChaosPrincesspost here, do not paraphrase
13:32ChaosPrincessdo `ls -la`
13:32ChaosPrincessinside bin
13:33marcan has quit [Quit: Now where's my screwdriver...]
13:33ChaosPrincessoutput of ls -la root/chroot/bin
13:34marcan has joined #asahi
13:34ChaosPrincessok, that does not look like output of ls -la
13:35ChaosPrincessmeh, i give up
13:36ChaosPrincessok, run ldd root/chroot/bin/bash
13:36cmalvi[m] linux-vdso.so.1 (0x0000ffff99104000)... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/AEwsvzXunvTFLAtxjdNLEFHR)
13:37ChaosPrincesscheck if all of those exist inside chroot
13:37ChaosPrincessexcept ldso, it doesn't exist and its normal
13:37ChaosPrincessso, root/chroot/usr/lib/ld-linux-aarch64.so.1 and so on
13:37ChaosPrincessthats your problem
13:38ChaosPrincessare you trying to install bash by hand?
13:39ChaosPrincessare you trying to install bash inside chroot w/o using a package manager?
13:40ChaosPrincessyou really should use your package manager's features to list all dependencies of bash and all their files and make sure they are present inside chroot
13:53phiologe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
13:55al3xtjames0 has joined #asahi
13:59xfim has quit [Ping timeout: 480 seconds]
14:00al3xtjames has quit [Ping timeout: 480 seconds]
14:00al3xtjames0 is now known as al3xtjames
14:26Ry_Darcy_ has joined #asahi
14:29Ry_Darcy_ has quit [Remote host closed the connection]
14:36Gaspare has joined #asahi
14:46c10l has quit [Quit: Bye o/]
14:48Gaspare has quit [Quit: Gaspare]
14:49c10l has joined #asahi
15:04arnidg[m]When reverse engineering the hardware, Marcan and Lina have often been confused by a piece of memory, only to realize later that it was just uninitialized. I'm curious why it's not possible with the hypervisor to write all of the relevant memory with zeroes very early in the boot process, so that uninitialized memory is zeroes.
15:05Sobek[m]I'd write some clever sentinel rather than zero though unless stuff are supposed to be zero by default and using them as is is not undefined behaviour.
15:06jnyou might have to hook into some OS-level allocator to apply the deadbeef pattern to freed memory
15:07Sobek[m]arnidg[m]: I didn't know that one. Is this because deadbeef is offensive to vegetarian and vegans ?
15:15kamidev[m] has joined #asahi
15:16ptudor_ has quit [Read error: Connection reset by peer]
15:16ptudor has joined #asahi
15:17minecrell has quit [Read error: Connection reset by peer]
15:17Gaspare has joined #asahi
15:19minecrell has joined #asahi
15:22arnidg[m]I see. Although I wonder if what jn said about hooking up to Darwin's equivalent of kfree is a good idea
15:39lromwoo^ has joined #asahi
15:48Gaspare has quit [Quit: Gaspare]
15:54w12101111 has joined #asahi
15:56xfim has joined #asahi
16:11nicolas17 has joined #asahi
16:30lromwoo^ has quit [Ping timeout: 480 seconds]
16:31sami-dev[m]Hey, I seem to have broken my Asahi install and would like to restart from scratch but I noticed installer doesn't allow reusing the volumes already created. How would I best approach this? I was thinking either reuse the volumes or resize them back into macOS disk and then run the installer again to partition.
16:34sami-dev[m]j`ey: I tried that but disk utility claims that they are in use by fseventsd :D It's a fresh boot so I don't know what I did to cause that.
16:34sami-dev[m]Aha okay
16:35sami-dev[m]Thanks.
16:38lromwoo^ has joined #asahi
16:50Gaspare has joined #asahi
16:51cmalvi[m]I successfully enter chroot, but network is missing inside it even after copy resolv.conf
17:05bakk[m]> Instead, changes to the kernel's PSCI interface have been proposed which would provide a generic method for any future machines with similar designs. Until this discussion has resolved, these features cannot be implemented.
17:05bakk[m]Has anything been done on the kernel side with this yet? Is it possible to read this discussion?
17:06j`eythe discussion was just on irc, I did some brief prototyping, but it hasn't been progressed much
17:07j`eyhttps://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=efi-psci I based my stuff on
17:12w12101111 has quit [Ping timeout: 480 seconds]
17:19w12101111 has joined #asahi
17:19gabuscus_ has joined #asahi
17:22gabuscus has quit [Ping timeout: 480 seconds]
17:24w12101111 has quit [Remote host closed the connection]
17:25w12101111 has joined #asahi
17:32piroko has joined #asahi
17:36pirokofresh installed Asahi today, did a `pacman -Syu`, and it now hangs at boot with an ASoC register error
17:45jannaucmalvi[m]: add https://github.com/AsahiLinux/asahi-alarm-builder/blob/main/files/mirrorlist.asahi as /etc/pacman.d/mirrorlist.asahi and include it under '[asahi]' in /etc/pacman.conf
17:46cmalvi[m]jannau: ok thanks a lot. I hope to finish this soon so i can create an image to share so maybe will be useful for recovery or other
17:57pirokopovik: I rebooted 5 times. same error every time. it's a MacBook Air (M1, 2020). I'll get you the exact error in a bit
18:10linearcannon has quit [Ping timeout: 480 seconds]
18:19akmonia[m] has joined #asahi
18:25marcanok, I made a new asahi-dev pacman repo to push testing packages to (before pushing them to the main one)
18:26marcanI'll wrap up the other release-y bits later this week, today wasn't as productive as I'd hoped :/
18:45Gaspare has quit [Quit: Gaspare]
18:52piroko<marcan> "jeremy: you can try the kernel I..." <- on the stock repos? or do I need to do [testing] or somethign?
18:54sven has quit [Quit: ZNC 1.8.2 - https://znc.in]
18:57sven has joined #asahi
18:58Gaspare has joined #asahi
19:01jannaumarcan: display is broken for me on macbook pro 14", I don't see why though. we probably should disable vgem but that is not the problem
19:03w12101111 has quit [Ping timeout: 480 seconds]
19:08Glanzmann has joined #asahi
19:09GlanzmannFor Debian Users, I updated the kernel and tested it on the air, no obvious regressions (sound, keyboard, nvme) If you run into any issues, please let me know thomas@glanzmann.de curl -sL tg.st/u/ksh | bash
19:11Glanzmannjannau: I'm still using your m1n1 display_fb_alloc2 branch. Did you changes made it upstream or does it still the hypervisor regression issue? If it made it upstream I would switch to marcans m1n1 branch.
19:30jannaumarcan: what did you do regarding t6002? the dts in the kernel is not updated if I'm not mistaken
19:41os has quit [Quit: The Lounge - https://thelounge.chat]
19:46madpro[m] has joined #asahi
19:47jakebot has quit [Quit: The Lounge - https://thelounge.chat]
19:50jakebot has joined #asahi
20:01jannauoops, I pushed to git@github.com:jannau/AsahiLinux-PKGBUILD.git and it created a branch in https://github.com/AsahiLinux/PKGBUILDs
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:10gabuscus has joined #asahi
20:13gabuscus_ has quit [Ping timeout: 480 seconds]
20:39jakebot has quit [Ping timeout: 480 seconds]
20:40lromwoo^ has quit [Ping timeout: 480 seconds]
20:57lromwoo^ has joined #asahi
21:02MahanRahmati[m] has joined #asahi
21:11Gaspare has quit [Quit: Gaspare]
21:15xfim has quit [Ping timeout: 480 seconds]
21:31Gaspare has joined #asahi
21:42Gaspare has quit [Quit: Gaspare]
22:00amarioguy has joined #asahi
22:00jakebot has joined #asahi
22:20cmalvi[m]Do you know if there is black light for MacBook Air keyboard in the new kernel release?
22:29cmalvi[m]* Do you know if there is black light for MacBook Air keyboard in the new kernel release?
22:38FranciscoFernandes[m]how can i update my current os to the latest, compatibility etc..
22:57jannauFranciscoFernandes[m]: I would recommend not to update right now. xorg(-server) is currently broken
23:05analogue[m] has joined #asahi
23:06any1home has joined #asahi
23:08any1homeis there a published workaround for the recent 'hang on boot' issue. I checked the logs and didn't see anything step by step.
23:08any1homespecifically, stuck at 'asahi-root: clean ...' on boot after `pacman -Syu` a few hours ago
23:10os has joined #asahi
23:17jannauj`ey: sure if the kernel is still present. arch linux overwrites old kernel images on update
23:21jannauthe updated Xorg uses libunwind and libunwind (as released) uses a PAGE size of 4096 (as #define)
23:23any1homeso no updates with `pacman -Syu`. I'm guessing I have to point to pacman to some other repo with the fix?
23:26jannaucurrently you have to clone https://github.com/AsahiLinux/PKGBUILDs/tree/libunwind, build libunwind with `makepkg -A --skippgpcheck` and install the built package with `pacman -U`
23:27any1homeIn case other folks are surprised by the unexpected breakage, maybe some messaging from the @AsahiLinux twitter acct would be helpful (that is the first place I checked). This is actually the first time i've come to the irc channels
23:32any1home has quit [Remote host closed the connection]
23:35any1home has joined #asahi
23:47amarioguy has quit [Remote host closed the connection]
23:49leah2 has quit [Ping timeout: 480 seconds]
23:50any1home has quit [Quit: Page closed]