Saturday, 2020-02-08

*** tpb has joined #litex00:00
*** CarlFK has quit IRC00:10
*** CarlFK has joined #litex00:20
*** freemint has quit IRC00:45
*** CarlFK has quit IRC01:00
Findeawesome scanakci01:03
*** CarlFK has joined #litex01:11
sajattack[m]this was fun to play with https://github.com/tomtor/rust-litex01:50
tpbTitle: GitHub - tomtor/rust-litex: Running Rust on the (Linux) Litex VexRiscv FPGA SOC (at github.com)01:50
sajattack[m]while I wait for someone to help with my vga issues01:51
*** _whitelogger has quit IRC02:25
*** _whitelogger has joined #litex02:28
*** CarlFK has quit IRC03:17
leviWhat vga issues are you having?03:36
sajattack[m]I'm not really sure, I'm trying to get it to build on an altera board, I did what florent suggested, and linux hangs when it starts the framebuffer03:39
sajattack[m]https://termbin.com/zu1u703:39
sajattack[m]it's probably a clock issue03:46
leviJust how much of the system is "hung"? Do you have a way of getting a debug dump of processor registers via jtag or some wishbone bridge?03:50
sajattack[m]I have uart and usb blaster03:50
sajattack[m]not sure how to get a debug dump from usb blaster03:50
sajattack[m]if possible03:50
leviI am pretty new to litex so I'm not entirely sure, but I know there's a debug option for the CPU cores and a number of "wishbone-to-X" bridges where X includes ethernet and I think uart. You'd have to poke at the example programs.03:53
sajattack[m]where can I find the examples?03:54
leviThere's generally a directory in each of the litex module repos with examples in it.03:55
levihttps://github.com/timvideos/litex-buildenv/wiki/Debugging could give you some pointers too.03:57
tpbTitle: Debugging · timvideos/litex-buildenv Wiki · GitHub (at github.com)03:57
sajattack[m]thanks03:58
scanakcithanks @Finde04:10
sajattack[m]ok I can confirm the clock is running via dasblinkenlightsen04:40
sajattack[m] * ok I can confirm the clock is running via das blinkenlightsen04:40
sajattack[m]either that or I made a python mistake that has the same effect04:41
sajattack[m]no, I'm pretty sure the clock is alive04:43
sajattack[m]https://hastebin.com/upodulavuc.cs04:59
sajattack[m]does the pixel clock need to be phase shfited?05:12
sajattack[m]the openocd recommended on that debugging wiki page doesn't compile05:34
leviAlas, it is the nature of wikis to be out-of-date06:08
sajattack[m]indeed06:09
*** rohitksingh has joined #litex06:20
*** rohitksingh has quit IRC08:16
_florent_scanakci: thanks for the update and great for the LiteDRAM integration. I just merged your PR to allow you to go further, i'll probably do small changes in the next days but it will only be cosmetic changes09:39
_florent_sajattack[m]: sorry i need to look at the code to be able to help but i'm not able to it now, i'll have more time for it after the weekend. At least you don't need a specific phase for the pixel_clock. It's possible that the Linux kernel has some parts hardcoded for 7-series, to ease your work, maybe you could look at how it was done before when the video out was initialized in bare metal: before09:44
_florent_https://github.com/litex-hub/linux-on-litex-vexriscv/commit/9a9f01baf9fa29cfa36d7e0ff0b8cfa2b60a392609:44
tpbTitle: Add litevideo driver · litex-hub/linux-on-litex-vexriscv@9a9f01b · GitHub (at github.com)09:44
_florent_you could try to look at framebuffer.h/framebuffer.c and skip the part related to the clocking since it's already initialized at a fixed frequency on your board09:45
dkozel_florent_: I was just about to ask if a C example for LitePCIe exists, but noticed litepcie_util in the software directory.09:46
_florent_You should be able to have something on the screen (garbage data) by just initializing the DMA09:46
dkozelWould it be useful for me to add a description of that util to the top level examples folder README?09:46
_florent_dkozel: yes, there is also a new version of the driver/utils in https://github.com/enjoy-digital/netv2/tree/master/software09:47
tpbTitle: netv2/software at master · enjoy-digital/netv2 · GitHub (at github.com)09:47
_florent_dkozel: yes sure, contributions on documentation are welcome09:48
dkozel_florent_: Great. I'll look at both of those and contribute back where things aren't obvious to a new user09:50
dkozelIs the plan to merge back the netv2 PCIe driver in the future?09:51
_florent_dkozel: it's not decided yet, we could keep both for now10:40
_florent_dkozel: the one in LitePCIe is the original one  created in 2014, the one in netv2 is a new one that has a different architecture and can be used to do DMA TX/R/X onmultiple channels in //10:45
_florent_dkozel: both are compatible with the gateware.  For a new design, i would probably recommend using the one in netv210:46
*** freemint has joined #litex13:35
*** freemint has quit IRC13:47
*** freemint has joined #litex13:47
*** freemint has quit IRC14:04
*** CarlFK has joined #litex14:09
*** keesj has quit IRC16:07
*** freemint has joined #litex17:18
*** freemint has quit IRC18:23
*** CarlFK has quit IRC18:24
*** freemint has joined #litex18:26
*** vup has quit IRC18:46
*** anuejn has quit IRC18:49
*** anuejn has joined #litex18:49
*** vup has joined #litex18:52
scanakci_florent_: thanks for the merge. I think my next PR will come once I integrate LiteETH.19:16
*** freemint has quit IRC19:18
*** freemint has joined #litex19:21
*** CarlFK has joined #litex19:40
*** freemint has quit IRC19:54
*** freemint has joined #litex20:00
*** freemint has quit IRC20:21
sajattack[m]update: made it past framebuffer initialization after 20000 seconds, but still nothing on screen21:02
sajattack[m]longest boot ever?21:06
sajattack[m]I should probably mention I'm using linux prebuilt, could that be the issue? When I build it myself it doesn't boot at all21:47
sajattack[m]I see that framebuffer change is newer than linux prebuilt21:47
* sajattack[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/YgWPBpOVqbiQBLHafFQTxfLL >21:54
sajattack[m]I got linux building and running but hangs at the same spot22:16
CarlFKkarol: mithro handed me a Opsis booster gizmo....23:09
CarlFKwhen I plug in usb, I get Product: Tomu Bootloader (5) v2.0-rc723:10
CarlFKbut no tty23:10
*** freemint has joined #litex23:34
*** freemint has quit IRC23:50

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!