#
…

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:44tpw_ruleswhat OS do you have on it currently?
04:44tpw_rulesthe macbook
04:44tpw_ruleswhich version
04:44abbas_faiz[m]the latest one. Monterey
04:45tpw_rulesokay cool.
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:46tpw_ruleshave you used diskutil before?
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_rules`diskutil list /dev/disk0` should give you the list of partitions on the nvme
04:48tpw_rulesiirc disk0s2 is the main one, it should be the biggest
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:57tpw_rulesdid that work?
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:00tpw_rulesyes, you can put everything on the internal storage
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_rulesokay. now you can run: diskutil addPartition disk0s2 apfs Linux 4G
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:17notyou[m]Is it currently possible to do a non tethered boot on the m1 Macbook Pro?
06:17Glanzmannabbas_faiz[m]: Untethered quickstart: https://github.com/AsahiLinux/docs/wiki/Debian Tethered quickstart: https://tg.st/u/asahi.txt
06:17Glanzmannnotyou[m]: What kind of macbook pro (2020 or current?)
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:19notyou[m]great thanks
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:19GlanzmannInstall a kernel, grub and extract the wifi firmware and you're good to go.
06:20Glanzmannnotyou[m]: If you want Debian it is hopefully easy now with the Videos.
06:20GlanzmannSorry for the small font size, maybe I'll redo them.
06:22notyou[m]cool, looks pretty fine to me
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:24notyou[m]looks great
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:52notyou[m]@Glanzman in the uboot page ```d click Next.
08:52notyou[m]1. Click on the Utilities menu and select Terminal.
08:52notyou[m]1. Type the following command and follow the prompts:
08:52notyou[m]1. Click on the Utilities menu and select Terminal.
08:52notyou[m]1. Type the following command and follow the prompts:
08:52notyou[m]1. Type the following command and follow the prompts:
08:52notyou[m][201~and click Next.
08:52notyou[m]1. Click on the Utilities menu and select Terminal.
08:52notyou[m][201~and click Next.
08:52notyou[m]1. Click on the Utilities menu and select Terminal.
08:52notyou[m][201~and click Next.
08:52notyou[m][201~and click Next.
08:52notyou[m]1. Type the following command and follow the prompts:
08:52notyou[m]1. Type the following command and follow the prompts:
08:52notyou[m]1. Click on the Utilities menu and select Terminal.
08:52notyou[m]whoops sorry, (new to gomuks)
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
08:58notyou[m]s/Glanzman/Glanzmann/, s/```d click Next./:/
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:18jannauI created a pull request to remove 11.x and 12.0 beta versions from the installer
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:34chadmedyou must be in the wrong recovery mode
09:34chadmedhow did you get to 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:37mpsChaosPrincess: this could be added to quickstart guide, I come to this 'by experience'
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
09:38mpsChaosPrincess: and safe
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:23Glanzmann# Wait for the system to shutdown and the LEDs turn off. Than wait another 5
19:23Glanzmann# seconds. Now press and do _not_ let go of the power button for 15 seconds.
19:23Glanzmann# terminal execute:
19:23Glanzmann# In the boot picker, select 'Options' and select Utilities > Terminal. In this
19:23GlanzmannFuck, that was the wrong paste.
19:24povik> Fuck, that was the wrong paste.
19:24povikdon't think that will be a valid command :-p
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:41Glanzmannwithout Internet, of course you could use a wifi or ethernet dongle.
19:45Glanzmannchadmed: For the kernel you can reference the [[DesktopKernel]]. I'll add my recomendations, if you don't like them undo that.
19:45GlanzmannBut I'll not remove the untethered boot.
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:53GlanzmannHas someone already checked with 12.1 fixes the iBoot hdmi initialization?
19:53GlanzmannFor the mini?
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:24joskeso now chromium & vs code run fine on asahi linux :-D
20:25joskenow only missing is some kind of battery percentage (smc?)
20:30Glanzmannjoske: Can you send a link to the patch?
20:32joskeon top of this of course the audio patch and the input patch...
20:32GlanzmannRehosted here for easier download: https://tg.st/u/iommu.patch
20:33Glanzmannjoske: I see. Maybe I'll try that. joske Did you also play with the x86 simulation stuff?
20:33joskeI just wanted to get vs code working :-)
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:35joskeas electron uses chromium underneath
20:35joskeGlanzmann: it's beyond me why anyone would *want* to run debian out of free will :-P
20:36Glanzmannjoske: I do it because I like a stable Linux distribution.
20:36Glanzmannjoske: What are you using?
20:36joskemanjaro
20:36joskewell, yes stable, but at the cost of ancient versions of everything
20:37GlanzmannThat is the definition of stable.
20:37joskenot sure what you are doing on the bleeding edge with asahi then ;-)
20:38joskedisclaimer: I used to run gentoo for long time, so I'm quite used to bleeding edge
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:39mpsjoske: so potentially f2f2 could also work with above iommu patch
20:39Glanzmannmps: Probably.
20:39joskemps: no idea
20:39josketry it out
20:39joskeI don't have any f2fs filesystem
20:39mpsjoske: sure, will do
20:40joskeGlanzmann: I'm even using manjaro testing, so latest everything ;-)
20:40mpsI have a lot of mmc cards and ssd disks with f2f2 fs on them
20:41GlanzmannOh chromium is back in testing. Now I have to try it.
20:41mpsjoske: I'm using alpine edge (development release) on all workstations and testing systems, only use stable release on servers
20:42joskeGlanzmann: it's working here, so it should for you too
20:42mpsand I don't see much difference in stability between them
20:44joskemanjaro has been pretty stable for me too, rolling distros are nice
20:44mpsif I want really stable OS probably would use openBSD
20:45joskebalena etcher also works now with this patch
20:45mpsjoske: yes, alpine edge is practically rolling release, though not called so
20:45Glanzmann:Who is Balena Etcher?
20:46joskeGlanzmann: this is a tool to write ISO images to flash drives
20:46GlanzmannAh, I see.
20:46Glanzmannjoske: I use dd.
20:47joskeyes I believe you ;-)
20:47joskeit's just funny
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:47mpsheh, 'cat image.iso > /dev/sda'
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:49mpsGlanzmann: yes yes, I'm just kidding, also I use dd only
20:49joskedd doesn't work for windows ISOs though
20:50Glanzmannjoske: It does if you have the right bios.
20:50mpsjoske: last time (about 5 years ago) when I used it worked
20:50GlanzmannBut to be honest, I mostly install Windows over the network.
20:50joskewith PXE boot?
20:50Glanzmannjoske: Yep.
20:51joskewell, that's nice and dandy if you have all that setup, most people don't
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:52joskeI have it installed, but never boot i
20:52Glanzmannjoske: Like that: https://pbot.rmdir.de/wCs2lGQHcGqwc1UHNhCBMg Or I dd it using clonezilla or graml.
20:52joskeusing linux since 1996
20:52* Glanzmannsince 93 or 94. Do not remeber.
20:52GlanzmannBefore 1.0. But barely.
20:53mpsthis was one of the worst day in my life, 'give money to microsoft' was a really bad feeling
20:53tpw_rulesGlanzmann: you can use "8m" with dd on macos
20:53tpw_rulesbut not linux
20:53Glanzmanntpw_rules: And you're telling me now.
20:53Glanzmanntpw_rules: On Linux you can do bs=8M . I always do it.
20:53tpw_rulesi'm saying you can't do 8m on linux
20:53tpw_rulesthe M has to be lower case for macos dd and uppercase for linux dd. no idea why
20:54nsklausi heard it was possible to follow a procedure to ask for refund
20:54GlanzmannI think it is 1024 vs. 1000.
20:54Glanzmanntpw_rules: I see, in diskutil it is.
20:55tpw_rulesyes but diskutil isn't dd
20:55mpsnsklaus: thanks, but I will not try, five years already passed
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:55nsklausmy last experience with windows was with 98se
20:56GlanzmannI need it for work way to often.
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:57nsklausi typically ask that during the interview
20:58mpsdd in coreutils use M for 1024 and M for 1000
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
20:59mpsnsklaus: also I never used windows
21:00GlanzmannBtw. does someone know if 16k pages give me performance benefits on tlb misses on arm?
21:00GlanzmannLike on amd64 with large pages?
21:00mpsnor macos, except as boot loader for qemu in autumn last year for about two months :)
21:01Glanzmannmps: Your hard core.
21:01Glanzmannmps: Did it work out with all your keybindings?
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:03mpsand I then learned what marketing means, i.e. damned lies. never looked again
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:05nsklauss/macos/prisonbsd
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:07mpsnsklaus: :-)
21:07GlanzmannNow with wifi, I can do almost anything on the macbook air.
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:08mpsI own (my son bought to me) MBP intentionally to install asahi on
21:08mpselse I will don't accept it
21:09mpss/don't/not/
21:09Glanzmannmps: I bought the macbook because I wanted to try the architecture. And was hoping I have linux soon.
21:11mpsGlanzmann: heh, and thanks for all developers we have it \o/
21:13GlanzmannBtw. does soemone know if ublock works correctly on chromium?
21:21joskeseems to work fine
21:31le0n has quit [Quit: see you later, alligator]
21:31le0n has joined #asahi
21:34tpw_rulesGlanzmann: does pcie work on it?
21:35joskewell, wifi works, that is via pcie?
21:35tpw_rulesi think so. what patches?
21:38tpw_rulessven's series?
21:43waagrr has quit [Ping timeout: 480 seconds]
21:47tpw_rulesGlanzmann: i don't see a 4k kernel script in your git?
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
23:52minias a more generic m1 pro/max question - do we know why the other half of the neural engine seems to be disabled?
…