2022-10-06
00:28loki_val has quit [Remote host closed the connection]
00:29crabbedhaloablut has joined #asahi-re
01:03amateurece has left #asahi-re [#asahi-re]
01:38riker77_ has joined #asahi-re
01:43riker77 has quit [Ping timeout: 480 seconds]
01:43riker77_ is now known as riker77
02:12yrlf has quit [Quit: The Lounge - https://thelounge.chat]
02:13yrlf has joined #asahi-re
02:21amarioguy2 is now known as amarioguy
06:53opticron has quit [Remote host closed the connection]
06:53opticron has joined #asahi-re
07:01MajorBiscuit has joined #asahi-re
07:07Jamie[m]on the assumption that it's sane to try doing AVD just with direct register poking and maybe a little custom firmware, I'm gonna see if I can get the firmware running in an emulated cortex-m3, proxying peripheral read/writes back to the hardware
07:18Jamie[m]i think the awful/amazing verdict will probably be decided by whether i do this in c in m1n1 or as a proxyclient script
07:34Major_Biscuit has joined #asahi-re
07:36MajorBiscuit has quit [Ping timeout: 480 seconds]
07:37m5zs7k has quit [Ping timeout: 480 seconds]
07:40m5zs7k has joined #asahi-re
08:05goldsoultheory has joined #asahi-re
08:08pjakobsson has quit [Remote host closed the connection]
08:11millenialhacker has quit [Ping timeout: 480 seconds]
08:24compassion has quit [Quit: Ping timeout (120 seconds)]
08:24compassion has joined #asahi-re
08:31millenialhacker has joined #asahi-re
08:56chadmed[m]doesnt qemu?
09:07chadmed[m]there is no disappointment quite like "oh, it just doesnt work on my machine... ok then" except maybe being served a cold pizza
09:34Jamie[m]m3 is tiny enough that I was thinking of emulating the periphals used (basically nothing) myself
09:35Jamie[m]but wasn't sure what to use for actually running the code, unicorn is probably what i would have begrudgingly settled on
09:40rqou_well, i've just hooked up the firmware in unicorn engine and i can successfully send the start session command and get its reply
09:52Jamie[m]+ use hv to override writes to the firmware region, instead writing a firmware where all the exception vectors just go to a while(true) {} that doesn't touch memory*
09:52Jamie[m]+ hook it up so that the sram region is backed by the actual real sram region, as are the decoder/dma/etc peripherals
09:52Jamie[m]+ double-check that there's memory barrier stuff to ensure all the sram region accesses are immediately reflected (if necessary?)
09:53Jamie[m]**todo: figure out how to make the real-device exception handlers not interfere with the sram by putting stuff on the stack
09:57rqou_oh right now i'm doing something slightly different of "feed captured commands into an emulated firmware and see what it spits out"
09:57Jamie[m]i guess that is easier than REing the firmware with all the dynamic varaiables that actually just point to 0x10000000 haha :P:P
09:58Jamie[m](part of my reason for doing this was to isolate and understand the behaviour of the DMA peripherals, but I get the impression that you already understand them much more than I do)
10:01Jamie[m]btw have i got my offsets wrong or is DMACFGMEMSRC serving a dual purpose where it seems to be read from as a "is the dma currently busy" register?
10:04Jamie[m]oh i think i typed all these peripheral names from tunables into binaryninja by hand lmao
10:09Jamie[m]if this works out we can outdo lina by writing not just the kernel module in rust but also the firmware :P
10:11chadmed[m]surely it will be possible to come up with something with a simpler interface than what apple have done
10:11chadmed[m]like do we even need to worry about fairplay at all?
10:13rqou_although we _might_ be able to play SD trailers etc. that don't require a secure boot chain
10:14rqou_i need to sleep, but here you go: https://github.com/rqou/m1-avd-reverse-engineering/blob/main/avd_emu.py
10:23Jamie[m]gotta finish this driver before the next apple hardware cycle when the term M3 becomes too ambiguous :P
10:23nicolas17 has joined #asahi-re
11:06goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:06goldsoultheory has joined #asahi-re
11:07goldsoultheory has quit []
11:18goldsoultheory has joined #asahi-re
11:36amarioguysven: this it? http://f.svpe.de/d48b3719f56e413e94ca40a6e9cbc8636577695c66054ef44093270998999449_trace_sep.py
11:44jonmasters has quit [Read error: No route to host]
11:44linxz has quit [Read error: No route to host]
11:44Manouchehri has quit [Read error: No route to host]
11:44jonmasters has joined #asahi-re
11:44svenI think it stuffs some identifier of the userspace client that called the function in there
11:45linxz has joined #asahi-re
11:48nicolas17sven: there's a Continuity protocol that uses something like "s=sha512(payload); hash = s[0..15] xor s[16..31] xor ..."
11:48nicolas17I don't know why they went for sha512 instead of 256 and why they didn't just truncate it instead of xoring pieces of it to make it fit in the BTLE packet
11:48Manouchehri has joined #asahi-re
11:52nicolas17 has quit [Quit: lunch]
13:10nicolas17 has joined #asahi-re
13:50nicolas17 has quit [Ping timeout: 480 seconds]
14:28nicolas17 has joined #asahi-re
14:47nicolas17 has quit [Ping timeout: 480 seconds]
15:45goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:51nicolas17 has joined #asahi-re
16:00goldsoultheory has joined #asahi-re
16:32nicolas17 has quit [Ping timeout: 480 seconds]
16:34goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:43goldsoultheory has joined #asahi-re
16:46genhack[m] has joined #asahi-re
16:52genhack[m]Hi everyone! I have a question about this beautiful project, through uboot is it possible to read the syscfg and write it back?
16:58svenyou'd need to boot a linux kernel with SPI support and the NOR node enabled in the device tree and then be brave enough to actually write your modifications back
17:05Major_Biscuit has quit [Ping timeout: 480 seconds]
17:06goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:07goldsoultheory has joined #asahi-re
17:09goldsoultheory has quit []
17:11genhack[m]thanks sven for the reply, the rom should be the soc eep. (on schematics) if I understood correctly the W25Q64. My question was instead addressed to nand, that is, if they contain a Syscfg partition (like ios).
17:12genhack[m]this is strange no sn is inside of the nor
17:13genhack[m]serial
17:13genhack[m]sn bt or wifi
17:14goldsoultheory has joined #asahi-re
17:14genhack[m]so if i change the nand bga110 the apple configurator will restore the nand without any mod?
17:16genhack[m]256gb to 1tb nand
17:43goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:43goldsoultheory has joined #asahi-re
17:45goldsoultheory has quit []
17:51goldsoultheory has joined #asahi-re
18:34goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:35goldsoultheory has joined #asahi-re
18:35goldsoultheory has quit []
18:51goldsoultheory has joined #asahi-re
20:13illenialhackerm has joined #asahi-re
20:15millenialhacker has quit [Ping timeout: 480 seconds]
20:40goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:40goldsoultheory has joined #asahi-re
20:41goldsoultheory has quit []
20:46goldsoultheory has joined #asahi-re
21:30jakebot6022 has quit [Quit: The Lounge - https://thelounge.chat]
21:32arisu has quit []
21:49goldsoultheory has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:50goldsoultheory has joined #asahi-re
21:51goldsoultheory has quit []
21:53jakebot6022 has joined #asahi-re
21:55goldsoultheory has joined #asahi-re
23:33bisko has joined #asahi-re