2021-01-30
00:31dhewg has joined #asahi-dev
01:49Namidairo has quit [Read error: Connection reset by peer]
01:49Namidairo has joined #asahi-dev
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-dev
03:09amw has joined #asahi-dev
03:31PhilippvK_ has quit [Ping timeout: 260 seconds]
03:31PhilippvK has joined #asahi-dev
03:57amw has quit [Ping timeout: 272 seconds]
04:14amw has joined #asahi-dev
04:26amw has quit [Ping timeout: 240 seconds]
04:28amw has joined #asahi-dev
04:54_whitelogger has joined #asahi-dev
05:08amw has quit [Ping timeout: 240 seconds]
05:54amw has joined #asahi-dev
06:00amw has quit [Ping timeout: 240 seconds]
06:21amw has joined #asahi-dev
06:32acelogic has quit [Ping timeout: 246 seconds]
06:34VinDuv has joined #asahi-dev
07:00amw has quit [Ping timeout: 264 seconds]
07:03amw has joined #asahi-dev
07:15amw has quit [Ping timeout: 260 seconds]
07:19amw has joined #asahi-dev
07:33marcandocumenting another mystery register: https://github.com/AsahiLinux/docs/wiki/HW:ARM-System-Registers#sys_l2c_err_sts
07:33marcancorellium sets that one to zero, disabling all faults, thus shoving all address issues under the carpet :)
08:01amw has quit [Ping timeout: 265 seconds]
08:37mxw39 has joined #asahi-dev
08:40amw has joined #asahi-dev
08:47mxw39 has quit [Quit: Konversation terminated!]
08:47amw has quit [Ping timeout: 240 seconds]
08:48mxw39 has joined #asahi-dev
09:25mxw39 has quit [Quit: Konversation terminated!]
09:25mxw39 has joined #asahi-dev
09:28mxw39 has quit [Client Quit]
09:28mxw39 has joined #asahi-dev
09:31mxw39 has quit [Client Quit]
09:31mxw39 has joined #asahi-dev
09:55amw has joined #asahi-dev
09:56amw has quit [Client Quit]
10:19luca020400 has joined #asahi-dev
10:49taziden has quit [Ping timeout: 246 seconds]
10:53taziden has joined #asahi-dev
13:16kettenisThis boots up to a prompt on the framebuffer console when used as a "kernel" with preloader-m1
13:54DarthCloud has quit [Remote host closed the connection]
13:54DarthCloud has joined #asahi-dev
14:25marcanit's a fun one: leaving that register enabled, I get SError faults (after a few times, an endless loop) after normal page faults - but not always
14:28Blueriseso bascially I could do USB-PD-Machine -> breakout -> (intercept D+/D- right here) -> breakout -> M1
14:28marcanactually one thing I need to try out, if I find some time tomorrow, is to make this work with a simple M1 - M1
14:29marcanbut yeah, if you can do compliant DFP negotiation and send SOP'DEBUG/SOP''DEBUG VDMs it should work
14:34arndmarcan: are you running with 4KB pages when you get the SError faults? I've been wondering whether there is a register that changes the cache between a mode that is faster on 16KB pages and one that works correctly on 4KB. I was mostly thinking of the L1 cache that appears as though they designed it as a non-aliasing VIPT 8-way set-associative L1d, which would make it aliasing for 4K
14:36marcanI have it running in a loop incrementing base addresses by 64K, I'll leave it overnight and see if I see patterns tomorrow :)
14:46Bluerisethe more I think about it the easiest might really be hummingboard pulse -> cheap breakout board -> intercept data lines to -> cheap breakout board -> m1
14:47Blueriseand then I only need to a) add code to my tcpci(4) driver to send VDM on port attach b) somehow get to 1.2V
14:50Blueriselike the turris mox has a 1.8V pin that you connect to the muart, which the muart will use as basline for tx/rx
14:59Bluerisehttps://www.conrad.de/de/p/joy-it-com-ky051vt-1-st-1695385.html?hk=SEM&WT.srch=1&WT.mc_id=google_pla&s_kwcid=AL%21222%213%21367270211499%21%21%21g%21%21&ef_id=EAIaIQobChMIxdbu3vXD7gIVUeJ3Ch35sQF7EAQYASABEgL-EPD_BwE%3AG%3As&gclid=EAIaIQobChMIxdbu3vXD7gIVUeJ3Ch35sQF7EAQYASABEgL-EPD_BwE#productDownloads
15:03Blueriseusb 5v -> resistor to 1.2V -> level shifter, and usb 5v -> resistor to 3.3v -> level shifter. and then connect d-/d+ to the level shifter and a regular 3.3v ttl uart?
15:04kettenismarcan: if you don't care about the actual colors I think there is a quick hack I think
15:04jixBluerise: I assume the level shifter would also need a proper supply, not a resistor divider
15:05marcanyes, you can't use resistor dividers for power supplies unless you use really low value resistors :p
15:06kettenisin drivers/video/simplefb.c change one of the 32-bit format strings to match "x2r10g10b10"
15:45prusnak has quit [Ping timeout: 272 seconds]
15:45prusnak has joined #asahi-dev
15:58DrWhax has quit [Quit: leaving]
16:28BlueriseSo, for the voltage divider to get from 1.8V to 1.2V, which resistors should I do? 1kOhm + 2kOhm? Do I need higher or lower values?
17:03modwizcodeshould be
17:20modwizcodemarcan: Then I'd have to buy something to store them in?
17:21modwizcodeThe other day I bought like 10-20 smd tiny little ones to fix a eval board. I have no use for more than 1
17:22modwizcodeI should probably get something like that.
17:24modwizcodeI cannot remember the exact size (I went to go look but it's unmarked) but it was small enough that I accidentally knocked other things off the board and almost broke it completely
17:24modwizcodeShould go fix it right now that I have hot air to use.
17:25modwizcodeIncidientally I have improved the qemu code a bit. I now load things at 0x10 instead of 0x0 to not confuse code.
17:25modwizcodeAnd i cleaned up the code handling boot args and the stub device tree a bit
17:30modwizcodeUnforutnately there's no easy clean way to get qemu to define a function as the "final" reset handler, so stuff like initializing the HCR_EL2 reg before jumping in and pointing it to the boot args is only certain if you have the cpu itself execute it as a sort of bootloader blob. You can hook reset but if you use any built-in loader code it will hook reset and break :/
17:30modwizcodeGood news is I should be able to get a simple FB up and running today. Then maybe add the AIC
17:38BlueriseI told a friend that sometimes I wished I had studied electronics so that I knew how to design pcbs etc. he then told me that's not what you learn there...
17:41BlueriseI guess those "order your m1 serial adapter here" options won't arrive for another month? :D
17:42marcanuhh if I'm fast enough I might have *prototypes* to send out to some people within a month :p
17:42j`eymarcan: that sounds like a cool stream. Ive designed some MCU pcbs before, but I had no idea what I was doing. totally surprised they worked
17:43zopieux has quit [Ping timeout: 260 seconds]
17:44zopieux has joined #asahi-dev
18:18opticronBluerise, as a degreed EE, I can vouch for that. You learn electromagnetics and signal/noise theory
18:26never_released_ has quit [Changing host]
18:26never_released_ has joined #asahi-dev
18:28never_released_ is now known as never_released
18:30m42uko_ is now known as m42uko
18:33djhworld has quit [Quit: The Lounge - https://thelounge.chat]
18:36roxfan2 has joined #asahi-dev
18:36Mary_ has quit [Read error: Connection reset by peer]
18:37Mary_ has joined #asahi-dev
18:38roxfan has quit [Ping timeout: 246 seconds]
19:37DrWhax has joined #asahi-dev
19:41acelogic has joined #asahi-dev
19:47r1fl has quit [Ping timeout: 264 seconds]
19:47r1fl has joined #asahi-dev
19:55mxw39 has quit [Quit: Konversation terminated!]
22:09VinDuv has quit [Quit: Leaving.]
22:41bsandro has joined #asahi-dev
23:02bsandro has quit [Quit: leaving]