#
…

2022-03-10

00:01jsnapoli1[m] has joined #asahi
00:02jsnapoli1[m]Hi guys, new here. I have an m1 MBA with 16g ram. Any way I can get involved?
00:12marvin24_ has quit [Ping timeout: 480 seconds]
00:16mofux[m]j`ey: thx!
00:19marvin24 has joined #asahi
00:39Gue___________________________ has joined #asahi
00:42Gue___________________________ has quit []
00:42Gue___________________________ has joined #asahi
00:58yuyichao_ has quit [Ping timeout: 480 seconds]
01:09Gue___________________________ has quit [Quit: Textual IRC Client: www.textualapp.com]
01:09Gue___________________________ has joined #asahi
01:23yuyichao_ has joined #asahi
01:26zvGlanzmann: I've been occupied since about two weeks ago, last I remember you were preparing to publish a new (debian?) installer of sorts. has this happened yet?
01:30Gue___________________________ has quit [Quit: Textual IRC Client: www.textualapp.com]
01:32shenki has quit [Remote host closed the connection]
01:49kit_ty_katemofux[m]: I have some post-install tips just in case you need some: https://github.com/kit-ty-kate/asahi-tips
01:50user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:55user982492 has joined #asahi
02:00DragoonAethis has quit [Quit: hej-hej!]
02:00DragoonAethis has joined #asahi
02:05riker77_ has joined #asahi
02:10riker77 has quit [Ping timeout: 480 seconds]
02:10riker77_ is now known as riker77
02:23marvin24_ has joined #asahi
02:26marvin24 has quit [Ping timeout: 480 seconds]
02:31user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:36ciggi_ has joined #asahi
02:39the_real_briel[m] has joined #asahi
02:39ciggi has quit [Ping timeout: 480 seconds]
03:09linearcannon has quit [Read error: Connection reset by peer]
03:09linearcannon has joined #asahi
03:22kov has quit [Quit: Coyote finally caught me]
03:24PhilippvK has joined #asahi
03:28phiologe has quit [Ping timeout: 480 seconds]
03:34kov has joined #asahi
03:37user982492 has joined #asahi
03:53WindowPain has quit [Quit: ZNC 1.8.2+deb2~bpo10+1 - https://znc.in]
03:53WindowPain has joined #asahi
04:01WindowPain has quit [Quit: ZNC 1.8.2+deb2~bpo10+1 - https://znc.in]
04:01WindowPain has joined #asahi
04:02WindowPain has quit []
04:03WindowPain has joined #asahi
04:33Graypup_ has quit [Quit: meow]
04:33Graypup_ has joined #asahi
04:41linearcannon has quit [Read error: No route to host]
04:41linearcannon has joined #asahi
04:44marvin24 has joined #asahi
04:48marvin24_ has quit [Ping timeout: 480 seconds]
05:10Graypup_ has quit [Quit: meow]
05:10Graypup_ has joined #asahi
05:25vnogueira has quit [Remote host closed the connection]
05:41off^ has joined #asahi
05:43off^ has quit [Remote host closed the connection]
05:47Glanzmannzv: https://github.com/AsahiLinux/docs/wiki/Debian uses the asahi installer which was updated yesterday evening to support chainloading which was implemented by marcan yesterday.
05:48Glanzmannmarcan: Will you support a user supplied partition size for the root volume in the asahi installer, everyone tested the asahi installer tripped about this? Because most people only want to install one Linux distribution and use the total available size.
05:49Emantor has quit [Quit: ZNC - http://znc.in]
05:50Emantor has joined #asahi
05:52Glanzmannmofux[m]: /clear
05:52Glanzmannmofux[m]:
05:53Glanzmannmofux[m]: That is how you can try the current installer. I tried it yesterday evening and it worked for me. You only execute the first two commands, the one for resizing space and kicking off the installer.
05:53GlanzmannThan you select (1) for the alarm reference distribution.
05:54GlanzmannThere are currenly known issues with the wifi and the rootfs will only be 5 GB.
05:54GlanzmannSo either wait until this is fixed or have an ethernet dongle or another usb network card (cable or wifi) available.
06:14eroux has joined #asahi
06:32shenki has joined #asahi
06:39the_lanetly_052__ has joined #asahi
06:40jochum has quit [Ping timeout: 480 seconds]
06:46the_lanetly_052__ has quit []
07:24gladiac has joined #asahi
07:41landscape15[m]Glanzmann: From what I see I need both an esp partition and an EFI folder inside the Linux file system. Does this mean that I need to install grub inside the rootFS?
08:00kettenisyou're probably confused
08:00kettenisyou need an esp partition
08:01kettenissome/many/all linux distros then mount that partition and for that you need a directory as a mount point
08:01kettenisnot all linux distros use the same mountpoint, which leads to confused users on this channel ;)
08:03eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:14eroux has joined #asahi
08:14Glanzmannlandscape15[m]: So, you have three partitions.
08:15Glanzmannextra partitions: stub (m1n1); efi (grub binary; m1n1+dtb+u-boot to be chainloaded; wifi firmware); root (os, grub configuration)
08:15GlanzmannThe esp partition is mounted to /boot/efi on Debian.
08:16GlanzmannThis is the official asahi boot chain of course in theory you can do whatever you want including having no efi partition and using extlinux instead of grub to load the kernel. :-)
08:17GlanzmannThe benefit of the official asahi boot chain is that you can since yesterday update the m1n1, u-boot and device trees without needing to enter 1tr.
08:17Glanzmannlandscape15[m]: I'll now redo the asahi installer video.
08:23gsaker147 has joined #asahi
08:24gsaker147 has quit [Remote host closed the connection]
08:24gsaker147 has joined #asahi
08:25gsaker147 has quit []
08:27Gue___________________________ has joined #asahi
08:30jochum has joined #asahi
08:33Gues__________________________ has quit [Ping timeout: 480 seconds]
08:35user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:36joske has joined #asahi
08:37joskeis there any guidance on how to switch to the new chainload mechanism when you already have asahi linux? (i.e. without having to re-install)
08:37Glanzmannsven: I'm afraid to ask, but I yesterday build a distribution kernel, than I merged the sound patches from povik. And now I don't have usb3. Any ideas what could be wrong? https://pbot.rmdir.de/jBprokRK2w0Kyy2q7mjNZg config: tg.st/u/config-debian-distro-kernel-2022-03-09-4k
08:39Glanzmannjoske: But probably it is easier, if you just boot to 1tr and kmutil the m1n1 with chainload support.
08:39GlanzmannAnd before that create a directory on the esp.
08:39joskeGlanzmann: thx, where should the new m1n1 be on the ESP partition?
08:40joskeah: /boot/efi/m1n1/boot.bin ?
08:40GlanzmannAlso the guide above does not mention that you need to reinstall grub. But now it does.
08:40Glanzmannjoske: Yep.
08:40joskeok, seems easy enough :-)
08:40_jannau_joske: install m1n1-uboot in asahilinux and then update the the boot m1n1 in 1tr
08:41Glanzmannjoske: But I did not watch the stream yesterday so I don't know how to tell the rust m1n1 to tell which file it should chainload or if it is hardcoded.
08:41Glanzmannjannau: Yes, I think the guide is shit, but I wanted to see the new installer in action. :-)
08:42joskem1n1p-uboot should be the .bin and it should be in /boot/efi/m1n1?
08:42joskeand in 1TR you install the macho?
08:44Glanzmannjoske: I think, but not verified that tg.st/u/installer.tar.gz contains a m1n1.bin which needs to be in 1tr.
08:45_jannau_/boot/efi/m1n1/boot.bin but that should be done by the m1n1-uboot package
08:45_jannau_for the 1tr one you have to grab it from the installer or build yourself
08:45Glanzmannjoske: And for the u-boot you take the mkdir /boot/efi/m1n1; curl -sLo /boot/efi/m1n1/boot.bin tg.st/u/u-boot.bin
08:46joske_jannau_: m1n1-uboot package?
08:46_jannau_no, take the one from tha asailinux package
08:46Glanzmannjoske: I extracted it from the installer and put it here: https://tg.st/u/m1n1-rust.bin
08:47_jannau_joske: https://github.com/AsahiLinux/PKGBUILDs/tree/main/m1n1-uboot when you say asahilinux ina distro context I assume you have the asahilinux reference distro installed
08:48joskeno, I have manually installed manjaro linux long time ago
08:48joskebut that is arch based, so I can use the PKGBUILD
08:50joskeok, was able to install that package
08:51joskeoff to 1TR I go
08:51Glanzmannjoske: Let us know if it worked. :-)
08:53joske has quit [Remote host closed the connection]
08:57joske has joined #asahi
08:57joskeseems to have worked :-)
08:58Glanzmannjoske: Perfect, lets ship it.
08:58joskewell, I think, it went very fast, how can I know it chainloaded anything?
09:02joskeI don't think it chainloaded anything, maybe because the m1n1 in 1TR is newer or something?
09:03_jannau_if you updated the m1n1 in 1tr with one that chainloads a booting system is proof enough
09:04joske has quit [Remote host closed the connection]
09:07joske has joined #asahi
09:14johey has joined #asahi
09:24amw has quit [Ping timeout: 480 seconds]
09:27marvin24_ has joined #asahi
09:31marvin24 has quit [Ping timeout: 480 seconds]
09:31Glanzmannzv: Here is a new recording of the debian installer: https://tg.st/u/debian_asahi_installer.mp4
09:31Glanzmannthere were two trip wires in it.
09:31GlanzmannThe first one I solved, the second one I did not.
09:36Glanzmannzv: The second hickup is fixed as well. So now the debian asahi installer works out of the box.
09:38j`eywait, when running the installer from 1tr it doesnt need a reboot to set the startup disk?
09:39j`eyoh it happens at a later stage
09:40GlanzmannAlso my voice is garbled at the end. I was recording using obs on the air.
09:41GlanzmannI'll now cut out the stuff that went wrong because it is fixed.
09:45amw has joined #asahi
09:57bluetail[m]Glanzmann: did u use a video capture card ?
09:58bluetail[m]if it is just OBS, how does interfacing work, esp in between boot
10:01Glanzmannbluetail[m]: In the mini I have plugged in power, usb-c keyboard using an adapter, hdmi cable. On the macbook air I have plugged in hdmi grabber, mouse, usb headset. On the air I have obs for the recoding.
10:01Glanzmannzv: I also updated the wiki with the current steps for the Debian installer: https://github.com/AsahiLinux/docs/wiki/Debian
10:03mpsGlanzmann: does hdmi adapter on your image above work with asahi kernel
10:04GlanzmannThe air gets very hot whenever I run obs, also when I'm not recording.
10:04GlanzmannBut other than that I did most of my recordings on the air.
10:04GlanzmannThis time my voice got garbled at the end, never got that before.
10:04mpsGlanzmann: I have two with usb hub but none is detected by my kernel build
10:07GlanzmannHere are the kernel modules that it seems to use.
10:07mpsGlanzmann: just curious, are you a teacher/professor
10:09mpsGlanzmann: what 'xrandr -q' says on asahi when this adapter is plugged
10:09Glanzmannmps: I'm not professor, my father is. I'm giving a lot of it infrastructure trainings mostly VMware, Linux, Networking, AWS, Azure, Aliyun, NetApp, 3PAR, Storage, FibreChannel, OpenStack, Backup and other it infrastructure topics.
10:10Glanzmannmps: You mean on the mini?
10:10mpsGlanzmann: whichever
10:12mpsGlanzmann: I tried with kernel configs for this usb-c <-> hdmi which works fine on my two chromebooks, but can't get it to work on mbp
10:13mpsGlanzmann: I see just Screen 0
10:13Glanzmannmps: So I have cheap 3xusb-a + ethernet to usb-c dongle as switch on the macbook air. You can see it the picture. It also works with a usb-a to usb-c adapter you can also see in the picture (but here I use it for the keyboard).
10:13mpsGlanzmann: yes, I see it
10:13Glanzmannxrandr -q will now show you additional screens. If you want to watch the video from the usb grabber you need to look for /dev/video0 and so on.
10:14Glanzmannmps: You can use mpv /dev/video0 or obs or ffplay (I think that is what m a r c a n is using).
10:14mpsI have two similar devices, 3 usb-a, ethernet, hdmi, mmc and sdcard on them
10:15mpsbut none shows hdmi
10:16mpsone of them can't be even plugged in mbp, usb-c connector is somewhat wrongly dimensioned. only mallet could help :)
10:17mpsalso my son have one usb hub with hdmi but also doesn't work for me
10:18mpsthough one usb-c audio device works fine
10:18Glanzmannmps: I think you try it the other way around.
10:18GlanzmannSo you want to have a second monitor on the macbook?
10:18mpsGlanzmann: right
10:18GlanzmannThat does not work until some has fixed the dcp driver and everyone tells its a lot of work.
10:19Glanzmannmps: I'm doing the opposite. I'm recording the screen hdmi output of the mini on the macbook air.
10:19mpsaha, understand
10:19Glanzmannmps: Sven was trying to get it to work because it might be easier than he tought but than he suspended that work once he found out that there is also some sort of usb device.
10:19mpsanyway, I don't use external screen often, just wanted to check if it works
10:20Glanzmannmps: Neither do I.
10:21sveni “suspended” the work because I have a full time job that’s more important. I’m actually just still in the “understand how atcphy works” phase
10:21mpssven: no hurries
10:22sventhe usb device was just a curiosity. i wanted to know if it’s possible to have a DP-only mode configured
10:22mpssven: my two (actually three if count my son one) works with chromebooks
10:23svenno usb-c to Display port thingy will work on any M1 running Linux for now
10:23mpssven: ok, np
10:23svenThat requires at least both atcphy and DCP
10:24_jannau_sven: I believe my usb-c displayport adapter which doesn't show up as usb device is just dead
10:24svenI’ll have to read this usb spec again, won’t I? ;)
10:25mpsmy two works fine with mtk-drm and with rockchip-drm drivers on these chromebooks
10:25mpsdidn't tried with panfrost
10:26svenyeah, cause those already have drivers ;)
10:26mpsbtw, what DCP means
10:26sventhe display controller. There’s one for the hdmi Port / the MacBook screen
10:27svenand at least another one for the usb c ports
10:27sven(and one per usb c port for the max/pro/ultra)
10:27mpsso something like Display Controller Port'
10:27_jannau_are the alternate modes part of the usb spec? I thought those there part of vesa displayport specs
10:29svenpossibly, but USB4 (which this thing is) changes everything again
10:30svenand this thing also supports USB3 for backwards-compatibility ofc.
10:30svenit's still all a bit fuzzy in my head but we'll get there
10:31misteraftermath[m] has joined #asahi
10:31svenUSB4 tunnels the protocols instead of just mapping them to some lane afaict
10:37joheyGlanzmann: Hi! I just stumbled upon this channel just to find your video of a working Debian installation on the M1. Very cool! I read about Asahi Linux just a few weeks ago, and the current status back then was a bootloader able to start loading the kernel until there was a panic. I was thrilled enough to buy a Mac Mini for this, and now I realise how much has happened since. :)
10:49the_lanetly_052 has joined #asahi
10:57marcaner, I'm pretty sure we've been able to boot kernels to a working shell for a year+ now ;)
10:58mazyeah, I was able to boot an initramfs at about that time a year ago.
10:59joheyThat's cool! Then I have no idea what I saw. :D
11:02eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:04mpsI'm sure I can make kernel crash on boot now ;)
11:05joheyThat's a skill by its own.
11:06joheyIs there anywhere an up-to-date current status description of the project? What is working and not?
11:07mpsjohey: yes, on wiki
11:07mpsthough it is not updated to latest things I think
11:07Glanzmannmps: Backlight is missing.
11:08mpsand dpms?
11:10joheyOh, there it is! Wow... It looks to be pretty useful already.
11:13misteraftermath[m]Way more is supported than I was expecting, that’s for sure
11:22mpsI'm using MBP as primary workstation for nearly four months
11:22joheyMy Mac Mini has currently got the status of being my main work machine, so I'll keep myself from messing with it too much at the moment. Waiting for a 16" MBP though to render my MM redundant.
11:23mpsmisteraftermath[m]: yes, asahi kernel with alpine userspace
11:23joheyThat's very cool, mps!
11:23misteraftermath[m]Anything worth mentioning?
11:24mpsmisteraftermath[m]: no, no kidding, though first month and a half I use usb wifi and audio dongles
11:24joheyWiki says GPU is unsupported, but in Glanzmanns video he's running X. Is that some software rendering going on?
11:24mpss/use/used/
11:25mpsjohey: simpledrm is used for graphic
11:25mpsand it is pretty fast
11:28joheyOk. Quick googling. Seems like a software DRM layer over a framebuffer device. Good to hear it's fast enough to be usable.
11:31joheyHow far is Alyssa Rosenzweigs GPU discoveries from being usable?
11:40eroux has joined #asahi
11:54Glanzmannjohey: Alyssa is working on the userland and she has over 90% coverage. m a r c a n will probably soon write a gpu driver once the first release is done.
11:55joheyThat's awesome!
11:56chadmednote that that's 90% compliance in GLES2 dEQP
11:56chadmednot vulkan, not even desktop opengl
11:57chadmedits still pretty darn amazing though
11:57misteraftermath[m]Still a very very big step in the right direction
11:57chadmedbut just like dont expect to fire up box64 or fex and start playing pubg or something
11:57chadmedoh yeah for sure
12:09axboehi folks - I added the audio drivers yesterday, but seems it's not detected. probably something trival, what am I missing: pulled poviks, options look fine, and I did update the boot image with the new dtbs as well
12:10mpsaxboe: how did you pulled it? (I want to learn this trick)
12:10mpsgit remote add in asahi kernel repo?
12:11axboeyou don't need to add the repo, just git pull <url> into a branch forked off asahi
12:11mpsso simple, thanks
12:12axboe(I do often add a remote though, if I pull more than a few times)
12:15chadmedaxboe: modprobe apple-admac
12:15chadmedit doesnt get loaded automatically. povik's got a fix for it but he hasnt pushed afaik
12:15axboechadmed: I have it built-in
12:16chadmedoh that didnt work for me
12:16chadmedi built as a module and then added it to modules.load.d and it works on every boot now
12:16axboewell that's try that then :)
12:16mpschadmed: do we need some new kernel config options for speakers
12:16chadmedjust a fair warning though, do not play any sound through the speakers until youve turned them down in alsamixer. they start at 100% but theyre overdriven and playing sound at that volume will blow them up
12:17chadmedmps: depends on if you had the stuff built before. its all the same drivers
12:17mpschadmed: yes, I have working audio on jack
12:18chadmedyou might just need the tas2764 codec driver then
12:18mpsbut I have it built in kernel and from your msg above looks like it should be module
12:18chadmed yeah i couldnt get it to work
12:18axboechadmed: didn't seem to make a difference here :/
12:18mpsI have already tas2764
12:19chadmedyouve swapped out your device trees, yeah?
12:19chadmedit doesnt just work magically, there were dt changes
12:19axboeoh I'm an idiot, some dependency made it =y again - lemme check
12:19axboechadmed: yeah I know, I did mention that I did
12:19chadmedright yeah hm
12:20chadmedonly thing i can think of is building everything as modules, which is what i have and it works
12:20mpslets see will it work in-kernel, building now
12:20axboeit's the SND_SOC_APPLE* dependencies
12:20axboenow fixed, let's try again
12:22axboenope, all I see is:
12:22axboe[ 15.810811] apple-admac 39b400000.dma-controller: Adding to iommu group 5
12:22axboewhen I modprobe it
12:22axboeoh well, not a big deal right now, was just curious
12:22Glanzmannaxboe: Btw. I don't know if you heard, but marcan yesterday implement chainloading for m1n1. So you can now put a m1n1 in 1tr and it will chainload m1n1+dtb+u-boot object from the esp partion from m1n1/boot.bin so no more need to go 1tr on dtb updates.
12:23Glanzmannaxboe: povik has a similiar model you have, so probably it will be fixed soon and merged to asahi branch.
12:23axboeGlanzmann: yep did see that, and it's very cool! haven't played with it yet, but will surely make it more handy
12:23axboeGlanzmann: that's what I figured, since it's not THAT important for me, I'll just wait
12:25chadmedall thats loaded for me is snd-soc-apple-mca, snd-soc-apple-silicon snd-soc-simple-card and snd-soc-tas2764
12:25chadmedthose modules and their dependencies should be enough to bring the speakers up
12:27axboechadmed: might help if I actually load all the modules...
12:27chadmedeverything except apple-admac loads automatically for me
12:27mpsmarcan: I have this warning when building latest m1n1 https://tpaste.us/pnQw
12:28Glanzmannmps: This warning is there for a while. It is because the asahi logo is on the stack.
12:29GlanzmannAt least I assumed so.
12:29Glanzmannmps: Where you able to build this rust m1n1? I was lazy and just used the one from the asahi installer.
12:30mpsGlanzmann: yes, I remember it but now reported
12:30mpsGlanzmann: no, I didn't
12:30mpswill left this to someone who understand rust on alpine
12:32chadmedgod i just cant wait for gamma LUTs so night colour will work
12:33j`eyGlanzmann: did you use rustup to install rust?
12:33j`eyif so just: rustup target add aarch64-unknown-none-softfloat
12:33Glanzmannj`ey: Nope, I tried the debian package.
12:35j`eyI only know how to do it via rustup
12:39yuyichao_ has quit [Ping timeout: 480 seconds]
12:44Gue___________________________ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:45mpshmm, no sound with asahi-sound-wip
12:45Glanzmannj`ey: Okay, I now switched to rustup, but it got worse: https://pbot.rmdir.de/I3yxwn3Esva2Eg3lIPEQ8w
12:46Glanzmannmps: You need to update the device trees.
12:46mpsGlanzmann: I did
12:46Glanzmannmps: Also by default only the speakers work.
12:46eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:46mpsGlanzmann: did you build driver as module
12:47Glanzmannmps: I don't know. This is my config: tg.st/u/config-debian-distro-kernel-2022-03-09-4k
12:48mpsGlanzmann: thanks
12:49eroux has joined #asahi
12:50yuyichao_ has joined #asahi
12:53kovGlanzmann, I think I saw marcan have a similar issue
12:53kovfwiw on my fedora with rust installed with rustup everything just worked
12:54kovGlanzmann, did you do this one? <j`ey> if so just: rustup target add aarch64-unknown-none-softfloat
12:54kov(it's really weird it's using softfloat)
12:58GlanzmannYes, I did.
12:59Glanzmannkov: On which architecture are you building arm64 or amd64?
12:59GlanzmannI tried on arm64.
12:59mpsso, when build audio driver as modules they works
12:59mpsout-of-the-box
12:59GlanzmannI think the softfloat is just there so you don't need to use ieee floating point because the exception handling is possible very complicated.
13:00mpsbut now jack doesn't work
13:00Glanzmannmps: I think we have somewhere a big timing problem.
13:00Glanzmannmps: With wifi and also with audio.
13:00kovGlanzmann, arm64
13:00Glanzmannkov: I tried to the same but on Debian testing.
13:01_jannau_softfloat is used so that we don't need to deal with fp registers in m1n1, applies mostly to the hypervisor
13:01mpsGlanzmann: wifi works quite fine for me
13:01kovGlanzmann, any chance there are some remnants of the packaged rust being picked up?
13:01mpsaudio over jack is quite fine for someone with damaged hearing, i.e. me :)
13:04Glanzmannmps: For me, too. But others have issues.
13:05Glanzmannkov: I think I know the problem, I just looked into the m1n1 repository and marcan uses nightly.
13:05GlanzmannI of course choose stable.
13:06GlanzmannYep, that's it.
13:15mpsGlanzmann: afaik this will not work on alpine
13:16GlanzmannMaybe it does, give it a shot. :-)
13:17mpsGlanzmann: trust me, I was first who ported rust to alpine :)
13:17mpson aarch64 and armv7 I mean
13:20limegorilla[m] has joined #asahi
13:23miximps: why not? the rust project provides aarch64-unknown-linux-musl binaries at least, so for a m1-hosted alpine you should be able to install rustup
13:24mixiand from there the aarch64-unknown-none-softfp target libraries are only one command away
13:28mpsmixi: I did that, but didn't run rustup properly
13:29mpsmixi: no, I didn't this but install rust apk and then run rustup
13:30kovGlanzmann, the makefile specifies nightly though no?
13:30mpsmy main issue with rust is that I have aversion to touch it after experience two or three years ago when ported it
13:31kovyou can use rustup override set nightly to make it the default for only that project
13:31kovbut I thought I saw nightly being selected in the m1n1 makefile
13:33JeffMcWilliams[m] has joined #asahi
13:34Glanzmannkov: I saw in the yaml ci files.
13:36MajorBiscuit has joined #asahi
13:55j`eyGlanzmann: good that it works now!
14:03Glanzmannj`ey: Thanks, again. :-)
14:05mpsGlanzmann: did you built m1n1 for chainloading
14:08eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:10marcanyou all know you can just use the prebuilt binary if this rust thing is too confusing, right? :p
14:11marcangithub gives you builds with chainloading enabled: https://github.com/AsahiLinux/m1n1/actions/runs/1959188015
14:11marcanor just extract it from installer.tar.gz
14:13Glanzmannmarcan: I'm running the prebuild but wanted to document how to compile it.
14:13Glanzmannmarcan: I took it from the installer.tar.gz
14:13mpsmarcan: isn't installer source only
14:13mpsah, I see
14:14Glanzmannmps: You get can it from the fancy cdn.
14:14mpsGlanzmann: could you post url of installer tarball
14:14mpsGlanzmann: you are so fast
14:14Glanzmannor from tg.st/u/installer.tar.gz if you don't have forever. :-)
14:15mpsthis will good for now for me
14:15Glanzmannmps: I had it in my history because I adopted the debian image to the new chainloading installer.
14:15mpsGlanzmann: do I need to set specific UUID for ESP
14:17Glanzmannmps: No, I think by default it will just use the the efi partition.
14:18GlanzmannBut I have not tested that yet, I just took it out of the installer.tar.gz that is what I'm running.
14:18joskemps: must have the esp flag on the partition
14:18tpw_rulesmarcan: can you have the installer print the UUID for the ESP it creates? it would be good to have a way to unambiguously identify it during os setup for the "just give me UEFI" option
14:18mpsGlanzmann: joske: thank you
14:18marcantpw_rules: that's what /chosen/efi-partition is for
14:19marcanthat gives you the PARTUUID of the correct EFI partition
14:19marcaninstallers should be referencing that
14:19tpw_rulesok, that should be available in proc, shouldn't it
14:19marcan(as should u-boot, which isn't done yet)
14:20j`ey(it was suggested that efi-partition be renamed to something else)
14:20marcanwas it? I expected discussion on the name but I might've missed that
14:20marcanwas going to ask robher
14:22j`eymarcan: 16:43:07 < kettenis> marcan: that probably needs to become u-boot,efi-partition or asahi,efi-partition
14:22marcanoh, heh, didn't realize that
14:22marcanj`ey: ah yeah, vendor prefix or not is one of my questions
14:24mpsand m1n1.bin from installer is not macho container?
14:25mpskmutil configure-boot -c m1n1.bin -C -v /Volume/Linux will not work on 12.0 macos?
14:26matthewayers[m]Glanzmann: How screwed will I be if I try running the installer from the CDN on a M1 Max MBP? I am a bit confused about if it's included (since I saw it was in the linux-asahi branch, I'm not sure if it's included yet..?) The only features I'm after right now are built-in keyboard/mouse and wifi support.
14:26kettenismarcan: while we're bikeshedding about the property name, Linux uses a few linux,uefi-mmap-xxxx properties already
14:26kettenisDocumentation/arm/uefi.rst
14:27kettenisso maybe we should prefer uefi over efi in the name
14:30j`eymatthewayers[m]: m1 max works fine on the asahi branch
14:30matthewayers[m]j`ey: Is that the branch used for the CDN installer?
14:31marcanthe installer build is kind of broken right now, at least on the mini
14:31robhermarcan: I thought ESP is supposed to have a well known UUID.
14:32marcanrobher: the partuuid, not the typeuuid
14:32marcanwe have more than one so we need to be able to tell them apart
14:32_jannau_mps: macos 12.0 is not supported anymore. only macos 12.1 is supported, 12.3 to be added for mac studio
14:32matthewayers[m] * j`ey: Is that the branch used for the CDN installer?
14:32kettenisi'm still not completely sold on the idea to have more than one esp
14:32marcanit's the only thing that makes sense on these systems
14:33marcansince they have a very different concept of what an OS is from a real UEFI system
14:33j`eymatthewayers[m]: if you use the curl https://mrcn.st/alxsh | sh way, that's using markan's CDN (although CDN just means where it's hosted, so doesnt really matter?)
14:33marcanfunneling multiple stubs to a single EFI partition and back out to OSes is a very weird topology and then we need to start also having multiple vendor firmware copies in one partition, etc...
14:33marcanwe'd end up creating a monster of subdirectories and still have to have OSes figure out who they are
14:34marcandoesn't make any sense, just use separate partitions
14:34matthewayers[m]j`ey: Gotcha. I guess I'm trying to understand what branch is being used for the tarball
14:35matthewayers[m] * j`ey: Gotcha. I guess I'm trying to understand what branch is being used for the tarball
14:35marcanasahi, some recent commit thereof
14:36matthewayers[m]Got it, thanks marcan and j`ey for the info!
14:37j`eythe only thing you need to do before running the installer is to create some free space by resizing your current macOS install
14:38matthewayers[m]Right, that's what I'm doing right now
14:41mps_jannau_: thanks for info
14:45_jannau_not really a hard requirement for 12.1 but it simplifies m1n1 handling. if you build your own m1n1 you can continue with 12.0
14:45le0n_ is now known as le0n
14:47eroux has joined #asahi
14:50zvGlanzmann: thank you! this is fantastic.
14:52mps_jannau_: yes, I built m1n1 about hour ago and it works with 12.0
14:53mpsbut I don't know how to upgrade 1TR to 12.1 or up
14:53mpsI know very little about macos
14:56joske has quit [Quit: Leaving]
15:10matthewayers[m]Is there something I'm doing incorrectly with resizing the container? https://pastebin.com/vdyaYfHH
15:17tpw_rulesmatthewayers[m]: try to run disk utility first aid. back up important data first
15:23the_lanetly_052 has quit [Remote host closed the connection]
15:24the_lanetly_052 has joined #asahi
15:35espo has joined #asahi
15:49matthewayers[m]Looks like I fixed a corrupted section of one of the disks. Thanks tpw_rules for the recommendation!
16:02heli0s[m] has joined #asahi
16:09eroux has quit [Remote host closed the connection]
16:11plaer1[m] has joined #asahi
16:11the_lanetly_052 has quit [Quit: Leaving]
16:38Glanzmannmatthewayers[m]: The Debian/Asahi installer works: https://github.com/AsahiLinux/docs/wiki/Debian#soon-to-be-released-asahi-installer if you run into any problem, let me know.
16:39Glanzmannmatthewayers[m]: Do you know how you corrupted the disk? I never had such an issue.
16:42Glanzmannmps: Do you still have macos on your macbook?
16:45matthewayers[m]Glanzmann: I have no clue how I corrupted my disk but I'm glad I fixed it! Probably Zoom or some sort of other invasive software trying to mine my data
16:53user982492 has joined #asahi
16:56eroux has joined #asahi
16:58mpsGlanzmann: yes, I didn't touched macos after upgrade to 12.0
16:59matthewayers[m]<Glanzmann> "matthewayers: The Debian/Asahi..." <- Will do!
17:00Glanzmannmps: I see, if you want to upgrade the stub to 12.1, you first need to upgrade the macos. Than you can just delete the stub partition in Linux or macos (diskutil apfs deleteContainer), use the asahi installer to install m1n1 and than you do the usual dance.
17:00Glanzmannmatthewayers[m]: If you run into trouble let me know. I tested it, but maybe I missed something.
17:01mpsGlanzmann: would this delete my linux FS
17:02Glanzmannmps: Nope.
17:02mpsGlanzmann: aha, good. and ESP will be intact?
17:02jannaube careful, the installer changed the stub partition size slightly
17:03jannauso the existing stub partition might be too small
17:03mpsI planed to actually archive all things and recreate everything but can't find time for this
17:04Glanzmannmps: Can you send me the output from 'parted /dev/nvme0n1 print'?
17:04mpsactually I think I could upgrade macos and then use it as stub partition to boot linux. I think this is posible
17:05mpsGlanzmann: here it is https://tpaste.us/WQaM
17:09opticronall the stuff I have on my install is trivial, so I'm happy enough to blow it away when I switch over to the release installer
17:19Glanzmannjannau: In case of mps, the stub partition got a lot smaller. He currently has the legacy 80 GB stub partition. :-)
17:19Glanzmannmps: So mps, you don't have the stub but the second complete macos install. So I would the following: nuke the 80 GB partition.
17:19GlanzmannUse the asahi installer to install the stub.
17:19j`eyjannau: since when? I thought it was always 2.5G
17:20Glanzmannjannau: For me it is: 2501MB
17:20Glanzmannmps: Than I would install u-boot and use the debian live system and than use gpart to move your root filesystem directly behind the stub and extend it.
17:20GlanzmannAnd than the usual thing you do.
17:23mpsGlanzmann: aha, I thought about something similar, though I don't need big partition for linux
17:23mpswill try to find some time over weekend for this
17:23zvI can confirm that the installer (after ensuring only free-space was available with nothing else beyond stock layout) worked perfectly. I've put that mac mini in a data center and am confident in its ability to reboot reliably. nicely done all around.
17:24Glanzmannzv: Thank you for the feedback.
17:25Glanzmannzv: For me I also never had issues rebooting the mini remotely.
17:29user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:38___nick___ has joined #asahi
17:45MajorBiscuit has quit [Ping timeout: 480 seconds]
17:54eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:56Glanzmannjannau: Thank, I missed that, too.
18:02j`eyI suppose if the stub is just before EFI, its not so bad if you have to erase stub+efi to rejig the sizes
18:03Glanzmannj`ey: You don't have, too there is also the old 'm1n1' stub version, but yes, of course you can do that. I did that yesterday.
18:08user982492 has joined #asahi
18:10Glanzmannzv: Btw. the kernel on the debian is 4k. If you need a 16k kernel, let me know. In the future I'll build two flavors 4k and 16k. With 4k more software works, 16k is faster for compiling.
18:13matthewayers[m]Glanzmann: I keep having some message `spi-hid-apple-of spi0.0: Read package crc mismatch` come up randomly in Debian
18:13matthewayers[m]I’m hesitant to set the root password if this is randomly popping up when I try to type
18:15j`eyit keeps happening?
18:18matthewayers[m]Yeah… It’s been a hot minute since I’ve used a Debian-based distribution without a desktop environment. This is expected behavior, to just have stuff printing out while interacting with the shell, right?
18:18j`eyit often happens on boot,just once though
18:19matthewayers[m]I noticed a ton of out put when I unplugged my iPad from my computer.. haha
18:19matthewayers[m]s/out/output/, s/put//
18:19tpw_rulesit's not going to like type into your root password
18:19tpw_rulesbut that message does happen to be from the keyboard driver
18:23Glanzmannmatthewayers[m]: You can ignore this messages.
18:24Glanzmannmatthewayers[m]: If you can change your root password, that is good, that means the installer is working for you?
18:26landscape15[m]Glanzmann: thanks for the information. I’m trying to run Debian instead of Arch, since it’s not my main distro. How does chainloading work? Since there are two boot.bin (one inside the APFS container which is set as the boot object, and the other inside the esp partition).
18:26Glanzmannmatthewayers[m]: I pick a patch from axboe to kill the messages in my tree.
18:26user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:27Glanzmannlandscape15[m]: The installer puts the rust m1n1 to start up when you select the 'asahi' partition in the boot picker.
18:27landscape15[m]<Glanzmann> "The benefit of the official..." <- well, you still need to update the main boot object (the one inside the APFS container)
18:27GlanzmannThis boot object searches for a esp partition and loads m1n1/boot.bin
18:27GlanzmannThis boot.bin contains m1n1+dtbs+u-boot in one binary object.
18:28GlanzmannU-boot loads grub from the esp partition, grub loads the menu, kernel and initrd and starts Linux.
18:29GlanzmannThat is everything what you need to do. You can watch that with mpv/iina or a browser and scroll around if you don't want to waste 17 minutes of your live. :-)
18:29mpswhat happened with Quickstart guide on wiki, I can't find it
18:30landscape15[m]Glanzmann: thanks now I get it. This means you don’t need to ever update the low level boot object. Unfortunately I don’t have much time due to day job ;) but I’ll take a look at the video
18:32mpslandscape15[m]: I see this
18:33mpsbut it missing parts how to do all setup manually
18:34j`eywhat bit do you want to do manually?
18:35mpsj`ey: all, my preferred method to work with machines
18:35mpsbut ok, I could read setup shell script
18:36j`eymps: doing the stub by hand is obviously a bit of a pain, but you can just install macOS fully as you did before the installer existed
18:37mpslandscape15[m]: ah thanks, I lost this url
18:38mpsj`ey: yes. but still like to have option to do things 'by hand'
18:39j`eyby hand means dowloading the ipsw and extracing the various parts
18:39j`eyif you want the 2.5G stub that is
18:39j`eyif you dont care about losingg 70-80G you can do a full macOS install
18:41mpsj`ey: not sure, I forgot details, but feel that having 'by hand' option is safe one
18:41matthewayers[m]Alright, new error when I try to resize the partition using parted. Following along in the video, I typed in `resizepart 5 91.9GB` (which is how much free space I have available) and I received the error below:
18:41matthewayers[m]`Error: Can’t have the end before the start! (start sector=219296367 length=-196884257)`
18:41Glanzmannmatthewayers[m]: Please post the output of parted /dev/nvme0n1 print free
18:41j`eymps: i did everything else by hand, just not creating the stub, thats not worth doing by hand for me
18:41Glanzmannj`ey: I agree.
18:43mpsj`ey: hmm, maybe you are right, I did this just once so not sure is worth to try again
18:43mpsI should watch again Glanzmann's installer video
18:45Glanzmannmps: So in my installer video you would choose option 4 or whatever is the last options, than you get the old behaviour. But you will save 77.5 GB.
18:46Glanzmannmatthewayers[m]: You need to type resizepart 5 995GB
18:46Glanzmannyou confused 'end' with 'size'.
18:46GlanzmannOr did I put it wrong in the wiki, let me check.
18:47matthewayers[m]I’m pretty sure I confused ‘end’ with ‘size’
18:47GlanzmannYes, you did.
18:47Glanzmannmatthewayers[m]: But parted doesn't do anything stupid, at least it never did for me, so just do it right and it will be ok.
18:50Glanzmannmatthewayers[m]: I rebuild the kernel with patch I mentioned previously. So if you want this kernel, you can update it by executing the following command as root: curl -sL tg.st/u/ksh | bash
18:50landscape15[m]Glanzmann: If I put my own boot object as m1n1/boot.bin, I don’t need to set it into 1TR right?
18:50GlanzmannThis deinstalls the old kernel and puts the new one and in addition to that put a new m1n1/dtbs/u-boot.
18:50Glanzmannlandscape15[m]: That is correct.
18:51landscape15[m]Thanks, this is a lot more useful. Now we only need a fancy gui :)
18:51Glanzmannlandscape15[m]: So the only thing you need the installer, if marcan decides we update the firmware version, which will be in approx 2 weeks when his studio arives.
18:52Glanzmannlandscape15[m]: I dont' need a gui, I think it is pretty good. What I miss in the installer is two things: 'update the stub' and ask the user for the size of the root partition. But I assume marcan will implement that soon.
18:54landscape15[m]Yeah i also think it’s good as it is. Is there already a firmware update tool?
18:55Glanzmannlandscape15[m]: Nope, at the moment, you update macos, than you delete the stub partition and use the installer to recreate it.
18:56landscape15[m]Glanzmann: I mean only to update m1n1>dtb>uboot
18:56Glanzmannlandscape15[m]: And at least one guy in here told that he wiped in the process his mac in here, but I don't understood how he managed to do this, it happend multiple times to him. But if you delete the right 2.5GB partition, this is an easy operation.
18:57Glanzmannlandscape15[m]: I'm waiting for marcan on this one. I assume he will either package it with the kernel or as a seperate package. For me I currently don't maintain a debian repository for the kernel. Maybe I'll update it later, but for now it is up to the user to ugprade the kernel and the object.
18:59landscape15[m]In order to update the stub I usually run the installer first, and then delete the previous container, but it’s not optimal
19:44jannauit takes the dtb from u-boot
19:47jannauit installs updates to /boot/efi/m1n1/. it has to be updated in unison with the kernel for breaking dts changes. for non-breaking ones it of course updated too if kernel changes need dts updates
19:47GlanzmannI see, so two packages, one for u-boot and one for the kernel.
19:47Glanzmannjannau: Thanks for the clarification.
19:48mpsjannau: nice, I could add this to m1n1 in my alpine aports
19:49Glanzmannjannau: The Debian guys I talked to, were against packaging yet another version of u-boot. But in the end it will not matter because by the time it is upstream the dtb changes come down a bit.
19:50Glanzmannjannau: m a r c a n seems to take the dtb from u-boot. I take it from the kernel, is that still okay, or should I also switch to dtbs from u-boot?
19:51j`eymps: You could try this if you want rust/chainloading https://termbin.com/hhaaf since alpine cant cross build I havent tried it properly yet
19:51j`eybut it seems to at least get the right rustup
19:52mpsj`ey: I tried today with rustup but got same problem as with installing rust
19:55jannauGlanzmann: I don't see a way around that if debian want to be able to update the dts/kernel
19:56jannauGlanzmann: using the kernel dtb is fine. the dts should be identical to u-boot and m1n1 adds the u-boot specific bits
19:59Glanzmannjannau: Okay, than I leave it like that.
19:59mpsj`ey: I applied patch and it builds, but didn't tried rust part
20:03j`eymps: just realised that you also have to add all the other submodules..
20:03mpsj`ey: yes
20:04jelly has quit [Remote host closed the connection]
20:08jelly has joined #asahi
20:35arnidg[m]I'm watching the VODs for Hector's chainloading livestreams and I have a question. Is my understanding correct that the boot ordering will be iBoot -> m1n1 (old version) -> m1n1 (newer version from distro) -> uBoot -> GRUB -> Linux?
20:35arnidg[m]If so, is the purpose of the old version booting the new version from the distro that the new version can "update" the old version?
20:35arnidg[m]Otherwise, what is the purpose of chainloading more concretely?
20:36j`eyyes it's so distros can update u-boot / device trees
20:36j`ey(by replacing a file on the ESP partition(
20:37arnidg[m]Would it not be possible to update u-boot / device trees by having only one m1n1?
20:38j`eyyes but only going via 1TR
20:38j`eywhich means rebooting into a special mode and running commands etc
20:38jannauupdating the m1n1 binary booted by iboot requires updating it via 1TR
20:39arnidg[m]ah, I see. But could the m1n1 binary booted by iBoot not know how to update u-boot as well?
20:39arnidg[m]Or is the idea to make it more future proof (maybe the way you need to update u-boot changes)
20:40jannauchainloading also allows updating m1n1
20:40arnidg[m]ok that makes sense. thanks.
20:41jannauwhich miht be required for transferring information from ADT to the devicetree
20:42henje[m]janau: so the first m1n1 is not located on the esp?
20:45jannauyes, it is installed by kmutil so that iboot (apples bootloader) can read it
20:46j`ey(sorry if I confused things, I meant nope it is not..)
20:47henje[m]j`ey: Thx, I got that
20:49milek7can macos be removed? (ie. only leave macos stub for m1n1)
20:50jannauit can be removed but it's not adviseable at this point since it is required to to update the system firmware
20:56gladiac has quit [Quit: k thx bye]
21:01jelly has quit []
21:08___nick___ has quit [Ping timeout: 480 seconds]
21:13snekdid y'all stop doing the blog posts?
21:13jnthere will be one along with the official (alpha? beta?) release of the installer
21:13jnas far as i've heard
21:13kettenisyes, we prefer to write code ;)
21:13opticronit's intermittent and they usually come at good stopping points
21:14jelly has joined #asahi
21:15snekyeah fair enough, i just liked reading them :0
21:16snekhow is battery life and scheduling on apple silicon
21:22linearcannon has quit [Read error: Connection reset by peer]
21:41jelly has quit [Ping timeout: 480 seconds]
21:50jelly has joined #asahi
21:56konradybcio has joined #asahi
22:13opticronon my 14" m1max mbp, the battery stats claim >6h at "idle" (CPU rendering under gnome3) and 92% battery
22:14opticronso better than my current daily driver
22:46Gues__________________________ has joined #asahi
23:02sheepgoose has quit [Ping timeout: 480 seconds]
23:03V has quit [Ping timeout: 480 seconds]
23:14sheepgoose has joined #asahi
23:40V has joined #asahi
…