Wednesday, 2015-08-26

*** tpb has joined #timvideos00:00
mithroCarlFK: okay - the "Unable to open serial port" means the exar driver isn't installed00:00
mithroCarlFK: ls /dev/ttyVIZ0 exist?00:01
CarlFKls: cannot access /dev/ttyV*: No such file or directory00:02
HamsterCycle time - bye all!00:13
*** Hamster has left #timvideos00:14
mithroCarlFK: firstly, do you have the second micro-USB cable connected from the USB-UART connector to your computer?00:23
CarlFKmithro: yes.  [email protected]:~/HDMI2USB-misoc-firmware$ lsusb00:27
CarlFKBus 002 Device 005: ID 1d50:602b OpenMoko, Inc. FPGALink00:27
CarlFKBus 002 Device 003: ID 04e2:1410 Exar Corp.00:27
mithroCarlFK: I think Ryan is missing the following step00:29
mithro ->
tpbTitle: exar-uart-driver/README.Debian at master · mithro/exar-uart-driver · GitHub (at
mithro# lsmod | grep viz00:30
mithrovizzini                33680  000:30
CarlFKmithro: Setting up vizzini-modules-3.13.0-62-generic (1.0.0-4+3.13.0-62.102) ...00:35
CarlFK[email protected]:~/HDMI2USB-misoc-firmware$ lsmod | grep viz ... nothing00:35
CarlFKnm, got it00:35
CarlFK [email protected]:~/HDMI2USB-misoc-firmware$ lsmod | grep viz00:36
CarlFKvizzini                33680  200:36
mithrodo you have /dev/ttyV* ?00:37
CarlFKlooks like it.. $ make connect-lm3200:38
CarlFKbuild/misoc/tools/flterm --port /dev/ttyVIZ0 --speed 11520000:38
CarlFK[FLTERM] Starting...00:38
CarlFK$ ls /dev/ttyV*00:38
CarlFKbuild/misoc/tools/flterm --port /dev/ttyVIZ0 --speed 11520000:39
CarlFK[FLTERM] Starting...00:39
mithroCarlFK: hit enter?00:41
CarlFKmithro:  lol HDMI2USB>00:41
mithroType help :)00:41
mithroCarlFK: yay! you have gotten the firmware on your board00:41
CarlFKshould it be streaming?01:00
CarlFKI dont have any hdmi in/out hooked up01:01
*** 5EXABYDWE has quit IRC01:08
mithroCarlFK: if you turn on the status messages you should get reports about what it is seeing01:20
mithroCarlFK: if you connect something to the HDMI input, you should see it starts detecting the resolution01:21
CarlFKhow do I turn on the status messages?01:21
mithroCarlFK: sorry - working on stuff will be back later01:57
*** CarlFK has quit IRC03:08
*** CarlFK has joined #timvideos03:57
*** ChanServ sets mode: +v CarlFK03:57
mithroCarlFK: hey - you still about at all?04:29
CarlFKmithro: yes, but Atly's is packed up04:30
mithroCarlFK: sorry, too much work, not enough time04:30
mithroCarlFK: I think to turn on the status, you just type "status on"04:30
mithroCarlFK: it is in the help04:30
CarlFKcan you see about separating out the build process from the flash so that I can test the board04:31
mithroCarlFK: once you have built - you just need to repeat steps 6 to 8 to flash the board again04:37
tpbTitle: #796768 - ITP: hdmi2usb-src -- Sources of components - Debian Bug report logs (at
CarlFKmithro: neat  - is someone working on that, or should I try to find someone to do it?05:12
*** CarlFK has quit IRC08:01
*** rohitksingh has joined #timvideos11:13
*** rohitksingh has quit IRC12:30
*** CarlFK has joined #timvideos13:15
*** ChanServ sets mode: +v CarlFK13:15
*** rohitksingh has joined #timvideos17:17
mithrohey CarlFK17:34
mithroan ITP == "Intent to Package"17:34
mithrorohitksingh: hey!18:05
rohitksinghmithro: hi!18:05
mithrorohitksingh: how goes things?18:06
rohitksinghmithro: I'm free these days. Had a job but quit it, since didn't like the profile. Planning for masters.18:07
rohitksinghLots of activity on HDMI2USB these day! :)18:07
mithrorohitksingh: yeah18:07
mithrobeen spending lots of money :P18:08
rohitksinghyeah, opsis must have cost a fortune!18:08
rohitksinghand misoc firmware too18:08
rohitksinghSaw bunnie's tweet on HDMI2USB! It will reach quite a large audience! :)18:09
*** CarlFK has quit IRC18:13
mithrorohitksingh: hopefully18:14
mithrorohitksingh: so - have you managed to get the misoc firmware running on your Atlys board?18:14
mithroxfxf wrote some scripts to make it easier to get set up18:14
rohitksinghmithro: I did compile and it went successfully around 2-3 weeks back. At that time there xfxf's scripts were not there, so it did take sometime to make it work.18:16
rohitksinghbut didn't try on Atlys :P I should now!18:16
rohitksinghmithro: I'll try running it on atlys in an hour. I still have to get hold on how things are integrated in misoc, for porting VGA expansion board18:19
*** rohitksingh has quit IRC18:25
*** rohitksingh has joined #timvideos18:41
*** CarlFK has joined #timvideos18:53
*** ChanServ sets mode: +v CarlFK18:53
*** _florent_ has joined #timvideos19:32
CarlFKmithro: I have the atlys hooked up again.  but I left the laptop PS at home so I only have an hour or so before it dies21:25
mithroCarlFK: I'm around now - what is the question / what are you trying to do?21:30
rohitksinghmithro: So i tried misoc firmware on atlys...runs good...Have an Andriod TV Dongle ([email protected]) as source1... setting framebuffer0 source to 1 works good. But I can't get any output on USB21:36
rohitksinghalso what is framebuffer1 for?21:36
rohitksinghCarlFK: Hi! How are you? :)21:39
mithrorohitksingh: there are two outputs on the atlys21:41
mithrorohitksingh: did you turn on the encoder and load the fx2 firmware?21:41
*** rohitksingh has quit IRC21:43
CarlFKmithro: my current goal is to use the Atly's with dvswitch, but i would think first I should just view its output using a player21:44
mithroCarlFK: so you have the HDMI2USB> prompt?21:44
CarlFKmithro: at the moment the box isn't even on.  booting up now21:45
CarlFKmithro: to flash after booting up, do I start at "6. Flash the gateware and firmware "  ?21:48
mithroCarlFK: yes21:48
CarlFKmithro: what dir should I be in?21:49
mithroCarlFK: oh, you need to source the "" in your terminal before you run any command21:50
CarlFKmithro:  Programming successful!21:52
mithroCarlFK: great!21:52
CarlFKmake load-fx2-firmware ..  looks like it compiles stuff21:52
CarlFKand ends with Downloading firmware/fx2/hdmi2usb.hex to 002/00521:53
CarlFKmithro: what is the missing step to create  /dev/ttyVIZ021:53
mithroCarlFK: Is the Exart device appearing in lsusb?21:55
*** rohitksingh has joined #timvideos21:55
CarlFK[email protected]:~/HDMI2USB-misoc-firmware$ lsusb21:55
CarlFKBus 002 Device 004: ID 04e2:1410 Exar Corp.21:55
CarlFKsudo m-a b-i vizzini22:02
CarlFKdpkg: version 1.0.0-4+3.13.0-62.102 of vizzini-modules-3.13.0-62-generic already installed, skipping22:03
CarlFKlsmod | grep viz22:03
CarlFKvizzini                33680  022:03
CarlFK$ ls /dev/ttyV*22:04
CarlFKls: cannot access /dev/ttyV*: No such file or directory22:04
rohitksinghCarlFK: you probably have ttyACM0 or something...22:06
CarlFKrohitksingh: you are back - doing ok.  trying to figure out how to test the Atlys without spending over an hour installing things22:07
CarlFKI have /dev/ttyACM0  /dev/ttyACM122:07
rohitksingh:) same here...22:07
rohitksingh@CarlFK: one of them is exar uart and another one is fx2 cdc22:08
_florent_CarlFK: can you try on ACM0 or ACM1 and see if you have the HDMI2USB prompt?22:08
rohitksingh_florent_: hi!22:09
mithroif you have two ACM it means the udev rules isn't working22:09
mithroTry unplugging the prog port and plug it back in?22:10
rohitksinghmithro: yup, it also doesn't work for me. If i restart my laptop, and connect the atlys, by default the exar one loads cdc_acm driver =/ then i have to force it to use vizzini22:10
_florent_hi rohitksingh, were you able to get the USB working?22:12
mithrothe udev rule is suppose to eject the cdc_acm from the exar and then load the vizzini module for it instead22:12
tpbTitle: exar-uart-driver/99-vizzini.rules at master · mithro/exar-uart-driver · GitHub (at
CarlFKun/pluggint the usb cable did the trick: /dev/ttyVIZ022:14
rohitksingh_florent_ : nope...trying it again22:16
_florent_CarlFK: you can try:22:16
_florent_framebuffer0 022:16
_florent_status on22:17
_florent_and connect video in on hdmi in 0, video out on hdmi out 022:17
_florent_same as above22:17
_florent_encoder 85 022:18
_florent_once fx2 firmware is loaded22:18
rohitksinghsource 0 is not working for me...source 1 is working... and "framebuffer0 1" command..22:19
rohitksinghmithro: is there any special jumper for source 0 ? or anything special/22:19
_florent_so the encoder command will be encoder 85 122:20
mithrorohitksingh: the documents the way the jumpers need to be set I believe22:20
CarlFK_florent_: should it output anything if I don't have an input hooked up?22:20
rohitksingh_florent_: we have a winner! now getting the output on USB! yay!22:21
_florent_yes the content of the DDR :)22:21
rohitksingh_florent_ : so you mean, "encoder 85 1" actually means "encoder 85 framebuffer1"?22:22
rohitksinghjust for simplicity :P22:22
mithrorohitksingh: "encoder 85 source1" really?22:22
_florent_no, framebuffer1 is the hdmi output22:22
_florent_here in encoder 85 1, 1 mean the source you want for the encoder e.g video in 122:23
mithro85 == quality level22:23
rohitksinghohkay....even if i remove the source, the last image is seen, that means the content is from DDR right?22:23
mithro_florent_: do we double or triple buffer things?22:26
_florent_the help command tries to explain that, but is should probably be more explicit22:26
mithroCarlFK: where did you get up to? Or did your laptop go flat...22:29
_florent_mithro: it should be triple buffering, but I have to check that it's actually the case in the firmware22:29
CarlFKmithro: here - finding hdmi in and out devices22:30
mithrowell, I'm going to have dinner22:33
mithroCarlFK: don't use a raspberry pi22:34
_florent_mithro: just checked the code, that not stricly triple buffering (we have 4 buffers) but the behavior will be similar22:34
CarlFKmithro: I have a laptop with hdmi out22:34
CarlFK_florent_: I have hdmi devices on in and out.  still nothing on the lcd22:35
_florent_can you enable the status with "status on"?22:36
_florent_(just to see if hdmi in is working correctly)22:36
_florent_rohitksingh: to use hdmi in 0, IIRC you have to remove JP6 and JP722:38
CarlFK_florent_: status on - here comes 5 lines:22:39
CarlFKvideo source 0: 0x022:39
CarlFKvideo source 1: 0x022:39
CarlFKframebuffer0: 1024x768 from video source 022:39
CarlFKframebuffer1: 1024x768 from video source 022:39
CarlFKencoder: off22:39
CarlFKddr: read: 1505Mbps  write:    0Mbps  all: 1505Mbps22:39
CarlFKor 6 ;)22:39
_florent_ok, so you video in is not working22:39
_florent_can you try on the hdmi in 1 port?22:39
rohitksingh_florent_ : that one is HDMI_IN1 and its working...22:41
_florent_rohitksingh: OK :) (don't have the board near me)22:41
rohitksinghI have probably blown up my other one's (hdmi0) buffer ic :P22:42
CarlFK_florent_: plugged into the other hdmi, still nothing22:42
_florent_ok, maybe your video source is generating HDMI metadata (we yet fully HDMI compliant)22:45
_florent_if you have another video source, you can eventually try with it22:45
_florent_for the video out, you can try to see if it has a DVI mode22:45
CarlFK_florent_: my source is a linux laptop22:46
CarlFKubuntu's display system setting dialog does not show an external device22:47
CarlFKbut I am guessing I can do an xrandr command to make it send something ?22:47
CarlFK_florent_: and Hi - have we met?22:49
rohitksingh_florent_ : any guess why hdmi0 source is showing resolution as 1282x4? hdmi1 is working fine as before... maybe that same raspberry pi issue mithro was talking of?22:50
_florent_yes you can try xrand22:51
_florent_yes, maybe your source is generating metadata22:52
_florent_CarlFK: no we haven't met (yet)22:53
CarlFKxrandr shows HDMI1 disconnected (normal left inverted right x axis y axis)22:55
rohitksingh_florent_ : its an Android TV dongle... but its working fine on hdmi0 but not on hdmi1...also for hdmi0 jumper J5 should be shorted to enable the buffer IC...thats why previously there was no input, but now its 1282x4...let me investigate on this22:55
CarlFKplugging the laptop into the lcd, xrandr shows HDMI1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 477mm x 268mm22:56
_florent_rohitksingh: can you eventually try with a lower resolution?22:57
_florent_CarlFK: can you force your resolution to 800x600 or something like this? (and maybe redo make load-gateware before testing since the high resolution has maybe generated timing issues in the FPGA)22:58
_florent_rohitksingh: same, it can also be interesting to reload the FPGA22:59
rohitksingh_florent_ : ok...trying! thanks!23:00
CarlFKplugged the laptop and lcd back into the Atlys, now xrandr shows HDMI1 connected 1024x768+1366+0 (normal left inverted right x axis y axis) 160mm x 120mm23:01
CarlFKbut no output on the lcd23:01
_florent_can you try to see if you can enable a dvi mode on your laptop?23:02
_florent_not laptop, lcd sorry23:02
CarlFK_florent_: it only has a dvi connector, not hdmi.  and I can't figure out how to get into its menu23:06
_florent_OK, you can eventually try to change video mode:23:06
_florent_"video_mode list"23:07
_florent_and "video_mode x" with x the video_mode you want23:07
CarlFKSetting video mode to 1280x720 @60Hz23:09
CarlFKcan it generate a test pattern?23:10
_florent_no, but it's kind of, the pattern is the data of the DDR23:10
_florent_sorry time to sleep for me23:12
_florent_I'll work on the design next week to be full HDMI compliant23:12
_florent_not sure this is your issue, but Tim already had this issue23:13
CarlFKcan you try to make it easier for me to test?23:13
CarlFKfigure out what files I need23:14
_florent_I can avoid you regenerating the gateware if you want and host it somewhere23:14
CarlFKso I don't need 17 gig of dev system23:15
_florent_ok I'll put the last gateware somewhere to avoid that23:15
_florent_thanks for the test23:16
CarlFKand some clue what to do with the files23:16
_florent_yes ok23:16
CarlFKcurrently I am using
tpbTitle: HDMI2USB-misoc-firmware/scripts at master · timvideos/HDMI2USB-misoc-firmware · GitHub (at
CarlFKand it seems pretty ... um.. obscure what does what23:16
rohitksingh_florent_ : Okay...forcinf [email protected] through laptop's hdmi works on hdmi0 source23:16
_florent_CarlFK: thanks for the feedback on that I aggree. We have to provide a quick way with precompiled gateware + fx2 firmware23:18
rohitksingh_florent_ : but viewing it on USB altough streams well, but hdmi output goes off....and lots "dvisampler1: FIFO Overflow" messages...quitting UVC streaming, then restores the output on the hdmi screen23:18
CarlFK_florent_: yep.  thanks for understanding23:18
_florent_rohitksingh: there is currently a memory bandwidth issue with the atlys23:19
_florent_can you try to desactivate the framebuffer you are not using: "framebufferx off"23:20
rohitksingh_florent_ : oh I saw that issue... you proposed quarter-rate ddr i think...yeah, now works well! thanks again!23:22
_florent_the quarter-rate ddr phy is working well on the opsis, but still has to be adapted to the atlys23:22
CarlFK_florent_: why bother with the atlys?23:24
_florent_Don't know, ask mithro for that :)23:25
_florent_OK have to go now! bye and  thanks you two for the tests, it's still interesting to get feedback23:25
CarlFKrohitksingh: can you walk me though how you got something ?23:32
rohitksingh _florent_ & mithro: ohh btw, just now I got the reason why USB was not working for me... help shows "encoder <source> <quality>" and i was trying all sorts of combination... correct format is encoder <quality> <source>23:33
rohitksinghsent a pull request23:33
rohitksinghCarlFK: sure!23:33
rohitksinghwhats is the status shown right now?23:33
CarlFKis there a way to get one dump of the status other than status on?  so that it doesn't keep scrolling23:37
rohitksinghI dont't think so, at this can disable it after use23:38
rohitksinghjust keep typing "status off" ignoring any incoming messages...and hit enter23:39
CarlFKyvideo source 0: 0x023:39
CarlFKvideo source 1: 800x60023:39
CarlFKframebuffer0: 800x600 from video source 023:39
CarlFKframebuffer1: 800x600 from video source 023:39
CarlFKencoder: off23:39
CarlFKddr: read:  857Mbps  write:  431Mbps  all: 1288Mbps23:39 now you can enable encoder23:40
rohitksinghtype "encoder 85 0"23:40
CarlFKEnabling encoder on video source 0 with 85 quality23:40
mithrorohitksingh: merged23:40
rohitksinghand you would probably prefer to disable unused framebuffer (ie 1 i guess, if your monitor is on output 0), else FIFO overflow messages would get generated...23:41
mithroCarlFK: the console is written in C code, you could add a "status once" type feature pretty easily ->
tpbTitle: HDMI2USB-misoc-firmware/firmware/lm32 at master · timvideos/HDMI2USB-misoc-firmware · GitHub (at
rohitksinghmithro: thanks!23:41
rohitksinghCarFK: try this first "framebuffer1 off"23:42
CarlFKDisabling framebuffer123:43
rohitksinghCarlFK: and you have loaded fx2 firmware right? check "lsusb"23:43
rohitksinghthere should be "1d50:60b7 OpenMoko, Inc."23:43
CarlFK[email protected]:~$ lsusb23:44
CarlFKBus 002 Device 007: ID 04e2:1410 Exar Corp.23:44
CarlFKBus 002 Device 006: ID 1d50:60b7 OpenMoko, Inc.23:44
rohitksinghawesome you can now view the USB stream with " mplayer tv:// -tv driver=v4l2:width=800:height=600:device=/dev/video1 -vo xv "23:44
mithrothere is a "make view" script23:45
mithrorohitksingh: I'm not sure USB streaming works with any random resolution?23:45
rohitksinghmithro: actually for me just this command is also working "mplayer -tv device=/dev/video1 tv://"23:46
CarlFKI can unplug the usb from the box that is flashing it and plug it into one that just has ubuntu/mplayer right ?23:47
rohitksinghCarlFK: yes...just dont poweroff the atlys23:48
CarlFKrohitksingh: hey look, I have fuzz on my screen.23:55
CarlFKI suspect thats the "data of the DDR"23:55
rohitksinghCarlFK: not the expected data? your video source is still working fine?23:56
rohitksinghCarlFK: please check status23:56
CarlFKrohitksingh: heck if I know ;)23:56
mithroplease try 1024x768 resolution23:57
CarlFKvideo source 0: 0x023:57
CarlFKvideo source 1: 800x60023:57
CarlFKframebuffer0: 800x600 from video source 023:57
CarlFKframebuffer1: off23:57
CarlFKencoder: 800x600 @ 10fps (37Mbps) from video source 0 (q: 85)23:57
CarlFKddr: read:  502Mbps  write:  432Mbps  all:  934Mbps23:57
rohitksinghCarlFK: use this command "encoder 85 1"23:57
rohitksinghsince your source is 123:58
CarlFKEnabling encoder on video source 1 with 85 quality23:58
rohitksinghnow try the USB?23:58

Generated by 2.13.1 by Marius Gedminas - find it at!