#asahi-dev · 2021-02-17 19:34
svenbut all that happened when setting bits in 0x20 was that bits were set and nothing else#asahi-dev · 2021-02-17 19:34
svenmaybe it just doesn't effect that though#asahi-dev · 2021-02-17 19:33
svenso I've poked that register before and couldn't really see anything. there's a second block of memory in the device tree (for disp0 0x4000 bytes before) and after 0x2000 there is some kinda of pagetable cache#asahi-dev · 2021-02-17 19:24
sventhe flush thing also looks.. strange. just write 0 to two registers?#asahi-dev · 2021-02-17 19:22
svenlet me try to poke some bits, maybe it needs something else in there as well#asahi-dev · 2021-02-17 19:22
svenI can set 0xff1bdf in the TCR so that bypass mode kinda agrees with that#asahi-dev · 2021-02-17 19:20
sven(where "more things" = "one more page")#asahi-dev · 2021-02-17 19:20
sventhere are more things mapped, but I just recreated the mapping and only mapped that frame buffer. still works then#asahi-dev · 2021-02-17 19:18
svens/set32/write32/, but same result#asahi-dev · 2021-02-17 19:12
svenand I know where the display engine expects the frame buffer to be at and I wrote 0xff's to the start of ram plus that address#asahi-dev · 2021-02-17 19:11
svenset32(0x231304000+0x100, (8<<16)|0x100); <-- that should disable translation (by clearing 0x80) and enable bypass mode with a base at the start of RAM#asahi-dev · 2021-02-17 19:11
svenI've disabled translations#asahi-dev · 2021-02-17 19:10
svenyes#asahi-dev · 2021-02-17 19:07
svenhrm. that doesn't seem to work for the frame buffer.#asahi-dev · 2021-02-17 19:04
svenmy best bet is the TCR or something in that range I forgot about fwiw.#asahi-dev · 2021-02-17 19:03
svenI haven't looked at what corellium does yet though because I wanted to approach this without any assumptions. maybe they have that bypass flag in their tree.#asahi-dev · 2021-02-17 19:01
svenI kinda forgot about 3, so maybe I'll poke around in there some more#asahi-dev · 2021-02-17 19:01
svenmy best guesses for the bypass enable: 1) the enable/disable flag is in 0xfc, 2) some bit in what I call TCR, 3) somewhere in the 0x140...0x200 range which I haven't spent much time with yet#asahi-dev · 2021-02-17 18:58
svenkettenis: so I assume that there needs to be a "bypass base address" and some "bypass enable" flag. I wasn't able to find them though and doing it just with the frame buffer is a little bit inconvenient because I can't control the device address#asahi-dev · 2021-02-17 18:19
svennow I need to somehow bring up something that lets me see the memory space from the device-side :)#asahi-dev · 2021-02-17 18:18
svenhttps://github.com/AsahiLinux/m1n1/pull/30/files alright.. that's probably everything I can figure out by poking dart mmios and playing with the framebuffer.#asahi-dev · 2021-02-16 07:31
svenI'll see if I can bring up usb in m1n1 (and possibly linux after that)#asahi-dev · 2021-02-16 07:29
svennice :)#asahi-dev · 2021-02-16 06:52
svenhttps://github.com/AsahiLinux/m1n1/pull/30 some notes on the DART + probably a script that dumps its pagetables#asahi-dev · 2021-02-15 15:23
sventhe whole ux is quite unfortunate :(#asahi-dev · 2021-02-15 15:23
svenI have an offline master key with subkeys on yubikeys (signing/authentication ones generated on the device, encryption key imported with an offline backup). the only two things I used it for are ssh and encrypted backups#asahi-dev · 2021-02-12 22:26
svengood night!#asahi-dev · 2021-02-12 22:26
svenyeah, half an hour to midnight ;)#asahi-dev · 2021-02-12 22:24
svenI'll take a look tomorrow, too tired right now for that ;)#asahi-dev · 2021-02-12 22:24
svenremoving all printfs from the secondaries seems to fix it#asahi-dev · 2021-02-12 22:23
svenyeah, it's definitely some race#asahi-dev · 2021-02-12 22:21
svenugh, so, the secondary cores call printf so there might be a race somewhere.#asahi-dev · 2021-02-12 22:18
svenstrange, start_secondaries also seems to fail for me#asahi-dev · 2021-02-12 22:17
svenhuh, weird#asahi-dev · 2021-02-12 22:14
svenhow did I manage to break that?#asahi-dev · 2021-02-12 22:14
svenuh oh :D#asahi-dev · 2021-02-12 22:10
svenyeah, might be a good idea to increase the font size a little bit#asahi-dev · 2021-02-12 22:10
svennice :)#asahi-dev · 2021-02-12 21:33
sventhat still needs fixing#asahi-dev · 2021-02-12 21:33
svenmaximus64: I think you need to run makefont.sh once fwiw#asahi-dev · 2021-02-12 21:33
svenbut totally worth it#asahi-dev · 2021-02-12 21:32
svenyeah :P#asahi-dev · 2021-02-12 21:32
sventhis makes for a really nice development workflow#asahi-dev · 2021-02-12 21:32
svenI use a m1 MacBook Air and a m1 Mac mini connected with a usb-c cable and marcan's macvdmtool#asahi-dev · 2021-02-12 21:30
svenfirst draft, still needs some cleanup :)#asahi-dev · 2021-02-12 21:30
svenmaximus64: https://github.com/AsahiLinux/m1n1/pull/25#asahi-dev · 2021-02-12 21:25
svensure, let me just clean this up a little bit and I'll push it#asahi-dev · 2021-02-12 21:22
svenhttps://files.svenpeter.dev/34ff92fcac5996e1d2aaf925dca781e1a1907776aea910113ce5d372f187a768_m1n1_fbconsole.png looks a lot nicer on a tv#asahi-dev · 2021-02-12 21:21
svenyou can review my code if you want to though#asahi-dev · 2021-02-12 21:21
svenexactly :)