#
…

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:45ktz_[m]hi guys anyone using zfs on alpinelinux?
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:18tpw_rulesyeah there was a rumor to that effect in nixpkgs
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:38povikyou need to fetch the submodule don't you
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:42xfimI can find data/bootlogo_128.png and the 256 version.
07:42xfimBut nowhere the .o files
07:43xfimThere are no bootlogo_128.o neither bootlogo_256.o in https://github.com/AsahiLinux/m1n1/tree/main/src
07:43mpsxfim: do you have imagemagick pkg installed
07:43povikah sorry you mention you have the .png files
07:43povikdunno then
07:43xfimYes, I can run "convert"
07:44mpsiirc I had similar problem but solved by installing imagemagick
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:44_jannau_povik: it is the the missing artwork submodule
07:44_jannau_xfim: git submodule init && git submodule update
07:45xfimaaaaaaaaand it is working now. I owe you yet another one, jannau
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:48mpsoh yes, I forgot that I added artwork tarball download for alpine m1n1 pkg
07:48_jannau_argh, data/bootlogo_{128,256}.png are symlinks into the artwork submodule
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:01povikhm, what's that rin20xx wrote here yesterday
08:01povikdoesn't the arch kernel package have the current 'asahi' branch?
08:01povikthat should have the i2c fix, so the flakiness should be gone for good
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.
09:59xfimAnd that I have to wait for 15 seconds, etc...
09:59j`eyxfim: you can replace it later
09:59j`eymacOS can read/write FAT
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:00xfimCan I change it later?
10:00xfimI am in the abyss and freaked at leaving it as a brick at this point.
10:00xfimOK, j`ey, I can replace it later.
10:01xfimSo should I proceed anyway and see what happens?
10:01j`eyit won't be bricked anyway
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:01j`eycarry on with the installation
10:01xfimNot bricked because I still have the option of MacOS vs my other installation, right?
10:02xfimOK, here we go.
10:02j`eybtw markan just said he may add studio support to the installer tomorrow..
10:03_jannau_you should be able to break out of the installer with STRC-C without reboot
10:03j`eybut you're here now
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:03_jannau_still useful to have someone to test the m1 mqax mac studio dts beforehand
10:03marcannot 100% sure though, maybe gcc is worse at this than I expect
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:03xfimI want to take a note about everything.
10:04xfimI will be super happy to be the tester.
10:04xfimBut I am not sure if I can be of much assistance giving feedback. I'm willing to learn, though!
10:05xfim/partitios/partitions/
10:05marcanit would be nice if folks tested the asahi rebase kernel, that will probably be pushed this week if nothing is broken
10:06marcanthat has smc rebased on top of the new rtkit stuff etcv
10:06marcanbasically that plus the t6k2 stuff from _jannau_ should be the next significant update to the installer/repos
10:09j`eyi have tested the rebase (with my own config + alpine), worked well
10:09mpsmarcan: some branch or latest git commit?
10:09mpsj`ey: ah, could you post url if you have it
10:10j`eymps: just the latest asahi branch
10:10marcanasahi branch
10:10mpsI would like to use git commit and prepare upgrade for alpine
10:11xfimBut I am not sure if I can be of much assistance giving feedback. I'm willing to learn, though!
10:11marcanalso, does anyone actually have the M1 Max Mac Studio? :-)
10:11mpslast commit is 21 ago
10:11j`eymarcan: xfim does
10:11xfimmarcan: Yes, that is me
10:11marcanthen testing that will be very helpful too :)
10:11xfimBase one, 32 RAM, 500 GB SSD
10:12xfimIt is now closed. I'm waiting 15*4, just to double-double check
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:12mpsI'm now building toolchains for riscv, when it finish I will upgrade and build kernel
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:13marcanI'll rebase the kernel onto the latest rc of that branch (shouldn't break anything)
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:14marcan(well, as "stable" as asahi gets anyway)
10:15j`eymarcan: 5.18 was released
10:15marcanthought so, so yeah, based on that then
10:16cmalvi[m]marcan: any Asahi related news in this release?
10:16marcanmostly mac studio support, general things getting upstreamed, bunch of bugfixes
10:16xfimOK, here I am, on "Running proxy..."
10:16marcanI'll also merge in the configurable display stuff for m1n1
10:16xfimWhat's next, then?
10:17xfim"ERROR: Kernel found but no devicetree for apple,j375c available"
10:18cmalvi[m]marcan: Thank you :)
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:21xfimSorry j`ey, what do you mean by "back into 1TR". Sorry, but what is 1TR?
10:22j`ey1TR is the mode you get into with the long hold of the power button
10:24cmalvi[m]any plans to write a changelog for the kernel release?
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:25j`eyxfim: you can open a terminal, utilities -> terminal
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:30j`eymount works, but also `diskutil mount`
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:32xfimOK, now I have to guess what is thepartition type for fat32. Is it not vfat?
10:33xfimOh, no, it is already mounted. Good.
10:34j`eyit should be /Volumes/EFI
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:38j`eypossibly, it has more/bigger DTBs
10:38kov has joined #asahi
10:42mpsj`ey: did you upgraded m1n1+u-boot with new DTBs when upgraded kernel
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:43_jannau_mps: you need to update the dtb for cpufreq
10:44j`eyxfim: hm, unmount and try diskutil mount
10:44_jannau_xfim: I think mount -w /mount_point works
10:44xfimI've done it with '-u -w'
10:44mps_jannau_: thanks
10:45xfimI really must stop asking directly and try to find my own answers first before bothering people.
10:46j`eyxfim: you're not annoying..... yet :p
10:49xfimOK :-) But do you promise to tell when I do?
10:50j`eyxfim: hehe
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:51xfimStill "Kernel found but no devicetree for apple,j375c available"
10:51xfim"No valid payload found"
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
10:57mpsthis is on mbp 2020
10:58mpsfor now no issues
10:59j`eyxfim: thats a weird error
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:01j`eym1n1 doesnt accept keyboard input directly, hence no typing
11:02j`eyxfim: you built the installer yourself right? and used some branch of jannau's for m1n1 or?
11:02xfimLet me upload the picture somewhere.
11:03_jannau_asahi m1n1 should be fine, u-boot needs to be my branch for the dtb
11:06xfimYes, I used jannau's instructions. That is:
11:06xfimcd m1n1
11:06xfimgit submodule init && git submodule update
11:06xfimmake; cd ..
11:06xfimgit clone --branch installer-release-t6001_j375c git@github.com:jannau/u-boot-1.git
11:06xfimcd u-boot-1
11:06xfimexport CROSS_COMPILE=aarch64-gcc-linux-gnu-
11:06j`eyxfim: better to paste to a pastebin site!
11:07xfimmake apple_m1_defconfig
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:07xfimSure, sorry!
11:08j`ey_jannau_: looks good to me ^
11:10_jannau_yes, looks ok to me too, unless I forgot to update the compatible string in the dts
11:11j`eycompatible = "apple,j375c",
11:11xfimShall I simply just wait for tomorrow's new version of the installer, at this point?
11:12marcanare you replacing the stage2 boot.bin with one containing u-boot? if so that is wrong
11:12marcanyou need to replace the one in the EFI partition
11:12marcanso /Volumes/EFI, not /Volumes/Asahi
11:12j`eyI think xfim replaced the one in /Voluemes/EFI via 1TR just now
11:13marcanif the partition was mounted readonly that sounds like /Volumes/Asahi, which will be mounted readonly by default
11:13xfimSorry, 5 minutes and back
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:16marcan(stage1 will add 4 zeroes when launching stage2 to avoid that)
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:16marcansince that never got installed
11:17marcansorry. I meant step2, not stage2
11:18mpsfor me stage2 m1n1 workded without "chosen.asahi..." variable
11:18mpsthough I added it later
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:19mpsnot in my case, I had to add it in stage2 m1n1
11:19marcanthen you installed your stage1 wrong
11:19mpsmarcan: I used official installer
11:19marcanand the variable was not getting passed through?
11:19marcandid you gzip your u-boot?
11:20mpsno if i added my m1n1 in stage2
11:20mpsyes, u-boot is gziped
11:20marcanwell, that's weird then
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:21marcancan you send me that .bin?
11:21mpsthis is script I use
11:21marcanand you say you had to append the variable after that?
11:21_jannau_mps: when did you use the installer? the variable handling was only added shortly before the alpha release
11:21mpsobject.bin is m1n1
11:21marcanI mean new-uboot.bin
11:22mpsmarcan: hmm, this new-uboot.bin contains fixed m1n1, with asahi-choosen
11:22mpswill look if I can find old one
11:23xfimBack again, let me read
11:23mpsmarcan: ok, could create new u-boot.bin with m1n1 without choosen.asahi ...
11:24mpswithout*
11:24xfimOK, done reading. More confused than ever.
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:24mpsbut it is not built with rust
11:24marcanyou do not need rust for stage2
11:24mpsjust plain m1n1 build
11:24mpsyes, I know
11:25mpslet me recreate it
11:25marcanmps: how do you append the variable?
11:25xfimI would say the place was weird because it was something like /Volumes/Asahi/Finish Installation.app/Contents/Resources/boot.bin
11:25marcanyeah that's wrong
11:25mps`cat m1n1/build/m1n1.bin <(echo 'chosen.asahi,efi-system-partition=<e4accd7c-5c8c-4430-b13c-4cd410228e02') > object.bin`
11:25marcanyou didn't actually do anything by replacing that
11:25marcanmps: so you append the variable first then the other payloads?
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:26j`eyxfim: ah sorry, it has to be the EFI/FAT partition
11:26mpsmarcan: in a few minutes
11:27j`eyxfim: if you run 'diskutil list', you should see an EFI partition
11:28xfimOK, let me try again. Need to reboot to 1TR
11:29marcanmps: why does that binary have both an xz compressed u-boot and a gzip compressed u-boot with the same contents?
11:29mpsxz? how?
11:29marcan181224 0x2C3E8 xz compressed data
11:29mpsI didn't use xz
11:29marcan2C3E8.xz: XZ compressed data, checksum NONE
11:30marcanyou tell me...
11:30marcanunless this was a false positive and xz just pulled out the gzip?
11:30mpshah, if I found I will tell for sure :)
11:30marcanoh, maybe it really did do that? lol sec
11:30marcanokay nevermind, funny one binwalk
11:31marcanwonder how on earth it managed to do that
11:31mpsmarcan: it is busybox gzip maybe
11:32mpshah yes, BusyBox v1.35.0 (2022-05-09 17:27:12 UTC) multi-call binary
11:34marcanah, okay, I just realized what's broken with the variable code
11:34marcanokay, so that explains the garbage output sometimes
11:34marcanit does not explain the chosen thing not working though
11:35mpswill be afk for some time
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:40marcanthat sounds like the chosen issue mps is talking about
11:40j`eythats progress!
11:41marcanwait no it does look for the ESP
11:41marcanthen it just has nothing installed
11:41marcanso it's working fine
11:41j`eyxfim: you havent installed anything yet, right?
11:41j`eyanything = any distro
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:43marcanI need to head out, talk later :)
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:48xfimNo, no, I have not installed anything. But the partition table looks like a puzzle!
11:49xfimjannau: I do have a keyboard and a mouse connected
11:49xfimSo what would be the next thing to do now?
11:50xfimI have to admit that I am completely lost right now...
11:50jannauxfim: to one of the usb-c ports on the back? those are one supported ones
11:51xfimYes, the ones in the back
11:52xfimIn the front I have a dodocool docking station with the usb disk that has allowed the boot.bin to be inserted.
11:52jannauxfim: the usb type-c ones? the two type-a ports are not supported
11:53xfimOh, sorry, not the type-c ones, but the plain old type-a
11:54xfimAh, now I understand then. Would them being connected to the docking through the usb-c change the situation?
11:54xfimIf not, then the machine is unusable, right?
11:54jannauI wouldn't expect the front usb ports to work under linux and certainly not under u-boot
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:55jannauI'm not sure how the usb-c ports on the front of the m1 max mac studio are implemented
11:55j`eyxfim: the next step is to make a bootable USB drive
11:55j`eyso you can start installing
11:56xfimFrom any distro of my choice, right?
11:56jannauxfim: that should work if the docking station is not a thunderbolt docking station
11:56xfimBut if I can't have a keyboard, how am I doing to install anything?
11:56j`eyyou could do it remotely, if you get wifi/ssh working (does ethernet work OOTB for the mac studio max?)
11:57xfimjannou: I don't think it is a thunderbolt.
11:59xfimthank you mps!
11:59xfimYou are realling selling me alpine here.
11:59mpsno, I don't, just want to help
11:59xfimBut I am afraid I would rather stick with my beloved gentoo and set it up as a data science machine.
11:59xfimThank you, of course mps!
12:00mpsimo people should use what is best for them
12:00xfimSo I have rebooted with the docking attached to the back usb-c, but it fails anyway.
12:00j`eyxfim: you can use that USB stick jut to get into a live distro, and then install gentoo onto the SSD
12:00jannauxfim: the alpine usb image is still useful to install gentoo
12:01jannauxfim: fails in which way?
12:01xfimmps and j`ey: yes! that is it! That is perfect. I can start with alpine live and then move on
12:01mpsime, some usb hubs doesn't work well with u-boot
12:01xfimLet me post a picture
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:02jannauthe only interesting information is if u-boot detected usb-devices
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:04jannaueverything in the previous picture was as expected
12:05xfimSee here for the situation: https://ibb.co/QPbRMn7
12:05xfimjannau: so then this one should be fine as well.
12:05xfimPerfect then, sorry I was very scared with so many "failed".
12:06mps0 usb storage devices found
12:06jannau7 USB devices looks good. should there have been a storage usb device?
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:07mpsyes, if usb storage is connected
12:07xfimmps and jannau: Yes, for this last boot, I removed the usb disk, so none should appear.
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:09jannauyes, the live alpine usb device should boot automatically
12:09mpsxfim: u-boot should boot usb by default if it can't find linux on nvme
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:09jannauis the keyboard working now?
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:13jannauI think there should be echo on the u-boot prompt
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:21xfimI am rebooting with alpine right now
12:23j`eythat picture is the uboot prompt
12:23mpsxfim: it is u-boot prompt
12:25xfimIt seems it can find the usb and is trying to boot from that: https://ibb.co/VVHYkV2
12:25xfimBut "No partition table - usb 0", "Couldn't find partition usb 0:1"
12:25xfimAh, maybe it is because I have used dd if=alpine* of=/dev/sdb, instead of of=/dev/sdb1?
12:27mpsxfim: no, you did right
12:27mpsit needs to be dd-ed to 'whole usb/disk'
12:28mpsxfim: you have ERROR, look at it
12:28mpsI mean in u-boot screen
12:29mpsfailure to add disk device usb...
12:30xfimYes, I see the error. But I can see that even with the failure to add disk device
12:30xfimIt tries to boot from usb disk, and identifies the size and all, but not the partition table
12:30xfimSo I don't really know what I can make out of it?
12:31mpshm, could you check on other machine disk state
12:31xfimIs the usb support for the usb mass storage disk not really there?
12:31mpsi.e. does it have two partitions, one ESP and one ext4
12:31xfimmps: Yes, in fact I am trying it with another disk, just to rule out that.
12:32mpsxfim: this image is used by some people to install alpine and by some to fix unbootable machines
12:32mpsbut I think you are first trying on mac studio
12:33mpsand I don't know is the u-boot and dtbs are updated for mac studio
12:34mpsjannau could tell
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:35mpsactually one who build u-boot for mac studio
12:35xfimOK, let me try with another usb disk, dd if=X of=/dev/sdb
12:36_jannau_the dts/dtb is coming from me especially for mac studio. u-boot would not load without mactching dtb
12:37mpsfor me safe 'mode' is plain usb-c to usb-a adapter
12:37mpsnot those with hub
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 1 storage device found.
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"
12:56mpsstrange, disk have partition table?
12:57mpssorry for stupid question but did you unziped image
12:59xfimmps: no, no unziped image
13:00mpsxz -d m1-usb-alpine-install.img.xz
13:00xfimOh, come on!
13:00mpsand then `dd if=X of=/dev/xxx`
13:00xfimI simply assumed that xz decompression would be there. Sorry
13:01xfimSorry!
13:01mpsand then `dd if=m1-usb-alpine-install.img of=/dev/xxx`
13:01mpsok, np
13:01xfimEven, now that I check, the tutorial says to uncompress! Sorry
13:02mpsheh, we all make mistakes and overlook something sometimes
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:05xfimDone. I'm on alpine. Thank you all!
13:06xfimAll seems well, except for networking not starting: direct firmware load for rtl_nic/rtl8153a-4.fw failed with error -2
13:08j`eyxfim: use wifi?
13:09_jannau_looks like missing firmware for the network adapter in the usb dock
13:09mpsoh I thought add all firmware and usb network drivers but forgot
13:09mpsbut wifi works
13:10_jannau_the aquantia 10GB nic should work as well
13:11mpsxfim: you can install wifi firmware by mounting ESP on /mnt and run shell script in /root/update-wendor-firmware
13:11mpsI mean ESP from nvme
13:12mps(I was busy with next stable alpine release which should be done this week)
13:15xfimI am trying with the ethernet, first. And it does not ping, but it recognizes a device.
13:16mpsxfim: ethtool eth0
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:26xfimIf i only add auto eth it shows, but when I add "iface eth0 inet dhcp
13:26xfim" to that file it does not show.
13:26xfimBut that is not asahi, so I will have to deal with it myself, don't worry!
13:26xfimThank you anyway.
13:36mpsxfim: yes, this is not tested with ethernet, most users use wifi
13:37mpstill I find time and make propel alpine iso img
13:40xfimI am going to try wifi then.
13:40xfimmps, you mentioned at 11:15 to mount ESP on /mnt, and then run the shell script.
13:41mpsyes, described in guide
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:41xfimOK, let me try then.
13:41mpslsblk -f
13:42mpswill show vfat partition on nvme
13:42mpsmount /dev/nvme0n1pX /mnt
13:43mpssh /root/update-vendor-firmware
13:44mpsthen, umount /mnt
13:44mpsmodprobe brcmfmac
13:44mpsand `/etc/init.d/iwd start` to start iwd
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]
13:59xfimmps: all well. wifi working. So I confirm that eth it is not working, if it is useful.
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:07_jannau_the 74GB are the macos installation. It's currently recommended to keep that
14:08_jannau_do not touch the first and and last partition (at the end of the nvme)
14:11_jannau_p3 is a stub macOS partition required for booting an alternate OS, p4 is the EFI system partition
14:11mpsfree space could be partitioned to more partition, I have 3, /, /home and /work
14:11_jannau_there should be ~400GB unpartitioned space between p4 and p5
14:12_jannau_do not rely on unordered partition numbers since diskutil will reorder them
14:16xfimjannau: thank you very much.
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:17xfimIt's done. So now I guess I can start with the installation.
14:18xfimWill keep you posted about my success. I'm going afk for a while. Thank you all.
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:10tpw_rulesand anti-replay keys
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:21j`eyI need to use 'chosen.boot-args' now, right?
15:21j`eychosen.bootargs it is
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:23mpsj`ey: isn't it set automatically
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:25mpsit is set for me
15:26mpsI don't know how
15:26mpsI mean, with grub
15:26j`eyim booting using the m1n1 hypervisor
15:27marcanI was waiting for someone to test it and it fell off my queue
15:27ManouchehriIs it possible to install the latest macOS on an M1 without updating the firmware?
15:28nicolas17well, latest macOS drivers might expect latest firmware and not work otherwise...
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:31_jannau_marcan: I've tested it
15:32Gaspare has quit [Quit: Gaspare]
15:32marcanManouchehri: system firmware is backwards compatible
15:32marcanthere is no way you would ever lose the ability to run asahi
15:33marcansince apple need to keep backwards compatibility with older versions of macOS too
15:33Manouchehrioh perfect :)
15:33marcanthat warning is kind of wrong
15:33nicolas17what does it mean by "firmware" here? iBoot?
15:34nicolas17afaik coprocessor firmware is per-OS-install anyway...
15:34cassepipe_ has joined #asahi
15:35marcanI removed it
15:35marcannicolas17: only some of it
15:35marcancio, tmu, iBoot1, SEP, ANS, SMC, PMU, and I think possibly a couple others are systemwide
15:35marcanthe rest are per OS
15:37nicolas17huh so SEP-macOS has backwards compatibility?
15:39marcanit has to
15:40marcanSEP never downgrades, that'd be insane for security
15:40marcanand it handles global state all over the place
15:40cassepipe has quit [Ping timeout: 480 seconds]
15:42Gaspare has joined #asahi
15:43nicolas17that's interesting because on iOS they break compat often :P
15:44marcanbecause iOS only runs one OS
15:44marcanno such luxury on a Mac
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:45marcanI'm pretty sure they developed this for macs...
15:45marcanso maybe SEP will be less unstable going forward on iOS?
15:45nicolas17maybe yeah
15:46nicolas17admittedly one of the problematic compatibility areas is FaceID :)
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:05m1n1m4[m]clamav is working fine asahi.alpine
17:07mpsm1n1m4[m]: tell me what doesn't work except chromium and f2fs
17:08mpsthough I could upload kernel with 4K page size for those who need it
17:11m1n1m4[m]mps: thanks for mentioning it, i will need chromium ocasionally. What are the impacts of changing to the 4K kernel?
17:12m1n1m4[m]is there a doc?
17:13mpsm1n1m4[m]: kernel with 4K pages is somewhat slower
17:14m1n1m4[m]mps: thanks, i do not need it so much for the moment i can use it on another machine.
17:16m1n1m4[m]OT: added sec news on asahi-offtopic for those who are using RUST
17:16mpsrust works on alpine
17:17m1n1m4[m]mps: that is why i was testing clamav, because of the security warning
17:17mpsm1n1m4[m]: which clamav 1.5.0
17:18m1n1m4[m]0.104.3 from today
17:19m1n1m4[m]mps: ah great, is there a mailing list or so on the subject?
17:19mps0.104.3 is upgraded on alpine about two weeks ago
17:20mpsm1n1m4[m]: no, you have to login there and comment on MR
17:20m1n1m4[m]mps: OK i checked clamscan --version and today's date might be of the signatures
17:21mpsactually I think it is possible to send mail on MRs on gitlab but I don't know how
17:21m1n1m4[m]mps: ah, OK, thanks
17:21m1n1m4[m]mps: you possibly still have to create an account and subscribe to emails no?
17:22mpsm1n1m4[m]: don't know really
17:22m1n1m4[m]mps: OK, no worries. Will create a login
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:32nicolas17marcan: hmm that looks like spam
17:32caef^ has quit [Remote host closed the connection]
17:32tpw_rulesdid a new webkit vuln just drop
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:43m1n1m4[m]<tpw_rules> "did a new webkit vuln just drop" <- https://www.kb.cert.org/vuls/
17:47freefiree has quit [autokilled: Please do not spam on IRC. Email support@oftc.net with questions. (2022-05-23 17:47:17)]
17:59mipi[m]OK, I see. If I find the time, I will test it and report back.
18:02mipi[m]That's great, but I do not use alpine
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:48mpsxfim: for linux-asahi kernel modules are not compressed
19:48mpsso 'None'
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:43mpsweapon_of_nix[m]: you mean ext4 FS?
20:43weapon_of_nix[m]i broke something and i need to edit it because i can't boot
20:43nicolas17I don't know of any macOS driver for ext4, no
20:43mpsthere is paragon comercial driver for macos
20:43nicolas17does it support ext4 (not just ext3), and does it support ARM?
20:44mpsI think so
20:44mpseven there is 'trial' version if someone want to try and not buy
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:45mpss/iit/it/
20:46mps(I'm tired to retyoe it again now)
20:46mpsretype*
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:03Amy[m]hi, asahi linux seems to have created undeleteable partitions on my mac
21:03Amy[m]i would like to remove them but disk utility wont let me
21:04Amy[m]my mac storage has been reduced to 120gb now thanks to asahi linux
21:05j`eyAmy[m]: use the command line diskutil
21:05fny[m] has joined #asahi
21:06xfim has quit [Ping timeout: 480 seconds]
21:08Amy[m]what command would i do to delete all linux filesystems in the terminal diskutil
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:16ktz_[m]it explains what you should do in detail
21:16cmalvi[m]There is any way to set grub resolution on 1440x900 for better readability?
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:17cmalvi[m]Oh thanks :)
21:17ktz_[m]you're welcome :)
21:22rootbeerdan has quit [Quit: bye]
21:24cmalvi[m]Works perfect, just need to set the font size to 24 (I’ve used grub customizer)
21:26cmalvi[m]And what about uboot? Is possible?
21:26cmalvi[m](Just for flavour)
21:26ktz_[m]maybe but you'll have to recompile it along with m1n1 afaik
21:27cmalvi[m]Oh ok, not so important to recompile it 😂
21:27mpscmalvi[m]: I could explain tomorrow what is is needed
21:28cmalvi[m]mps: Ok thank you :)
21:28rootbeerdan has joined #asahi
21:28cmalvi[m]Feel free to tag me or write a pm
21:28mpscmalvi[m]: actually I uploaded binary today for m_arcan to look some things there
21:29mpsbut this is for latest asahi kernel and have speakers enabled
21:30mpsso somewhat risky
21:30cmalvi[m]Yes I understand
21:30cmalvi[m]I prefer to not enable speakers for now
21:30cmalvi[m]No need speaker at work 😂
21:31mpsactually speakers are enabled only for mbp 2020
21:32cmalvi[m]No need to hurry, is a great project that needs time
21:32cmalvi[m]For me is just incredible the actual state
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:41ktz_[m]which distro are you using cmalvi ?
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:44cmalvi[m]All extension I use on my tower pc works also here
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:47ktz_[m]not to mention aur.. 80% of it is broken
21:48cmalvi[m]Also pamac-full works, because sometime I like to use it
21:48cmalvi[m]And pop-shell that I love
21:48ktz_[m]yes you're right, if you're settled already you better stay as is, just mentioning it fyi
21:48mpson alpine aarch64 is 'first class citizen' on arch it is not
21:49cmalvi[m]mps: Now I need to take my degree during this summer, maybe after I’ll take a look at it 😂
21:50cmalvi[m]But sure, I need to explore alpine
21:51mpsarch alarm is good really, but missing a lot of packages
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:52mpsarch and alpine build systems are similar
21:54mpsbut imo everyone should use what best fit workflow for them
21:55cmalvi[m]Oh wait my I made me misunderstood. I want to say that those problems encourage me to improve
21:55cmalvi[m]s/my/maybe/
21:55cmalvi[m]mps: Sure, totally agree :)
21:56cmalvi[m]I’m started using Linux because windows fried two ssd during university lectures during quarantine in 2020
21:57cmalvi[m]Also windows like to break the bootloader every year for me
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
…