#
…

2022-05-22

00:32zopieux has quit [Ping timeout: 480 seconds]
00:35zopieux has joined #asahi
01:12riker77_ has joined #asahi
01:17riker77 has quit [Ping timeout: 480 seconds]
01:17riker77_ is now known as riker77
02:03ElvishJerricco[m]I'm assuming that in the Asahi installer, "step2" refers to all the work that needs to be done in the recovery OS, right? If so, is it just the `step2.sh` script? None of the python stuff or any downloading or anything?
02:34lgarylmtdlt^ has joined #asahi
02:41artemist has quit [Quit: artemist]
02:44artemist has joined #asahi
03:02phiologe has joined #asahi
03:05PhilippvK has quit [Ping timeout: 480 seconds]
03:12lgarylmtdlt^ has quit [Remote host closed the connection]
03:30marvin24_ has joined #asahi
03:31artemist has quit [Quit: artemist]
03:33marvin24 has quit [Ping timeout: 480 seconds]
03:34hspak has quit []
03:35hspak has joined #asahi
03:48kov has quit [Quit: Coyote finally caught me]
03:51hromwoomit^ has joined #asahi
03:57Bai-Chiang has quit [Ping timeout: 480 seconds]
04:09artemist has joined #asahi
04:16nicolas17 has quit [Quit: Konversation terminated!]
05:02xfim has joined #asahi
05:10ElvishJerricco[m]marcan: Cool. Out of curiosity, how does the Finish Installation app get started? Is it something about that IAPhysicalMedia thing?
05:12Ry_Darcy has joined #asahi
05:21ElvishJerricco[m]Also, is Rust nightly still needed to build m1n1 with chainloading, or is a sufficiently recent stable release enough?
05:48marcanyes, the IAPhysicalMedia thing tells it it's something like a USB installer (except it's just on the internal partition)
05:49marcanthen when you boot that volume it instead goes into recovery mode and opens that app bundle
05:49marcanElvishJerricco[m]: you need nightly
05:49marcanfreestanding rust in practice still requires some features that stable doesn't have, no idea when they will finally make it
05:49ElvishJerricco[m]That is a very interesting way to accomplish that :)
05:50marcanmuch better than the old "go into recovery, pull up a terminal, and run this command" way ;)
05:50ElvishJerricco[m]Hm nightly will likely prevent me from packaging the installer in nixpkgs, as it doesn't have nightly. That's too bad. But at least I can have a separate Nix expression for it I guess
06:33ElvishJerricco[m]Well... never mind that. Apparently nixpkgs packages a number of things that require a nightly compiler, so they just set `RUSTC_BOOTSTRAP=1`, which apparently causes `rustc` to behave like a nightly compiler. Gross, but I can use it :P
07:03hromwoomit^ has quit [Ping timeout: 480 seconds]
07:04hromwoomit^ has joined #asahi
07:14duckworld has quit [Ping timeout: 480 seconds]
07:18duckworld has joined #asahi
07:27ElvishJerricco[m]Hm. Trying to build m1n1 on macOS arm64 with Nix, I get:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/gJnVTvJlSHYxuLpamEQAOXZS)
07:28hromwoomit^ has quit [Ping timeout: 480 seconds]
07:31hromwoomit^ has joined #asahi
07:32nico_32ElvishJerricco[m]: check if the compiler was called with -ffreestanding
07:36ElvishJerricco[m]nico_32: I assume it must've been, since that's in the default CFLAGS in the Makefile. But Nixpkgs does wrap the compiler to mess with the flags a bit... maybe it's removing that for some reason
07:39hromwoomit^ has quit [Ping timeout: 480 seconds]
07:39ElvishJerricco[m]Looks like nixpkgs is adding a whole bunch of includes and stuff after. I can try an unwrapped clang
07:41nico_32m1n1 is not an userland application
07:42nico_32so be very suspicious of any wrapper
07:44nico_32did you extend the ancient PR #153?
07:48ElvishJerricco[m]nico_32: I hadn't even seen that. Sounds like they had a completely different problem with macOS and got much further. Interesting
07:49nico_32it was before the addition of rust code in m1n1
07:49nico_32that's why I called it "ancient"
07:49xfim has quit [Ping timeout: 480 seconds]
07:51ElvishJerricco[m]Well even with a nix expression that's virtually identical to theirs, I still get my errors instead of theirs. Might have to bisect... But I'll leave that for tomorrow
07:59the_lanetly_052 has joined #asahi
08:01jannauElvishJerricco[m]: `make -n` output after the error would be interesting since it prints the full compile command
08:03ElvishJerricco[m]wtf. Adding `-n` to the make command made the build work?
08:04ElvishJerricco[m]Literally the exact same nix expression, except one has `buildFlags = [... "-n"];`, and the "-n" one works
08:04jannauno, '-n' does nothing but printing the commands
08:04ElvishJerricco[m]I know. That's why this is weird
08:05ElvishJerricco[m]`buildFlags` are just passed to `make`, nothing else
08:05j`eynix is bad!!
08:05nico_32race condition somewhere?
08:05jannauit does not build anything
08:05j`ey-n == --dry-run
08:05ElvishJerricco[m]Sorry, brain is not functioning this late at night :P
08:06j`eyit's 9am!
08:06nico_32it is always 9am somewhere :)
08:07ElvishJerricco[m]Well anyway the commands with `-n` look right to me. Issue seems to just be that nixpkgs adds a ton of includes args *after* all the args provided by the Makefile
08:08ElvishJerricco[m]But apparently some of them are needed because I get no such file errors if I use an unwrapped compiler
08:08ElvishJerricco[m]But now is sleep time
08:09j`eyprobably related to -isystem $(shell $(CC) -print-file-name=include)
08:10hromwoomit^ has joined #asahi
08:10hromwoomit^ has quit [Remote host closed the connection]
08:21jluthra has quit [Remote host closed the connection]
08:22jluthra has joined #asahi
09:10Ry_Darcy has quit [Remote host closed the connection]
09:13holyspirit[m]but when i reboot i get keyboard access in grub menu but none in system
09:13holyspirit[m]plugged into usb c or usb a
09:15mpsholyspirit[m]: which kernel you use
09:15jannauholyspirit[m]: which kernel and kernel config do you use? do you use kernel modules? are any loaded?
09:15j`eyit looks like that guide copies the kernel and modules from alarm
09:15mpsI mean, build of kernel, gento or extracted from asahi/arch
09:16holyspirit[m]asahi minimal
09:17mpsiirc, alarm puts modules in /usr/lib and not in /lib
09:17jannauhas the gentoo partition /lib/modules copied from asahi minimal
09:17mpsand I don't know where gento search for modules
09:18mpsmaybe `ln -s /usr/lib /lib` could solve problem
09:19MajorBiscuit has joined #asahi
09:19j`eyholyspirit[m]: do you have stuff on the screen?
09:19jannauthe guide has 'ln -s /usr/lib/modules /lib/' and copied the modules previously
09:19mpssorry `ln -s /usr/lib/modules /lib/modules`
09:20mpsjannau: this is on alarm, I guess
09:20* jannauwould have expected a gentoo guide to compile it's own kernel
09:21jannaumps: on gentoo but it copied /usr/lib/modules from the asahi to the gentoo partition
09:21mpsjannau: I guess so, but don't know did it create symlink
09:22holyspirit[m]yer then you unpack the stage four into where asahi has its files after removing the asahi files
09:22j`eyholyspirit[m]: do you have ssh on there?
09:22holyspirit[m]how do i tell that im not the best with linux just learning
09:23holyspirit[m]i dont think so its just the base gentoo system i suppose it comes iwwth ssh
09:23holyspirit[m]how do you get other kernels other than alarm
09:23jannaumps: the guide explicitly has instructions to add symlink from /usr/lib/{modules,firmware} to /lib before rebooting
09:24mpshmm, it is time to write guide how to use my rescue usb image
09:25j`ey holyspirit[m]: so im assuming you get to a login prompt right?
09:25j`eyif so, that surely means some modules are working..
09:29holyspirit[m]is alarm the newest kernel?
09:36j`eywell, no, but it's the one that everyone is using
09:37holyspirit[m]more programs are running than you think
09:37holyspirit[m]this is asahi linux
09:38holyspirit[m]i hope you appreciate gentoo is the holyspirits software
09:39mpshehe, no it is alpine :D
09:40mpssorry for OT
09:43MajorBiscuit has quit [Ping timeout: 480 seconds]
09:47MajorBiscuit has joined #asahi
10:11MajorBiscuit has quit [Ping timeout: 480 seconds]
10:57the_lanetly_052 has quit [Ping timeout: 480 seconds]
11:02mpsis there a way to get serial console on macbooks m1
11:03mpsttySAC0 and ttySAC1 are detected by linux
11:12j`eymps: only with special uart hw
11:12j`eyor another m1, or use m1n1 hypervisor
11:15mpsj`ey: it is active in m1n1 and visible on any other machine
11:15mpsj`ey: by 'another m1' you mean another m1 running macos
11:16j`eythe other m1 can run linux I think
11:16mpsah nice, could check that
11:16j`eyor actually that might not be possible yet
11:17mpswill check in few minutes
11:22jannauuart should work between two bare-metal m1 devices with linux, resetting via usb-pd is not possible under linux yet
11:26mpsjannau: what it should be on 'client' machine ttySx or ttySACx
11:28roxfan has joined #asahi
11:32jannauboth ttySAC0, not sure how the usb ports like it
11:37mpshmm, doesn't work
11:39the_lanetly_052 has joined #asahi
11:46mpsmaybe need to enable some usb drivers
12:33sventhe m1-to-m1 uart does not use any usb drivers
12:34svenyou do need to configure both usb pd controllers to that serial mode which can only be done from macOS for now and doesn’t stick after a reboot
12:34svenand you must use a usb c cable that actually connects the required lines
12:35svenprobably easier to just use the emulated uart under the hv fwiw
12:36mpssven: thanks for explanation.
12:44Gaspare has joined #asahi
12:45Bai-Chiang has joined #asahi
12:47bps has joined #asahi
12:59bps has quit [Ping timeout: 480 seconds]
13:06Gaspare has quit [Quit: Gaspare]
13:09Gaspare has joined #asahi
13:23jannauI've assumed m1n1's init might be enough
13:26xfim has joined #asahi
13:30Gaspare has quit [Quit: Gaspare]
13:40bps has joined #asahi
13:47Gaspare has joined #asahi
14:10svenwe could send the commands via i2c from m1n1 though
14:11svenmacvdmtool switches modes on both sides fwiw
14:15bps has quit [Ping timeout: 480 seconds]
14:33jannauI forgot that vdmtool does it on connect
14:37dost^ has joined #asahi
15:25Gaspare has quit [Quit: Gaspare]
15:34xfim has quit [Ping timeout: 480 seconds]
15:57linearcannon has quit [Ping timeout: 480 seconds]
16:01dost^ has quit [Ping timeout: 480 seconds]
16:01Tramtrist has left #asahi [#asahi]
16:04weapon_of_nix[m]i edited my fstab and broke booting. can i edit the asahi filesystem from mac? i can't seem to get into any kind of interactive terminal on the asahi boot
16:40Cy8aer[m]Probably not but you can boot a live stick and then mount your root file system: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/ - see live system
17:26xfim has joined #asahi
17:32bps has joined #asahi
17:34xfim has quit [Ping timeout: 480 seconds]
17:50ptudor has quit [Ping timeout: 480 seconds]
17:51ptudor has joined #asahi
17:52eriol has quit [Quit: Ping timeout (120 seconds)]
17:52eriol has joined #asahi
17:57thasti has quit [Remote host closed the connection]
17:57jannau has quit [Remote host closed the connection]
17:57jannau has joined #asahi
17:57asie has quit [Ping timeout: 480 seconds]
17:58Nspace has quit [Ping timeout: 480 seconds]
17:58lucus has quit [Ping timeout: 480 seconds]
17:58Mrmaxmeier has quit [Ping timeout: 480 seconds]
17:58Shiz has quit [Ping timeout: 480 seconds]
17:58jix has quit [Ping timeout: 480 seconds]
17:59___nick___ has joined #asahi
18:00dost^ has joined #asahi
18:02thasti has joined #asahi
18:02linearcannon has joined #asahi
18:07bps has quit [Ping timeout: 480 seconds]
18:10Nspace has joined #asahi
18:10lucus has joined #asahi
18:10Shiz has joined #asahi
18:14Mrmaxmeier has joined #asahi
18:18jix has joined #asahi
18:18asie has joined #asahi
18:28dost^ has quit [Ping timeout: 480 seconds]
18:36xfim has joined #asahi
18:46dost^ has joined #asahi
18:50Bai-Chiang has quit [Quit: Konversation terminated!]
19:03___nick___ has quit []
19:05___nick___ has joined #asahi
19:05___nick___ has quit []
19:07___nick___ has joined #asahi
19:15the_lanetly_052 has quit [Ping timeout: 480 seconds]
19:18dost^ has quit [Ping timeout: 480 seconds]
19:32amarioguy has joined #asahi
19:34amarioguy has quit [Remote host closed the connection]
19:36eroc1990 has quit [Quit: The Lounge - https://thelounge.chat]
19:39dost^ has joined #asahi
19:49xfim_ has joined #asahi
19:50xfim has quit [Ping timeout: 480 seconds]
20:07___nick___ has quit [Ping timeout: 480 seconds]
20:15vmeson has quit [Quit: Konversation terminated!]
20:16vmeson has joined #asahi
20:17tpw_rulesso uh i tried to erase my mac mini fully and accidentally borked it
20:18tpw_rulesanybody have any hints on idevicerestore
20:18j`eydeleted first and last partitions?
20:19tpw_rulesi'm not entirely sure what i did. i tried to use diskutil to erase and then recreate the main container
20:19tpw_rulesbut then i rebooted because the installer didn't pick it up and now it just flashes SOS which i assume is not a positive outcome
20:26Glanzmann has joined #asahi
20:27Glanzmann has quit []
20:44dost^ has quit [Ping timeout: 480 seconds]
20:49SorunomeLuckySkies[m]if it is the fstab being broken, shouldn't you just be dropped into a busybox shell by initramfs so that you can fix it?
20:50tpw_rulesno, this is macos
20:51tpw_rulesand the apple silicon macs are completely helpless without an intact partition table and firmware partitions
20:51j`eySorunomeLuckySkies[m] was talking about an earlier question from weapon_of_nix[m]
20:53dost^ has joined #asahi
20:55MajorBiscuit has joined #asahi
21:02MajorBiscuit has quit [Quit: WeeChat 3.4]
21:08MajorBiscuit has joined #asahi
21:09xfim_ has quit [Ping timeout: 480 seconds]
21:30Sobek[m]What’s the equivalent of the sad SOS blink pattern for laptops (that don’t have a led but do have a screen AFAIK) ,
21:34marcantpw_rules: did you try the tap-release-hold boot gesture?
21:35j`eySobek[m]: maybe just a sad face on the screen
21:36marcanit's supposed to tell you to restore as long as iBoot1 is intact
21:36marcanthe Mac Mini used to do that too until Apple decided to nuke the display output altogether and replace it with the SOS thing...
21:36j`ey(For Reasons Unknown)
21:37marcanI heard a rumor that it was because it only worked over HDMI... so instead of, you know, making it also work over TB/DP, they just made it not work over anything, because that's consistent!
21:45tpw_rulesmarcan: can you elaborate on that gesture?
21:46marcaninstead of holding, tap and hold
21:46marcanit should boot alternate/system recovery
21:47tpw_ruleswhen do i press it again relative to the light turning on
21:48tpw_rulesif i press it when the light is about half-bright it starts doing the SOS in the middle of the boot chime. i feel like that is it failing to start the system recovery
21:49marcanjust a quick tap and hold, like all within 0.5s
21:49tpw_rules(the alternate is the light doesn't start flashing until the boot chime is finished)
21:49marcanthen it might be properly borked, yeah
21:51tpw_rulesi got idevicerestore to boot it to an apple logo with an empty progress bar, but after a couple minutes it just resets while idevicerestore says it is waiting to reconnect in recovery mode
21:56marcanmake sure your usbmuxd is up to date
21:56marcanand the udev rules
21:56marcanyou basically need git everythingt
21:57marcan*everything
21:57marcanI see that wasnot mentioned in the instructions, that's an omission
21:57marcan*was not
21:57tpw_rulesdoes it need extra udev rules if i run it with sudo?
21:58marcanthe udev rules are to launch/trigger usbmuxd on the right devices
21:58tpw_rulesoh, i didn't realize usbmuxd was a separate process
21:58marcan(also I wrote it, *ages* ago lol)
21:58tpw_rulesso that makes sense, it doesn't use usbmuxd until then
21:59tpw_ruleswhat instructions are you referring to?
21:59marcanI need to get some sleep but hopefully that gets you on the right track
21:59marcanthe .txt above
21:59tpw_rulesah. well if i can't figure it out i'll just use apple configurator. i didn't do this deliberately, but it's a good opportunity to make sure the instructions do actually work
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:01yrlf has joined #asahi
22:08eroc1990 has joined #asahi
22:08eroc1990 has quit []
22:30dost^ has quit [Ping timeout: 480 seconds]
22:37jakebot has quit [Quit: The Lounge - https://thelounge.chat]
22:40jakebot has joined #asahi
22:50dost^ has joined #asahi
22:57weapon_of_nix[m]<j`ey> "Sorunome ⚡️ Lucky Skies was..." <- no i just added a ramdisk but i suppose i did it wrong. now at boot it says bad mount point or something, i've forgotten the exact error. i just need to edit that line out of fstab and i should be dandy
22:58weapon_of_nix[m]on another note why is adding a ramdisk so complicated. i followed 3 different guides and none work 😥
22:58j`eyweapon_of_nix[m]: but do you get to a shell?
22:59weapon_of_nix[m]j`ey: it has text that implies i should be able to run some commands but all it says is press enter to try again
23:01j`eyare you sure it's not asking for a root password?
23:02weapon_of_nix[m]is there some key combination i can use to get into a terminal?
23:03Major_Biscuit has joined #asahi
23:04j`eyoh.. the root account is locked... hm
23:04rin20xx has joined #asahi
23:05MajorBiscuit has quit [Ping timeout: 480 seconds]
23:05rin20xxheyo, im a long time lurker but this is my first time actually logging into the irc
23:05j`eyseems like thats when your root account doesnt have a password
23:06rin20xxtrying to figure out what exactly i broke linux-side with headphone jack output audio on my base M1 Mac Mini
23:06eroc1990 has joined #asahi
23:06weapon_of_nix[m]rin20xx: it's very flakey to begin with. better support will be coming out
23:06j`eyweapon_of_nix[m]: you can reboot and try adding 'init=/bin/sh' to your command line in grub
23:08rin20xxyeah ik, but after updating my arch-linux install earlier today, I lost any audio output whatsoever, when before (on a much older install, back from when the first alpha build released as i haven't booted into linux for a while) im pretty sure I had headphone jack output support?
23:08j`eyrin20xx: have you rebooted? its flakey so try rebooting
23:10Major_Biscuit has quit []
23:10rin20xxtried rebooting twice; ill see if rebooting w.o my speakers plugged into the headphone jack works once i plug 'em back in in a bit
23:11rin20xxfor now heres the logs from when i try to run speaker-test: https://paste.ee/p/XWOhe
23:11rin20xxill brb after trying rebooting again :p
23:11rin20xx has quit [Quit: Page closed]
23:12merry_ is now known as merry
23:13rin20xx has joined #asahi
23:13rin20xxokay yup thats pretty funny
23:14rin20xxrebooted twice with the speakers plugged in, didnt work
23:14rin20xxrebooted with them *not* plugged in, haha! it works now!
23:14rin20xxflakey indeed
23:15rin20xx has quit []
23:21Polo has joined #asahi
23:23weapon_of_nix[m]<rin20xx> "rebooted with them *not* plugged..." <- btw something marcan suggested regarding video playback that has fixed these issues for me is toggling sound off and then back on
23:25weapon_of_nix[m]<j`ey> "weapon_of_nix: you can reboot..." <- how do i enter that into grub? i tried cancelling autoboot and typing it but nothing seems to have happened
23:27dost^ has quit [Ping timeout: 480 seconds]
23:27psykosesome cmdline setting, add it to the end
23:27psykosei.e. you see a `linux /something x=y a=b`, that line
23:28weapon_of_nix[m]i don't see anywhere to type it except the interactive command line that exists prior to autoboot
23:28weapon_of_nix[m]once the grub menu appears i only have two options, both which boot to that error stream i posted a photo of
23:29psykoseon the list of things that has the timeout you can hit e to edit the option
23:29psykoseif not that, no idea
23:29weapon_of_nix[m]oh yes i see that now
23:34weapon_of_nix[m]i pressed control-x after making the edit but nothing has changed
23:35derzahl has joined #asahi
23:35Polo has quit [Ping timeout: 480 seconds]
23:43derzahlsweet...FINALLY got chromium working :D
23:52derzahland even compiled with apple-m1 cpu optimiations
…