ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
benzmac16v has joined #asahi-alt
Dcow has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
Dcow has quit [Quit: dcow]
Dcow has joined #asahi-alt
Dcow has quit [Quit: dcow]
jacksonchen666 has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi-alt
ma1 has joined #asahi-alt
jamespmorgan has joined #asahi-alt
ma has quit [Ping timeout: 480 seconds]
jamespmo_ has quit [Ping timeout: 480 seconds]
benzmac16v has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
benzmac16v has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
benzmac16v has joined #asahi-alt
benzmac16v has quit []
tobhe_ has joined #asahi-alt
tobhe has quit [Ping timeout: 481 seconds]
benzmac16v has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
benzmac16v has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
benzmac16v has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
benzmac16v has joined #asahi-alt
benzmac16v has quit [Remote host closed the connection]
j`ey has quit [Server closed connection]
j`ey has joined #asahi-alt
jannau has quit [Server closed connection]
jannau has joined #asahi-alt
sven has quit [Server closed connection]
sven has joined #asahi-alt
chadmed_ has joined #asahi-alt
chadmed_ has quit [Remote host closed the connection]
chadmed_ has joined #asahi-alt
sneak has quit [Server closed connection]
sneak has joined #asahi-alt
TellowKrinkle has quit [Server closed connection]
TellowKrinkle has joined #asahi-alt
highvoltage[m] has quit [Server closed connection]
chadmed_ has quit [Remote host closed the connection]
lawrence has quit [Remote host closed the connection]
lawrence has joined #asahi-alt
ma2 has joined #asahi-alt
ma1 has quit [Ping timeout: 480 seconds]
ma2 has quit [Ping timeout: 480 seconds]
Glanzmann has joined #asahi-alt
ma2 has joined #asahi-alt
benzmac16v has joined #asahi-alt
ma2 has quit [Ping timeout: 480 seconds]
<cy8aer>
Glanzmann: I wonder if it would be worthwhile to put the dcp kernel on the debian-installer stick? With asahi_drm it should not have these text mode changing problems anymore.
benzmac16v has quit [Ping timeout: 480 seconds]
<Glanzmann>
cy8aer: I think I rather wait until it is in the asahi distribution, because it is still now very widely tested.
<Glanzmann>
And I thought the font is big enough to read.
ma2 has joined #asahi-alt
ma3 has joined #asahi-alt
<Glanzmann>
not*
ma2 has quit [Ping timeout: 480 seconds]
<cy8aer>
sounds reasonable
Chainfire has joined #asahi-alt
<Chainfire>
thx @Glanzmann. Trying it now
<Glanzmann>
Chainfire: Let me know, how it goes.
Dcow has joined #asahi-alt
Chainfire has quit [Remote host closed the connection]
Chainfire has joined #asahi-alt
<Chainfire>
@Glanzmann> works like a charm. Any plans to make a full desktop image a la what Debian has for amd64 ?
<Glanzmann>
Chainfire: Not really, I mean you can just install the packages you want including the desktop environmnt. So I don't see the reason to do so.
<Glanzmann>
Btw, I updated the Debian kernel to match the asahi one. Still no dcp or gpu. Someone requested that I publish all kernel packages. They can be found here: https://thomas.glanzmann.de/asahi/2022-12-04/
<Chainfire>
oh yeah its just a mild inconvenience I have to do that manually the once every 6 months I use this haha. Thanks for your work on that, that's twice it saved my bacon
Dcow has quit [Quit: dcow]
<Chainfire>
So the reason the old version (made probably >6 months ago) stopped working is probably that m1n1 file?
<Glanzmann>
Chainfire: The kernel need to match the device tree which is besides m1n1 and u-boot in the boot.bin file. So if the kernel is incompatible to the device tree it won't boot or do stupid things or does not detect hardware or god knows what.
<Chainfire>
Gotcha
<Glanzmann>
Chainfire: In the far future the device tree will hopefully stabilize and also be downward compatible, but currently it isn't.
benzmac16v has joined #asahi-alt
benzmac16v has quit [Ping timeout: 480 seconds]
<Chainfire>
Glanzmann> suggestions: (1) change docs to include doing an 'apt update' before 'apt-get install' because it just failed without that (2) put the url to the docs in the login message
<Glanzmann>
Chainfire: I added the 'apt-get update' everywhere. When you log in there is a file called quickstart.txt which contains all information necessary.
Chainfire has quit [Remote host closed the connection]
Dcow has joined #asahi-alt
janrinze has joined #asahi-alt
<janrinze>
Glanzmann: the issue with u-boot is that is scans for EFI partitions and does not know which was the intended one.
<janrinze>
I solved my issues by using the same boot.bin and BOOTAA64.EFI on both EFI partitions. also needed to have the same grub version and files on ARCH and Debian partitions.
<janrinze>
op top of that need to have the same kernel on both ARCH and Debian
<janrinze>
makes me wonder if it's easier to have one EFI partition and use that for all Linux installations.
<janrinze>
also that EFI partition could host the whole /boot directory..
<janrinze>
just a thought..
<Glanzmann>
janrinze: The general idea is to have on esp partitio. Asahi is special.
<janrinze>
sidenote : ARCH and Debian can't share the same initrd.img because those work differently on each distribution.
<Glanzmann>
You can use the esp as /boot but most distributions do it differently.
<janrinze>
sven: u-boot scanning for EFI partitions might not be compatible with the description in that link.
<sven>
the one shipped with the official asahi installer?
<sven>
I doubt that
jacksonchen666_ has joined #asahi-alt
<Glanzmann>
janrinze: Jannau wrote a patch that tells u-boot for which esp to look for. I reverted that patch in the Debian installer.
<Glanzmann>
janrinze: So with asahi boot.bin you're good with debian you aren't. Until you start shuffling parition numbers, because I think Debian as well as Asahi grub have the partition number (not uuid) hardcoded in the efi binary: strings /boot/efi/EFI/BOOT/BOOTAA64.EFI | tail -1 | pbot - > https://pbot.rmdir.de/h0Jz-cz3E9CeShztJLQ0jA
jacksonchen666 has quit [Ping timeout: 480 seconds]
<Glanzmann>
I updated the Debian kernel again - forgot to do a pull and ended up with an old version. All the other artefacts are also rebuild.
jacksonchen666_ is now known as jacksonchen666
<janrinze>
Glanzmann: yup.. so if after Asahi installation we should not resize the OSX partition again when installing another Linux OS.
<janrinze>
Glanzmann: because that will reshuffle the partition numbering.
<mps>
Glanzmann: replied, but forgot add 'fell free to ask for explanation about APKBUILDs'
<Glanzmann>
mps: THanks.
<janrinze>
sven: you are sure that PARTUUID/UUID is used throughout in Asahi Linux boot process?
<Glanzmann>
janrinze: Exactly. When you add additional installations they need to be added behind the current installation, otherwise you need to install grub. In addition to that the u-boot that is shipped by me always picks the first esp. OpenBSD does the same.
<Glanzmann>
janrinze: THe patch that j'ey just posted is used as the following m1n1.bin passes the part uuid of the esp to 'boot.bin aka m1n1 stage2' u-boot picks than the right esp. However if the partition numbers are shuffled than grub might pick the wrong boot partition. I know that marcan tried to use the partuuid by that. An Debian did that previously but currently nolonger does that (maybe because I use
<janrinze>
j`ey: so the issue was that Debian install did not comply with that way of working for u-boot. Correct?
<Glanzmann>
it wrong or differently than before).
<janrinze>
Glanzmann: the patch is from july 11th, was that the one you reverted?
<Glanzmann>
janrinze: I think you had two issues: 1) debian u-boot picks first esp. 2). You first installed asahi, than made macos smaller and installed Debian. By doing that you shuffled the partition numbers which made the asahi grub choke on.
<Glanzmann>
janrinze: Yes. It is a patch that is only used by asahi. Upstream u-boot, bsd and Debian and Fedora version does not use it, don't know about the others.
<janrinze>
Glanzmann: hard to remember if my Asahi install was older than the patch from j`ey. If it was there was no way this could be prevented.
<Glanzmann>
The reason I don't use it because Debian was available before the the patch and I did not want to annoy existing users. But the patch from jannau is very careful. If no esp part uuid is specified or it can't find it it lets the user know what to do.
<janrinze>
j`ey: in general Asahi Linux installations after the adoptin of your patch should not be having any trouble such as the one I experienced, right?
<Glanzmann>
janrinze: It depends on if you installed before or after the alpha release.
<Glanzmann>
The patch was added last minute to the alpha release.
<jannau>
janrinze: it was just committed in that branch on july 11th, the change was included in every asahi release since the alpha release
<Glanzmann>
janrinze: And you installed in the summer, so you already had the pathc.
<janrinze>
jannau: and grub, did that have a ,gtp5 reference?
<Glanzmann>
janrinze: Jannau pasted a strings from the grub.efi the other day. THere you could see two references. One ussing the uuid and one using the partition number.
<Glanzmann>
Let me get my wifes notebook and reproduce what you did.
<jannau>
commit has an author date of 20th february 2022
<janrinze>
Glanzmann: make backups first ;-)
<mps>
janrinze: not sure for debian grub but usually grub-install embeds partition in bootefi
<mps>
BOOTAA64.EFI*
<janrinze>
mps: seems it's inside grub binary as a sting
<janrinze>
oop string
<janrinze>
oops...
<mps>
yes, grub-install set it
<janrinze>
where do i find grub-install?
<mps>
in grub pkg
<jannau>
the problem is that the path to the config is using hte partition number
<Glanzmann>
janrinze: This is why I use my wifes laptop, than I don't have to.
<janrinze>
jannau: not just the config , the grub modules too
<janrinze>
jannau: and if these modules don't match the version of grub then a lot more erros can be seen
<Glanzmann>
janrinze: THank you for clarifying.
<janrinze>
found out a lot of stuff.. can almost setup everything manually now ;-)
<Glanzmann>
janrinze: Perfect. That is how it should be. I thought about making a video explaining how to troubleshoot the different issues (manually upgrading the stub, reinstalling grub, exchanging u-boot, reinstalling the kernel, etc.)
<mps>
janrinze: this are my scripts to install alpine with asahi kernel on usb
<jannau>
from what I remember from the strings it was just the config, could be that grub needs the config to find its modules
<Glanzmann>
janrinze: Debian live system is you friend. I like the Debian live cd so much, that I build an amd64 version of it (optionally with my desktop config). So I can turn any machine into my machine running from RAM in 60 - 120 seconds. I use that everytime I need a live system as well as when delivering trainings in training centers.
<janrinze>
jannau: there's no way how grub would know where to load the modules but from the search paths
<janrinze>
jannau: unless, like u-boot, it receives a config from the party that started grub.
<janrinze>
it's quite a complicated tree of dependencies. I might just have scratched the surface..
<Glanzmann>
janrinze: Yes it is and unconvient. But the future will be bright. :-)
jamespmorgan has joined #asahi-alt
<janrinze>
Glanzmann: a port of UEFI bootloader could befeasible for M1?
<j`ey>
janrinze: u-boot is already UEFI
<Glanzmann>
u-boot is out uefi boot loader.
<Glanzmann>
our*
<janrinze>
Glanzmann: then u-boot can start windows 11?
jamespmo_ has quit [Ping timeout: 480 seconds]
<j`ey>
no because windows 11 doesnt support m2
<j`ey>
*m1
<Glanzmann>
janrinze: Yes, but not on apple silicon: git reset --hard asahi-v2022.10-1; git clean -f -x -d &> /dev/null