#
#asahi-re · 2021-02-04 19:17
davidrysk[m]krbtgt: the Mac target isn't broken because people put a ton of work into it. It used to be completely broken
#asahi-re · 2021-02-04 16:36
krbtgtlike... the power mac target
#asahi-re · 2021-02-04 16:36
krbtgtanytime qemu isn't broken is a pleasant surprise for me
#asahi-re · 2021-02-04 16:36
krbtgtTCG is miserable, most of the targets are broken or if they boot, only boot linux
#asahi-re · 2021-02-04 16:35
krbtgtyeah qemu IME is a crapshoot outside of linux guests on linux kvm hosts
#asahi-re · 2021-02-04 15:14
modwizcodeAlso fun fact that peripheral in QEMU is totally broken in several ways until I happened to look at it. Guess nobody emulates an old exynos4210 anymore, shocker.
#asahi-re · 2021-02-04 15:13
modwizcodebad bad idea btw very much a deadend :p
#asahi-re · 2021-02-04 15:13
modwizcodeYeah there was a lot of gluing the samsung stuff to the virt machine
#asahi-re · 2021-02-04 14:53
j`eyso it's similar to samsung, but needed some changes still
#asahi-re · 2021-02-04 14:52
j`eykrbtgt: https://github.com/AsahiLinux/linux/commit/c837226506a6dbeb4093d974df435160a9fb8c25 changes to the samsung driver for m1
#asahi-re · 2021-02-04 14:49
krbtgtand just glued on qemu's emulation of it (since it had it for a samsung soc or something) onto virt afaik
#asahi-re · 2021-02-04 14:49
krbtgti've heard they have reused the samsung uart interface. i.e i remember the blog post about running arm xnu on iOS claimed as much
#asahi-re · 2021-02-04 11:48
marcan(thought a distant one)
#asahi-re · 2021-02-04 11:36
marcanalso, this code has a connection to corellium. I'll leave it there.
#asahi-re · 2021-02-04 11:33
marcanthis is your daily reminder that copyright violations in "reverse engineered" code are rampant and to be very careful with any random things you find on GitHub
#asahi-re · 2021-02-04 11:32
marcansigh... I'm doing some iPhone archaeology to see if I can plausibly claim my UART driver would work all the way back to the original iPhone 2G, and... I stumble upon yet another "open source" iPhone related project whose code is a blatant rip-off of Apple code
#asahi-re · 2021-02-02 15:00
modwizcodeYeah in that case maybe once I move beyond the AIC I'll try to see what I can find.
#asahi-re · 2021-02-02 10:31
marcanyeah, it's fine for making an emulator (and a good idea even, it's basically cleanrooming documentation)
#asahi-re · 2021-02-02 09:27
agrafmodwizcode: If you only look at the code and you're implementing the *emulator* part, to me that would count as "reading documentation" which is perfectly fine. You're not reproducing the same functionality, you're building the SoC without any source access to it. But IANAL, so take that advise with a grain of salt :).
#asahi-re · 2021-02-02 07:04
marcanso we'll see what happens once I look into it in more detail
#asahi-re · 2021-02-02 07:04
marcanI can trust myself not to screw this up, but so far they haven't earned my trust (few people have)
#asahi-re · 2021-02-02 07:04
marcanI mean, it's no different from what I will be doing eventually... but I'm trying to be upfront about it and document my standards
#asahi-re · 2021-02-02 05:50
modwizcodeI was worried about as much, I've been avoiding looking at that code (mostly for emulator stuff so not sure how important it really is)
#asahi-re · 2021-02-02 04:28
marcan(beyond the parts I already did, those are going away anyway but they were obviously clean by nature, since it was linux-specific stuff)
#asahi-re · 2021-02-02 04:28
marcanjust a warning to everyone; I'm not going to throw away and ignore all of their work since some of it is useful, but I'm going to look at it with a microscope before I cherry-pick any of it into our tree
#asahi-re · 2021-02-02 04:28
JTLa fair take
#asahi-re · 2021-02-02 04:27
marcanand if they don't upstream anything themselves, I'll be auditing some parts and seeing what I'm fairly confident I can assert does not contain copyright violations, and we can pull in those bits
#asahi-re · 2021-02-02 04:27
marcanhowever, there is obviously useful work in there; anything they actually manage to upstream themselves (if they do) is fair game, since at that point it's not our problem any more
#asahi-re · 2021-02-02 04:26
marcanthat means that, per alx.sh/re, we cannot blindly use them (because we cannot know for certain that they didn't create a copyright violation)
#asahi-re · 2021-02-02 04:26
marcanfwiw: the Corellium Linux drivers are developed via binary reverse engineering (register names and bit names make it obvious; there are things in there that can only be known from strings in Apple drivers, and would be undiscoverable via black-box testing, register tracing, or anything like that)
#asahi-re · 2021-02-02 01:24
davidrysk[m]the libT8101.os.DEVELOPMENT.a included with the 11.2 KDK is all machine code -- no more llvm-ir
#asahi-re · 2021-02-01 17:22
comexnever_released: they don't support the custom instructions, but that's separate from the making LLVM IR blobs easier to read (I just checked and only two of the .o files that contain bitcode fail to compile because of custom instructions, and those could be patched not to do so, if the goal is just REing the logic)
#asahi-re · 2021-02-01 14:43
modwizcodegeez I keep bumping enter
#asahi-re · 2021-02-01 14:43
modwizcode*it's own
#asahi-re · 2021-02-01 14:43
modwizcodeI thought PPL's implementation was pretty sound on it'
#asahi-re · 2021-02-01 14:43
modwizcodeoops
#asahi-re · 2021-02-01 14:43
modwizcodeI thought PPL'
#asahi-re · 2021-02-01 13:07
opticronit's like they reimplemented a custom/different EL3
#asahi-re · 2021-02-01 13:07
opticronwell that's kind of wacky
#asahi-re · 2021-02-01 12:55
sventhanks!
#asahi-re · 2021-02-01 12:54
sveninteresting
#asahi-re · 2021-02-01 12:53
never_releasedhttp://newosxbook.com/articles/CasaDePPL.html for the pre-GXF PPL implementation
#asahi-re · 2021-02-01 12:51
svendo you know what they use that one for?
#asahi-re · 2021-02-01 12:51
never_releasedin parallel yes, with their own exception vectors
#asahi-re · 2021-02-01 12:51
svenis that another exception level or something like that?
#asahi-re · 2021-02-01 12:51
svenhuh, interesting.
#asahi-re · 2021-02-01 12:50
never_releasedGXF_CONFIG_EL[1/2], GXF_ENTRY_EL[1/2], GXF_PABENTRY_EL[1/2]
#asahi-re · 2021-02-01 12:50
never_releasedSP_GL[1/2], TPIDR_GL[1/2], VBAR_GL[1/2], ELR_GL[1/2], ESR_GL[1/2], FAR_GL[1/2], SPSR_GL[1/2]
#asahi-re · 2021-02-01 12:43
never_releasedGuarded execution
#asahi-re · 2021-02-01 12:43
never_releasedGXF

plus ›