*** tpb <[email protected]> has joined #litex | 00:00 | |
*** linear_cannon <[email protected]> has joined #litex | 01:35 | |
*** futarisIRCcloud <[email protected]> has joined #litex | 01:53 | |
*** Emantor_ <[email protected]> has quit IRC (Quit: ZNC - http://znc.in) | 02:20 | |
*** Emantor <[email protected]> has joined #litex | 02:20 | |
*** Degi_ <[email protected]> has joined #litex | 03:03 | |
*** Degi <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 03:03 | |
*** Degi_ is now known as Degi | 03: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 #litex | 04: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 #litex | 05:21 | |
*** tucanae47_ <tucanae47_!sid429270@2a03:5180:f:2::6:8cd6> has joined #litex | 05:21 | |
*** alanvgreen <alanvgreen!sid467761@2a03:5180:f:3::7:2331> has joined #litex | 05:21 | |
*** key2 <[email protected]> has joined #litex | 05:21 | |
*** guan <guan!sid222713@2a03:5180:f:3::3:65f9> has joined #litex | 05:22 | |
*** gatecat <gatecat!sid281702@2a03:5180:f:1::4:4c66> has joined #litex | 05:22 | |
*** sorear <sorear!sid184231@2a03:5180:f:5::2:cfa7> has joined #litex | 05:22 | |
*** mithro <mithro!sid24875@2a03:5180:f:3::612b> has joined #litex | 05:22 | |
*** shorne <[email protected]> has joined #litex | 05:52 | |
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 268 seconds) | 07:03 | |
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex | 07:06 | |
*** TMM_ <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) | 09:36 | |
*** TMM_ <[email protected]> has joined #litex | 09:36 | |
*** linear_cannon <[email protected]> has quit IRC (Read error: Connection reset by peer) | 18:52 | |
*** linear_cannon <[email protected]> has joined #litex | 18:56 | |
*** truc is now known as bjonnh | 19:19 | |
*** zjason <[email protected]> has quit IRC (Ping timeout: 260 seconds) | 19:56 | |
*** SMB784 <[email protected]> has joined #litex | 19:57 | |
SMB784 | Howdy everyone, I'm having a problem loading a bitstream onto a SQRL Acorn CLE-215+ via PCIe | 19:57 |
---|---|---|
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 | 19:59 |
SMB784 | did that using jtag | 19:59 |
SMB784 | then I try to load the bitstream again over PCIe this time using: ./litepcie_util flash_write ../../gateware/sqrl_acorn.bin 0 | 20:01 |
SMB784 | but I get an error message saying "could not init driver" | 20:01 |
SMB784 | which I have come to learn means that it cant find the device | 20:01 |
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 | 20: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_util | 20:03 |
SMB784 | always returns "could not init driver" | 20:03 |
_florent_ | SMB784: have you loaded the kernel driver? cd kernel; sudo ./init.sh | 20:14 |
SMB784 | yeah it tells me that the kernel is already loaded | 20:14 |
SMB784 | says module is already installed | 20:14 |
_florent_ | ok, with dmesg, do you see the kernel messages? Similar to: https://twitter.com/enjoy_digital/status/1456622505972703235/photo/2 | 20:15 |
SMB784 | yeah 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:19 | 20: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/litepcie0 | 20:19 |
SMB784 | oh christ | 20:19 |
SMB784 | rmmod litepcie followed by sudo ./init.sh makes it work again | 20:20 |
SMB784 | i have no idea why that was an issue but now its fine, lord | 20:20 |
SMB784 | thanks for your help lol | 20:20 |
_florent_ | np, before flashing, you can test the litepcie_util info command just to verify access to the registers | 20:24 |
SMB784 | weirdly it looks like I have to reload the driver every time I want to write to the flash via pcie | 20:25 |
SMB784 | but rmmod litepcie followed by ./init.sh makes it work every time. just a little odd behavior | 20: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 permissions | 21: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 niceties | 21:50 |
DerekKozel[m] | Hey Victor! | 21:53 |
vomoniyi[m] | Hi Derek | 21: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 soon | 21: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 #litex | 23:36 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!