2022-02-02
00:22matthewayers[m]I came across this article earlier today.. Apparently Linus Torvalds himself is hoping to use Linux on a Mac. https://www.zdnet.com/article/linus-torvalds-would-like-to-use-an-m1-mac-for-linux-but/
00:23jx0 has joined #asahi
00:29jbowen has joined #asahi
00:37jbowen has quit [Ping timeout: 480 seconds]
00:46yuyichao has joined #asahi
01:04jato has quit [Ping timeout: 480 seconds]
01:20jato has joined #asahi
02:29jbowen has joined #asahi
02:38jbowen has quit [Ping timeout: 480 seconds]
02:59Glanzmannwait 5 seconds. press and hold power on for 15 seconds, choose options, utilities > terminal
03:00Glanzmannphire: I made a few videos which are linked from https://github.com/AsahiLinux/docs/wiki/Debian Watch them to get the idea. I'll redo them soon to have a decent font size.
03:01GlanzmannTramtrist: You can run slackware today. Just use the Debian live, extract your tarballs and compile a kernel.
03:03Glanzmannmps: And like you, I look forward to poweroff support, smc, gpu and backlight control.
03:12GlanzmannDid you use the asahi installer to create a stub partition or did you modify your existing macos partition?
03:16Glanzmannphire: If bputil -n does not work, and noone else proposes a solution, than you can use 1tr to delete your existing macos instalation and reinstll.
03:17Glanzmannphire: If you want to install Linux, on a m1 machine. Watch the videos and than follow the steps on https://github.com/AsahiLinux/docs/wiki/Debian
03:18phireI already backed up the most important files, I'd just rather try and fix it then reinstall stuff
03:19Glanzmannphire: So from diskutility, it does not look that bad. 1Boot, APFS and 1tr are thare as well as stub parition.
03:20Glanzmannphire: Maybe: https://www.reddit.com/r/hackintosh/comments/64r47j/how_and_when_to_rebuild_kext_and_kernel_cache/
03:24phireif I was smart, I would have setup a scratch macos to play with instead of using my main one
03:31GlanzmannIt happens, I once deleted 1tr, could no longer apply updates, used a second mac to reinstall it.
03:50kov has quit [Quit: Coyote finally caught me]
03:50kov has joined #asahi
04:01PhilippvK has joined #asahi
04:05phiologe has quit [Ping timeout: 480 seconds]
04:30jbowen has joined #asahi
04:38jbowen has quit [Ping timeout: 480 seconds]
05:26eroux has joined #asahi
06:00gladiac is now known as Guest1486
06:00gladiac has joined #asahi
06:06Guest1486 has quit [Ping timeout: 480 seconds]
06:30jbowen has joined #asahi
06:38jbowen has quit [Ping timeout: 480 seconds]
07:15leah1 has quit []
07:17jbowen has joined #asahi
07:17anon2022[m] has joined #asahi
07:18anon2022[m]Hey everyone
07:18anon2022[m]How long will it be before Asahi Linux will be ready for end user?
07:23jeffmiw has quit [Ping timeout: 480 seconds]
07:24leah has joined #asahi
07:25jbowen has quit [Ping timeout: 480 seconds]
07:33jx0 has quit [Quit: poof!]
07:35MajorBiscuit has joined #asahi
07:37chadmedi'd wager not until closer to the end of the year. we have a lot of work to do for the "nice to have" features yet.
07:41svenestimates are hard enough already for software project where you don't need to reverse engineer everything ;)
07:42chadmedmaybe a better answer for us in particular would just be "when the features you need are officially listed as supported" or something
07:43immychan[m]chadmed: That’s the best answer
07:43immychan[m]I think for me what I’m waiting for is an easier to use installer, and GPU support
07:46chadmedwell see thats my point. i dont care to be on llvmpipe and i dont really need an easy to use installer, so where is my level of doneness? might be worth expounding on the wiki. ill see to it later this evening, actually
07:47chadmedat the very least, the meaning of "done" from a development perspective should be decoupled from the user's.
08:29Glanzmannimmychan[m]: I documented the shit out of the installation process and hope that it now is easy obtainable. But I'll add more videos and better instructions and adopt as soon as marcan handles more in the installer. https://github.com/AsahiLinux/docs/wiki/Debian - I'll redo the videos with bigger font size and less hickups.
08:32GlanzmannAnd from my point of view the best supported models are the m1 air and 2020 pro. mini has slow video or wrong resolution. The new models don't have u-boot and as a result no wifi without tehtered boot. And the imac I never tried or heard from. So maybe there the video is also like the air/pro 2020.
08:39flying_sausages has quit [Ping timeout: 480 seconds]
09:17jbowen has joined #asahi
09:18Glanzmannkloenk: If you have something that I can try for the chainloading from nvme, let me know, I would like to try it.
09:19kloenkWe are working on it. building a gpt library right now. all the existing ones need std, so not usable for us
09:24ibrahim has quit [Quit: Connection closed for inactivity]
09:25jbowen has quit [Ping timeout: 480 seconds]
09:32darkapex has quit [Read error: No route to host]
09:32darkapex has joined #asahi
09:42jbowen has joined #asahi
09:51jbowen has quit [Ping timeout: 480 seconds]
10:03chadmed has quit [Quit: Konversation terminated!]
10:05blasty has joined #asahi
10:06Ziemas has quit [Ping timeout: 480 seconds]
10:07blasty_ has quit [Ping timeout: 480 seconds]
10:07Ziemas has joined #asahi
10:14chadmed has joined #asahi
10:19Glanzmannmps: I did not. But I wrote something, but I assume that marcan will soon put the wifi in the stub partition and we can take it from there: curl -sL tg.st/u/fwx.sh | sh
10:20kettenisGlanzman: you'll need a snapshot at this point; too many device tree changes happened since last october
10:20mpsphire: I was wrong last night about brightness, tested it and it uses brightness set by macos
10:21mpsGlanzmann: installer needs python and I think it would be simpler and smaller for end users if python could be 'skipped'
10:23mpsI doubt that debian (and some other distros) would like to run script downloaded from the net
10:24Glanzmannmps: They can distribute on their site, but I think maracan will provide the installer and than you use the distro installation media.
10:25Glanzmannmps: I think there two ways, one way is package m1n1 the other one, the user takes care of m1n1, distro takes care of grub+kernel+dtb.
10:28marcan(among other things, because it's not possible without adding a pile of dependencies, or doing very horrible things in shell)
10:29mpsso I have to ask someone else to make installer package for alpine because I don't have experience with python packaging
10:29marcanI mean if someone wants to implement incremental zip parsing and chunked HTTP downloads in shell they are very welcome to try :p
10:29Glanzmannmps: There is a build script in the m1n1 repo, you can call it and it will package it for you.
10:30marcandistros are of course welcome to repackage the installer, but there is little point at this stage nor is it really ready for that use case
10:31landscape15[m]marcan: Considering that python is fully supported on macOS by default, why would you want to make a bash installer?
10:32landscape15[m]Yeah, but having a Python3.9 bundle seems flexible to me.
10:33marcanj`ey: some distros will want the "dump the iso on a USB stick and run the script from *there* from 1TR" workflow because not having external dependencies or something
10:34marcanbut that's already ~trivial to do with a different bootstrap script, and we'll throw something like that in the installer repo at some point so distros can just pick it up
10:34landscape15[m]marcan: basically you will be able to install Linux by simply running the distro package from 1TR right?
10:35j`eymps: yeah but I was still thinking that you just need to unpack it and run it on the macOS anyway
10:35marcanthat all need discussion of what kind of workflow the *installer itself* should expose for installing the distro proper, we haven't even gotten to a standard for bundled distros even
10:36landscape15[m]marcan: well for me it’s the best way. This means that you can package a complete offline installer.
10:36mpsmarcan: personally I would use your method, but I know that distros will try somewhat different way
10:37landscape15[m]marcan: yes I forgot that
10:37marcanmps: distros are welcome to try whatever they want, but I'd hope they talk to us to make things easier for everyone
10:37marcanespecially since as NIH as distros like to be about this, I don't think they're silly enough to try to, say, reimplement the entire installer
10:38marcanworking out how to play ball with apple's undocumented bootability system wasn't exactly trivial
10:38eroux has quit [Read error: No route to host]
10:38landscape15[m]mps: For now the installer fails in 1TR, at least for me
10:40landscape15[m]mps: doing it manually means using a lot of disk space
10:40Glanzmannmarcan: Last time I tried, the installer fails when you start in 1tr, but in macos it works.
10:42landscape15[m]marcan: The last time I tried was before Christmas. I’ll try again these days
10:42eroux has joined #asahi
10:42flying_sausages has joined #asahi
10:44marcanthe last "totally fails to start" issue we had was the FileVault thing with the frameworks path, and that was fixed ages ago IIRC
10:44_jannau_it has worked for me without issues from 1tr in the last weeks (ignoring 12.1 kmutil breakage and unsigned beta releases)
10:45_jannau_the latter is fixed and the kmutil will be "fixed" when we remove macos 11 from the installer
10:45marcanno idea if it fails on some random 11.x version, but those are no longer supported as of *merges #11* now
10:47marcanI should probably add a shell check to boostrap.sh to yell at you loudly if you're on 11.x, just to avoid getting bug reports from weirdo issues on old OSes that will error out later anyway
10:47chadmedhopefully no one's on 11.x these days, the new quickstart guide prescribes at least 12.0.1
10:48marcansomeone somewhere is going to try to run it on 11.0.1 or whatever which can't even run unsigned binaries from 1TR...
10:49chadmedyeah the check of course makes sense, would just be quite the peculiar person who is just starting out and on such an old version of macos
10:50marcanbecause people are going to try running it before going through macOS setup, and that won't work either
10:51landscape15[m]marcan: Also a check that you are in the right recovery should be useful. I don’t know if there is already.
10:51landscape15[m]Ok thanks
10:52marcanjust non-1TR mode, which happens when the physical button press isn't exactly what it needs to be
10:52marcane.g. tapping the power button then holding it again will get you into options but it won't count as 1TR
10:52marcanbut 1TR is a lower level "was the power button held from cold startup once" signal somewhere
10:53marcanyou can also trigger the bootpicker in software, pretty sure, or force a one-time boot into options or so
10:54landscape15[m]marcan: does the system go directly into DFU mode if no OS is present?
10:55marcanin principle we could support a "replace macOS with Linux" workflow; we'd have to copy out the machine owner plist first before wiping it, and I still haven't tested if we can wipe recovery from that recovery (if recoveryOS is loaded as a ramdisk or streamed from disk)
10:56marcan(if it's streamed we'd need yet another reboot there to switch to system recoveryOS after copying the machine owner list to, say, iSCPreboot)
10:57landscape15[m]Mmm.. I thought the NOR is unwritable. If it’s wiped you can’t do anything
10:57GlanzmannBut I tried only once and I had that particular failure I think also once under macos.
10:58marcanI should add a retry mechanism; people's internet connections seem to be worse than I expect...
10:58landscape15[m]marcan: so where is DFU code located?
11:00landscape15[m]marcan: I guess I’m a bit confused :) the BootROM is located inside the ROM memory (which chip?), so what is the NOR flash for?
11:03landscape15[m]ok got it. So the system is always recoverable. As long as you can enter DFU mode.
11:05landscape15[m]Curious to know. But I won’t do it on mine ;)
11:11ave3 has joined #asahi
11:15ave has quit [Ping timeout: 480 seconds]
11:28GlanzmannWhile doing the disk utility dance, has someone a oneliner to delete the stub apfs container under macos? I normally use linux but that requires a stub ...
11:29landscape15[m]Maybe you can use disk until deleteContainer
11:29landscape15[m]s/disk/diskutil/, s/until//
11:30landscape15[m]Glanzmann: You will then have free space, that you can merge in another container
11:33lopp3r has joined #asahi
11:36lopp3rIs there any ETA on the next blogg post? Not meaning to be pushy, just really enjoy reading them and follow progress. I am not invested or savy enough to follow the development progress by "myself" :p
11:36Glanzmannmarcan: I work interactively on a remote system colocated at Hetzner. No issues. And I download every morning 300 GB offsite backups ...
11:36marcantry curling the IPSW URL from 1TR, if that works and the installer doesn't something's fishy
11:36landscape15[m]I’m wondering if you can set a proxy in 1TR
11:37marcanin principle now that we got rid of the phone-home we could implement that in the installer itself
11:39landscape15[m]lopp3r: Check this https://github.com/AsahiLinux/docs/wiki/Feature-Support and this https://github.com/AsahiLinux/docs/wiki/_history
11:39landscape15[m]lopp3r: no problem
11:40marcanGlanzmann: might be worth debugging with packet traces and such if you can, and trying against another server
11:40marcanI've seen some bizarre combination of nextcloud and android and some wifi break TLS sessions with corruption
11:42svenfwiw, hetzner servers (especially the ones from their serverbörse) are known for using old and sometimes even partially broken hardware
11:43sventhey'll happily replace those components if they fail though (at least they did with my server's disks)
11:43lopp3rIs it expected for the Asahi project to "catch up" to the release of new Apple silicon, or do you think that Linux support will always lagg a few generations behind?
11:45chadmedlopp3r: we're banking on most of the core logic to stay static between SoC generations, so most things required for booting should Just Work(tm) on new devices
11:46chadmedas for other things, once they are reverse engineered for the first time and people understand how it works on a basic level, any iterative design changes are faster to work through
11:46_jannau_lopp3r: support for newer generations will be faster. Apple does change things only if there's a reason for it. Also we have gained experioence and have a lot of infrastructure in place
11:47chadmedlandscape15[m]: yeah imo that page isnt needed anymore at all, im currently writing a page clarifying the levels of "doneness" as discussed earlier
11:48chadmednsklaus: "When will Asahi Linux be done?" (in quotation marks, because the idea is that a newcomer is asking the question
11:48landscape15[m]chadmed: yeah I think it’s a better way. Also since the “project status” is continually evolving
11:48landscape15[m]chadmed: the answer is never :)
11:49chadmedlandscape15[m]: yeah exactly, but we've had quite a few people over the last few days come in asking about timeframes and such so i think it will be useful to have a page explaining things
11:51landscape15[m]So it would be enough explaining the “update cycle” of Asahi stuff
11:51chadmedyeah ill have a note on that at the end, something like "But what happens when Apple release new hardware?"
11:57nsklauschadmed: when then page is expected to be available ? for example, you're writing it for today or for next week ?
12:01nsklausbtw, i asked before a little off-topic question, what is the prefered way of people on linux to access iphone/ipad to transfer documents ? for example, i have a few giga of books ( .epub and .pdf) and i would like to copy them on the iphone and ipad
12:01ChaosPrincessifuse
12:02chadmedid copy them to a network share (samba works fine) and access them directly on the idevice
12:02GlanzmannCopy on that and than copy to the phone. That is what I did on my wifes iphone. It works out of the box.
12:02ChaosPrincessyou can mount any app that shows under files.app
12:12phireI assume there is something I need to do in recovery to get it working again? Running step2.sh a second time didn't fix it
12:14marcanlopp3r: basic support should happen quickly; things like GPU generation changes might require significant effort (months/a year) to catch up to, depending on how much changed.
12:15marcan(but then again there wasn't that much to catch up to; e.g. they're now behind on audio support somewhat)
12:19chadmedaffirmative, ill link it here for proofreading when im done and if theres no significant issues ill add it to the sidebar
12:20chadmedi would like to polish up the wiki a bit over the next couple of weeks to make it more approachable, some of the pages lack clarity or are not as well structured as they could be
12:22chadmedwe have a lot of eyes on us now, and it looks a bit unprofessional when they click through to the wiki and theyre greeted with "uart works, penguins in the framebuffer" :P
12:24GlanzmannMy firmware extractor was broken because I did not set the path for python correctly, just in case you tried it an it failed. I did not notice because I had xcode installed ... I noticed because I tried it now in 1tr. curl -sL https://tg.st/u/fwx.sh | sh
12:25phireThis is the output from bputil for the Linux partition https://gist.github.com/phire/b169c53ac136fca25f643e3fe9df884e
12:25ciggi has joined #asahi
12:25al3xtjames4 has joined #asahi
12:26phireI think: "Kernel CTRR Status: Enabled" is causing issues, but when I try to disable it with bputil -c, I get an "error 17"
12:27chadmedfwiw you can just nuke the Linux APFS container and start anew with the installer. it wont affect your linux rootfs
12:29lopp3r has quit [Quit: leaving]
12:29al3xtjames has quit [Ping timeout: 480 seconds]
12:29al3xtjames4 is now known as al3xtjames
12:30ciggi_ has quit [Ping timeout: 480 seconds]
12:32phirewell, I put a second osx install in that container (might not have been the smartest idea)
12:43ciggi_ has joined #asahi
12:45GlanzmannBut delete the right one, if not, I can you upload a tutorial for idevicerestore that I received this morning via email.
12:48ciggi has quit [Ping timeout: 480 seconds]
12:58chadmedhttps://github.com/AsahiLinux/docs/wiki/%22When-will-Asahi-Linux-be-done%3F%22 initial version done, would appreciate some more eyes on for proofreading :)
12:58viljami[m] has joined #asahi
13:02chadmedi feel like that final section on new hardware would likely serve its purpose better at the top of the Feature Support page
13:04jnmaybe the Project status page should just be pruned out, but the way it is now, it's just very outdated
13:06chadmedits not really necessary in my opinion unless some major shit hits the fan and we have to stop, in which case a new splash page telling people what's going on would make more sense
13:15le0n_ is now known as le0n
13:36le0n has quit [Quit: see you later, alligator]
13:38landscape15[m]chadmed: I like it :) before asking on IIRC everyone should know that the wiki contains almost every detail
13:49phiremarcan: the documentation seems to be missing a step for booting macos under the m1n1 hypervisor. How to I point it at the correct root volume?
13:49hramrachYou could say it will be done some time after Apple switches to yeat another completely different CPU architecture
13:50marcanI've never tried to "cross" a macOS install like that but I expect things to break (though maybe they won't? I always kind of assumed the SEP context knows about OS identity so things will go wrong there, but I never actually tried it)
13:51le0n has joined #asahi
13:51marcanit definitely needs to be the same stub version as the macOS version in that case though, and kernel, otherwise things will definitely explode
13:53svenwhere explode usually means some truly weird kernel panic that might send you down a debugging rabbit hole (ask me how i know....)
13:54nsklaus_ has joined #asahi
13:55phireinstalling over macos is just a matter of putting m1n1.bin in / and disabling security and running the kmutil configure-boot command?
13:56svenyou can just grab a m1n1.bin using curl from 1TR and downgrading security + using that configure-boot command
13:56kgarrington has joined #asahi
13:57marcanyeah, m1n1.bin can just be anywhere, the installer puts it in / because it can be convenient to have lying around
13:57kgarrington has quit [Remote host closed the connection]
13:58kgarrington has joined #asahi
13:59bdju has quit [Ping timeout: 480 seconds]
14:02bdju has joined #asahi
14:07Glanzmannmarcan: I tested my networking equipment by downloading a 12 GB from a hetzner webserver, no issue full wirespeed. So the problems I'm seeing are either from my provider (German Telekom), Transit Provider or Apple CDN (Provider). But thank you for making the installer more robust. I was seeing this error multiple times, but apparantly did not read the error message and thought that I do something else
14:07le0n has quit [Remote host closed the connection]
14:08le0n has joined #asahi
14:15kgarrington has quit [Remote host closed the connection]
14:17GlanzmannBtw. the Debian livesystem is nice. I just booted it up, installed blackbox and used gparted to move some partitions around grew them (moving and growing 18 GB of ext4 took 51 seconds ...)
14:40eroux_ has joined #asahi
14:46eroux has quit [Ping timeout: 480 seconds]
14:48off^ has quit [Remote host closed the connection]
15:02yuyichao has quit [Ping timeout: 481 seconds]
15:23jbowen has joined #asahi
15:25Glanzmannmarcan: You're new installer is idiot safe. I booted in the reocvery os by accident and it detected it. :-)
15:28yuyichao has joined #asahi
16:47sami-dev[m]Can we expect a progress report for December - January anytime soon for us normies who just want to know how the project is coming along? :D
16:58jx0 has joined #asahi
17:11Glanzmannsami-dev[m]: wifi, smc work in progress, marcan found a techincal support tool, hdmi mini, installer robustness, dcp driver, sound jack, u-boot, debian install with manual kernel and grub installation.
17:41MajorBiscuit has quit [Ping timeout: 480 seconds]
17:44eroux_ has quit []
18:48yamii has joined #asahi
18:52mcampbell has joined #asahi
19:00kaprests has quit [autokilled: Possible botnet activity. Mail support@oftc.net with questions. (2022-02-02 19:00:02)]
19:07n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
19:08wCPO6 has quit []
19:08wCPO6 has joined #asahi
19:08n1c has joined #asahi
19:13kaprests has joined #asahi
19:18landscape15[m]I think GitHub is down. Error 500
19:24landscape15[m]Yeah it was only that, now works
19:24m6wiq has joined #asahi
19:25mcampbellOur IT person, Steven, was looking at it. We had to invoke our YaSaaS (Yelling at Steven as a Service) service.
19:33kaprests has quit [Quit: leaving]
19:34kaprests has joined #asahi
19:35DmitrySboychakov[m]nice service
19:35st3g4n0[m]Glanzmann: it wasnt a kernel panic... where is what is logs at restart
19:37st3g4n0[m]i dont know
19:37st3g4n0[m]but always displays a watchdog msg
19:38st3g4n0[m]do you have a .macho with kernel with all patches?
19:38st3g4n0[m]for mac mini?
19:38st3g4n0[m]or kernel built?
19:48Tuff has joined #asahi
19:54GlanzmannIf you want to compile yourself: https://github.com/AsahiLinux/docs/wiki/DesktopKernel https://github.com/AsahiLinux/docs/wiki/DesktopKernel tg.st/u/asahi.txt
20:08Guest1237 has quit []
20:09DragoonAethis has joined #asahi
20:10st3g4n0[m]Glanzmann: just compiled
20:10st3g4n0[m]but it doenst pass asahi m1n1 bootlogo
20:30nsklaus_ has quit [Quit: Konversation terminated!]
20:46___nick___ has joined #asahi
20:46chengsun has quit [Ping timeout: 480 seconds]
20:47___nick___ has quit []
20:48___nick___ has joined #asahi
20:56Tuff has quit [Quit: Textual IRC Client: www.textualapp.com]
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:10mcampbell has quit [Ping timeout: 480 seconds]
21:25loki_val has quit []
21:25crabbedhaloablut has joined #asahi
22:05m6wiq has quit []
22:13c10l has quit [Quit: Bye o/]
22:18jeffmiw has joined #asahi
22:20c10l has joined #asahi
22:38Xe has quit [Server closed connection]
22:38Xe has joined #asahi
22:40hl` has quit [Server closed connection]
22:40hl` has joined #asahi
22:54Esmil has quit [Server closed connection]
22:54Esmil has joined #asahi
22:59anuejn has quit [Server closed connection]
23:09trepatudo has quit [Server closed connection]
23:09trepatudo has joined #asahi
23:19Fanfwe has quit [Server closed connection]
23:22Fanfwe has joined #asahi