2022-02-27
00:00ndut2 has quit [Read error: Connection reset by peer]
00:05Telvana has quit [Read error: Connection reset by peer]
00:10Telvana has joined #asahi
00:20Techcable has joined #asahi
00:25kode54if you have a more recent Apple display, such as a laptop or the iMac, then you have a P3 gamut display
01:54chadmedwelp uni is cancelled for the next week because half the state is flooded, whod be interested in a gentoo overlay and install shell script
02:02sheepgoose has joined #asahi
03:18sirn- has joined #asahi
03:18sirn has quit [Read error: Connection reset by peer]
03:18sirn- is now known as sirn
03:37phiologe has joined #asahi
03:41PhilippvK has quit [Ping timeout: 480 seconds]
03:56Rabbitz has joined #asahi
04:02kov has quit [Quit: Coyote finally caught me]
04:02kov has joined #asahi
04:22BlitzWorks has joined #asahi
04:35* Rabbitzhi anyone wanna code something together ? may be we can meet at channnel #rabbithacker
04:38Rabbitz has quit [autokilled: This host violated network policy and has been banned. Mail support@oftc.net if you think this is in error. (2022-02-27 04:38:09)]
04:40marvin24_ has joined #asahi
04:44marvin24 has quit [Ping timeout: 480 seconds]
05:29darkapex1 has quit [Ping timeout: 480 seconds]
05:29bisko has quit [Read error: Connection reset by peer]
05:30bisko has joined #asahi
06:27darkapex has joined #asahi
06:54VinDuvSo I’ve been looking at how macOS installation from USB works on M1 Macs and I think it might be interesting for the Asashi installer. The way it works is that there’s a hidden plist file on the USB drive that references a macOS application on the drive; if this file is present, the USB drive will show up in the power-button-held boot menu, and when selected, it will run the application. It doesn’t seem to care about file signature
06:56VinDuvSo the installation workflow from 1TR could be “plug in a USB stick, hold the power button, select Install Asahi” instead of having to manually open the terminal and run curl | sh. The installer doesn’t even need to be graphical since it’s possible for the launched shell script to start the recovery environment’s Terminal and giving it an arbitrary command to run.
06:59VinDuvThis is also not limited to external USB drives; it also works if the files are in an APFS volume in internal storage, which I guess might be useful to have a Asahi Recovery boot option in the boot menu or something.
07:05TheFirst has quit [Server closed connection]
07:05TheFirst has joined #asahi
07:11chadmedhmmm that might be nice to have a graphical installer written for Cocoa at some point down the road ;)
07:15kallsyms has quit [Server closed connection]
07:15kallsyms has joined #asahi
07:16rossy has quit [Server closed connection]
07:16rossy has joined #asahi
07:18marcanstill needs network for the IPSW download though, so it's somewhat academic, but it might be better than "pull up the terminal and run some commands"
07:18marcanI like the Asahi Recovery idea though, in fact couldn't we outright use that for step2.sh?
07:20marcanheck, we can probably do a fun hack where we let the boot picker provision the new boot volume, then *break* it so the next reboot is into 1TR in the right partition (pretty sure iBoot doesn't care about the version plists etc), but the (still incomplete) volume doesn't even show up yet
07:37darkapex has quit [Ping timeout: 480 seconds]
08:00Glanzmannmarcan: Have you already thought about how the update process looks like if there are device tree changes?
08:11mustache_ride___ has quit [Server closed connection]
08:11mustache_ride___ has joined #asahi
08:11enomem has quit [Server closed connection]
08:11enomem has joined #asahi
08:21the_lanetly_052 has joined #asahi
08:26eichin has quit [Server closed connection]
08:26eichin has joined #asahi
08:35ovf has quit [Server closed connection]
08:35ovf has joined #asahi
08:42VinDuvGlanzmann: Here are the files you need on the USB disk/volume: https://paste.debian.net/plainh/47c9f2fb
08:44VinDuvYou can replace "Some App" "SomeApp" and "myscript" with whatever you want. I think ProductBuildVersion and ProductVersion are customizable but need to follow a certain format for the disk to be recognized by the boot menu
08:45jannauI fear backward compatibility (new dtb with old kernel) is not possible. We will break the simple framebuffer as soon as we add dcp/disp dart to the dts
08:46jannauI haeven't looked yet in detail but the cpufreq hcnages might break backward compatibility as well
08:48jannauI need to verify that booting plain 5.16 or 5.17-rc* with current asahi dtb breaks as well
08:55esden has quit [Server closed connection]
08:55esden has joined #asahi
08:58ZLSA has quit [Server closed connection]
08:58ZLSA has joined #asahi
09:31jannauadding the dart nodes will break it. the dart driver reset the dart and unmaps the framebuffer
09:36jannaunot sure if we already have a check to prevent probing of the locked dcp-dart and what happens if we probe it anyway
09:38peac has quit [Server closed connection]
09:38peac has joined #asahi
09:41stblassitude has quit [Server closed connection]
09:41stblassitude has joined #asahi
09:50maennich has quit [Server closed connection]
09:51maennich has joined #asahi
10:07philpax_ has quit [Server closed connection]
10:07philpax_ has joined #asahi
10:12jannauI guess we could still try to fix the reset issue in 5.17. 5.16 compability is already broken by pmgr
10:13kettenisjannau: the solution to that is to use a different compatible for the DARTs that need their mappings retained
10:14jabashque has quit [Server closed connection]
10:14jabashque has joined #asahi
10:32Vaughn has quit [Server closed connection]
10:32Vaughn has joined #asahi
10:46gabuscus has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
10:47gabuscus has joined #asahi
10:56JTL has quit [Server closed connection]
10:57JTL has joined #asahi
11:02le0n has quit [Quit: see you later, alligator]
11:02ids1024 has quit [Server closed connection]
11:02ids1024 has joined #asahi
11:06NekomimiScience has quit [Server closed connection]
11:06NekomimiScience has joined #asahi
11:06jochum has joined #asahi
11:07saintdev_ has quit [Server closed connection]
11:07saintdev_ has joined #asahi
11:09jochum_ has quit [Ping timeout: 480 seconds]
11:12darkapex has joined #asahi
11:16___nick___ has joined #asahi
11:16___nick___ has quit []
11:18___nick___ has joined #asahi
11:39martinstewart has joined #asahi
11:40martinstewarthello im currently watching a mac os update log its kind of intresting
11:42martinstewartit refrances alot of interesting sounding files
11:43martinstewartit mentions a file called updatebrain.pkg
11:45martinstewartor is it .zip but seems like it has something to do with how thease m1 macs update which might help with reversing firmware updates from linux
11:46martinstewarti just found it intersting and thought id share
11:47martinstewartim about to restart the mac however i have saved the log file if anyone is intrested
11:48martinstewart has quit [Remote host closed the connection]
12:20Techcable has quit [Ping timeout: 480 seconds]
12:39tpw_rules has quit [Server closed connection]
12:39tpw_rules has joined #asahi
12:46martinstewart has joined #asahi
12:47martinstewart has quit [Remote host closed the connection]
12:49pitust[m]`make arch/arm64/boot/dts/apple/t8103-j293.dtb` doesn't work, and neither does `make t8103-j293.dtb`
12:50Tramtrist has quit [Server closed connection]
12:50Tramtrist has joined #asahi
12:56le0n has joined #asahi
13:29j`eyyou can use this script to package it https://github.com/AsahiLinux/asahi-installer/blob/main/src/firmware/wifi.py
13:30GlanzmannThis generates a /tmp/linux-firmware.tar using the asahi installer that jey mentioned. That tar file needs to be extracted in /lib/firmware
13:31Glanzmannpitust[m]: Here is a build script which builds other things that you might need, like m1n1, u-boot, ... https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blob_plain/refs/heads/master:/bootstrap.sh
13:31the_lanetly_052 has quit [Ping timeout: 480 seconds]
13:41Glanzmannpitust[m]: But you can also compile a kernel that supports acls and use bsdtar to extract it.
13:41Glanzmannpitust[m]: Also marcan is working on an alarm installer, so maybe you just wait a few more days and than it works out of the box.
13:43Lightsword has quit [Server closed connection]
13:43Lightsword has joined #asahi
13:43Glanzmannpitust[m]: If you want a real quickstart with alarm: Install U-boot https://github.com/AsahiLinux/docs/wiki/U-Boot , extract debian live on a usb stick, https://github.com/AsahiLinux/docs/wiki/Debian , than from Debian do the partitioning for the esp and the root filesystem, extract the alarm root filesystem, chroot into it and make it bootable.
14:21guan has quit [Server closed connection]
14:21guan has joined #asahi
14:39rcombs has quit [Server closed connection]
14:43rcombs has joined #asahi
14:45Method has quit [Server closed connection]
14:45Method has joined #asahi
14:58krbtgt has quit [Server closed connection]
14:58krbtgt has joined #asahi
15:02marcan< jannau> I fear backward compatibility (new dtb with old kernel) is not possible. We will break the simple framebuffer as soon as we add dcp/disp dart to the dts
15:02marcansimple-framebuffer will always be there, it has to be for u-boot and older kernels and kernels without support for newer DCP versions
15:05ihaveamac has quit [Server closed connection]
15:05ihaveamac has joined #asahi
15:22bisko has quit [Read error: Connection reset by peer]
15:23bisko has joined #asahi
15:51jannauplease do, it's not strictly needed but the installer requires it at this point and it is the only supported version
16:06ciggi_ has quit [Quit: No Ping reply in 180 seconds.]
16:07ciggi has joined #asahi
16:37marcanyou should use u-boot unless you're just doing tethered testing or you fancy rebooting into 1TR and doing the kmutil dance every time you change your kernel
16:37marcanin the future we will require u-boot for some features, like CPU deep sleep and suspend/hibernate
16:39pitust[m]it enters m1n1, the asahi logo shows up, it's dumping some logs to the screen for a bit, then the logs disappear and the asahi logo is the only thing that can be seen
16:40pitust[m]i built my m1n1 blob with `cat build/m1n1.bin ~/code/Image.gz ~/code/initramfs-linux-fallback.img ~/code/t8103-j293.dtb > untethered.bin`
16:41Glanzmannmarcan: Or it is just the simpledrm compiled as module as in my case ... you remember.
16:42pitust[m]the latest AsahiLinux/linux commit, this kconfig: https://gist.github.com/pitust/648242b028abde05bd11a59ae5c7abaf
16:43jbowen has quit [Server closed connection]
16:43jbowen has joined #asahi
16:43pitust[m]is CONFIG_ARM64_PAGE_SHIFT the thing that configures the page size? that sounds like it would set it
16:46marcanand also CONFIG_SERIAL_SAMSUNG=y and CONFIG_SERIAL_SAMSUNG_CONSOLE=y if you want to be able to debug this with the hypervisor if it still doesn't work
17:08pitust[m]okay here is my updated config: https://dyn-decompile.pitust.dev/linux-config.txt, still same thing happens
17:18sheepgoose has quit [Remote host closed the connection]
17:19sheepgoose has joined #asahi
17:19marcanpitust[m]: you didn't set CONFIG_SERIAL_SAMSUNG, which isn't going to fix your problem but without that it's undebuggable
17:21bisko has quit [Read error: Connection reset by peer]
17:22bisko has joined #asahi
17:28sheepgoose has quit [Ping timeout: 480 seconds]
17:48mixithere is an issue where rarely some clients crash with the pixman renderer I was too lazy to figure out
17:49mixiI'd attribute it to using the software rendering path that's probably not well tested on other platforms
18:15GlanzmannIf you don't have a serial cable m1n1 will be real hassle. I once also thought that it is bearable. But than you end up a few different kernels and a day and than it becomes a hassle.
18:29nzzz has joined #asahi
18:32nafod has quit [Server closed connection]
18:32nafod has joined #asahi
18:33Glanzmannpitust[m]: How much space do you want for Linux, the absolut minimum would be 4 GB (2.5 for stub, 0.5 for esp and 1 G for Linux); If you want only the live system than it would be 2.5GB.
18:35GlanzmannOkay, so in order to free up 32GB for Linux, you need to issue the following command: diskutil apfs resizeContainer disk0s2 462.4GB
18:40GlanzmannThe next thing is to run the asahi installer and install. U Boot. I made a video of that: https://tg.st/u/asahi-installer-u-boot.mp4
18:52bisko has quit [Read error: Connection reset by peer]
18:53bisko has joined #asahi
19:34gladiac is now known as Guest718
19:34gladiac has joined #asahi
19:37pitust[m]so i made this after a lot of effort: https://pbot.rmdir.de/UThadeUP1yBOFQxXdwWV5A, now i am wondering how do i remove the partition and convince the installer to use "AL" partition to store it's things
19:40Guest718 has quit [Ping timeout: 480 seconds]
19:44jkkm has quit [Server closed connection]
19:44jkkm has joined #asahi
19:56Glanzmannpitust[m]: The problem it appears you have a lot of data on macos, if you screw around with it, than probably you will break it. If you break it you will loose all your data.
19:56GlanzmannSo my recommendation is to either do a backup and plan a free day to restore your system after you screwed it or get a second system to screw around with.
19:58GlanzmannI never managed to get all my data lost by accident, but I don't have anything on my macos. I read about a few others in here who did not loose everything once, but twice.
19:59Glanzmannpitust[m]: That is what I do on, workstations, too. For the servers I use restic these days.
20:00Glanzmannpitust[m]: So once you have the free space. The next step would be to run the asahi installer: curl -L https://mrcn.st/alxsh | sh
20:02Glanzmannpitust[m]: One more thing, before I got to bed. You can access the boot picker by completly turn of the machine and press and hold the power button for 15 seconds.
20:03GlanzmannSo what the asahi installer does, it installs a fake macos container (2.5 GB in size). You can use that fake container install m1n1 to use via serial cable or m1n1+dtb+u-boot.
20:03GlanzmannSo when you boot from the fake apfs container than you end up in m1n1 or u-boot. With u-boot you can boot from a usb stick or from the internal disk.
20:25Techcable has joined #asahi
20:32over530_ has joined #asahi
20:39over530_ has quit [Quit: over530_]
20:57daniels has quit [Server closed connection]
20:58daniels has joined #asahi
21:06arnd has quit [Server closed connection]
21:06arnd has joined #asahi
21:07___nick___ has quit [Ping timeout: 480 seconds]
21:08steev has quit [Server closed connection]
21:08steev has joined #asahi
21:51over530 has joined #asahi
22:15mmarchini has quit [Server closed connection]
22:15mmarchini has joined #asahi
22:19kendfinger has quit [Server closed connection]
22:19kendfinger has joined #asahi
22:28over530 has quit [Quit: over530]
22:36bluetail[m]sounds great. so, essentially, soon enough I will be able to run my mac mini without the macOS. Lovely.
22:36skoobasteeve has quit [Server closed connection]
22:37skoobasteeve has joined #asahi
22:43bluetail[m]GPU acceleration would have to wait, though. I think that one is tricky.
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi
23:19sheepgoose has joined #asahi
23:31vmeson has quit [Server closed connection]
23:32vmeson has joined #asahi