sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
rohitksingh has joined #m-labs
ylamarre has quit [Quit: ylamarre]
rohitksingh has quit [Ping timeout: 276 seconds]
evilspirit has joined #m-labs
rohitksingh has joined #m-labs
<cr1901_modern>
whitequark: What's liballoc? Is that a malloc you decided to write?
<whitequark>
yes
<cr1901_modern>
Guess openmem didn't fit your needs?
<cr1901_modern>
Hrm, where is root initialized?...
<whitequark>
static variables are initialized to NULL
<whitequark>
openmem is too complex
<cr1901_modern>
While I didn't actually know that, I was referring to how one gives root a valid initial memory address. Looks like it's in alloc_give()
<cr1901_modern>
So e.g. alloc_give() would be part of the startup code I'm guessing
<whitequark>
grep it...
<cr1901_modern>
Should prob build a SoC. In any case, that's cool... probably one of the simplest possible mallocs!
FabM has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
bentley` has quit [Ping timeout: 255 seconds]
bentley` has joined #m-labs
acathla has quit [Ping timeout: 246 seconds]
acathla has joined #m-labs
FabM has quit [Remote host closed the connection]
FabM has joined #m-labs
acathla has quit [Quit: Coyote finally caught me]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
acathla has quit [Quit: Coyote finally caught me]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
acathla has quit [Quit: Coyote finally caught me]
evilspirit has quit [Ping timeout: 240 seconds]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
acathla has quit [Quit: Coyote finally caught me]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
acathla has quit [Client Quit]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
acathla has quit [Quit: Coyote finally caught me]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
acathla has quit [Client Quit]
acathla has joined #m-labs
acathla has quit [Changing host]
acathla has joined #m-labs
evilspirit has joined #m-labs
ylamarre has joined #m-labs
sb0 has joined #m-labs
sb0 has quit [Ping timeout: 265 seconds]
ylamarre has quit [Ping timeout: 260 seconds]
sb0 has joined #m-labs
ylamarre has joined #m-labs
sb0 has quit [Quit: Leaving]
rohitksingh has joined #m-labs
balrog has quit [Read error: Connection reset by peer]
balrog has joined #m-labs
rohitksingh has quit [Ping timeout: 250 seconds]
<rjo>
cr1901_modern: the proxy bitstreams are just one register and one gate. they don't care what files you write, not do they even understand spi. it just happens that spi and jtag are pretty much the same and thus "jtagspi" for openocd is merely a flash writing and reading tool. also there it does not care what you write. it is just that the fpgas expect the raw bitstream in the flash, not the .bit (which just has a bit of trivial metadata attached to it). special
rohitksingh has joined #m-labs
<cr1901_modern>
rjo: Ack. Incidentally, your bitstreams do not work with xc3sprog, but I don't have time to figure out why
<whitequark>
iirc they're different for xc3sprog and openocd
<rjo>
yes. that is intentional. little in the xc3sprog proxy bitstreams makes sense but is expected by xc3sprog.
<cr1901_modern>
Is it documented how to build a xc3sprog bitstream? I mean, I'd love to use OpenOCD for all my JTAG needs but it does not appear to support programming Spartan 3 boards (yet)
FabM has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.4/20160105164030]]
<rjo2>
spartan3 should not be more than a handful of tcl lines.
<cr1901_modern>
rjo2: While I could still be wrong, there was something else that made me put off porting. The Spartan6 OpenOCD code relies on a specific driver that seems family-specific to actually load the code.
<cr1901_modern>
virtex2 is the only driver supported
<rjo2>
spartan6 is also not virtex2 nor is kintex7. I would just try it.
<cr1901_modern>
According to the history, you wrote that line :P. But if you don't remember why, I guess I'll try and see what happens. Note that it's a PLD command
<cr1901_modern>
rjo2: This is a stupid question, but... how do you get a TCL REPL in OpenOCD? XD
<cr1901_modern>
Okay nevermind... it appears telnet is the proper way
<rjo2>
yes. FPGA is a pld. the virtex2 thing was generic enough for s3 and s6
<rjo2>
aeh. s6 And k7
<rjo2>
I would guess it also works for s3
<rjo2>
just starting openocd gives you a reply, iirc
<cr1901_modern>
I had to open a telnet session to actually get a REPL... that's fine (on Windows). Well, I'll try s3 and see what happens, and hopefully submit a patch soon
<whitequark>
sb0__: ah you're going to love my solution for that issue
evilspirit has quit [Ping timeout: 250 seconds]
<rjo2>
cr1901_modern: are you doing openocd on windows for artiq?
<rjo2>
is openocd on windows very painful?
<cr1901_modern>
rjo2: Well, I'm doing openocd on Windows to test HDMI2USB firmware (get acquainted w/ building it), and also test-driving it for my other micros and FPGA boards.
<cr1901_modern>
It's not anymore painful than any autoconf-based piece of software that assumes POSIX is the One True Standard
<cr1901_modern>
To access FTDI-based chips, I have to use the Zadig driver
<cr1901_modern>
well, any chip besides FT2232 (sic), where one of the channels can use the standard driver as a UART
<cr1901_modern>
Whatever MSYS2 uses for terminal input and output doesn't really work all that well, so I can't actually use OpenOCD from a terminal
<cr1901_modern>
I have to open a telnet session using PuTTY, which I don't really mind
<rjo>
whitequark: multiple kernels (at least one being "staged" by the comms-cpu and one being executed by the kernel-cpu and then "fast" flip between the two) will need to land anyway.
<whitequark>
rjo: no, flipping is simple.
<whitequark>
it's calling which is harder.
sb0 has quit [Quit: Leaving]
<rjo>
whitequark: ack.
<whitequark>
rjo: I would really like to hear what will this be used for
<whitequark>
at least this will guide the feature, at most it should be replaced with something else entirely
<whitequark>
generally, what you want has very many correctness hazards. host objects not being updated, LIFO ordering on kernels not being maintained, very complicated liveness analysis for allocated objects