#
✕ nick:marcan
#asahi-re · 2021-02-01 11:37
marcanAMX should be 0x00201000 through 0x002013ff
#asahi-re · 2021-02-01 11:37
marcan0x4xx
#asahi-re · 2021-02-01 11:37
marcanno, that has an extra bit set
#asahi-re · 2021-02-01 11:36
marcanthat doesn't look right
#asahi-re · 2021-02-01 11:36
marcanamxsty x2?
#asahi-re · 2021-02-01 11:34
marcanso that's AMX then?
#asahi-re · 2021-02-01 11:34
marcan 88: 00201462 .inst 0x00201462 ; NYI
#asahi-re · 2021-02-01 11:34
marcanthe iBoot trampoline (I think) has this
#asahi-re · 2021-02-01 05:01
marcanyes, I saw stuff like that in an iBoot trampoline (I think) I found in RAM
#asahi-re · 2021-01-31 16:44
marcanhttps://opensource.apple.com/tarballs/xnu/
#asahi-re · 2021-01-31 16:14
marcanit's crazy
#asahi-re · 2021-01-31 16:14
marcanyeah, I know
#asahi-re · 2021-01-31 05:11
marcanafaik
#asahi-re · 2021-01-31 05:11
marcanthe kernel supports both t8101 and t8103
#asahi-re · 2021-01-29 08:13
marcanfair enough, just keep in mind this might complicate things if you ever do decide to contribute to any kernel code
#asahi-re · 2021-01-29 08:00
marcanamw: so if I may ask, what are you planning to do? :)
#asahi-re · 2021-01-29 07:57
marcanit's supposed to be scary
#asahi-re · 2021-01-29 07:53
marcanhowever, Apple-proprietary kexts are included, and those we do not get the source for
#asahi-re · 2021-01-29 07:53
marcanonce M1 support is open sourced, there will be no reason to disassemble the core of the kernelcache, ever
#asahi-re · 2021-01-29 07:53
marcanhttps://github.com/AsahiLinux/docs/wiki/RE:Kernelcache
#asahi-re · 2021-01-29 07:45
marcanlet me just write this up real quick
#asahi-re · 2021-01-29 07:43
marcanI mean it can go in the docs wiki, but we need to make sure people understand this
#asahi-re · 2021-01-29 07:42
marcanbecause unless you will never contribute to Asahi or any related open source project, you should not start throwing things in a disassembler without carefully reading that and understanding the implications
#asahi-re · 2021-01-29 07:42
marcanwell, if we have a page about this, we need a big disclaimer at the top telling people to go read our policy first
#asahi-re · 2021-01-29 07:41
marcanhttps://gist.github.com/marcan/e1808a2f4a5e1fc562357550a770afb1 machodump.py
#asahi-re · 2021-01-29 07:40
marcanbut IRC is fine so: get https://github.com/tihmstar/img4tool, img4tool -a kernelcache -e -p kernelcache.im4p -m kernelcache.im4m; img4tool kernelcache.im4p -e -o kernelcache.macho
#asahi-re · 2021-01-29 07:40
marcanI kind of fear that if we just give people a step by step tutorial on how to extract the kernelcache, that will just result in randoms disassembling things and trying to contribute (make sure you read alx.sh/re)
#asahi-re · 2021-01-29 07:39
marcanthe macho file inside the img4 kernelcache
#asahi-re · 2021-01-29 07:38
marcanyou need to extract it yourself
#asahi-re · 2021-01-29 07:38
marcanthat's macOS, that is not redistributable
#asahi-re · 2021-01-29 07:38
marcanoh that
#asahi-re · 2021-01-29 06:01
marcanI usually commit generally useful stuff
#asahi-re · 2021-01-29 06:01
marcanamw: https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/memdump.py
#asahi-re · 2021-01-27 16:45
marcan(this is from the p-core init)
#asahi-re · 2021-01-27 16:45
marcanyes, they used the spare bits.
#asahi-re · 2021-01-27 16:45
marcan HID16_ENABLE_MPX_PICK_45 | HID16_ENABLE_MP_CYCLONE_7);
#asahi-re · 2021-01-27 16:45
marcan reg_set(SYS_HID16, HID16_SPAREBIT0 | HID16_SPAREBIT3 |
#asahi-re · 2021-01-27 16:45
marcandavidrysk[m]: btw
#asahi-re · 2021-01-27 16:03
marcanso I only dumped out the start code into objdump
#asahi-re · 2021-01-27 16:03
marcanI was only interested in the chicken bits
#asahi-re · 2021-01-27 16:03
marcanI did not load all of xnu into a disasm
#asahi-re · 2021-01-27 16:03
marcanand which version?
#asahi-re · 2021-01-27 16:02
marcandavidrysk[m]: is that in the init path?
#asahi-re · 2021-01-27 15:59
marcandavidrysk[m]: ^
#asahi-re · 2021-01-27 15:59
marcanhttps://github.com/corellium/preloader-m1/blob/main/preboot.S#L288
#asahi-re · 2021-01-25 18:59
marcanyes
#asahi-re · 2021-01-25 18:59
marcancorellium messed that up in their chickenbits dump and documented it as MIGSTS or whatever
#asahi-re · 2021-01-25 18:59
marcansame encoding
#asahi-re · 2021-01-25 18:58
marcanit became that
#asahi-re · 2021-01-25 18:58
marcan#define SYS_APCTL_EL1 sys_reg(3, 4, 15, 0, 4)

plus ›