marcan changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | Keep things on topic | https://github.com/AsahiLinux | Logs: https://freenode.irclog.whitequark.org/asahi-re
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ransom has joined #asahi-re
<artemist> The best part is that there's an ARMv8-A core that only runs A32 and T32: the Cortex-A32
<artemist> Not that anyone seriously used it
<Yuzu> and the A34, its 64b-only cousin
<artemist> tbh i'm surprised that they're still putting A32 and T32 in the Cortex-A77
<artemist> :q
<artemist> oops
<opticron> heh
<opticron> the A77 is a mainstream/generic CPU directly from ARM, so it still makes sense
<opticron> but, I figure they will start releasing high end A64-only at some point soon
<opticron> I didn't know about the A34, that's neat
<Yuzu> A32 is 32b only, A34 is 64b only, A35 is both. closely related cores other than that
<Yuzu> ARM's dropping aarch32 support in the core after Matterhorn
qyousef has joined #asahi-re
rbenua has joined #asahi-re
aratuk has joined #asahi-re
blazra[m] is now known as blazra
blazra has quit [Quit: authenticating]
blazra has joined #asahi-re
browzing has quit [Ping timeout: 256 seconds]
browzing has joined #asahi-re
browzing has quit [Ping timeout: 246 seconds]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browzing has joined #asahi-re
browzing has quit [Ping timeout: 272 seconds]
browzing has joined #asahi-re
browzing has quit [Ping timeout: 256 seconds]
aratuk has quit [Remote host closed the connection]
bear24rw has quit [Remote host closed the connection]
bear24rw has joined #asahi-re
bear24rw has quit [Ping timeout: 246 seconds]
aratuk has joined #asahi-re
aratuk has quit [Client Quit]
bear24rw has joined #asahi-re
aratuk has joined #asahi-re
_whitelogger has joined #asahi-re
browzing has joined #asahi-re
browzing has quit [Ping timeout: 240 seconds]
konstater has joined #asahi-re
ts170[m] has joined #asahi-re
zopieux has joined #asahi-re
bear24rw has quit [Remote host closed the connection]
Mary_ has joined #asahi-re
bear24rw has joined #asahi-re
bear24rw has quit [Ping timeout: 264 seconds]
jinen[m] has joined #asahi-re
Jamie[m]2 has joined #asahi-re
sharpiro has quit [Ping timeout: 264 seconds]
aratuk has joined #asahi-re
<puhitaku> i've just purchased an M1 MBA just for experiments and i'd be glad to do disassembling and soldering if it's worth to try
aratuk has quit [Remote host closed the connection]
riker77 has quit [Quit: Quitting IRC - gone for good...]
<davidrysk[m]> puhitaku: you probably won't have to, if anything that special USB cable would be of use
mah has joined #asahi-re
ceph3us has joined #asahi-re
<puhitaku> yeah basically i hope it works well in any aspect of analysis
ceph3us has quit [Remote host closed the connection]
ceph3us has joined #asahi-re
mah is now known as mch
mch is now known as mah
mah has quit [Quit: Leaving]
<puhitaku> my concern is that special USB communication should be achieved on higher layers relatively. generally speaking USB communication is not available in the early stages of booting. I'm not sure neither how or if Apple provides it magically nor the entire boot sequence so I'm gonna learn them
<davidrysk[m]> puhitaku: they use vendor USB-PD commands to expose UART, etc over USB. https://t8012.dev/ is a good place to start
<davidrysk[m]> there was also a tweet by marcan but I forget where it was
<puhitaku> never knew it's handled by T2! thanks a lot for the link
Axenntio has joined #asahi-re
Axenntio has quit [Client Quit]
Axenntio has joined #asahi-re
thecake21[m] has joined #asahi-re
Axenntio_ has joined #asahi-re
<davidrysk[m]> it's not handled by a T2, but it's basically done the same way since the M1 is more or less a much expanded T2
Axenntio_ has quit [Remote host closed the connection]
Axenntio has quit [Ping timeout: 264 seconds]
<Fanfwe> it's not handled by the T2, it's the USB mux controller (CD3217 from Texas Instruments) also known as ACE in Apple's own schematics
<Fanfwe> Type-C has 2 "general purpose" pins that can carry whatever signal you like
<Fanfwe> Apple has implemented a special vendor specific set of messages in the USB-PD protocol so you can request those two general purpose pins to be used as TX and RX lines of the machine's UART
<Fanfwe> only thing is that logic level on those pins is not the usual 5V or 3.3V TTL
<Fanfwe> so you need a level translation circuit
<Fanfwe> But yeah, essentially, being able to get UART on the USB-C is totally independent from what runs on the T2 and/or M1.
riker77 has joined #asahi-re
brentr123[m] has joined #asahi-re
<puhitaku> nice details, also thanks for that, now i understood the overview
bear24rw has joined #asahi-re
bear24rw has quit [Ping timeout: 256 seconds]
bear24rw has joined #asahi-re
bear24rw has quit [Remote host closed the connection]
bear24rw has joined #asahi-re
Axenntio has joined #asahi-re
carlosn has joined #asahi-re
bear24rw has quit [Ping timeout: 264 seconds]
bear24rw has joined #asahi-re
ghantaz has joined #asahi-re
Hexagon has joined #asahi-re
ghantaz has quit [Ping timeout: 245 seconds]
<marcan> puhitaku: my first step will be a serial bootloader, and the second step will be adding usb-device support for that, and then I'll add earlyprintk support for that to linux (this will also be useful on the rPi, FWIW)
<marcan> so if everything goes according to plan, nobody will *really* need a serial cable to help out with the kernel bringup
<marcan> (other than me)
<marcan> but I will be making an open hardware design for it anyway, it's a thing that's nice to have
<marcan> I just think I can avoid it being a blocker for anyone
modwizcode has joined #asahi-re
tiago_ has joined #asahi-re
<Bluerise> aaand if there's a glass framebuffer, it's probably not really necesasry anyway
<Bluerise> I mean, if we can get an early glass framebuffer, that's enough for most people
<marcan> there is, in fact that will be my first hello world, because poking a pixel on the framebuffer is slightly less error prone than sending stuff out of serial
<marcan> but the usb/serial thing is useful to get I/O
browzing has joined #asahi-re
<puhitaku> those steps sound natural while taking control of LCDs must be a journey as we have to make so many parts clear like DMAs and LCD interfaces before getting a fb... even we ignore the GPU stack entirely for the first step
<puhitaku> i'm a bit curious on how to find parts like DMAs in the vast memory map. from the source code of xnu?
Axenntio_ has joined #asahi-re
Axenntio has quit [Remote host closed the connection]
Axenntio_ has quit [Remote host closed the connection]
Axenntio has joined #asahi-re
Axenntio has quit [Remote host closed the connection]
ghantaz has joined #asahi-re
bear24rw has quit [Remote host closed the connection]
<roxfan> there's osfmk/console/video_console.c
bear24rw has joined #asahi-re
stormclad has joined #asahi-re
tiago_ is now known as tmartins
<roxfan> but I only see it called with NULL o.o
bear24rw has quit [Remote host closed the connection]
bear24rw has joined #asahi-re
bear24rw has quit [Remote host closed the connection]
<marcan> puhitaku: the bootloader sets up the framebuffer for us
bear24rw has joined #asahi-re
<marcan> you just write to memory
tmartins is now known as tiagom
<marcan> of course actually implementing the display controller so you can do things like plug in external displays will be more fun
tiagom has quit [Quit: tiagom]
tiagom has joined #asahi-re
tbodt has joined #asahi-re
ghantaz has quit [Remote host closed the connection]
bear24rw has quit [Remote host closed the connection]
bear24rw has joined #asahi-re
<puhitaku> i've been forgotten that the boot menu showed up in your broadcast *slaps forehead* sry for misunderstanding because of not having the real hardware for now
<marcan> actually that boot menu isn't that
<marcan> that "boot menu" is just an OSX app
Baughn has joined #asahi-re
<marcan> but the *apple* that shows up before that, with the "entering options" thing, *that* is the bootloader
Axenntio has joined #asahi-re
Axenntio_ has joined #asahi-re
Axenntio_ has quit [Remote host closed the connection]
Axenntio has quit [Remote host closed the connection]
Axenntio has joined #asahi-re
Axenntio_ has joined #asahi-re
Axenntio_ has quit [Remote host closed the connection]
Axenntio_ has joined #asahi-re
Axenntio_ has quit [Remote host closed the connection]
Axenntio has quit []
Axenntio_ has joined #asahi-re
Axenntio_ has quit [Remote host closed the connection]
ConeOfAttack[m] has joined #asahi-re
<puhitaku> so we might be able to overwrite the white apple with the fresh asahi ringo logo ... that's cool, i hope the bootloader passes the fb as-is
fl35[m] has joined #asahi-re
<jn__> ... or with Bad Apple frames :)
<diz3y> jn__: loading animation \o/
Axenntio has joined #asahi-re
Axenntio has quit [Remote host closed the connection]
Axenntio has joined #asahi-re
ransom has joined #asahi-re
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Axenntio has quit [Ping timeout: 240 seconds]
sharpiro has joined #asahi-re
Axenntio has joined #asahi-re
browzing has quit [Ping timeout: 246 seconds]
sharpiro_ has joined #asahi-re
Axenntio has quit [Remote host closed the connection]
sharpiro has quit [Ping timeout: 256 seconds]
tiagom has quit [Quit: tiagom]
browzing has joined #asahi-re
tiagom has joined #asahi-re
skg has joined #asahi-re
bear24rw has quit [Remote host closed the connection]
bear24rw has joined #asahi-re
bear24rw has quit [Remote host closed the connection]
bear24rw has joined #asahi-re
xerpi[m] has joined #asahi-re
ransom has joined #asahi-re
<puhitaku> jn__: it'll be so fun to show off with Bad Apple :O
ransom_ has joined #asahi-re
ransom has quit [Ping timeout: 272 seconds]
aratuk has joined #asahi-re
aratuk_ has joined #asahi-re
aratuk has quit [Ping timeout: 256 seconds]
<roxfan> make it an easter egg
jevinskie[m] has joined #asahi-re
ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ransom has joined #asahi-re
krbtgt has joined #asahi-re
stormclad has quit [Remote host closed the connection]
stormclad has joined #asahi-re
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ransom has joined #asahi-re
modwizcode has quit [Quit: Later]
Lightsword has joined #asahi-re