#
…

2021-01-24

00:00DanB91 has quit [Ping timeout: 246 seconds]
00:14acelogic has joined #asahi-dev
00:49acelogic has quit [Ping timeout: 260 seconds]
00:51acelogic has joined #asahi-dev
01:02ohnx has joined #asahi-dev
01:14ohnx has quit [Read error: Connection reset by peer]
01:37artemist has quit [Ping timeout: 260 seconds]
01:39artemist has joined #asahi-dev
01:51acelogic has quit [Remote host closed the connection]
02:50luca020400 has quit [Quit: WeeChat 3.0]
04:49DanB91 has joined #asahi-dev
04:55DanB91 has quit [Ping timeout: 264 seconds]
05:19DanB91 has joined #asahi-dev
05:23DanB91 has quit [Remote host closed the connection]
05:24DanB91 has joined #asahi-dev
05:25DanB91 has quit [Remote host closed the connection]
05:26DanB91 has joined #asahi-dev
05:30DanB91 has quit [Remote host closed the connection]
05:30DanB91 has joined #asahi-dev
05:35DanB91 has quit [Ping timeout: 264 seconds]
05:41DanB91 has joined #asahi-dev
05:43DanB91 has quit [Remote host closed the connection]
05:43DanB91 has joined #asahi-dev
05:48DanB91 has quit [Ping timeout: 246 seconds]
06:33VinDuv has joined #asahi-dev
07:39maor26 has joined #asahi-dev
08:09DarthCloud has quit [Remote host closed the connection]
08:10DarthCloud has joined #asahi-dev
09:30ldhacker[m] has joined #asahi-dev
10:12ldhacker[m]What is the current status of this project? Is the wiki on the “cutting edge”?
10:12GlanzmannSome progress has not been mentioned.
10:13j`eyldhacker[m]: status is linux has been booted, basic interrupt and UART works, so a shell has been reached
10:13Glanzmannldhacker[m]: Someone correct me if, I'm wrong. But what works so far is a simplyfied boot loader m1n1, which can be used to load a kernel and initrd over UART using some python code https://github.com/AsahiLinux/vdmtool. The kernel boots up with a single thread and a busybox bash is running.
10:14GlanzmannSome other guys seems to have some sort of hacky (tech demo), SMP, PCIe, USB, WIFI running.
10:14GlanzmannOh and framebuffer works also.
10:14GlanzmannOh and network card seems to work as well.
10:14GlanzmannHowever the code needs to be improved on and pushed upstream.
10:15GlanzmannAnd someone is working on reversing the GPU. The first triangle was produced using userland code on macos.
10:16GlanzmannX is also working with the framerbuffer apparently.
10:16ldhacker[m]Wow, so quite a bit more progress. I wish there was some way I could help. I have experience with C but have never worked on a GitHub project like this one. Not sure where to start lol
10:17GlanzmannI think, just send some money to let marcan do its job.
10:17GlanzmannYou can use github (less taxes at least in germany) or using patreon.
10:17jixldhacker[m]: I'm sure contributing will get easier with time when more of the essentials are done
10:17GlanzmannI do the same, however I'm eager to try it out.
10:18jixldhacker[m]: there'll be a very long tail of stuff to work on to improve the overall experience, and if you have experience with C I'm sure you'll find something
10:19ldhacker[m]Next time I get paid I will definitely send some money that way. I just want to be running Linux again lol. I was using Manjaro on a laptop before I got the Mac mini.
10:19jix(I also expect there to be more of a contributing guide at that point to get people started)
10:20ldhacker[m]Thank you all for the updates. I will continue to check back and see when I feel comfortable contributing!
10:26ldhacker[m]Just became a patron!
11:48leah2 has quit [Ping timeout: 260 seconds]
12:00PhilippvK has joined #asahi-dev
12:01leah2 has joined #asahi-dev
12:06PhilippvK has quit [Ping timeout: 256 seconds]
12:15PhilippvK has joined #asahi-dev
12:19crabbedhaloablut has quit [Ping timeout: 264 seconds]
12:20crabbedhaloablut has joined #asahi-dev
13:05arekm has joined #asahi-dev
13:11PhilippvK has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
13:17XeR has quit [Quit: *.net *.split]
13:18PhilippvK has joined #asahi-dev
13:24XeR has joined #asahi-dev
13:37XeR has quit [Quit: *.net *.split]
13:40XeR has joined #asahi-dev
13:46PedroArajo[m] is now known as PedroAraujo[m]
13:58DanB91 has joined #asahi-dev
14:02Esmil has quit [Ping timeout: 256 seconds]
14:02Esmil has joined #asahi-dev
14:26stemnic has joined #asahi-dev
15:28snalty has quit [Ping timeout: 240 seconds]
15:29snalty has joined #asahi-dev
15:58leah2 has quit [Ping timeout: 244 seconds]
15:59leah2 has joined #asahi-dev
17:07modwizcodeI got m1n1 (partially) running on qemu (not on apple silicon) by doing some very hacky stuff. I'm planning to hack support for generating the bootargs struct that m1n1 expects and then start working on an actual machine definition.
17:08j`eysven also got it running on qemu
17:08modwizcodeYeah I heard
17:08modwizcodeI wonder what sven had to do, I couldn't see a way to avoid modifying the code of qemu but I was specific trying to avoid patching m1n1 whatsoever
17:09sveni patched m1n1 :D
17:09svenin pretty horrible ways
17:09modwizcodeYeah I couldn't imagine another way and the way I got it working without patching is insane
17:09modwizcode(likewise for the qemu patches)
17:10modwizcodeI can do it right I'm just not super familiar with the qemu codebase and so I was trying to avoid writing a new board/machine definition out of the gate.
17:10svenso i just drop the .maco file into flash at 0x0, manually set the initial PC to 0x4800, then after _start in m1n1 i have a copy loop that moves it to 0x8_0000_0000
17:10svenand then i replaced uart_write with something qemu emulates
17:11svenit's... not great.
17:11svenoh, and i commented out most of the bootargs stuff so that it doesn't crash
17:11modwizcodeSo I patched the exynos board that's already in there by forcing it to create cortex-a57 cores (it seems like that code ignores the CPU option), then patching the cortex-a9 mp private peripheral to not get mad if you use it with a non cortex-a9 core (all the other ones A11/A15 don't get mad)
17:11modwizcodeI moved the serial peripheral (which is why I patched this specific board since it's the same UART) to the right address
17:12svenah, nice. i just took some random board which had a different serial
17:13modwizcodeAnd I made a 2 line change to the linker script because I'm using qemus -kernel option to save time (loading the elf not the macho) and I needed to set the base address of the image to a ram address because otherwise qemu gets weird (I've noticed this before with my own kernels, qemu's boot handling for non-linux is complete crap at least on arm) so I had to manually set base to 0x0 so that the
17:13modwizcodeoffsets wouldn't be doubled when relocating.
17:13modwizcodeAll of the changes I made need to be done right
17:13modwizcodemost of the time I spent was on the MP stuff, since the board launches two cpus (I could have just changed this but for some reason this board also ignores command line options for cpu count I think) so I patched the code to keep the other cpu in a busy loop until I fixed it proper
17:14modwizcodeI would like to know how real SMP bringup is done on the M1 so I can replicate
17:14modwizcodeI hear correlium has that working. It would be super helpful if I had a real M1 mac someone donate one pls kthx
17:14never_releasedmodwizcode: you can look at the code :)
17:15never_releasedit's not hard to do core bringup
17:15modwizcodeYeah but then I can't poke at it in glorius detail
17:15modwizcodeI have learned it's not while messing with learning aarch64 in prep for this experiment with the M1 emulation, I'm surprised actually how easy it is
17:15j`eyhow was the CPU bringup reverse engineered?
17:15modwizcodethe only bringup I was familiar with before is the godawful mess that x86 MP is
17:16modwizcodeIt's generally super simple on arm from what I understand from all the other qemu smp stubs
17:16modwizcodeThey probably dumped rom somewhere
17:16modwizcodewhere the busy loop is
17:16modwizcodeIt's pretty recognizable loop I think
17:18modwizcodeI'm not sure what qemu upstreaming is like, does anyone know? Is it worth trying to do this right to get a potential M1 board upstreamed?
17:18sven^-- agraf
17:20modwizcodeAnd if it is worth trying to do, should I base my code on an existing board? I wouldn't know what else to do but I can tell you for sure nothing should be based on that exynos board it's a mess and awful. At the very least I'd probably like to submit a patch to fix SMP bringup on non-linux ARM kernels because that issue is painful and doesn't seem challenging to solve at all.
18:09PhilippvK_ has joined #asahi-dev
18:29DarthCloud has quit [Remote host closed the connection]
18:30DarthCloud has joined #asahi-dev
18:45never_releasedmodwizcode: you might want to combine the existing efforts
18:45never_releasedto boot macOS
18:49modwizcodeYeah probably
19:00davidrysk[m]very similar to the rules for kernel upstreaming
19:11modwizcodenever_released: do you know of specific efforts to boot macos?
19:15PhilippvK_ has quit [Ping timeout: 240 seconds]
19:16j`eythere's some people booting iOS on qemu.. hm
19:17modwizcodeI've looked at those but that didn't seem particularly relevant, what I saw mostly involved hacks to both qemu and the iOS kernel.
19:40modwizcodeYeah that's the one I read
19:40modwizcodeI wish that had gone further though :/
19:47j`eywould be neat to write a test suite in m1n1, to verify a qemu port against real hardware
19:49modwizcodeyeah it would
20:01j`eybut nothing about the AIC for example
20:20never_releasedj`ey: hm? that one simulates AIC too
20:22j`eyoh it does?
20:22j`eyI only took a brief look
20:24j`eyI cant find any aic files
20:32DanB91 has quit [Remote host closed the connection]
20:33DanB91 has joined #asahi-dev
20:41modwizcodethere was some weirdness with the commits I think
20:42modwizcodeyou have to like find the link to the specific commit or something the one I found was orphened from all branches
21:08DanB91 has quit [Remote host closed the connection]
21:09DanB91 has joined #asahi-dev
21:14amw2 has joined #asahi-dev
21:17DanB91 has quit [Ping timeout: 265 seconds]
21:25jix has quit [Quit: WeeChat 3.0]
21:25jix has joined #asahi-dev
21:26amw2 has quit [Ping timeout: 256 seconds]
21:31DanB91 has joined #asahi-dev
21:32DanB91 has quit [Remote host closed the connection]
21:32DanB91 has joined #asahi-dev
21:34DanB91 has quit [Remote host closed the connection]
21:34DanB91 has joined #asahi-dev
21:38DanB91 has quit [Ping timeout: 240 seconds]
21:43DanB91 has joined #asahi-dev
21:53VinDuv has quit [Quit: Leaving.]
22:06DanB91 has quit [Remote host closed the connection]
22:07DanB91 has joined #asahi-dev
22:08amw2 has joined #asahi-dev
22:11DanB91 has quit [Ping timeout: 246 seconds]
22:17DanB91 has joined #asahi-dev
22:20amw2 has quit [Ping timeout: 240 seconds]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:25maor26 has quit [Ping timeout: 246 seconds]
23:30DanB91 has quit [Remote host closed the connection]
23:30DanB91 has joined #asahi-dev
23:35DanB91 has quit [Ping timeout: 264 seconds]
…