ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | https://asahilinux.org/2022/03/asahi-linux-alpha-release/ | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
thelounge7571340 has joined #asahi
zzywysm has joined #asahi
SSJ_GZ has quit [Read error: Connection reset by peer]
e1eph4nt has quit [Ping timeout: 480 seconds]
SSJ_GZ has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
<mabiola> Anyone else seeing this on shutdown: apple-mca 238400000.mca: ASoC: error at snd_soc_dai_set_sysclk on mca-i2s-2: -167
audiojaguar has joined #asahi
audiojaguar_ has quit [Ping timeout: 480 seconds]
<bluetail> mabiola I think I don't have it. I ran 'journalctl -b-1 | grep systemd' and 'sudo dmesg | grep mca' and in both cases I had no match
e1eph4nt has quit [Ping timeout: 480 seconds]
vx has quit [Quit: G-line: User has been permanently banned from this network.]
vx has joined #asahi
e1eph4nt has joined #asahi
marvin24 has joined #asahi
duban has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
<manuelzamoratetherbtcusa[m]> I didn’t trust you at first, I will truly say I risk my $1,500 by investing it in your platform and thanks to God you did according to your promise. I can see now you are so transparent in your deals and I love that so much. This is a very huge profit made with $1,500 wow, this investment is really good and a blessing to... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/dcABeITcRbKyKUXPXQDZAmgf)
manuelzamoratetherbtcusa[m] has left #asahi [#asahi]
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
Stroller has quit [Quit: Stroller]
julio7359 has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
julio7359 has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
julio7359 has joined #asahi
DVano[m] has joined #asahi
DVano[m] is now known as phoxmeh
rpirea has quit [Read error: Connection reset by peer]
Ry_Darcy has joined #asahi
LinuxUserHaiku has joined #asahi
LinuxUserHaiku has left #asahi [#asahi]
e1eph4nt has quit [Ping timeout: 480 seconds]
vx has quit [Quit: G-line: User has been permanently banned from this network.]
vx has joined #asahi
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
jelly-hme is now known as jelly
jluthra_ has quit [Remote host closed the connection]
jluthra_ has joined #asahi
roxfan2 is now known as roxfan
Null_A[m] has joined #asahi
e1eph4nt has joined #asahi
rpirea has joined #asahi
<bestouff[m]> Does anyone know why gnome-she
<bestouff[m]> s/she/shell pegs at 50%-100% on one CPU, even doing nothing ? I suspect there's something else than just missing a GPU driver going on .../
<bestouff[m]> * Does anyone know why `gnome-shell` pegs at 50%-100% on one CPU, even doing nothing ? I suspect there's something else than just missing a GPU driver going on ...
<marcan> no idea, but here's a guess: it's running something every frame, and our simple framebuffer has no vsync so that runs uncapped
<marcan> (that would be a bug in gnome-shell: doing something every frame even when idle is a major waste of power on any platform)
e1eph4nt has quit [Ping timeout: 480 seconds]
<jannau> bestouff[m]: which gnome session are you using? with "Gnome (wayland)" I see 10-25% cpu load for gnome shell
<jannau> for some reason distributed over all cpu cores
<IcaroDextris[m]> <bestouff[m]> "Does anyone know why gnome-she" <- I’m using gnome-shell with m1 MacBook Air m1 and is 10 or less
<IcaroDextris[m]> * is 10% or
<IcaroDextris[m]> jannau: Confirm
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
AbhayNayar[m] has quit [Quit: Client limit exceeded: 20000]
GllmR[m] has joined #asahi
<GllmR[m]> Hi, I'm stuck with no mouse or keyboard on the login screen, on a macbook pro 14, do you know why i can enter my password ?
<jannau> GllmR[m]: consistently? the power button should work and a short press will power down the macbook
<GllmR[m]> Yes, i can shutdown the computer, but can't enter my password... :)
<M4t64[m]> GllmR[m]: are you pressing down the power button until you see "continue holding to load startup options"
<jannau> how many times have you tried?
<GllmR[m]> Two times
<GllmR[m]> Yes i can boot asahi, no problem, but my keyboard and touchpad don't work, so i can not type my psswrd
<jannau> can you try again. Do you have anything connected to the usb ports? Can you try disconnecting the devices?
<jannau> GllmR[m]: is this a fresh installation or something which just started happeing?
<GllmR[m]> jannau: No, nothing connected... I'll try again
<GllmR[m]> jannau: It's fresh
<jannau> does the keyboard work in u-boot? There is a prompt "Press any key to stop auto boot". does it stop when you press a key? you can continue by typing "run apple_bootcmd"
<GllmR[m]> It work after a reboot 🤷
<GllmR[m]> Thanks jannau !
<mps> I noticed strange behavior on m1pro macbook when tested 6.0-rc1 kernel. It doesn't boot but when I few keys blindly and then poweroff->boot cycle it replay keys in u-boot I pressed previously
<mps> like it remember keys in some keyboard buffer, which aren't read by 6.0-rc1 kernel, and when u-boot starts it reads them from this buffer
<mps> and even after poweroff-poweron cycle
e1eph4nt has quit [Ping timeout: 480 seconds]
off^ has quit [Remote host closed the connection]
e1eph4nt has joined #asahi
thelounge7571340 has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
Moprius has joined #asahi
Moprius has quit [Quit: bye]
e1eph4nt has joined #asahi
Stroller has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
LukeTheWalker has joined #asahi
Race has quit [Ping timeout: 480 seconds]
e1eph4nt has quit [Ping timeout: 480 seconds]
LukeTheW_ has joined #asahi
LukeTheWalker has quit [Read error: Connection reset by peer]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
LukeTheW_ has quit [Quit: Leaving...]
e1eph4nt has joined #asahi
thelounge7571340 has quit [Ping timeout: 480 seconds]
rpirea has quit [Read error: Connection reset by peer]
rpirea has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
thelounge7571340 has joined #asahi
<ethantwardy[m]> mps: I've seen this a couple of times on the latest kernel version in the asahi package repo. I haven't been able to reliably reproduce it though.
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
Fischmiep has quit []
<mps> ethantwardy[m]: also I can't reproduce it reliably
yamii has quit [Remote host closed the connection]
yamii has joined #asahi
<bestouff[m]> <jannau> "bestouff: which gnome session..." <- The default one, which is wayland I think. For me it's on only 1 CPU.
<bestouff[m]> (Well, one core slightly under 100% and the others slightly under 10%)
<jannau> any applications running or just gnome-shell
<bestouff[m]> 2 firefox windows doing nothing, 1 evolution window doing nothing, 1 terminal showing htop
<bestouff[m]> (only the terminal is on-screen)
thelounge7571340 has quit [Remote host closed the connection]
<bestouff[m]> Hey I didn't know you could suspend the Mac !
rpirea_ has joined #asahi
<bestouff[m]> I just pressed the 🌔 key and my Mac went to sleep. Pressed it again and it woke up. Neat !
rpirea has quit [Read error: Connection reset by peer]
thelounge7571340 has joined #asahi
<jannau> gnome-terminal? that doesn't render correctly for me but no high load either. I didn't start evolution though
rpirea__ has joined #asahi
<jannau> that probably just turns the screen off
rpirea_ has quit [Read error: Connection reset by peer]
<bestouff[m]> Tilix, which renders perfectly.
<bestouff[m]> Oh, try using custom colors, it should be better.
<bestouff[m]> You're right i can still ssh
Moprius has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
ifeeltiredboss[m] has joined #asahi
ifeeltiredboss[m] has left #asahi [#asahi]
e1eph4nt has quit [Ping timeout: 480 seconds]
e1eph4nt has joined #asahi
gladiac has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
e1eph4nt has quit [Remote host closed the connection]
e1eph4nt has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
isdedev[m] has quit [Quit: Client limit exceeded: 20000]
e1eph4nt has joined #asahi
<jeppojeps> hello
<jeppojeps> the kernel that m1n1 boots is an ELF or a MACH-O?
<jeppojeps> seems I can't compile the kernel as MACH-O
<jannau> it's neither. it has its own header see https://www.kernel.org/doc/html/latest/arm64/booting.html
<jannau> we don't have to deal with mach-o either, apple added raw image support in mac os 12.1
<jannau> the only case where we still have to deal with mach-o is the HV starting darwin
blevins has quit [Quit: WeeChat 3.4]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
<jeppojeps> <jannau> so how exactly it works the boot process, m1n1, starts and it's a mach-O, how it jumps and works with the arm64 format kernel?
<povik> one m1n1 is loaded into memory and started, it doesn't matter that it was loaded as a macho object
<povik> s/one/once
<povik> i guess you need to ask a more specific question
<povik> otherwise the details of how it works are in the document jannau linked
gladiac has quit [Quit: k thx bye]
<waldi> jeppojeps: which kernel do you mean? m1n1 is usualy used to load uboot, then grub and only then a linux kernel
<waldi> and in a UEFI environment, the linux kernel is a PE binary
ashutoshsao[m] is now known as zshroot[m]
rayanamukami30 has joined #asahi
<jeppojeps> yes I wanted to load the linux kernel
<jeppojeps> so I need m1n1 for stage 1 + uboot + grub, that seems an infinite chain
<jeppojeps> but maybe before that I can just load an example initramfs with an hello world
<jeppojeps> I will check the documentation
<jeppojeps> and get you back
<jeppojeps> seemed easier looking at how they boot XNU
<jeppojeps> I thought there wasn't much difference with Linux
<jannau> jeppojeps: m1n1 can load a standard arm64 kernel image directly
<jeppojeps> OK but you know the linker makes sth dirty
<jeppojeps> like the PYLD section is beyond EOF
<jeppojeps> that thing doesn't seem to be legal on the emulator (which BTW I can change) but I have to understand why I can just make it fit within by knowing the size of the blobs I append
e1eph4nt has quit [Ping timeout: 480 seconds]
<jeppojeps> like instead of leaving arbitrary appends
<jannau> that's intentional. it allows appending unknown payloads to the m1n1 mach-o binary and get them loaded
<jeppojeps> yeah but I guess the M1 likes that format
rayanamukami30 is now known as rayanamukami3
<jeppojeps> in my case I think I have to do the math and prepare the recipe myself
<jannau> apple boot loader can handle that format
<jeppojeps> how funny on qemu-t8030 it fails miserably
<jeppojeps> so the implementation is somewhat not faithful
<jeppojeps> or it's just because it's a iPhone emulator
<jeppojeps> it complains about the size going after EOF
<jannau> from our point of view iboot is a not replaceable part of the system
<jeppojeps> yes I understand
<jeppojeps> in my case iboot doesn't exist
<jannau> nah, a system emulator should be able to run iboot
<jeppojeps> it does, but I guess it's in the kernelcache
<jeppojeps> if I provide m1n1 as a kernel
<jeppojeps> no iBoot
<jeppojeps> so it's a kinda of bare-metal iPhone
Moprius has quit [Remote host closed the connection]
<jeppojeps> the rationale it's just to understand the best way or the more compatible way to do it
<jeppojeps> whacking the emulator shouln't be that hard, doing it properly likely it takes a bit more
<jannau> what does the simulator provide? an apple device tree or a linux device tree?
<jeppojeps> apple device tree coming from one of the blobs downloadable for iPhone
<jeppojeps> so I normally give them as separated params
<jeppojeps> then the code puts everything together
<jeppojeps> indeed I looked at the one of Asahi and it's pretty similar
<jeppojeps> we are talking here that iPhone apps run on M1 seamlessly
<jeppojeps> so the difference shouldn't be that huge
<jeppojeps> the emulator is capable to boot bash on top of XNU right now
<jeppojeps> but I wanted to boot Asahi to check few things on the DCP in the kernel
<jeppojeps> since you already have something worked on the ramfb
<jeppojeps> and right now I can't update my M1, stuck on 11.4 (work reason)
<jeppojeps> otherwise I could have installed on the bare metal
<jannau> that sounds if the emulator exposes the iboot2 / os kernel interface and just has problems with the open payload
<jannau> does the emulator support the uart (or dwc3)? if yes you could build m1n1 without payload and the correct size and control/load payload via the proxy interface over uart
<jannau> you could install m1n1 manually on 11.4
<jeppojeps> 1 it does support UART
<jeppojeps> 2 you are right, I can install m1n1, manually but w/o Asahi
<jeppojeps> could you explain how would you do the UART thingy?
<jeppojeps> as in the m1n1 dev tutorial?
thelounge7571340 has quit [Ping timeout: 480 seconds]
<jeppojeps> so I'd build the m1n1 macho normally, I have already commented out the PYLD section, and I have that binary, I have to get to the uart part
<jeppojeps> it also has dwc3 support actually
e1eph4nt has joined #asahi
<jeppojeps> python3 proxyclient/tools/run_guest.py -s <PATH_TO_DEBUG_DWARF> <PATH_TO_DEVELOPMENT_KERNEL_CACHE> -- "debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1"
<jeppojeps> should be this
e1eph4nt has quit [Ping timeout: 480 seconds]
off^ has joined #asahi
os has joined #asahi
e1eph4nt has joined #asahi
thelounge7571340 has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
<jannau> jeppojeps: no, tools/linux.py -b '$LINUX_BOOT_ARGS' Image.gz t8030.dtb [initramfs]
<jannau> not sure where you would get a t8030.dtb from, also you need to patch the kernel to support t0830
<jannau> asahi kernel only supports t8103 and other m series SoCs
off^ has quit [Ping timeout: 480 seconds]
SSJ_GZ has quit [Read error: Connection reset by peer]
SSJ_GZ has joined #asahi
off^ has joined #asahi
e1eph4nt has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
SSJ_GZ has quit [Ping timeout: 480 seconds]
duban has quit [Quit: I'm out]
duban has joined #asahi
Brainium has joined #asahi
Ry_Darcy has quit [Remote host closed the connection]
yrlf has joined #asahi
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
marvin24 has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
marvin24_ has quit [Ping timeout: 480 seconds]
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
e1eph4nt has joined #asahi
off^ has quit [Ping timeout: 480 seconds]
off^ has joined #asahi
off^ has quit [Ping timeout: 480 seconds]
off^ has joined #asahi
thelounge7571340 has quit [Remote host closed the connection]
thelounge7571340 has joined #asahi
e1eph4nt has quit [Ping timeout: 480 seconds]
grgy has joined #asahi