marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | Not ready for end users / self contained install yet. Soon. | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
<chadmed> matthewayers[m]: thanks, i like to inject a bit of joviality into what i do. keeps it engaging for everyone
<chadmed> marcan: my old macbook also defaulted to katakana for some reason under linux. i found the only sane way to use it was just use romaji and mozc, but if you have a hiragana keyboard thats not really going to fly. it should Just Work(tm)
yuyichao has quit [Ping timeout: 480 seconds]
<marcan> chadmed: nobody actually uses the hiragana in a hiragana keyboard though
<marcan> it's mostly for show
<marcan> and those who do want it will set it up in their IME
<marcan> kana mode raw input is useless
yuyichao has joined #asahi
PaterTemporalis has quit [Ping timeout: 480 seconds]
hizon has joined #asahi
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
phiologe has quit [Ping timeout: 480 seconds]
<dan[m]123> Can you install from the live media?
<dan[m]123> debian-installer is giving me issues
phiologe has joined #asahi
<Dcow[m]1> Looks like first run scripts failed to run due it took me too long to decide on time zone
<Dcow[m]1> marcan:^
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
apg has joined #asahi
gladiac has joined #asahi
<Glanzmann> dan[m]123:
<Glanzmann> dan[m]123: You can install from the live media.
<Glanzmann> dan[m]123: Have you tried the asahi debian installer, it should work out of the box: https://github.com/AsahiLinux/docs/wiki/Debian#soon-to-be-released-asahi-installer
<Glanzmann> dan[m]123: If you want to install from the live media, you have to do the following: https://tg.st/u/manually_debian_efi_m1.txt
<Glanzmann> These instructions are untested.
<Glanzmann> So if you don't understand what they do, don't try it. I'll record a video later and test the instructions and will modify if I forgot something.
<Glanzmann> dan[m]123: And if the debian installer is giving you issues, can you send an error message or picture and tell what the issues are so that I can address them?
<Glanzmann> dan[m]123: I forgot to install the kernel in the instructions, updated.
<Glanzmann> marcan: tg.st/u/0001-Entry-for-Debian-bookworm.patch updated patch to reflect that this is not from asahi but by an individual.
mps has quit [Ping timeout: 480 seconds]
timokrgr has quit [Quit: User left the chat]
mps has joined #asahi
timokrgr has joined #asahi
the_lanetly_052 has joined #asahi
sheepgoose_ has quit [Ping timeout: 480 seconds]
<marcan> Dcow[m]1: I'm getting rid of that firstboot thing already, I ran into the same problem with arch
<marcan> I don't like it anyway
<marcan> I'm disabling the prompts entirely
<bluetail[m]> Will network over thunderbolt be a thing? (Thunderbolt bridge) in debian
<marcan> bluetail[m]: once thunderbolt is supported, sure
<bluetail[m]> Ok that was fast. I see. SO today I am going to test that. I actually bought a tb4 hub to connect my mac mini to my windows laptop in a second network
<marcan> thunderbolt is not supported
<marcan> *once* thunderbolt is supported, sure
<bluetail[m]> So I hope I can reach the network it with 10gbps, leaving the other DAS drives be at their usb 3.1 gen 2 limit... Currently 460mb/s single drive and around 600 multi drives
<bluetail[m]> I know sounds weird
<bluetail[m]> but my DAS enclosure is topping out
<marcan> oh you mean testing on macos?
<bluetail[m]> yea, I do that today. macOS <-> Windows
<marcan> sure
<bluetail[m]> I report back and tell you guys if its reliable. I never used a tb bridge and my lenovo t490 did reject a straight cable through cause its also its charging + data port, so I bought a hub
<marcan> straight through cables should work... if they don't then something is not complying with the standard
<bluetail[m]> As I said, my lenovo laptop charges through a single usb c type connector
<bluetail[m]> the mac mini doesnt provide enough power
<bluetail[m]> and it is looping through not enough power instead of providing a tb bridge
<bluetail[m]> also I would my laptop always charged
<bluetail[m]> so a hub is more likely to what I want
<Glanzmann> bluetail[m]: I had once as well.
<Glanzmann> bluetail[m]: I plugged in the charger first and than put an additional cable.
MajorBiscuit has joined #asahi
MajorBiscuit has quit []
MajorBiscuit has joined #asahi
ChaosPrincess has joined #asahi
ciggi_ has quit [Ping timeout: 480 seconds]
<mps> marcan: do you have somewhere kernel config for latest asahi branch with which display works
<j`ey> mps: are you using the same config as previously?
<mps> j`ey: yes, I copied config which works and rebuild latest branch
<mps> but display is blank
<j`ey> can you rebuild the old branch?
<mps> probably
<mps> would that somehow help?
<j`ey> well that would show if it really was just due to the new kernel
<mps> aha, yes
<j`ey> the old branch has hash a90a4472ece3167409168aab7c5010fe0eba8bb9
<mps> j`ey: thanks
ciggi has joined #asahi
<Glanzmann> mps: tg.st/u/config-2022-03-15-4k
kameks has joined #asahi
<mps> Glanzmann: thank you
<Glanzmann> mps: This kernel config works for me and others with the new branch.
<mps> I see only CONFIG_FB_EFI=y difference, related to graphic
<Glanzmann> mps: One or two weeks ago, I also fought with that.
Venhal has joined #asahi
<Glanzmann> For me, I have to fbs, one efi and one simpledrm. See here: https://pbot.rmdir.de/6d24QAI6WJqP7-0yAVX7Cw grep for 'fb0' and 'fb1'.
<Glanzmann> You apparently need both, if you want grapics.
<mps> I have only /dev/fb0, and it works with previous kernels
<Glanzmann> I ran into this problem when I tried to build a 'distro kernel'.
<Glanzmann> Along with other things.
<j`ey> mps: heres all my =y options that mention drm/fb: https://termbin.com/wtfq
<Glanzmann> j`ey: Send us your =m options as well, or are you still run monolithic?
<j`ey> mono
<Glanzmann> marcan: Btw, will the installer always have the fixed partition size of '5 GB' or will you let the user change it to occupy all free disk space for root?
<Glanzmann> j`ey: About the CONFIG_FB_CFB_* and CONFIG_FB_SYS_* will that speed up things?
<j`ey> Glanzmann: those werent selected manually, must have been a dependency
<Glanzmann> marcan: I see, thanks.
apg has quit [Ping timeout: 480 seconds]
<Glanzmann> j`ey: I see.
Mrmaxmeier has quit [Quit: The Lounge - https://thelounge.chat]
Mrmaxmeier has joined #asahi
<mps> j`ey: I already have all these as =y
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<j`ey> then I still suggest trying the old kernel. it at least gives a data point
chengsun_ has joined #asahi
chengsun has quit [Ping timeout: 480 seconds]
ciggi_ has joined #asahi
<mps> j`ey: display doesn't work also with a90a4472ece3167409168aab7c5010fe0eba8bb9 commit
<j`ey> hm, even if something panics the screen should come up early enough
ciggi has quit [Ping timeout: 480 seconds]
darkapex has quit [Ping timeout: 480 seconds]
darkapex has joined #asahi
eroux has joined #asahi
<mps> something is changed in 5.17-rc7 which I can't find
<mps> 5.17-rc6 based asahi works
<j`ey> do you know which hash?
<j`ey> as in, can you rebuild that and verify?
<mps> trying to find it
<mps> will try on archive on external disk
PaterTemporalis has joined #asahi
hizon has quit [Read error: Connection reset by peer]
<bluetail[m]> <Glanzmann> "bluetail: I plugged in the..." <- But with only 1 tb port to charge and no other port at all to charge, tb won’t suddenly work on a non tab port
<bluetail[m]> thats the reason I need the hub
ChaosPrincess has quit [Remote host closed the connection]
apg has joined #asahi
<Glanzmann> bluetail[m]: I thought you have at least two tb ports and both can be used for charging. At least it appears to be the same on my macbook air.
kameks has quit [Ping timeout: 480 seconds]
<bluetail[m]> no, only 1 on Lenovo t490
<bluetail[m]> Oh wait
<bluetail[m]> it has 2
<bluetail[m]> wtf
<bluetail[m]> I never thought it would be there
<Glanzmann> bluetail[m]: I just wanted to point to it. Because I also have a t490 an there is one on the left and one on the right.
<bluetail[m]> ty
<Glanzmann> You're welcome.
<bluetail[m]> I thought it was docking port proprietary
<Glanzmann> bluetail[m]: I also have a docking station, it uses a connector to connect to the thunderbolt and power.
giskard has joined #asahi
giskard has quit [Quit: Textual IRC Client: www.textualapp.com]
bisko has joined #asahi
<bluetail[m]> I will daisy chain two of https://www.amazon.de/gp/product/B08FQWXQCN/
<bluetail[m]> Will use the usb 3.1gen2x2
<bluetail[m]> And to for the tb lan bridge
<bluetail[m]> tb ^
giskard has joined #asahi
hizon has joined #asahi
memoryleak has quit [Ping timeout: 480 seconds]
<mps> Glanzmann: I think your config-2022-03-15-4k file is not for latest asahi branch because latest is based on linux-next-20220310. or I'm wrong?
yuyichao has quit [Ping timeout: 480 seconds]
<Glanzmann> mps: I'm copying the config file and edit the settings, what is written in the comment on top might be outdated.
<Glanzmann> I build this for sure with the latest asahi branch.
<mps> Glanzmann: ok, thanks for clarification
m_einname[m] has joined #asahi
yuyichao has joined #asahi
<mps> ok, finally got xorg running but not text on console
<Glanzmann> mps: interesting.
<Glanzmann> mps: Have you updated the 'device trees'?
<Glanzmann> mps: Are you using the official bootchain or extlinux?
<mps> Glanzmann: now will update dtbs
ChaosPrincess has joined #asahi
joske has joined #asahi
<mps> and I switched to EFI/grub last night
<joske> I have an old stub partition, how can I upgrade it without re-installing the rootfs? Can I just delete the partition and re-run the installer?
<j`ey> mps: so what changed?
<Glanzmann> joske: You already have an efi partition?
<mps> j`ey: I disabled FB_EFI
<Glanzmann> mps: Strange, works for me.
<mps> and some other things
<mps> I will investigate details later, now how some work in garden
<mps> and switched to 16K, maybe this fixed issue
<joske> Glanzmann: yes
<Glanzmann> joske: Are you using debian or another distro?
<Glanzmann> joske: So you need to put the rust m1n1 in 1tr and bless it using kmutil.
<Glanzmann> Than you need to copy the stage2 to m1m1/boot.bin on the efi partition.
<Glanzmann> And than you need a fitting kernel.
<Glanzmann> Let me extract from the installer the newest rust m1n1.
<Glanzmann> joske: This is the newest m1n1 (stage1) https://tg.st/u/m1n1-rust.bin
<joske> Glanzmann: thx, but the question was about the stub partition
<Glanzmann> This needs to be installes in 1tr using: kmutil configure-boot -c m1n1-rust.bin --raw --entry-point 2048 --lowest-virtual-address 0 -v /Volumes/Linux
<Glanzmann> joske: This is about the stub partition.
<Glanzmann> joske: Are you already on a 12.1 stub or older?
<Glanzmann> If you're on an older, you need to delete and recreate it using the asahi installer.
<Glanzmann> if you're already on 12.1 it is booting to 1tr update m1n1 stage 1
<joske> Glanzmann: that's exactly what I mean, the stub is very old, december
hizon has quit [Ping timeout: 480 seconds]
<Glanzmann> And than put a m1n1 stage2 (m1n1 + dtbs+ u-boot) and a kernel that matches the dtb.
<joske> probably 12.0.1
<joske> I think the EFI partition is ok, and the m1m1.bin is in place
<Glanzmann> joske: Do you have debian?
<joske> Glanzmann: no, Manjaro
<Glanzmann> joske: I would delete the stub parition on linux, run the asahi installer and select the last option.
<Glanzmann> Than put the to be chainloaded m1n1 to m1n1/boot.bin on the esp partition.
<Glanzmann> That should be it.
<joske> and the installer will put the chainloading m1n1 as boot object?
<joske> or should I do that manually? (haven't ran the installer since December ;-))
<Glanzmann> joske: To be honest, I have no idea. I assume it puts the chainloading, but if not you have to put it manually.
joske has quit [Remote host closed the connection]
<Glanzmann> joske: I only tested the Debian installation with the most recent installer.
ciggi has joined #asahi
ciggi_ has quit [Read error: Connection reset by peer]
ChaosPrincess has quit [Remote host closed the connection]
joske has joined #asahi
<joske> What's the URL for the asahi installer again?
<mps> anyone have this `UEFI Runtime regions are not aligned to 64 KB -- buggy firmware?` in dmesg out on latest asahi kernel
<Glanzmann> joske: curl -L https://mrcn.st/alxsh | sh
<joske> Thx
<Glanzmann> joske: I'm trying it at the moment (wiped my stub partition and reinstsalling with option 3).
<kettenis> known issue; will be fixed in due course
<j`ey> mps: ^
<mps> j`ey: I concluded this is to me, thanks
<joske> Glanzmann: it says no actions available :-(
<Glanzmann> For me it works.
<Glanzmann> joske: You need to delete the old stub parition.
<joske> I did
<Glanzmann> joske: Maybe this is the issue that the stub is now one MB bigger than before.
<Glanzmann> joske: Can you paste the output of the installer?
<Glanzmann> and of diskutil list
<Glanzmann> to answer your question option 3 install exactly what it says no chainloading. So you need to install the chainloader in addition.
<Glanzmann> joske: I would mount the esp parition, make a backup, delete it and try to run the installer again
<Glanzmann> Than select option 2
<Glanzmann> and put your files back on the newly created efi partition
<joske> Glanzmann: run the installer from recovery, no?
<Glanzmann> joske: Does not matter. i assume it does not work for you because you miss 1 mb of free space.
<joske> There is 2GB free
<Glanzmann> It needs 2.5GB + 1 MB.
creechy has joined #asahi
<Glanzmann> j`ey: Do you know by any chance what i need to do to put the m1n1 into chainloading mode in 1tr?
ChaosPrincess has joined #asahi
<j`ey> cat m1n1.bin <(echo 'chainload=$ESP_UUID;$BOOT_OBJ_PATH') > blah.bin
apg has quit [Remote host closed the connection]
memoryleak has joined #asahi
<Glanzmann> j`ey: Thank you.
<Glanzmann> j`ey: Do you know if $ESP_UUID is the partion filesystem or esp identifier?
<j`ey> not sure
<_jannau_> the gpt partition GUID, not the partition type GUID
<Glanzmann> jannau: I see thanks, any idea how I find that one out under 1tr?
<_jannau_> programmatically? check what the installer does. I would expect that diskutil info prints it
<Glanzmann> jannau: Thank you, that gives me the partition uid.
<Glanzmann> j`ey / jannau: That worked, thank you a lot. My system is booting again. ;-)
<Glanzmann> joske: To manually install m1n1 in 1tr as boot chain: https://pbot.rmdir.de/Jy2sOjAI5IPFmHAJ4nXXdQ
ciggi has quit [Ping timeout: 480 seconds]
ciggi has joined #asahi
MajorBiscuit has quit [Quit: WeeChat 3.4]
the_lanetly_052 has quit [Ping timeout: 480 seconds]
m6wiq has joined #asahi
<Glanzmann> marcan: Good read.
<Glanzmann> One question though what is difference between chosen.asahi,efi-system-partition=EFI-PARTITION-PARTUUID and chainload=EFI-PARTITION-PARTUUID;m1n1/boot.bin?
<jannau> chainload tell's the 1st stage m1n1 from where to load the second stage
<jannau> chosen.asahi,efi-system-partition is added to the dt mostly to allow u-boot to boot from the correct ESP
<Glanzmann> I see. Thank you for the elaboration.
<jannau> chosen.asahi,efi-system-partition is passed from the 1st stage forward to the second stage
<Glanzmann> I see, so the first stage informs the second stage about the uuid of the esp partition which is than passed using dt to u-boot which can than select the right esp to select the efi binary.
creechy has quit [Ping timeout: 480 seconds]
creechy has joined #asahi
stimunation_ has quit [Remote host closed the connection]
stimunation has joined #asahi
stimunation has quit [Remote host closed the connection]
<Glanzmann> joske: You need this in case you install m1n1 in order to be forward compatible with future asahi u-boot releases: https://pbot.rmdir.de/_Mp83IDET6Q9qZEJ5OeINg
<Glanzmann> s/m1n1/m1n1 manually/
<joske> Glanzmann: thx, I already have the stub restored and can boot again
<Glanzmann> Perfect.
<Glanzmann> joske: Out of curiosity, how did you do it?
<joske> Shrunk the apfs container
<joske> Then ran the installer
<joske> From then on manually as I chose EFI services only
<Glanzmann> joske: Okay, but then you have two esp partitions.
<joske> It helped that I had a working USB live drive
<joske> Already cleaned that up 😉
<Glanzmann> Ah, perfect.
<Glanzmann> joske: But than your m1n1 is fine.
<jannau> no need to reinstall the 1st stage m1n1 then
<joske> And resized the root filesystem from the live drive
<Glanzmann> I see.
<joske> So all is well
<joske> Thx for the info/help all!
<Glanzmann> No issue, I learned a lot and understand the boot chain now much better because of it. Especially thanks to jannau and j'ey for bearing with me. :-)
award has joined #asahi
<Glanzmann> joske: I also need to resize my partition: https://pbot.rmdir.de/WBluHk3dc8qahAK_ZK5Yjg
award has quit [Remote host closed the connection]
stimunation has joined #asahi
stimunation has quit [Remote host closed the connection]
stimunation has joined #asahi
stimunation has quit [Read error: Connection reset by peer]
<nametable[m]> Just bought a slightly damaged M1 Macbook air (https://www.ebay.com/itm/284703353139), so now I can try to help with the project when it comes :)
<nametable[m]> I'm excited to dig deeper/learn more in Linux and work on drivers/low level firmware.
le0n_ has joined #asahi
m6wiq has quit []
le0n has quit [Ping timeout: 480 seconds]
le0n has joined #asahi
ciggi has quit [Remote host closed the connection]
ciggi has joined #asahi
kgarrington has joined #asahi
kgarrington has quit [Remote host closed the connection]
le0n_ has quit [Ping timeout: 480 seconds]
eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joske_ has joined #asahi
joske has quit [Quit: Quit]
joske_ has quit []
giskard has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<brentr123[m]> now we need a way to disable ssv on ios 😉
SamRamos[m] has joined #asahi
mps_ has joined #asahi
mps has quit [Ping timeout: 480 seconds]
ChaosPrincess has quit [Remote host closed the connection]