#
✕ nick:marcan
#asahi · 2021-08-03 04:13
marcanok, I'm going to do a cleanup pass on the DCP commits then spend a day or two looking into an install script. worth giving it that much time.
#asahi · 2021-08-03 04:12
marcanI don't think they cared about SErrors, seeing as they actually disabled them, presumably to work around driver bugs ;)
#asahi · 2021-08-03 04:11
marcanthe field descriptions are on the docs wiki (as far as I figured out)
#asahi · 2021-08-03 04:11
marcanoh and if you meant reading corellium code for the SError stuff: I don't know if they have that at all, but it's in m1n1's exception handler, so use that as a reference (the L2C_* registers)
#asahi · 2021-08-03 03:28
marcanI'm more worried about it leading people down wrong paths than about the licensing question
#asahi · 2021-08-03 03:28
marcanI would treat it as license-incompatible out of an abundance of caution, but reading it is not banned or anything
#asahi · 2021-08-03 03:25
marcanthe reason why I usually avoid reading corellium code is not because I hate them, it's because it's often wrong and would lead to red herrings or point toward the wrong approach
#asahi · 2021-08-03 03:23
marcanthe SError stuff is another story, that's core arch code and I don't know if there is any precedent for having SoC-specific syndrome register dumps in there
#asahi · 2021-08-03 03:23
marcanthey also did that for i2c which again was silly, we know there's a driver that is nearly identical already :p
#asahi · 2021-08-03 03:22
marcanso I suspect the same might be true for SPI but I haven't looked at it yet
#asahi · 2021-08-03 03:22
marcancorellium wrote their own uart driver which was dumb, as linux already had a samsung uart driver we could adapt
#asahi · 2021-08-03 03:21
marcanamw: the question is whether such driver exists and how close it is to this hardware
#asahi · 2021-08-03 03:10
marcanthe proprietary registers tell you exactly what address and access type caused the SError
#asahi · 2021-08-03 03:09
marcanI should add a patch for that to a branch somewhere, probably won't ever get merged but we should be running it for debugging
#asahi · 2021-08-03 03:09
marcanamw: re SError, unfortunately there's no useful info there. Usually SError is a fabric error on M1, and to decode that you need a dump of some proprietary registers
#asahi · 2021-08-03 03:08
marcan(as we did for serial, and i2c)
#asahi · 2021-08-03 03:08
marcanamw: I think SPI is another smasung derivative, needs some digging to see if we already have a driver for similar enough hardware
#asahi · 2021-08-02 19:47
marcananyway, I'm off to sleep
#asahi · 2021-08-02 19:46
marcanideally if the installer is python we shouldn't even need to build this on a mac
#asahi · 2021-08-02 19:46
marcan:p
#asahi · 2021-08-02 19:46
marcanthe point being I want to be able to download the package directly so I don't have to
#asahi · 2021-08-02 19:46
marcan... yes I know how to install homebrew
#asahi · 2021-08-02 19:45
marcanI assume it wants some token, presumably there is some API flow to get one
#asahi · 2021-08-02 19:45
marcanall the URLs in https://formulae.brew.sh/api/bottle/python@3.9.json
#asahi · 2021-08-02 19:45
marcanseems ghcr.io needs authentication?
#asahi · 2021-08-02 19:45
marcanbrentr123[m]: I can't figure out how to download homebrew packages, lol
#asahi · 2021-08-02 19:18
marcanAIUI this is already the case for the core drm/kms code and the big drivers
#asahi · 2021-08-02 19:17
marcanI made the decision at the start to MIT everything for this and other reasons :-)
#asahi · 2021-08-02 19:17
marcan(dual MIT/GPL)
#asahi · 2021-08-02 19:16
marcaneverything will be MIT
#asahi · 2021-08-02 19:16
marcanoh you mean the drivers?
#asahi · 2021-08-02 19:16
marcanthey are loaded from the bootloader
#asahi · 2021-08-02 19:16
marcanwe do not load those blobs from the OS
#asahi · 2021-08-02 19:13
marcanit has perl but just... no.
#asahi · 2021-08-02 19:13
marcannope
#asahi · 2021-08-02 19:12
marcanalso if anyone knows of a portable python3 bundle thingy I can just download and run on macos/arm64, that would be helpful, since I'd much rather write this in python than, uh, shellscripts and C tools?
#asahi · 2021-08-02 19:12
marcansure :p
#asahi · 2021-08-02 19:11
marcanif you can't that kind of breaks my current idea
#asahi · 2021-08-02 19:11
marcanmain thing I need to verify is that you *can* use machine owner credentials from another installed OS for bputil/kmutil, I'm not entirely sure about that yet
#asahi · 2021-08-02 19:11
marcanwell, I don't think writing an installer should take *that* long, unless I hit a showstopper, in which case I could shelve it and come back later
#asahi · 2021-08-02 19:10
marcan:p
#asahi · 2021-08-02 19:10
marcansince you'll need that for DCP anyway
#asahi · 2021-08-02 19:10
marcantime to put on 12.0-betaX!
#asahi · 2021-08-02 19:09
marcanhave you verified that they work after updating macos btw? maybe some of the stuff you have to deal with in userspace is also firmware-dependent :p
#asahi · 2021-08-02 19:08
marcanor should I keep that on the stack and go straight to working on AGX?
#asahi · 2021-08-02 19:08
marcanso poll: should I spend some time writing an install script so we can actually switch versions without doing a full macos install, and without a gian partition and waiting for an hour?
#asahi · 2021-08-02 19:07
marcanit's A444 on 12.0-beta3 fwiw
#asahi · 2021-08-02 19:06
marcanprobably via copy and paste :p
#asahi · 2021-08-02 19:06
marcanbut they do obviously share code
#asahi · 2021-08-02 19:06
marcanand nah I don't think they're that smart

plus ›