2022-05-23
00:12artemist has quit [Ping timeout: 480 seconds]
00:18jakebot2 has joined #asahi
00:18jakebot has quit [Quit: Ping timeout (120 seconds)]
00:18jakebot2 is now known as jakebot
00:25darkapex2 has quit [Ping timeout: 480 seconds]
00:27jakebot has quit [Ping timeout: 480 seconds]
00:49dost^ has joined #asahi
01:07jakebot has joined #asahi
01:10artemist has joined #asahi
01:30Raqbit has quit [Ping timeout: 480 seconds]
01:44Raqbit has joined #asahi
01:48darkapex has joined #asahi
02:13dost^ has quit [Ping timeout: 480 seconds]
02:16dost^ has joined #asahi
03:02PhilippvK has joined #asahi
03:04phiologe has quit [Ping timeout: 480 seconds]
03:16derzahl has quit [Ping timeout: 480 seconds]
03:29marvin24 has joined #asahi
03:32marvin24_ has quit [Ping timeout: 480 seconds]
03:44winter has quit [Remote host closed the connection]
03:48winter has joined #asahi
04:05xfim has joined #asahi
04:30tpw_rulesthank you marcan and Glanzmann. I did some fiddling and made my own comprehensive tutorial: https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md#recovering-from-boot-failure-with-idevicerestore
04:43conradev has quit [Quit: -]
04:44conradev has joined #asahi
05:03derzahl has joined #asahi
05:16_bolt has joined #asahi
05:17wintertpw_rules: I believe idevicerestore works just fine on Windows as well, though I'm not sure how to actually compile it (I guess with mingw or somehow get MSVC to do it...)
05:52xfim has quit [Quit: leaving]
05:53xfim has joined #asahi
06:09guillaume_g has joined #asahi
06:17_bolt has quit [Remote host closed the connection]
06:27ElvishJerricco[m]Well, I managed to get m1n1 building with Nix with a fairly simple derivation, as long as I build on aarch64 linux or x86_64 linux (cross compile). Still having issues with darwin, but it probably stems from nixpkgs stuff
06:28ElvishJerricco[m]I diff'ed hexdumps of m1n1.bin as built on aarch64 and as cross built on x86_64, and there are 5698 lines of diff. For an 832K binary, I'd say that's pretty good as far as reproducibility across build architectures go
06:36dubiousness has quit [Remote host closed the connection]
06:52derzahl has quit [Ping timeout: 480 seconds]
07:07xfim_ has joined #asahi
07:09xfim has quit [Ping timeout: 480 seconds]
07:14xfim_ has quit [Quit: leaving]
07:16xfim has joined #asahi
07:21xfimA couple of days ago I was here trying to set up Asahi on the Mac Studio Pro. With the generous help of jannau I went through different steps. I have the installer.tar.gz and was able to do the partitioning. I have been able to crosscompile u-boot, but I am stuck with building m1n1, because it seems that there is no way to add bootlogo_*.png to the bootloader. I've even opened an issue at github with more
07:21xfimdetails (https://github.com/AsahiLinux/m1n1/issues/206). Has anyone any idea on how to move forward on building the m1n1 installer?
07:29_jannau_xfim: I saw the issue and it looks strange. The error is the one make would report if the files did not exist
07:38petterroea has joined #asahi
07:40xfimBut the files do not exist, right? I can't see any file named bootlogo_128.o, as the Makefile expects in line 74. Is it probably something very silly, I am sure.
07:41xfimI read Makefile and on line 74 it says that there are two files that should be compiled, namely bootlogo_128.o bootlogo_256.o.
07:43xfimThere are no bootlogo_128.o neither bootlogo_256.o in https://github.com/AsahiLinux/m1n1/tree/main/src
07:44xfimBut does "convert" also has to run like in a crossdev environment? I would say not, but I can't rule out all posibilities
07:46xfimProbably that should have been very obvious to most, but when you mention to clone it, I didn't thought about having to load all submodules.
07:51xfimSo the exciting time is coming. I am putting all of it into boot.bin and then I will move on to the MacStudio to continue with it. Can I simply copy it to one of the partitions, or do I need either the USB a-c cable or the m1n1 proxy (whatever this last one means)? I am afraid I will need more help today. Thank you all!
07:57_jannau_usb-c cable is more convient if it doesn't work but replacing the file on the fat32 partition in mac os should work
07:58bps has joined #asahi
08:00the_lanetly_052 has joined #asahi
08:03_jannau_povik: no, the arch package was not updated after the rebase so it doesn't have the i2c fix
08:10xfimI don't really know which partition is the fat32 one. I can seed /dev/disk0 and /dev/disk3.
08:12xfimIn /dev/disk0, the internal, I have #0 GUID partition scheme, #1 Apple_APFS_ISC, #2 the Apple_APFS container disk3 where I assume lies the MacOS. Then free space, and finally #3 Apple_APFS_recovery.
08:12xfimI would say it should be, discarding the others, #1, disk0s1, with 524.3 Mb. Would that be correct?
08:22jluthra has quit [Remote host closed the connection]
08:22jluthra has joined #asahi
09:01ciggi has joined #asahi
09:14millenialhacker has joined #asahi
09:21the_lanetly_052__ has joined #asahi
09:27the_lanetly_052 has quit [Ping timeout: 480 seconds]
09:31the_lanetly_052__ has quit [Ping timeout: 480 seconds]
09:56dost^ has quit [Remote host closed the connection]
09:56dost^ has joined #asahi
09:58xfimI'm scared! So I have generated boot.bin so far, and I understand that I have to add it to the FAT32 partition. But there was none, so I decided to go with the installer and select the UEFI environment only.
09:59xfimI thought that at some point I would be able to change the file from my newly generated one, but the installer has arrived to the end, and I am in the screen where it says that the system will shut down.
10:00xfimBecause I have not changed the boot.bin that the installer has probably added with my own "boot.bin" for MacStudio, does this mean that I will not be able to boot correctly?
10:01xfimOr you would recommend, now that I am in MacOS and the installer is not yet rebooting, to mount the FAT32 partition and change the boot.bin?
10:03marcanElvishJerricco[m]: I would expect cross and native to produce the same binaries if you use the same GCC version and options, but there are likely differences in default options related to the gcc build config
10:03xfimOh, oh! This changes things... Interesting. I'm here anyway, but let me first check the partitios as they are right now, after the installer has done its work.
10:04xfimBut I am not sure if I can be of much assistance giving feedback. I'm willing to learn, though!
10:05marcanit would be nice if folks tested the asahi rebase kernel, that will probably be pushed this week if nothing is broken
10:06marcanbasically that plus the t6k2 stuff from _jannau_ should be the next significant update to the installer/repos
10:11xfimBut I am not sure if I can be of much assistance giving feedback. I'm willing to learn, though!
10:12marcanI'm thinking of making a testing repo where I push things before prod, and making the images build off of that (but replaced with the regular repo at the end of the build process, with the expectation that those images + repo are promoted to stable simultaneously)
10:13marcanI'll be back later, got some stuff to do tonight, but I'll spend tomorrow doing another round of updates and figuring out the DTs
10:14marcanthen I can push to a testing repo / installer and let people test it, and promote it to stable on friday or something
10:20j`eyxfim: I havent been following, but this may be where you boot back into 1TR and replace the boot.bin?
10:21dost^ has quit [Ping timeout: 480 seconds]
10:24xfimOK, got it now. But from the menu, how can I replace the boot.bin that I have in my usb drive to the fat partition? I have three options. First is the installer, and I can't do it from that, right? Then I have MAcOS, which I could use, and the third? Is it possible to switch such a file from within ther?
10:29xfimUtilities sends me to "Recover from time machine", "reinstall monterey", "safari" and "disk utility". But from a menu I have been able to find a terminal. Let me continue then. Now I have to learn how to mount volumes on MacOS, because I imagine that 'mount' will not do.
10:30xfimYes, it does. BTW, do you want an anecdote? I make dvorak the main keyboard during the installation of MacOS. But switched to qwerty when exploring this first couple of days.
10:30xfimAnd now in the recovery, as well as in the password introduction, it was understanding dvorak, and kept me saying that the password was wrong...
10:36xfimIs it possible that the file that I have to replace is /Volumes/Asahi/Finish Installation.app/Contents/Resources/boot.bin, with 848K, and mine is 1.1 Mb?
10:38kov has joined #asahi
10:42xfimThe destination partition is mounted read only, and when trying to mount it with "mount -o rw", mount complains that it is unknown. Any clue?
10:45xfimI really must stop asking directly and try to find my own answers first before bothering people.
10:51xfimOK, I have rebooted again to 1TR and now I have the "Running proxy...", but there are several more messages that don't look very well.
10:52xfimAnd before that 4 different "Unknown variable" followed by two and a half terminal lines of "??????|?a7??\?' etc...
10:57mpsupgraded kernel. uname -a says => Linux m1 5.18.0-rc5-1-asahi #2-Alpine SMP PREEMPT Mon, 23 May 2022 10:41:40 +0000 aarch64 GNU/Linux
11:00xfimSo I am not certain I'm somewhere. It certainly says "Running proxy..." but nothing less, and can't type anything. Besides, once in proxy, if everything had went well, what would be the next step? Configure for "stage 1" as in https://github.com/AsahiLinux/docs/wiki/m1n1:User-Guide?
11:02j`eyxfim: you built the installer yourself right? and used some branch of jannau's for m1n1 or?
11:07xfimcat m1n1/build/m1n1.bin u-boot-1/arch/arm/dts/t6001-j375c.dtb <(gzip -c u-boot-1/u-boot-nodtb.bin) > boot.bin
11:13marcanif the partition was mounted readonly that sounds like /Volumes/Asahi, which will be mounted readonly by default
11:15marcanthe "unknown variable" stuff is expected if you install a m1n1 built by concatenating payloads yourself (you need to append some NULs); if it happens with stage2 I don't know what that is about though. I think alyssa also saw that. Must be a bug somewhere but I don't see how it could happen...
11:16_jannau_I doubt xfim attached an "chosen.asahi..." variable so the replacement of the EFI boot.bin should be fine
11:16marcanI mean if he replaced the one in the step2 bundle and did nothing else, then that's a no-op
11:18marcanstage2 does *not* need the chosen.asahi stuff since stage1 puts it there if it has it itself, which is the correct way to do it
11:20mps`cat object.bin /work/aports/testing/linux-asahi/src/build-asahi.aarch64/arch/arm64/boot/dts/apple/t*dtb <(gzip -c "u-boot/u-boot-nodtb.bin") > new-uboot.bin`
11:21_jannau_mps: when did you use the installer? the variable handling was only added shortly before the alpha release
11:24marcan_jannau_: the variable handling has been there since the beginning of chainloading on Mar 9, but it was somewhat broken until a fix on Mar 10
11:25xfimI would say the place was weird because it was something like /Volumes/Asahi/Finish Installation.app/Contents/Resources/boot.bin
11:25mps`cat m1n1/build/m1n1.bin <(echo 'chosen.asahi,efi-system-partition=<e4accd7c-5c8c-4430-b13c-4cd410228e02') > object.bin`
11:26marcanit's starting to sound like the gzip thing doesn't work to find the next payload. can you send me your combined new-uboot.bin with everything?
11:29marcanmps: why does that binary have both an xz compressed u-boot and a gzip compressed u-boot with the same contents?
11:37the_lanetly_052 has joined #asahi
11:39xfimSo, even worst: see picture https://ibb.co/h2yhDLB. "Unable to read file ubootefi.var", and "failed to find boot partition `run distro_bootcmd` to boot from any partition.
11:41marcanuntested, just pushed ad659daa which should fix the variable garbage spam (but it should've been harmless anyway, does not explain not picking up the chosen var)
11:47jannauxfim: you said you had the uefi / u-boot only installed. so that looks like everything works as long as you don't have usb keyboard/mouse connected
11:52xfimIn the front I have a dodocool docking station with the usb disk that has allowed the boot.bin to be inserted.
11:54xfimAh, now I understand then. Would them being connected to the docking through the usb-c change the situation?
11:55xfimSo then let me try the usb-c from the back connected to a docking and then plug in the keyboard+mouse to that docking through usb-a. Should I?
11:56j`eyyou could do it remotely, if you get wifi/ssh working (does ethernet work OOTB for the mac studio max?)
11:58mpsxfim: https://dev.alpinelinux.org/~mps/m1/m1-usb-alpine-install.img.xz alpine bootable usb ready made ;)
11:59xfimBut I am afraid I would rather stick with my beloved gentoo and set it up as a data science machine.
12:00j`eyxfim: you can use that USB stick jut to get into a live distro, and then install gentoo onto the SSD
12:01xfimmps and j`ey: yes! that is it! That is perfect. I can start with alpine live and then move on
12:02jannauthere is nothing installed on your mac studio yet so it's expected that you end up in the u-boot screen
12:02mpseven have one transcend usb-c ssd disk conneceted with power usb-c cable and u-boot can't detect it
12:03xfimjannau: yes, the u-boot is visible, along with the asahi one. But there are many messages that seem suspicious of not a good situation.
12:07xfimLet me recap about the options: use alpine to boot to a live scenario so that I can start installing the distro of my choice
12:08xfimIf I boot from a live usb with alpine, how would I proceed. From the 1TR must I still go for "Asahi", and then how will I be able to run the live alpine?
12:09Sobek[m]So, basically the Asahi entry on the apple boot loader will hand off to m1n1, which then hands-off to U-boot, and then U-boot does its thing
12:12xfimjannau: hard to tell if it works. On one point, because of the "=>" prompt, I don't seem to have anything going on, but if I try and press CTRL+ALT+delete I see some "IIIIII" in the screen, so I would say that there is connection between the keyboard and the computer.
12:21xfimSo there is none. At least none that I can say for sure. Have you seen the picture ( https://ibb.co/QPbRMn7)? I would not say that this is the "u-boot" prompt, isn't it?
12:30xfimIt tries to boot from usb disk, and identifies the size and all, but not the partition table
12:32mpsxfim: this image is used by some people to install alpine and by some to fix unbootable machines
12:34_jannau_I haven't tested usb storage with u-boot on the mac studio but it should not differ from the macbook pros especially for the m1 max model
12:36_jannau_the dts/dtb is coming from me especially for mac studio. u-boot would not load without mactching dtb
12:53xfimOK, I have keyboard control and all, but I am still at u-boot, and nothing has happened with the USB disk with alpine.
12:54xfimStill Device recognized, capacity correctly guessed, "is not current device", but "No partition table - usb 0", and "couldn't find partition usb 0:1"
13:03_jannau_or `xz -c -d m1-usb-alpine-install.img.xz | dd of=/dev/xxx` unless you plan copy the image multiple times
13:06xfimAll seems well, except for networking not starting: direct firmware load for rtl_nic/rtl8153a-4.fw failed with error -2
13:11mpsxfim: you can install wifi firmware by mounting ESP on /mnt and run shell script in /root/update-wendor-firmware
13:23xfimmps: yes, all seems well for eth0...I can see all settings for eth0. I've followed the tutorial here (https://wiki.alpinelinux.org/wiki/Configure_Networking#Ethernet_Configuration), written to /etc/network/interfaces
13:26xfimBut when restarting the network service: can't open /var/run/udhcpc.eth0.pid, no such file or directory, although it seems that "starting networking" for eth0 goes well, and enfs with ok. But then ifconfig does not show it.
13:41xfimI have found the shell script, but what exactly is ESP? I guess the device should be mounted to /mnt/vendorfw for the script to work, right?
13:47mpscat `cat /proc/device-tree/chosen/asahi,efi-system-partition` will show PARTUUID of the ESP where m1n1+u-boot and firmware are
13:49Guest489 is now known as svenpeter[m]
14:03xfimOne question: I can see that nvme0n1 has 5 partitions: p1 500 Mb, p2 74Gb, p3 2.3 Gb, p4 477M and p5 5Gb.
14:06xfimThen I imagine that I still have space not assigned in the hard drive. Therefore, should I would like to install the distro in the free space of the hard drive. Will I mess something if I join together the 74Gb with the free space? Is this partitioning scheme that asahi has done meaningful?
14:11_jannau_p3 is a stub macOS partition required for booting an alternate OS, p4 is the EFI system partition
14:12_jannau_maybe read https://github.com/AsahiLinux/docs/wiki/Open-OS-Ecosystem-on-Apple-Silicon-Macs
14:17xfimI am going for a single / for ext4. I've worked many years with separate /home and / and with sparse hard disk space I prefer now not to risk it and be more flexible.
14:26xfim has quit [Ping timeout: 480 seconds]
14:29Gaspare has joined #asahi
14:35millenialhacker has quit [Quit: Konversation terminated!]
14:39dost^ has joined #asahi
14:42cassepipe has joined #asahi
14:47dost^ has quit [Remote host closed the connection]
14:48Gaspare has quit [Quit: Gaspare]
14:49Gaspare has joined #asahi
14:49kaprests has quit [autokilled: Possible botnet activity. Mail support@oftc.net with questions. (2022-05-23 14:49:59)]
14:55kaprests has joined #asahi
14:56tpw_ruleshow erased is the apple dfu erase? does it just recreate the partition table and freshly install macos or does it regenerate the encryption keys?
15:02xfim has joined #asahi
15:03LinuxM1 has joined #asahi
15:10tpw_rulesthe platform security guide says that the erase creates a new "owner identity key" and destroys any old one. there's also a "media key" which can be discarded by instant remote wipe. there's also the SKP stuff.
15:10Manouchehri has joined #asahi
15:11tpw_rulesbut i can't find anything that directly states "if you erase-install, everything previous will be inaccessible"
15:13tpw_rulesit does say that the "erase all content and settings" in system preferences is an un-replayable event which implies it updates that key
15:16derzahl has joined #asahi
15:18the_lanetly_052 has quit [Remote host closed the connection]
15:20nicolas17 has joined #asahi
15:22mipi[m]What is the current status wrt. rust? https://github.com/AsahiLinux/docs/wiki/Software-known-to-have-issues-with-16k-page-size suggests that it's fixed, but I still get errors because of the page size problem when I build rust packages. The native rust installation works, however, but I have to adjust the PKGBUILD (remove rust/cargo as make dependency).
15:24j`eymps: im booting using m1n1 proxy, needing to pass some extra kernel params, I got it working now
15:25_jannau_mps: no what would know how to set kernel boot cmd line, especially when using chainload.py
15:26_jannau_mipi[m]: I guess marcan never got around to submit https://github.com/AsahiLinux/alarm-PKGBUILDs/commit/c2459a0ae6fc04b7fe98bb04f10795248eca949b as PR for https://github.com/archlinuxarm/
15:27Manouchehrijust reading this bit and had a question: https://github.com/AsahiLinux/docs/wiki/SW%3AHypervisor#preparation
15:27ManouchehriIs it possible to install the latest macOS on an M1 without updating the firmware?
15:28Manouchehrihaha fair :p
15:29ManouchehriI just wanna use the new virtualization framework on my M1 Mini, but worried about losing the option to use Asahi later in the future.
15:29LinuxM1 has quit [Ping timeout: 480 seconds]
15:32Gaspare has quit [Quit: Gaspare]
15:33Manouchehrioh perfect :)
15:34cassepipe_ has joined #asahi
15:35marcancio, tmu, iBoot1, SEP, ANS, SMC, PMU, and I think possibly a couple others are systemwide
15:40cassepipe has quit [Ping timeout: 480 seconds]
15:42Gaspare has joined #asahi
15:45nicolas17yeah but still, they have a well-defined stable protocol to avoid breaking backwards compat, or the SEP knows how to talk old versions of the protocol... and they go out of their way to disable that on iOS?
15:57Gaspare has quit [Quit: Gaspare]
15:58guillaume_g has quit []
16:05cassepipe__ has joined #asahi
16:06cassepipe__ has quit [Remote host closed the connection]
16:07cassepipe__ has joined #asahi
16:08cassepipe__ has quit [Remote host closed the connection]
16:08cassepipe__ has joined #asahi
16:11cassepipe_ has quit [Ping timeout: 480 seconds]
16:31caef^ has joined #asahi
16:33jakebot has quit [Quit: The Lounge - https://thelounge.chat]
16:33jakebot has joined #asahi
16:45Daniele[m]1 has joined #asahi
17:04Gaspare has joined #asahi
17:11m1n1m4[m]mps: thanks for mentioning it, i will need chromium ocasionally. What are the impacts of changing to the 4K kernel?
17:18mpsI created MR some time ago https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/34029
17:24freefiree has joined #asahi
17:29jokerface has joined #asahi
17:29jokerfacePlease join to my new channel on libera.chat if you like safari browser. The name of the channel of course is #safari
17:32caef^ has quit [Remote host closed the connection]
17:38jokerface was kicked from #asahi by ChanServ [You are not permitted on this channel]
17:41nicolas17 has quit [Ping timeout: 480 seconds]
17:42nicolas17 has joined #asahi
17:47freefiree has quit [autokilled: Please do not spam on IRC. Email support@oftc.net with questions. (2022-05-23 17:47:17)]
18:14millenialhacker has joined #asahi
18:29bisko has quit [Ping timeout: 480 seconds]
18:30Gaspare has quit [Quit: Gaspare]
18:32bisko has joined #asahi
18:35Gaspare has joined #asahi
19:07xfimmps: I am using alpine to chroot into a Gentoo env. While asahi uses zstd compression algorithm for kernel modules, which compression algorithm is used in alpine? I need it in order to build gentoo with such capability.
19:13cassepipe has joined #asahi
19:13cassepipe__ has quit [Read error: Connection reset by peer]
19:37Glanzmann has joined #asahi
19:49eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:59xfimmps: excellent, thank you. So far, so good and Gentoo is preparing everything. But I will have to leave the rest for tomorrow eventually.
20:06Glanzmann has quit [Quit: EOF]
20:10MajorBiscuit has joined #asahi
20:26derzahlIf anyone is interested, Chromium for Asahi linux with 16kb kernel pages: https://github.com/derzahla/thulium
20:41weapon_of_nix[m]is there any way to access the asahi filesystem and make edits from macos?
20:43weapon_of_nix[m]i broke something and i need to edit it because i can't boot
20:45mpsweapon_of_nix[m]: you can read today backlog here also, to see how to use usb bootable and fix problem with iit
20:46weapon_of_nix[m]thanks i'll take a look
20:57cmalvi[m]<nicolas17> "does it support ext4 (not just..." <- I have it. I can confirm it support but don’t expect any partitioning utility like gparted or similar
21:05fny[m] has joined #asahi
21:06xfim has quit [Ping timeout: 480 seconds]
21:11millenialhacker has quit [Quit: Konversation terminated!]
21:16ktz_[m]<Amy[m]> "what command would i do to..." <- You're better off reading the link jey attached so you don't ruin your setup
21:17rootbeerdan has joined #asahi
21:17ktz_[m]yes @mps has done it in the alpine installer check it out here https://arvanta.net/alpine/install-alpine-m1/
21:22rootbeerdan has quit [Quit: bye]
21:28rootbeerdan has joined #asahi
21:34cmalvi[m]Using a 4K compiled kernel, all apps works except few not available for arm neither with building from source. Is a very promising state
21:38Major_Biscuit has joined #asahi
21:39MajorBiscuit has quit [Ping timeout: 480 seconds]
21:44cmalvi[m]ktz_[m]: I’ve installed the arch minimal, then gnome and built the asahi kernel with a 4K kernel patch (not created by me)
21:45ktz_[m]personally I found a great deal of packages in the arch repos not working/broken whilst almost all of them work out of the box properly with alpine
21:47Gaspare has quit [Quit: Gaspare]
21:47cmalvi[m]ktz_[m]: Yes, some packages are missing in arch repo due to arm architecture, also in aur but some of these builds and run fine. It’s not straightforward and took me some time to replicate the exact setup I have on my tower pc but I finally did it
21:48ktz_[m]yes you're right, if you're settled already you better stay as is, just mentioning it fyi
21:49cmalvi[m]mps: Now I need to take my degree during this summer, maybe after I’ll take a look at it 😂
21:52cmalvi[m]mps: Yes I totally agree, but I took it like a challenge to improve my build skill and in general my Linux usage skill
21:55cmalvi[m]Oh wait my I made me misunderstood. I want to say that those problems encourage me to improve
21:56cmalvi[m]I’m started using Linux because windows fried two ssd during university lectures during quarantine in 2020
22:08MajorBiscuit has joined #asahi
22:10Major_Biscuit has quit [Ping timeout: 480 seconds]
22:11cassepipe has quit [Remote host closed the connection]
22:35MajorBiscuit has quit [Ping timeout: 480 seconds]
23:18lromwoo^ has joined #asahi
23:41Moprius has joined #asahi