zjason has quit [Read error: Connection reset by peer]
shoragan has quit [Quit: quit]
vampirefrog has quit [Read error: Connection reset by peer]
cp- has quit [Ping timeout: 268 seconds]
polprog has quit [Ping timeout: 268 seconds]
jybz has quit [Excess Flood]
cp- has joined #openocd
avis has quit [Quit: WeeChat 3.5]
jybz has joined #openocd
nerozero has joined #openocd
bvernoux has joined #openocd
Hawk777 has quit [Quit: Leaving.]
slobodan has joined #openocd
slobodan has quit [Remote host closed the connection]
slobodan has joined #openocd
slobodan has quit [Remote host closed the connection]
slobodan has joined #openocd
avis has joined #openocd
<avis>
Hello, I've recently been trying to run a bitstream through openocd for my xilinx lx9; impact software is no longer a choice on my new os; my interface is a USB that connects with a JTAG embedded on the microprocessor of my board
<avis>
I tried openocd, however the loaded config files could not support my adapter
<avis>
PaulFertser: I managed to adapt some parts of iCEBURN to communicate to spi; I was using the wrong interface before; the spi protocols were different, though; one interface (0x84) was reserved as a cmdout stream, which returned spi_speed after it was reset on an ice lattice; this is not the case with my fpga, I have to pass a getSpeed protocol through the cmdin interface, and read from cmdout.
<avis>
the width was different too; the code uses two bytes for spi communication, xilinx uses 4, with the last one being port-num
avis has quit [Quit: WeeChat 3.5]
<zapb_>
PaulFertser, Gerrit is "down" / unavailable again
<PaulFertser>
zapb_: guess I caught something this time
<PaulFertser>
zapb_: it looks like some aggressing crawling make gitweb.cgi perl script take too much CPU to slow everything down.
<PaulFertser>
zapb_: it might be worth considering getting Jenkins on its own host too because every now and then it does use all iotime it seems, even though I tweaked the priorities and changed the i/o scheduler to "none" which improved the things a lot.
slobodan_ has joined #openocd
<PaulFertser>
It's surprising how seemingly inconsistent the behaviour of this server is :/
slobodan has quit [Ping timeout: 268 seconds]
<PaulFertser>
It's like every time I start looking at it nothing is wrong.
slobodan__ has joined #openocd
slobodan_ has quit [Ping timeout: 268 seconds]
urja has quit [Read error: Connection reset by peer]
<zapb_>
PaulFertser, what it this gitweb.cgi Perl script? :D
<PaulFertser>
zapb_: just a web interface to git with syntax highlight etc, it's like cgit.
<PaulFertser>
zapb_: btw, another interesting related feature is autogrouping which is enabled in Linux by default (but disabled by Debian patch). It makes "nice" levels essentially not do anything at all for server workloads.
<zapb_>
PaulFertser, is this Perl script part of Gerrit?
<PaulFertser>
zapb_: no, but Gerrit has integration for it.
<zapb_>
PaulFertser, and we use it with Gerrit? Sorry for the questions but I never noticed that we have something like cgit
<PaulFertser>
It is, there's "jgit" server integrated. But there's also that gitweb and I can see how it can suddenly have many threads all at once working against our latency goals for the Gerrit web interface itself.
<zapb_>
Okay, and it knows by login :D
<zapb_>
s/by/my
<zapb_>
PaulFertser, anyway, my general point is that a project like OpenOCD cannot have a uptime much worse than my private GitLab instance ;D
<PaulFertser>
zapb_: it shouldn't, yes.
urja has joined #openocd
slobodan_ has joined #openocd
slobodan__ has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
urja has quit [Read error: Connection reset by peer]
slobodan_ has quit [Ping timeout: 246 seconds]
slobodan_ has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan_ has quit [Remote host closed the connection]
slobodan_ has joined #openocd
urja has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
<PaulFertser>
I'll restart Gerrit in 5 minutes if nobody minds. Want to see if 5 httpd worker threads (instead of 25 which is default) is reasonable.
slobodan has joined #openocd
<zapb_>
PaulFertser, thanks!
<PaulFertser>
One would have guess it's possible to reliably have high-priority tasks running on Linux by now without too much effort or guessing, with the kernel not allowing it to slow down to a crawl.
<PaulFertser>
Restarted, let's see how it goes.
<PaulFertser>
I might just disable internal gitweb later and run cgit with low priority instead.
slobodan has quit [Remote host closed the connection]
slobodan has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
<PaulFertser>
Also I wonder what to do with lpc55xx support. It does the job it was made for but proper testing for enhancements I won't be able to do, I only had hardware remotely, it might or might not work to get access to it again. https://review.openocd.org/c/openocd/+/8189?usp=search
avis has joined #openocd
avis has quit [Client Quit]
cousin_luigi has quit [Ping timeout: 246 seconds]
avis has joined #openocd
tlwoerner has quit [Ping timeout: 268 seconds]
tlwoerner has joined #openocd
<avis>
hey Paul if you're still there, could you just go over, one more time, what you said yesterday about the spi flash
<PaulFertser>
avis: hey!
<PaulFertser>
avis: so you have some progress with that python code? Good to hear!
<PaulFertser>
avis: what I was saying is that most SPI NOR flash devices talk a protocol very similar to what was documented in "m25p80" datasheet. In your case you have the board in your hands, right, you can check what flash IC specifically is used there and read its specific datasheet instead.
<avis>
I would find the identifier on the board?
<PaulFertser>
avis: it's called "chip markings" and it's laser-etched on plastic package that contains the flash memory.
<PaulFertser>
avis: or you can also take a look at board schematics.
<avis>
on original file you sent me, it seems that it is a micron flash: 128 Mb Micron Multi-I/O SPI Flash
<avis>
but I wasn't able to find it through searching the ids on the nor flash ic
<PaulFertser>
avis: do you see the flash IC physically? Can you read the markings on it?
<PaulFertser>
Or probably share a photo with res high enough? imgbb is recommended for sharing photos
<avis>
yeah the markings are hard to read
<PaulFertser>
If you get far enough in the protocol you can also read the JEDEC ID with software over USB.
<PaulFertser>
The command to read JEDEC ID is the same for all parts.
<avis>
so what is it I'm trying to do with the flash?
<PaulFertser>
Get read access to it, then get write access to it.
<avis>
my ultimate hope is to bitbag jtag or interact with jtag directly (embedded) over usb, and send a bit stream over to it
<PaulFertser>
I assume the flash contains the bitstream for your FPGA.
<PaulFertser>
I assume you do not need JTAG to change bitstream for your FPGA.
<avis>
jtag's not necessary for sending a bitstream?
<PaulFertser>
JTAG is just a transport. If you can write to the flash directly by other means and writing to the flash is all you need then JTAG is not necessary.
<avis>
So now with the nor memory in mind, what do I do next?
<PaulFertser>
avis: you're doing FPGA development, right? Or why are you talking about uploading the bitstream? I am not familiar with your specific FPGA so do not know all the details about what might be needed to work with it. And what kind of work anyway you have in mind?
<avis>
Well, I want to encode an ISA with verilog, synthesize it, and run it on fpga
<avis>
I'd also like to blink the led that's on here somehow; I always figured that a bitstream was necessary to be sent to the jtag to do it
<PaulFertser>
I like the end goal. How do you plan to convert Verilog to bitstream?
slobodan_ has quit [Read error: Connection reset by peer]
<avis>
through xilinx binaries; synthesis is done through xvf, so is mapping, then conversion
<PaulFertser>
OK
<PaulFertser>
So you're reading the datasheet for the FPGA in question and does it say anything about the bitstream location? Is it stored inside the FPGA or the external flash memory?
<avis>
I'd think it'd work on the FPGA itself.
<avis>
You need to specify pins on a constraints file, etc.
<PaulFertser>
I'm asking about the permanent storage location, not where it applies to.
<avis>
mm, probably flash then
<PaulFertser>
Then I'd guess having access to flash anyhow is enough and you do not need JTAG for that.
<avis>
so I can just send the contents of a bit file over to flash?
<avis>
over the 'write' interface?
<avis>
I guess it is through flash, it says here: Use the Digilent sfutil.exe command line application to program the Flash directly through the AT90USB162.
<avis>
Please see TBD for an application note on this subject
<PaulFertser>
Looks like it
<PaulFertser>
Probably there's more info on similar (same model/family) FPGAs you can find elsewhere.
Hawk777 has joined #openocd
<borneoa___>
PaulFertser: just reviewed your 8222. Sorry for late check, I'm running out of spare time to follow all the patches. For 8189 I would prefer someone else to review it, I don't check the flash subsystem since ages
<PaulFertser>
borneoa___: thank you! Sorry for nagging.
<PaulFertser>
The patch was prompted here by some real life confusion which was non-trivial to understand even for me.
gzlb has quit [Ping timeout: 256 seconds]
gzlb has joined #openocd
nerozero has quit [Ping timeout: 268 seconds]
Hawk777 has quit [Quit: Leaving.]
Hawk777 has joined #openocd
zjason` has quit [Read error: Connection reset by peer]
zjason` has joined #openocd
avis has quit [Ping timeout: 268 seconds]
avis has joined #openocd
bvernoux has quit [Read error: Connection reset by peer]
<zapb_>
PaulFertser, I think I have an LPC55xx to test, I'll try to test your code. Feel free to ping me and nag :D