Saturday, 2021-11-06

*** tpb <[email protected]> has joined #litex00:00
*** linear_cannon <[email protected]> has joined #litex01:35
*** futarisIRCcloud <[email protected]> has joined #litex01:53
*** Emantor_ <[email protected]> has quit IRC (Quit: ZNC - http://znc.in)02:20
*** Emantor <[email protected]> has joined #litex02:20
*** Degi_ <[email protected]> has joined #litex03:03
*** Degi <[email protected]> has quit IRC (Ping timeout: 260 seconds)03:03
*** Degi_ is now known as Degi03:03
*** futarisIRCcloud <[email protected]> has quit IRC (Quit: Connection closed for inactivity)04:03
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has quit IRC (Ping timeout: 256 seconds)04:11
*** lexano <lexano!~lexano@cpe00e06722f0e4-cm98524a70e35e.cpe.net.cable.rogers.com> has joined #litex04:46
*** shorne <[email protected]> has quit IRC (Ping timeout: 260 seconds)05:06
*** tucanae47_ <[email protected]> has quit IRC (Ping timeout: 260 seconds)05:19
*** key2 <[email protected]> has quit IRC (Ping timeout: 245 seconds)05:19
*** _florent_ <[email protected]> has quit IRC (Ping timeout: 260 seconds)05:19
*** guan <[email protected]> has quit IRC (Ping timeout: 264 seconds)05:20
*** mithro <[email protected]> has quit IRC (Ping timeout: 260 seconds)05:20
*** alanvgreen <[email protected]> has quit IRC (Ping timeout: 264 seconds)05:20
*** gatecat <[email protected]> has quit IRC (Ping timeout: 260 seconds)05:21
*** sorear <[email protected]> has quit IRC (Ping timeout: 260 seconds)05:21
*** _florent_ <[email protected]> has joined #litex05:21
*** tucanae47_ <tucanae47_!sid429270@2a03:5180:f:2::6:8cd6> has joined #litex05:21
*** alanvgreen <alanvgreen!sid467761@2a03:5180:f:3::7:2331> has joined #litex05:21
*** key2 <[email protected]> has joined #litex05:21
*** guan <guan!sid222713@2a03:5180:f:3::3:65f9> has joined #litex05:22
*** gatecat <gatecat!sid281702@2a03:5180:f:1::4:4c66> has joined #litex05:22
*** sorear <sorear!sid184231@2a03:5180:f:5::2:cfa7> has joined #litex05:22
*** mithro <mithro!sid24875@2a03:5180:f:3::612b> has joined #litex05:22
*** shorne <[email protected]> has joined #litex05:52
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 268 seconds)07:03
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex07:06
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)09:36
*** TMM_ <[email protected]> has joined #litex09:36
*** linear_cannon <[email protected]> has quit IRC (Read error: Connection reset by peer)18:52
*** linear_cannon <[email protected]> has joined #litex18:56
*** truc is now known as bjonnh19:19
*** zjason <[email protected]> has quit IRC (Ping timeout: 260 seconds)19:56
*** SMB784 <[email protected]> has joined #litex19:57
SMB784Howdy everyone, I'm having a problem loading a bitstream onto a SQRL Acorn CLE-215+ via PCIe19:57
SMB784I have flashed the litex PCIe bitstream onto my Acorn after generating it via ./sqrl_acorn.py --uart-name=crossover --with-pcie --build --driver --flash19:59
SMB784did that using jtag19:59
SMB784then I try to load the bitstream again over PCIe this time using: ./litepcie_util flash_write ../../gateware/sqrl_acorn.bin 020:01
SMB784but I get an error message saying "could not init driver"20:01
SMB784which I have come to learn means that it cant find the device20:01
SMB784lspci -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 702420:02
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_util20:03
SMB784always returns "could not init driver"20:03
_florent_SMB784: have you loaded the kernel driver? cd kernel; sudo ./init.sh20:14
SMB784yeah it tells me that the kernel is already loaded20:14
SMB784says module is already installed20:14
_florent_ok, with dmesg, do you see the kernel messages? Similar to: https://twitter.com/enjoy_digital/status/1456622505972703235/photo/220:15
SMB784yeah this is waht I get after removing the driver (rrmod litepcie) and then running init.sh:20:18
SMB784[ 5662.789287] litepcie 0000:07:00.0: [Probing device]20:19
SMB784[ 5662.790146] litepcie 0000:07:00.0: Version LiteX SoC on Acorn CLE-101/215(+) 2021-11-06 12:57:1920:19
SMB784[ 5662.790222] litepcie 0000:07:00.0: 1 MSI IRQs allocated.20:19
SMB784[ 5662.790232] litepcie 0000:07:00.0: Creating /dev/litepcie020:19
SMB784oh christ20:19
SMB784rmmod litepcie followed by sudo ./init.sh makes it work again20:20
SMB784i have no idea why that was an issue but now its fine, lord20:20
SMB784thanks for your help lol20:20
_florent_np, before flashing, you can test the litepcie_util info command just to verify access to the registers20:24
SMB784weirdly it looks like I have to reload the driver every time I want to write to the flash via pcie20:25
SMB784but rmmod litepcie followed by ./init.sh makes it work every time.  just a little odd behavior20:26
*** SMB784 <[email protected]> has quit IRC (Quit: Client closed)20:44
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 permissions21:47
DerekKozel[m]As the comment in init.sh says, the filesystem permissions really should be handled by udev.21:49
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 niceties21:50
DerekKozel[m]Hey Victor!21:53
vomoniyi[m]Hi Derek21:53
DerekKozel[m]Still working on any of the GNU Radio LiteX stuff? Or getting to enjoy a weekend?21:54
vomoniyi[m]Just going to relax for the weekend but I'll get back to it soon, gotta prepare a demo for the moderators soon21:56
DerekKozel[m]Nice, definitely enjoy the relaxation.21:57
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)23:36
*** TMM_ <[email protected]> has joined #litex23:36

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!