2022-01-29
00:06FireFox317 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
00:07FireFox317 has joined #asahi
00:23chadmed has quit [Remote host closed the connection]
00:48chadmed has joined #asahi
01:48chadmed has quit [Read error: No route to host]
01:59le0n has quit [Quit: see you later, alligator]
01:59le0n has joined #asahi
02:04tomtastic has joined #asahi
02:09tomtastic_ has quit [Ping timeout: 480 seconds]
02:13chadmed has joined #asahi
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi
02:42le0n has quit [Quit: see you later, alligator]
02:42le0n has joined #asahi
03:06Techcable has joined #asahi
03:13PhilippvK has quit [Ping timeout: 480 seconds]
03:19coolshaurya[m] is now known as coolshaurya
03:25kov has quit [Quit: Coyote finally caught me]
03:25kov has joined #asahi
04:00jmr2 has quit [Quit: Page closed]
04:15abbas_faiz[m] has joined #asahi
04:29abbas_faiz[m]Hey everyone. How do I get started with the tethered USB boot? I can also try to update the documentation once it works for me
04:37tpw_ruleswhat system do you have? have you done anything on it before or does it only have macos now?
04:39abbas_faiz[m]fresh MacBook Air. Done nothing so far
04:40tpw_rulesit's possible to do a non-tethered boot on those if you are interested. do you have access to another linux machine with either an aarch64 or x86_64 cpu?
04:42abbas_faiz[m]Yes I do
04:44abbas_faiz[m]just macos
04:44abbas_faiz[m]the latest one. Monterey
04:46tpw_rulesyou'll first have to shrink the APFS partition to make space for linux. 20GB should be enough for a complete system
04:47chadmedim going to fix up/write a new developer quickstart (Developer VERY Quickstart?) in a few minutes since the old guide is very intimidating and can be mostly replaced with the installer script
04:47abbas_faiz[m]not on MacOS. But I can probably figure out how
04:48tpw_rulesthen you can do `diskutil apfs resizeContainer disk0s2 500GB` if you want the container to be 500GB and the rest to be for linux.
04:50Lucy[m]1 has joined #asahi
04:51abbas_faiz[m]tpw_rules: ok my overall disk is 500 GB so I'll probably shrink it down to 450
04:58abbas_faiz[m]just did it. its in progress
04:59tpw_rulesokay, while that's going you'll need to extract the wifi firmware in another terminal by running this command: curl -sL tg.st/u/fwx.sh | sh
05:00abbas_faiz[m]so we are planning to boot from the internal storage for all stages? Or is it that the boot loader will be there but kernel is over USB
05:00tpw_rulesthat should create a /tmp/linux-firmware.tar which you'll need to copy to your linux system
05:01chadmedeverything can be booted from the nvme, but for a tethered boot (the default currently) you supply a kernel to m1n1 via USB from a host machine
05:02chadmedbecause u-boot supports the M1 SoC you can however set up a fully functioning untethered boot since it brings up pcie automatically, something m1n1 does not do
05:04jx0 has quit [Quit: poof!]
05:05abbas_faiz[m]chadmed: Kernel is supplied over USB DFU? Does m1n1/U-boot support MacBook Air (with type C port being there)?
05:06chadmed has quit [Remote host closed the connection]
05:07chadmed has joined #asahi
05:07chadmed has quit []
05:08abbas_faiz[m]tpw_rules: ok I'll take a look at your script and run it in some time. Do you have the script in a repo somewhere? Not sure if I should directly run a curl | sh command with an unknown script.
05:09chadmed has joined #asahi
05:12chadmedthe kernel is uploaded to the Apple Silicon device over a serial interface m1n1 exposes on boot
05:14tpw_rulesabbas_faiz[m]: that's just for the wifi. the main installer is: curl -L https://mrcn.st/alxsh | sh and that repo is here: https://github.com/AsahiLinux/asahi-installer
05:19abbas_faiz[m]ok I have the /tmp/linux-firmware.tar and about 50GB empty space after the Container
05:19abbas_faiz[m]faizabbas@Faizs-MacBook-Air ~ % diskutil list /dev/disk0... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/HxpLSRtCNCoDkoQJxDvcQuQY)
05:20tpw_rulesto make the linux stub partition. then run the asahi install script and follow the directions
05:21jx0 has joined #asahi
05:22tpw_rulesand once that is done, you can do whatever linux setup you like. i recommend my nixos tutorial: https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md
05:27abbas_faiz[m]got it. Thanks for the help. I will continue this once I am back besides my linux PC
06:17Glanzmannabbas_faiz[m]: Untethered quickstart: https://github.com/AsahiLinux/docs/wiki/Debian Tethered quickstart: https://tg.st/u/asahi.txt
06:18Glanzmannnotyou[m]: So if you have an old one (release 2020), you can use u-boot. On the new ones you can also using m1n1 but you will lack wifi until marcan has merges SMC.
06:19Glanzmannnotyou[m]: Than you're good. Just follow these guides https://github.com/AsahiLinux/docs/wiki/Debian
06:19GlanzmannIf you don't want Debian, than use the live system, create an efi partition, one root partition and extract the desired root fs of the Distribution you want.
06:22Glanzmannnotyou[m]: If you want to build your own kernel. Have a look at that, or use my config or any of the other known to work configs: https://github.com/AsahiLinux/docs/wiki/DesktopKernel
06:26Glanzmannnotyou[m]: See here for supported features on your model (that is not upstream but on the asahi branch with the patches from the DesktopKernel secction): https://github.com/AsahiLinux/docs/wiki/Feature-Support
06:33notyou[m]great documentation, I've been putting off playing with this cause there was 0 documentation for so long
06:38Glanzmannnotyou[m]: If you find something in the documentation that is unclear or wrong, please fix it in the wifi or report it to me, so that i can fix it.
07:00mjg59 has quit [Remote host closed the connection]
07:09the_lanetly_052 has joined #asahi
07:57chadmedhttps://github.com/AsahiLinux/docs/wiki/Developer-Quickstart-2.0 anyone wanna proofread this? I've tried to simplify the dev quickstart guide and bring it up to date, incorporating the installer script to cut out having to manually create the macos stub etc
08:25jx0 has quit []
08:26VinDuvchadmed: nitpick: in step 3, the “Loading startup options...” message might not be visible on 12.0+ Mac mini, and may be localized. The boot menu itself is also localized. Maybe add something like “do not let go until you see Loading startup options... appear under the Apple logo, or a cog icon appear on the screen”?
08:43jannauI've updated the minimal required macos version to 12.0.1, mostly to prevent issues if the system recovery is 12.1 or later
08:43VinDuvAlso I’m not sure if it’s safe to install 12.0+ m1n1 on a <12.0 Mac. My understanding is that the macOS installer upgrades iBoot automatically when 12.0+ is installed, but I’m not sure if that happens when m1n1 is installed
08:51jannauthe installer can not install macos stub which is newer than the newest installed macOS, it checks the system iboot version
08:53notyou[m]I don't even know how that happened. anyway you've cropped the instruction to run step2.sh, so it's unclear if you're suppose install m1n1 or not
09:17jannauchadmed: thanks, once people have looked over it, it probably makes sense to move "Developer Quickstart" to "Developer Quickstart (obsolete)" and replace it
09:20chadmedVinDuv: that makes sense, wasnt actually aware that the boot menu was localised that specifically
09:29chadmedjannau: i did intend on replacing the old guide but wanted to get some feedback first in case i missed anything
09:33notyou[m]when I try to run bputil -nc -v "$VGID" in step2.sh from recovery I get an error something like this "boot object update failed error 401, failed to create local policy ap boot mode 11"
09:34notyou[m]also " kmutil configure-boot -c u-boot.bin --raw --entry-point 2048 --lowest-virtual-address 0 -v "$system_dir" errors, saying configure-boot can only be run from recovery mode, but it is recovery mode?..
09:35notyou[m]I used the installer to select the linux boot disk, it shutdown and i pressed the power button, then it bootlooped 3 or 4 times before booting to recovery
09:36ChaosPrincessshut it down entirely, then boot it up holding power button
09:37chadmedyeah thats the wrong recovery, you need to hold the power button down until it prompts you with boot options. you could probably try following the new guide i linked above
09:38ChaosPrincessyou can catch it correctly on reboot, if you entered wrong recovery, you probably mistimed the power button hold
09:38ChaosPrincessholding it from complete shutdown is the easiest way
10:05dianshi has joined #asahi
10:19___nick___ has joined #asahi
10:20___nick___ has quit []
10:21___nick___ has joined #asahi
10:52chadmed has quit [Quit: Konversation terminated!]
10:53chadmed has joined #asahi
14:06malvo has joined #asahi
14:19espo has joined #asahi
14:39Misthios1 has joined #asahi
14:42Misthios has quit [Ping timeout: 480 seconds]
14:42Misthios1 is now known as Misthios
14:43Misthios has quit []
14:44Misthios has joined #asahi
14:49gladiac is now known as Guest1023
14:49gladiac has joined #asahi
14:55Guest1023 has quit [Ping timeout: 480 seconds]
15:56the_lanetly_052__ has joined #asahi
15:56chengsun has joined #asahi
16:02the_lanetly_052 has quit [Ping timeout: 480 seconds]
17:11the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:42GenbuchanPS5[m] is now known as Genbuchan[m]
19:24Glanzmannchadmed: About the Developer Quickstart 2.0. Build Dependencies from m1n1 are missing, m1n1 needs to be checked out recursive, The stub should be 12.1, has someone crated a pull request for 12.2 or tested it?
19:26GlanzmannAnd while reviewing your quickstart I noticed that I need to add the build dependencies to mine as well.
19:40Techcable has quit [Ping timeout: 480 seconds]
19:41Glanzmannchadmed: I would put the m1n1 chainloaded thing in a seperate article like untethered m1n1 or so. Because from my point of view that has nothing to do with 'developer quickstart' and more to do with I want a desktop the m1n1. But currently it is not practical because m1n1 can't enable PCIe and without PCIe you don't have wifi. And the Pro/Max machines are all notebooks. And you don't want a desktop
19:45Glanzmannchadmed: For the kernel you can reference the [[DesktopKernel]]. I'll add my recomendations, if you don't like them undo that.
19:49Glanzmannchadmed: DesktopKernel was already referenced so I only added the --recursive flag to the git clone for m1n1.
19:52Gaspare has joined #asahi
19:55M1bn3mar[m] has joined #asahi
19:56jx0 has joined #asahi
20:19joske has joined #asahi
20:24joskeHi all, I've manually applied the patch of sven in the dev channel onto current asahi, and with that I have now 4k pages, wifi, keyboard, USB, everything seems to work!
20:24Gaspare has quit [Ping timeout: 480 seconds]
20:33Glanzmannjoske: I see. Maybe I'll try that. joske Did you also play with the x86 simulation stuff?
20:34GlanzmannI see, I use vim. :-) And Debian Testing seems to still have no chromium. So at the moment I have nothing I need it for.
20:35joskewell, all the electron stuff also only works on 4k pages (balena etcher, whatsapp app, ...)
20:38opticronI also run Debian, I've found that even "Sid" (unstable) is relatively stable and useful
20:38Glanzmannjoske: Because it interests me. And I'm using testing on Debian that is bleeding edge enough for me. :-)
20:41mpsjoske: I'm using alpine edge (development release) on all workstations and testing systems, only use stable release on servers
20:47hspak has quit []
20:47GlanzmannOr if I have slow flash drive and want to see progress, I use pv, it gives you real time stats.
20:47GlanzmannFor the Debian guys a deb with the iommu patch and the other stuff: https://tg.st/u/linux-image-5.16.0-asahi-next-20220118-14782-ge61d4ff7ba87_5.16.0-asahi-next-20220118-14782-ge61d4ff7ba87-1_arm64.deb
20:48Glanzmannmps: To small blocksize, I always do bs=8M, only on my macos videos I don't because you can't use 'M' and write out the number.
20:48hspak has joined #asahi
20:51mpsI had to buy windows first time in my life for my $job and after some time I found that I actually don't need
20:52Glanzmannjoske: Like that: https://pbot.rmdir.de/wCs2lGQHcGqwc1UHNhCBMg Or I dd it using clonezilla or graml.
20:53mpsthis was one of the worst day in my life, 'give money to microsoft' was a really bad feeling
20:55Glanzmanntpw_rules: I once created a partition a few bytes to small because of this and dded a slightly bigger image over it.
20:55Glanzmanntpw_rules: Anyhow good to know updating my instructions now. THis saves a few seconds.
20:57nsklauspersonaly i refused all jobs that wanted me to use windows, and did not allow me to install my own linux distro on the companies's laptop
20:58Glanzmannnsklaus: I see. Well I also ended up installing Linux on all my work systems, but did not ask during interview.
20:59nsklausand also , my other question is: "when all job is done and well done for the day, is it acceptable for me to just surf, or work on my own project ?" if answer is no then i refuse the job
21:00GlanzmannBtw. does someone know if 16k pages give me performance benefits on tlb misses on arm?
21:02mpsGlanzmann: yes and no, I was impressed by announces for win NT 3.50 (iirc) and when my coworker got it I looked and tried with him for 3 days
21:05mpson the other side macos could be usable to me but I don't needed it because everything was ready on *BSD and linux
21:07Glanzmannmps: I went the other road, I installed firefox, iterm2, gpg agent, iina on macos and could consume with it and work in a terminal, for real work I switched to a thinkpad.
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:09Glanzmannmps: I bought the macbook because I wanted to try the architecture. And was hoping I have linux soon.
21:24GlanzmannYes, works fine. My latest kernel deb with 4k is here: https://tg.st/u/linux-image-5.16.0-asahi-next-20220118-14782-ge61d4ff7ba87_5.16.0-asahi-next-20220118-14782-ge61d4ff7ba87-2_arm64.deb
21:31le0n has quit [Quit: see you later, alligator]
21:31le0n has joined #asahi
21:43waagrr has quit [Ping timeout: 480 seconds]
21:49jx0 has quit []
22:30joske has quit [Remote host closed the connection]
22:32Techcable has joined #asahi
22:49waagrr has joined #asahi
22:50povikmarcan: hey this needs to be cleared in GUARD_SILENT: https://github.com/AsahiLinux/m1n1/blob/main/src/exception.c#L191
23:02chadmed has quit [Read error: Connection reset by peer]
23:05chadmed has joined #asahi
23:07chadmedGlanzmann: thanks for picking up on the lack of --recursive in m1n1. As for the untethered booting, i think it should stay in. the point of the guide is to get developers into a kernel, and being able to do that untethered is a part of that
23:08chadmedmost people wont even read that far down tbh, as soon as the they get penguins theyre going to close the page :D
23:09jx0 has joined #asahi