Wednesday, 2018-02-28

*** tpb has joined #timvideos00:00
cr1901_modernmithro: Litex now expects you import migen as of a few days ago. Want me to take a shot at porting hdmi2usb/litex-buildenv to use a more recent litex?00:19
cr1901_modernIt should be as simple as a sed expression, adding migen to conda builds, and then waiting 10 hours for the build00:19
CarlFK[m]cr1901_modern (IRC): im sure the answer is "yes"00:21
cr1901_modernCarlFK[m]: Okay, fair enough. If mithro says he doesn't want to upgrade, I'll blame you :)00:22
CarlFK[m]pfft - that would be music to my ears :p00:23
CarlFK[m]we don't exactly agree on .. um.. release management00:23
CarlFKHDMI-3 disconnected (normal left inverted right x axis y axis)00:31
CarlFKis not.00:31
CarlFKoh right... edid00:32
CarlFKthat's what I was testing for00:32
CarlFKxrandr ... HDMI-3 disconnected00:35
CarlFKhow do I tell it "no really, send data..." ?00:35
tumbleweedsometimes just running xrandr is enough to re-detect the display00:36
CarlFKjuser@cnt6:~$ watch -ds xrandr ... no help00:38
CarlFKhttp://paste.ubuntu.com/p/HrSSKB2Jy5/   xrandr with a monitor hooked up00:42
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)00:42
CarlFKsame cables, replaced the opsis with a coupler00:42
tumbleweedis the input on the opsis enabled?00:45
CarlFKyes00:50
CarlFKH2U 01:26:20>d input1 on ... HDMI Input 1 debug on - nothing00:51
CarlFKEDID primary mode:   [email protected]00:51
CarlFKEDID secondary mode: [email protected]00:51
tumbleweedbad firmware then?00:53
CarlFKHDMI-3 disconnected (normal left inverted right x axis y axis)00:57
CarlFK   1280x720_60.00  59.8600:57
CarlFKwinning.00:57
CarlFKedid might be wonky00:57
CarlFKdo you know how I dump it00:57
CarlFKhmm.. not sure im winning00:58
CarlFK"disconnected"00:58
CarlFKit works if I send it a test pattern from the exatron vga box00:59
tumbleweedxrandr --verbose will dump it00:59
CarlFKhmm, not if it doesn't think something is hooked up. cuz maybe no edid01:02
*** futarisIRCcloud has joined #timvideos01:02
CarlFKok, plugged in my laptop - "nothing"01:03
CarlFKtwist laptop - monitor HDMI1 connected (normal left inverted right x axis y axis)01:04
CarlFK   1920x1080     60.00 +01:04
CarlFKswap montior for opsis, HDMI1 disconnected (normal left inverted right x axis y axis)01:05
tumbleweedyou are using input1? (labelled input2 on the board)01:05
CarlFKyes - both01:06
CarlFKI kinda lost track of what I was testing for .. I am going to try LCA builds again01:07
CarlFK[m]ruh roe01:21
CarlFK[m]v0.0.4-114-ge423776  HDMI-3 connected 1280x720+0+001:21
CarlFK[m]im trying the 8 versions between lca and now02:07
CarlFK[m]v0.0.4-142-gfe99d5b  looks like when edid broke02:25
CarlFKv0.0.4-122-gbc7feb5 is ok02:26
CarlFKha!  seems I can get it to test itself02:39
CarlFKH2U 00:20:59>d edid output002:39
CarlFKFF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ...02:39
CarlFKChecksum ERROR in EDID block 002:39
CarlFKlooped the cable.02:39
CarlFKhttp://paste.ubuntu.com/p/SSYwwdprQP/02:43
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)02:43
*** sb0_ has quit IRC02:58
*** sb0 has quit IRC03:42
*** rohitksingh_work has joined #timvideos03:43
*** nancy has joined #timvideos05:45
*** nancy has quit IRC06:14
*** futarisIRCcloud has quit IRC09:01
*** sb0 has joined #timvideos09:49
*** CarlFK has quit IRC10:07
*** sb0 has quit IRC10:26
*** f15h has joined #timvideos10:40
*** shorne has quit IRC11:22
*** shorne has joined #timvideos11:29
*** shorne has quit IRC11:49
*** shorne has joined #timvideos11:52
*** f15h has quit IRC11:54
*** rohitksingh_work has quit IRC12:31
*** f15h has joined #timvideos12:40
*** CarlFK has joined #timvideos12:50
*** ChanServ sets mode: +v CarlFK12:50
*** CarlFK has quit IRC12:54
shivm28Hi everyone, I was following this link to build qemu outside HDMI2USB-litex-firmware. I think I have completed all the steps and the build is complete but I am not sure how to test it. Any help is appreciated.12:56
shivm28The link : https://github.com/timvideos/qemu-litex12:56
tpbTitle: GitHub - timvideos/qemu-litex (at github.com)12:56
*** samsagaz_ has joined #timvideos13:19
*** rohitksingh has joined #timvideos13:36
*** samsagaz_ has quit IRC13:45
*** samsagaz_ has joined #timvideos13:45
*** rohitksingh has quit IRC14:02
*** rohitksingh has joined #timvideos14:04
*** rohitksingh has quit IRC14:36
*** CarlFK has joined #timvideos14:50
*** ChanServ sets mode: +v CarlFK14:50
*** Kripton has quit IRC15:17
*** Kripton has joined #timvideos15:18
*** samsagaz_ has quit IRC15:26
*** sb0 has joined #timvideos15:26
*** f15h has quit IRC16:05
CarlFK[m]shivm28 (IRC): im guessing, but I think you should be able to see a prompt and issue the help and version command16:10
CarlFK[m]shivm28 (IRC): this is me talking to the real hardware http://paste.ubuntu.com/p/RCtmJs3Cz5/16:11
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)16:11
*** rohitksingh has joined #timvideos16:20
*** mcarden_ has joined #timvideos16:22
*** shenki_ has joined #timvideos16:22
*** ChanServ sets mode: +v shenki_16:22
*** mcarden has quit IRC16:27
*** shenki has quit IRC16:27
*** Kripton has quit IRC16:30
*** Kripton has joined #timvideos16:33
shivm28I am getting these options after building qemu. https://usercontent.irccloud-cdn.com/file/E7B8r7fe/test1.png17:15
CarlFKshivm28: pretty please cut/paste text into a "paste bin" like http://paste.ubuntu.com17:18
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)17:18
shivm28https://paste.ubuntu.com/p/GCmR8VSNXk/17:20
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)17:20
CarlFKthanks - try them both.  I suspect the first one at line 5 is what you want17:21
shivm28I tried every command. This is what I am getting: https://paste.ubuntu.com/p/t7Cs9fRTPh/17:33
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)17:33
*** shenki_ has quit IRC17:49
*** shenki has joined #timvideos17:51
*** ChanServ sets mode: +v shenki17:51
CarlFK[m]shivm28 (IRC): "You didn't give QEMU a kernel or BIOS filename at all"  thats what I see17:57
CarlFK[m] totally guessing, but wget/try this https://github.com/timvideos/HDMI2USB-firmware-prebuilt/blob/master/archive/master/v0.0.4-122-gbc7feb5/mimasv2/base/lm32/software/bios/bios.bin18:00
tpbTitle: HDMI2USB-firmware-prebuilt/bios.bin at master · timvideos/HDMI2USB-firmware-prebuilt · GitHub (at github.com)18:00
CarlFK[m]122 is the version I am working on today, so I have some assurance it works18:00
shivm28Where should I put the path of BIOS file? Sorry for such trivial questions.18:17
CarlFK[m]shivm28 (IRC): im guessing append it to the end of the command18:19
CarlFK[m]build/lm32-softmmu/qemu-system-lm32 -nographic -nodefaults bios.bin (https://github.com/timvideos/HDMI2USB-firmware-prebuilt/blob/master/archive/master/v0.0.4-122-gbc7feb5/mimasv2/base/lm32/software/bios/bios.bin)18:19
tpbTitle: HDMI2USB-firmware-prebuilt/bios.bin at master · timvideos/HDMI2USB-firmware-prebuilt · GitHub (at github.com)18:19
*** rohitksingh has quit IRC18:20
CarlFK[m]sorry bout the url - cut/paste fail.18:21
*** rohitksingh has joined #timvideos18:26
shivm28I tried it but it is not working. I will give it another try from the beginning.18:39
CarlFK[m]shivm28 (IRC): show "not working"18:41
shivm28https://paste.ubuntu.com/p/bCTSvcrwvY/18:44
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)18:44
CarlFK[m] 'bios.bin': No such file or directory18:44
CarlFK[m]Is that file in the current dir?18:45
shivm28yes18:45
shivm28https://paste.ubuntu.com/p/Vy9prqcQKW/18:46
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)18:46
shivm28Line 618:46
CarlFK[m]~/gsoc/qemu-litex$18:46
CarlFK[m]shivm@shivm-Lenovo-G50-45:~/gsoc/qemu-litex/build/lm32-softmmu$ ls18:47
CarlFK[m]different dirs18:47
*** rohitksingh has quit IRC18:47
CarlFK[m]build/lm32-softmmu/qemu-system-lm32 -nographic -nodefaults ~/gsoc/qemu-litex/build/lm32-softmmu/bios.bin (https://github.com/timvideos/HDMI2USB-firmware-prebuilt/blob/master/archive/master/v0.0.4-122-gbc7feb5/mimasv2/base/lm32/software/bios/bios.bin)18:48
tpbTitle: HDMI2USB-firmware-prebuilt/bios.bin at master · timvideos/HDMI2USB-firmware-prebuilt · GitHub (at github.com)18:48
CarlFK[m]bb in 20 min - getting lunch18:48
CarlFKback19:12
shivm28https://paste.ubuntu.com/p/Jzz59KWMkX/19:13
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)19:13
shivm28I paste the file in the current directory. Sorry for the previous error.19:14
shivm28https://www.irccloud.com/pastebin/97DMrPWo/19:17
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)19:17
CarlFKshivm28: hmm.. I think you are close.  my next guess: qemu thinks you are passing a disk image, and it is trying to boot from the boot sector, but the .bin is something else.19:18
CarlFKtry -kernel bios.bin19:19
CarlFKI have no idea what format bios.bin is, but I am sure it isn't a disk image.19:19
CarlFKhopefully someone here who knows more about this can help better than I am19:20
shivm28I will try to build QEMU for Raspberry Pi from their repo and then will come back to it.19:25
shivm28Thanks a lot for the help.19:25
CarlFK[m]for Raspberry Pi ?19:26
CarlFK[m]I would look around the scripts and --help to see what --options are used.19:27
shivm28I mean using this website: https://www.qemu.org/19:28
tpbTitle: QEMU (at www.qemu.org)19:28
CarlFK[m]that won't help much with this project19:29
shivm28Oh ok.19:30
shivm28This is an example for invokation from the documentation:qemu-system-i386 linux.img19:30
shivm28Can I know what is the need of an image file?19:31
shivm28Section 2.3 on this page: https://qemu.weilnetz.de/doc/qemu-doc.html#sec_005finvocation19:31
tpbTitle: QEMU version 2.10.50 User Documentation (at qemu.weilnetz.de)19:31
CarlFKI don't really know any useful details19:33
CarlFKI mostly understand a disk image file and how that works.   but I am very sure that doesnt help19:33
CarlFKI also know a bit about pxe booting, which also dosn't help19:34
CarlFKand a bit about running elf binaries, and bash shell scripts and python commands in the python vm.  more things that don't help.19:34
shivm28I think image file is for running that particular operating system on the arm core of the fpga19:37
CarlFKthat sounds about right - but not sure it is "arm" ?19:38
shivm28Do we need Linux or any other operating system on the fpga for this project??19:40
CarlFK[m]yes and no.  currently no and it works pretty well.19:41
CarlFK[m]but it would be better if it was running under linux - then we could use the linux network stack to work with the eathernet port (I think)19:42
CarlFK[m]3 years ago we didn't even have a cpu - it was all just Verilog - it kinda worked, but not very well and was hard to debug/maintain19:43
shivm28Wow. So much progress in such a short span of time.19:45
shivm28I think running Linux on board is also one of the projects19:48
CarlFK[m]yes19:49
CarlFK[m]but it isn't needed today19:50
CarlFK[m]tumbleweed (IRC): TypeError: select_for_update() got an unexpected keyword argument 'skip_locked'20:09
CarlFK[m]    ep = Episode.objects.select_for_update(skip_locked=True)20:09
CarlFK[m]I bet I need a different django - any idea what ver?20:09
tumbleweedCarlFK[m]: it was added in 1.1120:11
CarlFK[m]Successfully installed django-1.1120:11
CarlFK[m]yay!20:12
CarlFK[m]I wish your next problem is resolved this quickly and definitively20:12
*** Anonymous has joined #timvideos20:13
*** Anonymous is now known as Guest4221220:14
*** Guest42212 has quit IRC20:16
*** miselin2 is now known as pcmattman21:43
*** pcmattman has joined #timvideos21:43
*** pcmattman is now known as miselin21:43
*** miselin has left #timvideos21:43
*** CarlFK has quit IRC22:17
cr1901_modern_florent_: https://github.com/enjoy-digital/litex/commit/2ff50a8882a82e0c2f159db7f1ba2f8a499e604f#diff-dcda7fe76a0c0fefdcee3d1f29ec4ad4L182 This change broke my build.22:40
cr1901_modernSince the Vivado backend doesn't meaningfully support the "source" option at present, shouldn't the default be to look in /opt/Xilinx/Vivado22:40
tpbTitle: build: fix merge · enjoy-digital/litex@2ff50a8 · GitHub (at github.com)22:40
cr1901_modernThat way I don't have to specify the toolchain path each time22:40
_florent_cr1901_modern: ok thanks, i'll fix that22:45
cr1901_modern_florent_: Tyvm22:55
cr1901_modernmithro: So, I have good news- I ported litex-buildenv to a new litex version (which opts to use migen for fhdl) for you. But I ran into a snag at the end: https://imgur.com/FP63SWx22:56
tpbTitle: Imgur: The magic of the Internet (at imgur.com)22:56
cr1901_modernWhat might be causing this?22:56
mithrocr1901_modern / _florent_: That change you are reverting there should be send upstream to misoc22:57
cr1901_modern_florent_: That actually didn't solve my problem, I apologize.23:01
cr1901_modernLooks like the issue is elsewhere23:01
cr1901_modernWell the issue isn't in master...23:20
*** xfxf has quit IRC23:27
*** CARAM___ has quit IRC23:28
*** kierank has quit IRC23:29
*** xfxf has joined #timvideos23:29
*** CARAM___ has joined #timvideos23:30
*** CARAM___ has quit IRC23:30
*** kierank has joined #timvideos23:31
*** CARAM___ has joined #timvideos23:31
*** CARAM___ has joined #timvideos23:32
cr1901_modernmithro: The culprit to my path woes is this line23:45
cr1901_modernhttps://github.com/timvideos/litex-buildenv/blob/master/scripts/enter-env.sh#L11023:45
tpbTitle: litex-buildenv/enter-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com)23:45
cr1901_modernLitex is starting to match migen behavior now, right?23:47
cr1901_modernMigen's behavior to extract the Xilinx build directory is to search for version numbers in the supplied toolchain_path directory.23:47
cr1901_modernIf it doesn't find a version number, it will bomb: https://github.com/m-labs/migen/blob/master/migen/build/tools.py#L3623:47
tpbTitle: migen/tools.py at master · m-labs/migen · GitHub (at github.com)23:47
cr1901_modernXilinx ISE stores the version numbers in /opt/Xilinx, e.g. /opt/Xilinx/14.723:48
cr1901_modernXilinx Vivado stores version numbers in /opt/Xilinx/Vivado, e.g. /opt/Xilinx/Vivado/2017.4.123:48
cr1901_modernMeaning now that litex mirrors migen behavior, it's not possible to use a single directory to point to both toolchains23:49
cr1901_modernmithro _florent_: What should be done about this? litex-buildenv relies on both ISE and Vivado being accessible from the same directory: https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-env.sh#L10723:55
tpbTitle: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com)23:55
cr1901_modernIn any case, porting to the most recent litex is stalled until we can figure out what to do here23:57

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