marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
modrobert has quit [Read error: Connection reset by peer]
modrobert has joined #asahi
vimal has quit [Ping timeout: 260 seconds]
vimal has joined #asahi
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<pipcet[m]>
okay, so I've had to patch a single insn in the kernel and mess with the device tree a bit, but I can get a usable macos desktop chain-loaded through m1n1 now. Can't wait for the hypervisor!
<pipcet[m]>
single-core, but still
<pipcet[m]>
and this time I'm on the right architecture, too!
odmir has quit [Ping timeout: 260 seconds]
<delroth>
can you document the changes you needed to do? I suspect this might save marcan a few minutes/hours when he tries doing this (since iirc his last uick attempt didn't end up with a usable desktop)
<delroth>
+q
<pipcet[m]>
currently trying to whittle down my various changes to what's actually necessary, will open a PR then :-)
<pipcet[m]>
load average at 52, it's not a happy system on a single efficiency core
omoiti00 has joined #asahi
omoiti has joined #asahi
omoiti has quit [Client Quit]
omoiti00 has quit [Client Quit]
odmir has joined #asahi
odmir has quit [Ping timeout: 265 seconds]
odmir has joined #asahi
Bublik_ has joined #asahi
Bublik has quit [Ping timeout: 240 seconds]
<marcan>
pipcet[m]: why since core?
<marcan>
there is no reason to be stuck in single core mode outside the HV
<marcan>
*single
<marcan>
I'm turning off the other cores for the HV because it is not SMP-safe right now (it will be, eventually; I need to write some spinlocks and make sure peripheral emulation and iodev stuff is serialized)
<marcan>
(and also virtualize the cpustart stuff)
<pipcet[m]>
had to do that to get it to boot, and also I'm still planning to steal CPU cores from macos.
<marcan>
then that's another issue that needs to be fixed
<pipcet[m]>
I can't debug further unless someone tells me the magic trick to get macos kernel debug output without uart access :-)
<marcan>
framebuffer?
<pipcet[m]>
of course if the hypervisor is done before then that would be much, much bett.r
<pipcet[m]>
framebuffer would be ideal, yes.
<pipcet[m]>
any way to tell macos to put anything but a progress bar there? -noprogress still works, the other options that used to control kernel output don't.
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<marcan>
-v enables framebuffer debug output
<marcan>
works fine here, in fact I get framebuffer *first* and it only switches to serial later
<pipcet[m]>
just "-v"? No debug= or anything?
<pipcet[m]>
you're not using macho sections for m1n1, are you?
<pipcet[m]>
just segments?
<pipcet[m]>
because I think what might be happening is that macos assumes it can use a physical address to write to the secondary CPUs' rvbar register, and that needs to be aligned to, I think, 64 KB
Bublik has joined #asahi
<marcan>
chainload.py loads in-place
<marcan>
that means macos ends up exactly where it would've ended up if loaded by iBoot2
<marcan>
which is required for RVBAR on CPU0, which is locked by iBoot2 (I'm not sure if this actually matters on M1 or not; I think it did for earlier designs without PC-preserving wfi but it may still matter for some kind of deeper sleep modes)
Bublik_ has quit [Ping timeout: 260 seconds]
<marcan>
(that is not to say the mach-o loader code isn't buggy in some way, but I'd expect things to break worse if it were; feel free to dig deeper though)
<davidrysk[m]>
pipcet: yes just -v in the bootargs
<davidrysk[m]>
(security needs to allow custom bootargs, ofc)
VinDuv has joined #asahi
sven_ has joined #asahi
ephe_meral1 has quit [Ping timeout: 260 seconds]
sven has quit [Ping timeout: 240 seconds]
sven_ is now known as sven
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
<pipcet[m]>
marcan: I'm pretty sure iBoot2 looks at the alignment property of the macho sections it loads.
<pipcet[m]>
at least it did for my linux images; they were aligned to 128KB or something, not to 2MB as I'd requested.
<pipcet[m]>
I can pass bootargs, they have an effect (in the case of "-noprogress"), but if I pass "-v" instead of "-noprogress", nothing happens.
<pipcet[m]>
maybe "-v" counts as a custom bootarg and "-noprogress" doesn't, somehow.
tbodt_ has joined #asahi
maknho___ has joined #asahi
maknho__ has quit [Ping timeout: 240 seconds]
tbodt_ has quit [Ping timeout: 268 seconds]
marcan has quit [Ping timeout: 240 seconds]
marcan has joined #asahi
TheJollyRoger has quit [Remote host closed the connection]
TheJollyRoger has joined #asahi
ivanmedoedov[m] has joined #asahi
zkrx has quit [Ping timeout: 265 seconds]
jeffmiw has joined #asahi
zkrx has joined #asahi
jeffmiw has quit [Ping timeout: 252 seconds]
choozy has joined #asahi
jeffmiw has joined #asahi
Bublik has quit [Ping timeout: 240 seconds]
Bublik has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
frode_0xa has joined #asahi
frode_0xa has quit [Quit: leaving]
JustinWhite[m] has joined #asahi
VinDuv has quit [Quit: Leaving.]
odmir has joined #asahi
jeffmiw has quit [Ping timeout: 268 seconds]
<JustinWhite[m]>
Hello everyone! Excited to learn and follow along. I'm a web and software developer from Illinois, excited at the rapid progress of the project and honored to be a part of the community.
<JustinWhite[m]>
Happy to help in any way I can, but just excited to be here and mingle!
odmir has quit [Ping timeout: 260 seconds]
jeffmiw has joined #asahi
odmir has joined #asahi
sven has quit [Remote host closed the connection]
sven has joined #asahi
marcan has quit [Ping timeout: 260 seconds]
jeffmiw has quit [Ping timeout: 268 seconds]
marcan has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Remote host closed the connection]