2022-07-07
00:05millenialhacker has joined #asahi
00:13millenialhacker has quit [Ping timeout: 480 seconds]
00:29roote has joined #asahi
00:31roote has quit []
00:36quarkyalice has joined #asahi
00:41nicolas17 has joined #asahi
01:23Zaprit has quit [Ping timeout: 480 seconds]
01:27millenialhacker has joined #asahi
01:35millenialhacker has quit [Ping timeout: 480 seconds]
02:07PhilippvK has joined #asahi
02:10phiologe has quit [Ping timeout: 480 seconds]
02:49millenialhacker has joined #asahi
02:57millenialhacker has quit [Ping timeout: 480 seconds]
03:34marvin24_ has joined #asahi
03:38marvin24 has quit [Ping timeout: 480 seconds]
03:44kprasadvnsi[m]anybody using VSCode on asahi plasma desktop. it crashes for me.
03:45millenialhacker has joined #asahi
03:53Lucy[m]Shouldn't it be possible to force it to use electron 19? Well, not for the proprietary binaries obviously
03:53millenialhacker has quit [Ping timeout: 480 seconds]
04:00kov has quit [Quit: Coyote finally caught me]
04:16SilverHammerMax has joined #asahi
04:16SilverHammerMax has left #asahi [#asahi]
04:27marcan"The issue has been addressed in vscode insiders and the fix will also be available in 1.69.0 stable release next week"
04:29Ry_Darcy has joined #asahi
05:10millenialhacker has joined #asahi
05:18millenialhacker has quit [Ping timeout: 480 seconds]
05:22psykosecant confirm if it works on m1 or not but forcing electron 19 is like a 5 line patch and that works :)
05:23nicolas17 has quit [Ping timeout: 480 seconds]
05:28quarkyalice has quit [Ping timeout: 480 seconds]
05:36hell__ has joined #asahi
05:53guillaume_g has joined #asahi
06:17millenialhacker has joined #asahi
06:23the_lanetly_052___ has joined #asahi
06:27millenialhacker has quit [Ping timeout: 480 seconds]
06:28MajorBiscuit has joined #asahi
06:39mrCyborg has joined #asahi
06:39keegans has joined #asahi
06:39jleightcap_ has quit [Read error: Connection reset by peer]
06:39WhyNotHugo_ has quit [Write error: connection closed]
06:39WhyNotHugo has joined #asahi
06:39jleightcap has joined #asahi
06:48zanfix has joined #asahi
07:03millenialhacker has joined #asahi
07:04MajorBiscuit has quit [Ping timeout: 480 seconds]
07:11millenialhacker has quit [Ping timeout: 480 seconds]
07:28the_lanetly_052___ has quit [Ping timeout: 480 seconds]
07:30Zaprit has joined #asahi
07:40bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:41guan has quit [Read error: Connection reset by peer]
07:41enomem has quit [Read error: Connection reset by peer]
07:41snek has quit [Read error: Connection reset by peer]
07:41guan has joined #asahi
07:41enomem has joined #asahi
07:41stblassitude has quit [Write error: connection closed]
07:41stblassitude has joined #asahi
07:42esden has quit [Read error: No route to host]
07:42jabashque has quit [Read error: Connection reset by peer]
07:42esden has joined #asahi
07:42jabashque has joined #asahi
07:42jkkm has quit [Read error: Connection reset by peer]
07:42Manouchehri has quit [Write error: connection closed]
07:42Vaughn has quit [Read error: Connection reset by peer]
07:42Vaughn has joined #asahi
07:42taowa_ has quit [Read error: No route to host]
07:42eichin_ has quit [Read error: Connection reset by peer]
07:42Manouchehri has joined #asahi
07:42austriancoder has quit [Remote host closed the connection]
07:42snek has joined #asahi
07:42eichin_ has joined #asahi
07:42Illya has joined #asahi
07:42austriancoder has joined #asahi
07:43cptcobalt has joined #asahi
07:43taowa_ has joined #asahi
07:43kendfinger has joined #asahi
07:43arnd_ has joined #asahi
07:43jkkm has joined #asahi
07:43mmarchini__ has joined #asahi
07:43Gaelan has joined #asahi
07:44Ry_Darcy has quit [Remote host closed the connection]
08:12MajorBiscuit has joined #asahi
08:14Zaprit has quit [Ping timeout: 480 seconds]
08:48millenialhacker has joined #asahi
08:59millenialhacker has quit [Ping timeout: 480 seconds]
09:16nsklaus has quit [Quit: Textual IRC Client: www.textualapp.com]
09:23nsklaus has joined #asahi
09:47IcaroDextris[m]Anyone knows if there are any plans about matlab on Linux arm?
10:14Zaprit has joined #asahi
10:37kov has joined #asahi
11:19Zaprit has quit [Quit: Zaprit]
11:40eroux_ has joined #asahi
11:45eroux has quit [Ping timeout: 480 seconds]
11:48MajorBiscuit has quit [Quit: WeeChat 3.5]
11:51MajorBiscuit has joined #asahi
12:23zanfix has quit [Quit: Konversation terminated!]
12:24millenialhacker has joined #asahi
12:27zanfix has joined #asahi
12:28IcaroDextris[m]<j`ey> "run it under an emulator, unless..." <- Do you think is doable under box64 or similar?
12:32millenialhacker has quit [Ping timeout: 480 seconds]
12:37IcaroDextris[m]Sure, now I can’t, that’s why the question, thanks 😊
12:38mpsmixi: you told that you boot same rootFS in qemu and native. any hint how you solved it? with u-boot or grub?
12:53c10l has quit [Quit: Ping timeout (120 seconds)]
12:54c10l has joined #asahi
13:04Raqbit9 has joined #asahi
13:05sven has joined #asahi
13:05milek7 has quit [Remote host closed the connection]
13:06milek7 has joined #asahi
13:07deflax has joined #asahi
13:07deflax has quit []
13:07deflax has joined #asahi
13:09Raqbit has quit [Ping timeout: 480 seconds]
13:09Raqbit9 is now known as Raqbit
13:11Raqbit has quit [Quit: The Lounge - https://thelounge.chat]
13:29miximps: I created my own esp + kernel partition with and efi bootloader and qemu efi support as a qcow2-file on macos, and passed that and the root partition as separate hard drives to qemu; but I think it would have been a lot easier to just pass the root partition and have qemu load the kernel and maybe initramfs you want to boot directly
13:31mixithe qemu efi support was of course not part of the qcow2-file, I just rewrote that sentence wrongly when trying to add extra information to it
13:32andreas has joined #asahi
13:32mixithe qemu efi support was referring to also passing -bios QEMU_EFI.fd with an appropriate QEMU_EFI.fd stolen from some distribution package
13:33andreas has quit []
13:42bisko has joined #asahi
13:45bisko has quit []
13:46bisko has joined #asahi
13:52andreas has joined #asahi
13:52andreas has quit []
13:53bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:53bisko has joined #asahi
13:54andreas has joined #asahi
13:55andreas has quit []
14:02Ry_Darcy has joined #asahi
14:19Ry_Darcy has quit [Remote host closed the connection]
14:49bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:08Gaspare has joined #asahi
15:40zzywysm has joined #asahi
15:44zanfix has quit [Quit: Konversation terminated!]
16:00MajorBiscuit has quit [Ping timeout: 480 seconds]
16:03Gaspare has quit [Quit: Gaspare]
16:21zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:28trouter- has quit [Quit: ZNC 1.8.2 - https://znc.in]
16:30zzywysm has joined #asahi
16:30trouter has joined #asahi
16:52Zaprit has joined #asahi
17:05janrinze has joined #asahi
17:07janrinzehi all.. anyone here who has been compiling their own kernels for the mac mini? (probably yes..) I have some issues getting newer kernels to boot properly. it seems they can't find the root disk. UUID is set but the kernel does not see that partition..
17:10Gaspare has joined #asahi
17:12AdryzzOLEDEdition[m]1newer kernels?
17:13AdryzzOLEDEdition[m]1you mean latest linux-asahi?
17:16janrinzemps: PARTUUID, sorry but what i mean is that the kernel I built a while back works with the same cmdline..
17:17janrinzeBOOT_IMAGE=/boot/vmlinuz-5.18.0-asahi-jrp4k-00184-g6296bb4b5ae5 root=UUID=581a80f0-19e1-43ba-a82c-fcedd5ea1ca8 ro quiet
17:19janrinzemps: I boot kernels on many different machines here without initramfs.. so probably not a requirement.
17:21ElvishJerricco[m]janrinze: You're not using any initramfs at all?
17:22janrinzeElvishJerricco[m]: generally not.. If the kernel can start and has sufficient modules to mout root fs then all should just work..
17:23ElvishJerricco[m]The kernel will use whatever DTB is provided by the previous stage. It doesn't load its own, I'm pretty sure. But u-boot can be configured to load a DTB from disk and provide that to the kernel. Dunno if the asahi installer sets it up that way or if it just passes the one it gets from m1n1 onward
17:24ElvishJerricco[m]Ah so m1n1 does some essential fixups?
17:24ElvishJerricco[m]on the FDT that is?
17:25janrinzelet me reboot for a second and see if the nwely built kernel can find the root partition now.
17:25ElvishJerricco[m]good to know; means I can't have per-kernel DTBs with NixOS :(
17:26mpsjanrinze: 'BOOT_IMAGE=/boot/vmlinuz-5.18.0-rc5-2-asahi root=PARTUUID=b0a3.........' is my line in grub.cfg
17:26ElvishJerricco[m]shouldn't be a big deal as long as the asahi kernel remains backward compatible with older DTBs; though I understand that's only assured for patches that make it to mainline
17:27janrinzeElvishJerricco[m]: during kernel config you should be able to set the flag to add the DTBs to the kernel image..
17:27ElvishJerricco[m]oh really? TIL. That could be useful on some other platforms.
17:27janrinze has quit [Quit: Leaving.]
17:29janrinze has joined #asahi
17:29ElvishJerricco[m]yea I know
17:29janrinzeback.. now on Linux M1DebianSid 5.18.0-asahi-jrp-git-new-dirty #3 SMP Thu Jul 7 18:44:44 CEST 2022 aarch64 GNU/Linux
17:32janrinzeWhy i wanted to get a newer kerenl working is because i did some benchmark test (Geekbench 5) and it showed that it only runs at a little over 56% of the speed of OSX.
17:38nicolas17 has joined #asahi
17:41janrinzethe mac mini on OSX does almost 1.65x this score for single score and around 1.42x on multi core score.. So i was thinking that since i have an older kernel it might not run at the full 3.2 GHz. Unfortunately no nodes in /sys that give me a clue on cpu scaling and such.
17:42nicolas17I assume "running at the full 3.2GHz" and "exposing scaling info in /sys" needs the same kind of work :P
17:44janrinzenicolas17: at some point the cpu frequency gets set.. either at m1n1, u-boot or kernel..
17:49janrinzehttps://browser.geekbench.com/v5/cpu/compare/14185972?baseline=15880140 for example shows that my system is running much slower than that other asahi linux system...
17:54janrinze2188000 if i'm lucky but mostly 1190000.. and that's while i am running the benchmark..
17:58nicolas17afaik sysctl.conf can set /proc/sys parameters on boot but I don't think there's something for /sys
18:00leo60228 has joined #asahi
18:01nicolas17a boot script with echo blah > /sys/blah is of course an option but I feel there *has* to be a better way :P
18:02zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:05tabthetextoutforwimps[m] has joined #asahi
18:13zzywysm has joined #asahi
18:16janrinzemps: cleary my kernel is not using its own DTBs but the ones provided somewhere else indeed. So I probably need to bake them in the kernel..
18:21zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:24thevar1able has joined #asahi
18:24thevar1able has quit [Remote host closed the connection]
18:24thevar1able has joined #asahi
18:25thevar1able1 has joined #asahi
18:25thevar1a- has joined #asahi
18:25janrinzemps: looks like it's not supported anymore in the kernel.. apparently maintainers were afraid that people would actually use it..
18:26zzywysm has joined #asahi
18:26thevar1a- has quit []
18:26thevar1able has quit []
18:26thevar1able1 has quit []
18:27thevar1able has joined #asahi
18:30steevif you're doing u-boot->grub, grub also has a "devicetree" option that isn't really exposed, but you can add it in
18:30janrinzewould be nice to have a way of integrating the m1n1 build with the linux kernel build. but it probably will make it harder if the kernel fails to boot and we need to fall back on an older kernel..
18:32steevmps: if you don't mind patching your grub, you can always pull in the ubuntu patches that add it automagically
18:32mpssteev: I'm not sure but this must be in some patches. At least it doesn't work with grub in alpine linux and I didn't investigated further
18:36mpssteev: I guess so. I tried on riscv board to use grub with devicetree but didn't worked and I used plain u-boot with extelinux.conf which could load DTB fine
18:36steevi've been using it on my lenovo yoga c630 (non-chromebook) which has uefi, and it makes flipping between kernels very easy when there had been significant dt changes while working on getting its support in the kernel
18:42mrnoda has joined #asahi
18:44steevyou can also add (above it) "echo 'loading dtb file ...'" like the other entries do to show it's loading it
18:45quarkyalice has joined #asahi
18:48tpw_rulesi did write a patch a while ago for u-boot to do this massaging based on m1n1's data but the asahi folks were pretty against it. i agree with them in an ideal world but it would really be a nice capability while things are still in flux
18:49janrinze linux /boot/vmlinuz-5.18.0-asahi-jrp-git-new-dirty root=UUID=581a80f0-19e1-43ba-a82c-fcedd5ea1ca8 ro quiet
18:50steevi normally just edit the grub config at boot time to do it, just to make sure things work, rather than make them permanent
18:51janrinzesteev: yup.. good idea. btw. most ARM platforms don't use grub. so i have not been fiddling with that for a long time..
18:53tpw_ruleseven if you do not care about nixos, that post is very relevant and it sounds like you would like it
18:55steevtpw_rules: i'm the kali arm guy, so it's very interesting to me what other distros are doing as well
18:57tpw_rulesdo you have a large pile of them? it's 99% (mainline) u-boot. the nix stuff is quite gnarly if you are unfamiliar but support is almost entirely about just testing it
18:58steevi have over 200 here :D i've been working with arm devices since the early 2000s and have amassed a bit of a collection
18:59___nick___ has joined #asahi
18:59janrinze has quit [Remote host closed the connection]
18:59___nick___ has quit []
19:00janrinze has joined #asahi
19:01___nick___ has joined #asahi
19:02steevah, if grub is on a separate partition, you'd need to either hardcode the (hdX,gptX) to the beginning of the path, or cp the dtb to the partition that has grub on it
19:04tpw_rulesi know bandwidth to contribute is an eternally limited resource but if you have lots of boards which are supported in mainline u-boot and like tow-boot's mission statement it would be great to help out
19:04tpw_ruleswould kali be interested in board-agnostic images anyway? that's a pretty application specific distribution right
19:05steevtpw_rules: it would definitely be nice to have board agnostic images to increase maintainer sanity ;) the bigger problem is that every board is a special snowflake and you can't write the bootloader to the same spot and have it work across all of them
19:07janrinze has quit [Quit: Leaving.]
19:07tpw_rulesthat's what tow-boot aims to solve. make each distro's installation be: 1. follow tow-boot's instructions for your board 2. download our iso and run the installer
19:08pb17[m] has joined #asahi
19:08janrinze has joined #asahi
19:09janrinzeok.. copied the dtbs but grub still says not a regular file.. which i do agree with because it's a directory..
19:12j`eyjanrinze: its not supported to use anything but the DTS that is passed through 1m1n to uboot to the kernel
19:14___nick___ has quit [Ping timeout: 480 seconds]
19:21tpw_ruleshttps://matrix.to/#/#Tow-Boot:matrix.org is the official thing. don't think it has irc
19:23j`eyjanrinze: which kernel versions are you testing? dont think there was anyway dtb changes recently that would stop it working
19:25guillaume_g has quit []
19:26janrinze/boot/dtbs/linux-image-5.18.0-asahi-jrp-git-new-dirty/apple/t8103-j274.dtb that's the one for mac mini :-)
19:29jole has quit [Remote host closed the connection]
19:30j`ey(well i suppose the changes for m2 could have broken it somehow.. but if it didnt work on an older kernel anyway it wasnt that)
19:31jole has joined #asahi
19:32janrinzej`ey: https://github.com/AsahiLinux/linux/commit/b7e5d06f48ab14966783af0d8db582ffe9395307
19:34janrinze has quit [Remote host closed the connection]
19:40opticronunfortunate :/ it's kind of important for me to be able to sleep the computer for hours at a time and last time I tried with s2idle it ended up very warm in a bag
19:44janrinze has joined #asahi
19:45janrinzeso the good news is: yes grub dtb loading works.. but the bad news is that X doesn't work. can boot into a console though.
19:49tpw_rulesthat's one of the symptoms of not having the correct dtb. i'm surprised it got that far
19:50j`eytpw_rules: yeah, they seem hell bent on loading it with grub, even though thats explicitly not how youre meant to do it
19:52tpw_rulesyou do know you can chainload m1n1 right? that's how you are intended to update the device tree
19:54janrinzebuilding deb files for newer kernels works, installing the deb files properly add them to grub..
19:55gladiac has quit [Quit: k thx bye]
19:57janrinzecat build/m1n1.bin /path/to/dtbs/*.dtb /path/to/uboot/u-boot-nodtb.bin > /boot/efi/m1n1/boot.bin
20:08nathanthegr8[m] has joined #asahi
20:11janrinzeok. built m1n1 and u-boot.. now i probably will need to replace /boot/efi/m1n1/boot.bin
20:15janrinze has quit [Remote host closed the connection]
20:18zzywysmis anyone running the current up-to-date Asahi Linux distro? can you send me the output of the command cat /proc/cmdline
20:20mrnoda has quit [Quit: Page closed]
20:25ElvishJerricco[m]I get the feeling we could potentially load the dtb in later stages if we supported the efi fixup protocol https://github.com/U-Boot-EFI/EFI_DT_FIXUP_PROTOCOL
20:25ElvishJerricco[m]I don't think that proposal is like... official at all, but it does solve the problem I think, and seems like a good idea in general even outside asahi/m1n1
20:27ElvishJerricco[m]Though I guess u-boot would have to do something else to figure out what fixups were made by m1n1 so that it could offer this protocol to the boot loader, so maybe it's just kicking the can
20:32Zaprit has quit [Ping timeout: 480 seconds]
20:39ptudor_ is now known as ptudor
20:42janrinze has joined #asahi
20:43janrinzeok.. good thing is : i can mount the fat32 partition from OSX and yes i broke m1n1.. copied the backup and now back in linux.
20:45janrinzetpw_rules: how do i 'chainload' m1n1.. the one i built crashed and got me in a boot loop
20:49janrinze has quit [Remote host closed the connection]
20:53janrinze has joined #asahi
20:53jluthra has quit [Remote host closed the connection]
20:54jluthra has joined #asahi
20:54janrinzesven: I want to update the dtbs. so either need to add it in a working m1n1 or use grub for that.. however both methods seem to fail. lots of reboots
20:57Zaprit has joined #asahi
21:02c10l has quit [Ping timeout: 480 seconds]
21:03ElvishJerricco[m]janrinze: And you're configuring/building for stage 2 m1n1, not stage 1, right?
21:06janrinzecat build/m1n1.bin /path/to/dtbs/*.dtb /path/to/uboot/u-boot-nodtb.bin > /boot/efi/m1n1/boot.bin
21:06Gaspare has quit [Quit: Gaspare]
21:11ElvishJerricco[m]janrinze: Hm yea it also says to use DTBs shipped with u-boot, not the kernel. Dunno if those are identical or not
21:11Gaspare has joined #asahi
21:12j`eyjanrinze: https://github.com/AsahiLinux/asahi-scripts/blob/main/update-m1n1 try gzipping, thats what the reference distro does
21:18janrinze has quit [Remote host closed the connection]
21:21janrinze has joined #asahi
21:28j`eyjannau: saw this and thought it was yours! https://lore.kernel.org/linux-arm-kernel/20220707165902.3184-1-jaschultzMS@gmail.com/T/#mbbdd71ea21bc9f1f0ecff97cf3e0b198e7265885
21:32Zaprit has quit [Quit: Zaprit]
21:45deepphilosopher846[m] has joined #asahi
21:56janrinze has quit [Remote host closed the connection]
21:59janrinze has joined #asahi
22:03c10l has joined #asahi
22:19Gaspare has quit [Quit: Gaspare]
23:04nsklaus_ has joined #asahi
23:09nsklaus has quit [Ping timeout: 480 seconds]
23:09derzahl has joined #asahi
23:10derzahl has quit [Remote host closed the connection]
23:11derzahl has joined #asahi
23:14derzahlstrange. sound stopped working on my macbook(air). I figured it was just the latest kernel I installed but I went back to a known good kernel and stil no sound
23:15derzahli reinstalled the known-good kernel so that m1n1 would update its dtb (even though my PKGBUILD automatically adds the modified dts file to enable sound). still no go
23:21zzywysmhave you tried shutting the system down completely? or have you just been rebooting since you discovered the issue?
23:43nicolas17derzahl: I heard some sound errors go away if you switch the sound device to something else and switch back
23:48ptudor_ has joined #asahi
23:54ptudor has quit [Ping timeout: 480 seconds]