whitequark changed the topic of #glasgow to: glasgow debug tool · code https://github.com/whitequark/Glasgow · logs https://freenode.irclog.whitequark.org/glasgow · revC status: prototype acquired :D :D
_whitelogger has joined #glasgow
jevinski_ has joined #glasgow
jevinskie has quit [Ping timeout: 250 seconds]
jevinskie has joined #glasgow
jevinski_ has quit [Ping timeout: 244 seconds]
pke has joined #glasgow
pke has quit [Ping timeout: 250 seconds]
pke has joined #glasgow
ec0 has joined #glasgow
jevinskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_whitenotifier-c> [whitequark/Glasgow] marcan tagged 8ae10d2 as revC0 https://git.io/fhSNU
<_whitenotifier-c> [Glasgow] marcan created tag revC0 - https://git.io/fp4Wh
<_whitenotifier-c> [whitequark/Glasgow] marcan pushed 4 commits to master [+0/-0/±7] https://git.io/fhSNk
<_whitenotifier-c> [whitequark/Glasgow] marcan 6e09b4f - revC: rename some schematic symbols to match Kicad update
<_whitenotifier-c> [whitequark/Glasgow] marcan 82e342a - revC: revC0 text -> revC?
<_whitenotifier-c> [whitequark/Glasgow] marcan 6764a19 - revC1: add discharge resistors for VIO
<_whitenotifier-c> [whitequark/Glasgow] marcan d1d29ff - revC: annotate FB1
<_whitenotifier-c> [whitequark/Glasgow] marcan pushed 1 commit to master [+0/-0/±1] https://git.io/fhSNq
<_whitenotifier-c> [whitequark/Glasgow] marcan d7530f8 - revC1: annotate FB1
<_whitenotifier-c> [Glasgow] Error. The Travis CI build could not complete due to an error - https://travis-ci.org/whitequark/Glasgow/builds/488574211?utm_source=github_status&utm_medium=notification
<_whitenotifier-c> [Glasgow] Success. The Travis CI build passed - https://travis-ci.org/whitequark/Glasgow/builds/488573977?utm_source=github_status&utm_medium=notification
<_whitenotifier-c> [Glasgow] Success. The Travis CI build passed - https://travis-ci.org/whitequark/Glasgow/builds/488574426?utm_source=github_status&utm_medium=notification
pke has quit [Ping timeout: 256 seconds]
<whitequark> marcan: thanks!
pke has joined #glasgow
<_whitenotifier-c> [whitequark/Glasgow] marcan pushed 1 commit to master [+0/-0/±1] https://git.io/fhSN8
<_whitenotifier-c> [whitequark/Glasgow] marcan daa6a22 - revC1: change C78 silkscreen text to 0.8 for consistency
<marcan> whitequark: also just created https://github.com/whitequark/Glasgow/wiki/ECNs
<marcan> R42 is a good number of resistors.
<_whitenotifier-c> [Glasgow] Success. The Travis CI build passed - https://travis-ci.org/whitequark/Glasgow/builds/488580482?utm_source=github_status&utm_medium=notification
<whitequark> marcan: nice!
pke has quit [Ping timeout: 240 seconds]
<marcan> whitequark: fwiw the weak pull-ups from the unconfigured FPGA are *more than enough* to brightly light the user LEDs
<marcan> I dread what they're going to look like actually driven
<Hellsenberg> maybe try self-powering the glasgow using a solar cell lit by the LEDs :P
<whitequark> marcan: yeah, I noticed that
<marcan> whitequark: what are the pink leds you're going to use, btw? might as well order some and fix the two that aren't :p
<marcan> also I'm ordering some SMD resistor books since having a proper set has been on my TODO list for a while, can test with values from that
<marcan> whitequark: so let's talk about revC software?
<whitequark> marcan: let's
<marcan> first of all, note that I have *no idea* how any of this works at all, just keep that in mind
<marcan> (since I've never used revB either)
<marcan> first obvious thing, how are we differentiating B from C?
<marcan> serial/something?
<whitequark> do you want me to do a complete explanation, or would you rather get started?
<whitequark> serial, yes, first letter of
<marcan> ack
<whitequark> it's also in the low byte of uh
<whitequark> DID
<marcan> DID?
<marcan> well if you can give me a birds eye view that would probably help
<whitequark> VID, PID, DID
<Hellsenberg> USB Device ID?
<whitequark> yes
<whitequark> so, uh
<marcan> oh bcdDevice?
<whitequark> yes
<marcan> kk
<whitequark> so, birds eye view
<whitequark> there are three parts that need to be changed to get basic functionality
<whitequark> glasgow.platform module defines the migen build stuff
<whitequark> GlasgowPlatform needs to be forked into GlasgowRevABPlatform and GlasgowRevCPlatform
<whitequark> after that, GlasgowHardwareDevice needs to be changed to save revision (and probably serial) for easy access
<whitequark> after that, GlasgowHardwareTarget needs to be changed to accept platform_cls, like it's accepting multiplexer_cls now
<whitequark> this would be plumbed through glasgow.cli._applet
<whitequark> there's a small complication there. run and flash actions only work with a real device, so you can infer revision
<whitequark> build needs revision to be specified explicitly
<whitequark> okay, i guess this is not very birds-eye, it's actually quite detailed
<marcan> yeah I still have no idea how everything fits together, though this helps point me at what I need to *do*
<marcan> I could use an overview of the general flow
<marcan> is there even any user documentation? :p
<whitequark> not really
<marcan> so yeah, you could start there
<marcan> right now I just know 'glasgow run selftest' does a bunch of stuff on revB
<whitequark> i was prioritizing hardware that actually works over, uh, everything else
<marcan> and there's a USB re-enumeration involved
<whitequark> ok so
<whitequark> ask questions, maybe? i'm too inside the whole thing to see how it ought to be laid out, i think
<whitequark> i also have a splitting headache but that's usual
<marcan> okay, so what's the provisioning/production process, what gets put in the flash, and then what happens upon normal usage/bootstrapping
<marcan> e.g. I see it has the device ID on cold plug, but not the string descriptors/right config
<marcan> so there's at least three states here (unprogrammed, programmed, bootstrapped)
<whitequark> aha, that's not exactly what i'd call user documentation
<whitequark> but sure
<marcan> well I'm asking about things I need to know at this point
<marcan> might as well follow the trail
<whitequark> let me setup readthedocs and i'll put it right in the repo
<whitequark> or we'll never get ther
<marcan> to back out a bit: what I'm trying to get here is 1) an idea of the process, and 2) documentation of the commands involved
<marcan> having that I can easily read the code and figure out how it works
<whitequark> right, so i'd prefer if you did not read the code but forced me to write docs instead :p
<marcan> I'm pretty good at reverse engineering as you know, but it seems like a waste of my time to try to wrap my head around the thing by blindly poking at the code when I can just ask and we have IRC logs so even that alone is useful
<marcan> sure
<whitequark> what did you tag as revC0 btw?
<marcan> what Greg supposedly used
<whitequark> alright, great
<_whitenotifier-c> [whitequark/Glasgow] whitequark pushed 1 commit to master [+0/-0/±1] https://git.io/fhSAD
<_whitenotifier-c> [whitequark/Glasgow] whitequark 312c309 - vendor: update libfx2.
<_whitenotifier-c> [Glasgow] Success. The Travis CI build passed - https://travis-ci.org/whitequark/Glasgow/builds/488612164?utm_source=github_status&utm_medium=notification
<whitequark> okay, writing it
<_whitenotifier-c> [whitequark/libfx2] whitequark pushed 1 commit to master [+0/-0/±1] https://git.io/fhSxK
<_whitenotifier-c> [whitequark/libfx2] whitequark fc2802f - fx2.FX2Config: reject chunks of zero length.
<whitequark> marcan: btw, can you export design files for revC0 please?
<marcan> whitequark: kk, will do tomorrow. going to get some sleep.
shannon_ has joined #glasgow
shannon_ has quit [Client Quit]