_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
linear_cannon has joined #litex
futarisIRCcloud has joined #litex
Emantor_ has quit [Quit: ZNC - http://znc.in]
Emantor has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 260 seconds]
Degi_ is now known as Degi
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
lexano has quit [Ping timeout: 256 seconds]
lexano has joined #litex
shorne has quit [Ping timeout: 260 seconds]
tucanae47_ has quit [Ping timeout: 260 seconds]
key2 has quit [Ping timeout: 245 seconds]
_florent_ has quit [Ping timeout: 260 seconds]
guan has quit [Ping timeout: 264 seconds]
mithro has quit [Ping timeout: 260 seconds]
alanvgreen has quit [Ping timeout: 264 seconds]
gatecat has quit [Ping timeout: 260 seconds]
sorear has quit [Ping timeout: 260 seconds]
_florent_ has joined #litex
tucanae47_ has joined #litex
alanvgreen has joined #litex
key2 has joined #litex
guan has joined #litex
gatecat has joined #litex
sorear has joined #litex
mithro has joined #litex
shorne has joined #litex
peepsalot has quit [Ping timeout: 268 seconds]
peepsalot has joined #litex
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
linear_cannon has quit [Read error: Connection reset by peer]
linear_cannon has joined #litex
truc is now known as bjonnh
bjonnh has joined #litex
bjonnh has quit [Changing host]
zjason has quit [Ping timeout: 260 seconds]
SMB784 has joined #litex
<SMB784> Howdy everyone, I'm having a problem loading a bitstream onto a SQRL Acorn CLE-215+ via PCIe
<SMB784> I have flashed the litex PCIe bitstream onto my Acorn after generating it via ./sqrl_acorn.py --uart-name=crossover --with-pcie --build --driver --flash
<SMB784> did that using jtag
<SMB784> then I try to load the bitstream again over PCIe this time using: ./litepcie_util flash_write ../../gateware/sqrl_acorn.bin 0
<SMB784> but I get an error message saying "could not init driver"
<SMB784> which I have come to learn means that it cant find the device
<SMB784> lspci -tv tells me that the PCIe port is definitely recognizing the device: +-01.0-[05-37]----00.0-[06-07]----01.0-[07]----00.0 Xilinx Corporation Device 7024
<SMB784> , but for some reason I cant get litex to load anything via pcie. I get the same results when invoking "./litepcie_util info" or any of the other tests using litepcie_util
<SMB784> always returns "could not init driver"
<_florent_> SMB784: have you loaded the kernel driver? cd kernel; sudo ./init.sh
<SMB784> yeah it tells me that the kernel is already loaded
<SMB784> says module is already installed
<_florent_> ok, with dmesg, do you see the kernel messages? Similar to: https://twitter.com/enjoy_digital/status/1456622505972703235/photo/2
<SMB784> yeah this is waht I get after removing the driver (rrmod litepcie) and then running init.sh:
<SMB784> [ 5662.789287] litepcie 0000:07:00.0: [Probing device]
<SMB784> [ 5662.790146] litepcie 0000:07:00.0: Version LiteX SoC on Acorn CLE-101/215(+) 2021-11-06 12:57:19
<SMB784> [ 5662.790222] litepcie 0000:07:00.0: 1 MSI IRQs allocated.
<SMB784> [ 5662.790232] litepcie 0000:07:00.0: Creating /dev/litepcie0
<SMB784> oh christ
<SMB784> rmmod litepcie followed by sudo ./init.sh makes it work again
<SMB784> i have no idea why that was an issue but now its fine, lord
<SMB784> thanks for your help lol
<_florent_> np, before flashing, you can test the litepcie_util info command just to verify access to the registers
<SMB784> weirdly it looks like I have to reload the driver every time I want to write to the flash via pcie
<SMB784> but rmmod litepcie followed by ./init.sh makes it work every time.  just a little odd behavior
SMB784 has quit [Quit: Client closed]
<DerekKozel[m]> It's possibly/probably that the /dev/litepcie# files aren't created until the module is loaded, and then the init.sh file also sets the correct file permissions. But if the module is already loaded the init script will exit before setting the permissions
<DerekKozel[m]> As the comment in init.sh says, the filesystem permissions really should be handled by udev.
<DerekKozel[m]> I've been starting to do some work in this area. Trying to package the litepcie driver into a Debian compatible installer that includes these niceties
<DerekKozel[m]> Hey Victor!
<vomoniyi[m]> Hi Derek
<DerekKozel[m]> Still working on any of the GNU Radio LiteX stuff? Or getting to enjoy a weekend?
<vomoniyi[m]> Just going to relax for the weekend but I'll get back to it soon, gotta prepare a demo for the moderators soon
<DerekKozel[m]> Nice, definitely enjoy the relaxation.
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex