*** tpb has joined #timvideos | 00:00 | |
CarlFK | jea: xfxf - I have had them flip out and power cycle fixed it. | 00:00 |
---|---|---|
jea | turns out it was the frequency. this replacement had 60hz set but camera is 50 | 00:02 |
jea | as for the original box, it was going bad on the encoder after about 3mins post restart. quite odd | 00:02 |
xfxf | oh right. yeah all au cameras will be 50 | 00:05 |
xfxf | herm, we need to flash the firmware on it which is default 50 | 00:06 |
xfxf | mithro: did you build two firmwares, or just one? | 00:06 |
jea | mithro just flashed it with the 50hz firmware | 00:06 |
CarlFK | xfxf: pretty sure "just one" | 00:07 |
CarlFK | or maybe not. or maybe he made a 50 one... weee!!!! | 00:07 |
mithro | xfxf: There is a git repo which shows what I did | 00:09 |
jea | CarlFK: a new 60hz version was made on friday night that we are using for the laptop input | 00:10 |
*** cr1901 has joined #timvideos | 00:13 | |
CarlFK | mithro: when you have 3-5 min.. I am having trouble, hoping it is something simple: http://paste.ubuntu.com/23053822/ AssertionError: b'f' (b'f') != b'\x00' (b'\x00') | 00:15 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 00:15 |
CarlFK | mithro: yes, I see that f<>0, but the input file is right. It is being served over an sshfs mount from my other test box. md5 checks out. | 00:17 |
shenki | mithro: where do the headers for the uart etc live? | 00:38 |
mithro | csr.h | 00:39 |
shenki | mithro: ok. i need to build the soc first? | 00:40 |
mithro | yes | 00:40 |
shenki | mithro: ok. what do i want to run for that? | 00:40 |
mithro | shenki: the makefile in opsis-soc | 00:44 |
shenki | mithro: yep. do i need to source something to set up the python paths? | 00:44 |
mithro | shenki: If you set the path as I mentioned above, you'll get the right stuff | 00:45 |
shenki | $ make | 00:45 |
shenki | rm -rf build | 00:45 |
shenki | ./opsis_base.py --with-ethernet --nocompile-gateware --cpu-type lm32 | 00:45 |
shenki | Traceback (most recent call last): | 00:45 |
shenki | File "./opsis_base.py", line 9, in <module> | 00:45 |
shenki | from litex.gen import * | 00:45 |
shenki | ImportError: No module named 'litex' | 00:45 |
shenki | Makefile:4: recipe for target 'opsis_minisoc' failed | 00:45 |
mithro | shenki: you didn't do the path command probably then | 00:46 |
mithro | shenki: you made sure to put the conda element *before* the others? | 00:46 |
shenki | 09:32 <@mithro> "echo PATH=$PWD/conda/bin:$PATH" | 00:46 |
mithro | shenki: "which python" | 00:46 |
shenki | mithro: ok, got it | 00:47 |
mithro | shenki: I pushed some extra patchs to opsis-soc to https://github.com/mithro/opsis-soc | 00:47 |
tpb | Title: GitHub - mithro/opsis-soc: Opsis SoC based on LiteX (at github.com) | 00:47 |
shenki | mithro: ok. should i abort my build and use that instead? | 00:49 |
mithro | If you want spiflash support, yes | 00:49 |
shenki | mithro: how do i forceok | 00:49 |
shenki | ok | 00:49 |
mithro | shenki: I need to see your changes to get micropython building.... | 00:50 |
shenki | mithro: mather? | 00:50 |
shenki | mithro: master? | 00:50 |
mithro | shenki: yes | 00:50 |
shenki | mithro: should i be able to build for or1k? | 00:51 |
mithro | shenki: dunno, start with lm32 | 00:51 |
shenki | k | 00:51 |
mithro | shenki: were did you end up? | 00:54 |
shenki | mithro: the fire talk | 00:54 |
shenki | 105 | 00:54 |
shenki | mithro: xilinx segfaulted \o/ | 00:55 |
shenki | build_top.sh: line 8: 4651 Segmentation fault (core dumped) map -ol high -w -o top_map.ncd top.ngd top.pcf | 00:55 |
mithro | shenki: yay - check your licensing? | 00:56 |
shenki | urgh | 00:58 |
shenki | mithro: https://github.com/shenki/micropython/tree/lm32 | 01:02 |
tpb | Title: GitHub - shenki/micropython at lm32 (at github.com) | 01:02 |
shenki | mithro: the lm32 toolchain has include path issues | 01:05 |
shenki | mithro: pull again | 01:07 |
mithro | shenki: Basically, you want something like this at the top of the make file | 01:08 |
mithro | https://www.irccloud.com/pastebin/0vrxHK6x/ | 01:08 |
tpb | Title: Pastebin | IRCCloud (at www.irccloud.com) | 01:08 |
*** cr1901 has quit IRC | 01:10 | |
mithro | shenki: ./litex/litex/soc/software/include/base/stdint.h | 01:17 |
jea | CarlFK: could I get your help with a veyepar thing please | 01:17 |
CarlFK | jea: sure what up? | 01:17 |
mithro | ./mpconfigport.h:80:20: fatal error: alloca.h: No such file or directory | 01:18 |
jea | I'm using VLC to watch the videos and confirm the times that I want. I was wondering how to properly convert the video time into the time that veyepar wants | 01:19 |
shenki | mithro: hrm. we don't have an alloca | 01:20 |
shenki | #include <alloca.h> | 01:20 |
CarlFK | jea: if vlc says 1:23, put 1:23 in the box. | 01:20 |
CarlFK | jea: the 'pattern' is h:m:s and if you leave off h or m, then it is just seconds | 01:21 |
CarlFK | so 61 can either be 61 or 1:1 | 01:21 |
CarlFK | jea: hopefully you found this: | 01:22 |
CarlFK | ~/Videos/veyepar/troy/dnf2016/dv/crystal_ballroom/2016-07-12/11_23_21.ts :start-time=051.0 | 01:22 |
CarlFK | under [x]Show More | 01:22 |
CarlFK | :start-time=051.0 is the vlc syntax for .. start there | 01:23 |
shenki | mithro: which libc are we using for the lm32? | 01:27 |
shenki | mithro: can we do a newlib build? that would give us setjmp/longjump | 01:28 |
mithro | shenki: the above include/base | 01:28 |
shenki | mithro: or uclibc | 01:28 |
shenki | mithro: ok. those appear to be copies of glibc headers? | 01:29 |
mithro | shenki: I think I've fixed the or1k issue | 01:30 |
mithro | shenki: "export CPU=or1k" - just making the firmware work | 01:32 |
jea | CarlFK: sorry, had to run to a room | 01:35 |
jea | Thanks for that info. I'll try it out now. I didn't realise I could just do h:m:s, so that will be much simpler | 01:35 |
shenki | mithro: are you suggesting i switch back to the ork1? | 01:36 |
mithro | shenki: yes, I think I am | 01:37 |
shenki | k | 01:37 |
mithro | shenki: Hrm, going to ork1 still seems to be missing alloca and setjmp.h ... | 01:39 |
shenki | mithro: ok. we need to build a toolchain with newlib | 01:39 |
shenki | mithro: it implements these things | 01:40 |
shenki | mithro: for the lm32 at aleast | 01:40 |
mithro | https://github.com/timvideos/conda-hdmi2usb-packages/blob/master/gcc-or1k-elf/build.sh#L57 | 01:40 |
tpb | Title: conda-hdmi2usb-packages/build.sh at master · timvideos/conda-hdmi2usb-packages · GitHub (at github.com) | 01:40 |
mithro | shenki: the ork1 toolchain should be newlib already? | 01:42 |
shenki | mithro: ok | 01:42 |
mithro | shenki: The opsis-soc firmware compiles under lm32 and or1k now | 01:45 |
shenki | Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. | 01:47 |
shenki | LINK build/firmware.elf | 01:47 |
shenki | or1k-elf-ld: warning: cannot find entry symbol _start; defaulting to 0000000040000000 | 01:47 |
shenki | build/py/nlrsetjmp.o: In function `nlr_setjmp_jump': | 01:47 |
shenki | nlrsetjmp.c:(.text+0x28): undefined reference to `longjmp' | 01:47 |
shenki | nlrsetjmp.c:(.text+0x28): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `longjmp' | 01:47 |
shenki | build/py/gc.o: In function `gc_init': | 01:47 |
shenki | etc | 01:47 |
mithro | shenki: pastebin the full thing? | 01:59 |
shenki | mithro: http://pastebin.com/raw/ssiFxvBe | 02:01 |
shenki | $ grep -r __divsi3 conda/lib/gcc/or1k-elf/4.9.3/ | 02:02 |
shenki | Binary file conda/lib/gcc/or1k-elf/4.9.3/libgcc.a matches | 02:02 |
shenki | Binary file conda/lib/gcc/or1k-elf/4.9.3/soft-float/libgcc.a matches | 02:02 |
shenki | Binary file conda/lib/gcc/or1k-elf/4.9.3/no-delay/libgcc.a matches | 02:02 |
shenki | Binary file conda/lib/gcc/or1k-elf/4.9.3/no-delay/soft-float/libgcc.a matches | 02:02 |
shenki | Binary file conda/lib/gcc/or1k-elf/4.9.3/compat-delay/libgcc.a matches | 02:02 |
shenki | Binary file conda/lib/gcc/or1k-elf/4.9.3/compat-delay/soft-float/libgcc.a matches | 02:02 |
shenki | so those __div functions exist | 02:02 |
shenki | mithro: but we're not linking them in | 02:02 |
mithro | shenki: Do we just need something like -lgcc ? | 02:02 |
shenki | mithro: yes | 02:04 |
shenki | mithro: which you normally get by linking with the compiler frontend | 02:04 |
shenki | mithro: when i do that, http://pastebin.com/raw/QKpzC0Bi | 02:05 |
shenki | /tmp/really-really-really-really-really-really-really-really-really-really-really-really-really-long-path/conda/conda-bld/work/build-newlib/or1k-elf/newlib/libc/stdlib/../../../../../newlib/newlib/libc/stdlib/__atexit.c | 02:05 |
shenki | nice | 02:05 |
mithro | So, ork1 has a crt0 | 02:06 |
shenki | right .and we normall don't link against it becuase we pass -nostdlib to the linker | 02:06 |
shenki | and we link with ld, not with gcc | 02:06 |
mithro | https://www.irccloud.com/pastebin/Xn7USkhJ/ | 02:06 |
tpb | Title: Pastebin | IRCCloud (at www.irccloud.com) | 02:06 |
mithro | Need to spend some time on my own lightning talk | 02:07 |
mithro | CarlFK: https://github.com/timvideos/HDMI2USB-mode-switch/pull/35 | 02:12 |
tpb | Title: Fixing #34 by mithro · Pull Request #35 · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 02:12 |
shenki | mithro: where would i find the source for the or1k-elf/lib/crt0.o? | 02:13 |
mithro | shenki: Is that binutils or gcc? | 02:14 |
mithro | shenki: https://github.com/openrisc/or1k-gcc.git - or1k-4.9.3-release | 02:14 |
tpb | Title: GitHub - openrisc/or1k-gcc: GCC port for OpenRISC 1000 (at github.com) | 02:14 |
shenki | mithro: gcc i think | 02:14 |
shenki | thanks | 02:14 |
mithro | shenki: https://github.com/timvideos/conda-hdmi2usb-packages/blob/master/gcc-or1k-elf/meta.yaml | 02:14 |
tpb | Title: conda-hdmi2usb-packages/meta.yaml at master · timvideos/conda-hdmi2usb-packages · GitHub (at github.com) | 02:14 |
shenki | mithro: do you have the build tree on your laptop? | 02:19 |
mithro | shenki: No, I don't think I do - mostly just use travis CI for doing the builds | 02:20 |
shenki | ok | 02:20 |
mithro | http://openrisc.io/newlib/ | 02:25 |
tpb | Title: or1k-elf toolchain (newlib port for OpenRISC) (at openrisc.io) | 02:25 |
mithro | http://opencores.org/or1k/OpenRISC_GNU_tool_chain | 02:26 |
tpb | Title: OpenRISC GNU tool chain - OR1K :: OpenCores (at opencores.org) | 02:26 |
CarlFK | mithro: you fixed the assert 0==0, but I am still getting f<>0 | 02:52 |
CarlFK | AssertionError: 'b'f'' (b'f') != 'b'\x00'' (b'\x00') | 02:52 |
CarlFK | http://paste.ubuntu.com/23054136/ | 02:53 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 02:53 |
*** Bertl is now known as Bertl_zZ | 04:16 | |
shenki | mithro: what were you mentioning at lunch about toolchain 'hello world' programs? | 04:16 |
mithro | shenki: http://openrisc.io/newlib/tutorial.html ? | 04:17 |
tpb | Title: or1k-elf toolchain (newlib port for OpenRISC) (at openrisc.io) | 04:17 |
shenki | mithro: oh cool. they have prebuilt toolchians | 04:23 |
shenki | mithro: bug is in our linker script | 04:37 |
shenki | mithro: it links if i don't use it | 04:37 |
mithro | shenki: compare the linker scripts? | 04:38 |
shenki | yeah | 04:39 |
shenki | this is the default one http://pastebin.com/raw/mtdkaFnE | 04:39 |
mithro | btw are you using CROSS=1 ? | 04:46 |
shenki | no | 04:46 |
shenki | that doesn't exist in my makefile | 04:47 |
shenki | mithro: do you think we could use the linker script as-is, but swap out 0x15000000 for main_ram? | 04:48 |
mithro | shenki: that is in the micropython Makefile? | 04:48 |
shenki | yeah | 04:49 |
jea | CarlFK: you around still? | 05:21 |
CarlFK | jea: yep | 05:21 |
jea | great | 05:21 |
jea | we just tried running post_yt.py and hit some syntax issues | 05:21 |
jea | do you know of anything that has changed in that area? | 05:22 |
shenki | mithro: can you load this on to a board? | 05:22 |
jea | CarlFK: the syntax error is in the googleapiclient module, which seems unusual | 05:23 |
CarlFK | jea: I bet it is a pthon3 thing.. just a sec... | 05:23 |
jea | yeah, we were thinking that. just surprised that it was an issue in the module | 05:24 |
CarlFK | if you can find a py3 version, great. but here is my fix (kinda scary, but really nothing is at risk; | 05:25 |
jea | ah, it looks like an old version of that package. maybe i should just upgrade it | 05:25 |
CarlFK | cd $(python3 -c "from distutils.sysconfig import get_python_lib; print( get_python_lib())") | 05:26 |
CarlFK | 2to3 -w steve vidscraper | 05:26 |
CarlFK | (thats from my install script, I thought there were the goog stuff too | 05:26 |
CarlFK | cd.. gets you into the site_packages dir (or dist_packages) | 05:27 |
CarlFK | 2to3 -w ... ports the code! | 05:27 |
jea | ok, lets give that a go | 05:27 |
jea | CarlFK: is there a reason you are using git+https://github.com/CarlFK/google-api-python-client.git#egg=googleapiclient | 05:40 |
tpb | Title: GitHub - CarlFK/google-api-python-client (at github.com) | 05:40 |
CarlFK | jea: I think because I tweeked the open().read() to take a file handle instead of a file name | 05:41 |
CarlFK | but that isn't needed now | 05:41 |
CarlFK | so that is the reason, but it is no longer a valid reason. | 05:42 |
jea | ok | 05:42 |
jea | I | 05:42 |
jea | I'll switch to the standard one so i have the py3 support | 05:42 |
CarlFK | cool | 05:43 |
jea | nearly there. now to work out why google thinks the file is invalid | 05:57 |
jea | ah, this might be the issue you were mentioning about open | 05:59 |
CarlFK | oh right | 05:59 |
shenki | mithro: ive finished it | 06:11 |
shenki | mithro: i need to test it | 06:11 |
jea | ok, i understand what is happening now. I'll patch it later | 06:11 |
CarlFK | jea: it used to do a little ascii progress bar, but that broke | 06:12 |
*** CarlFK has left #timvideos | 06:12 | |
*** CarlFK has joined #timvideos | 06:14 | |
*** ChanServ sets mode: +v CarlFK | 06:14 | |
CarlFK | jea: when you are rooting around, if you see how to do a call back, let me know. | 06:14 |
*** cr1901 has joined #timvideos | 06:41 | |
*** cr1901 has quit IRC | 06:41 | |
*** rohitksingh has joined #timvideos | 09:12 | |
*** CarlFK has quit IRC | 09:18 | |
*** rohitksingh has quit IRC | 10:14 | |
*** rohitksingh has joined #timvideos | 10:17 | |
*** rohitksingh has quit IRC | 10:49 | |
*** CarlFK has joined #timvideos | 11:04 | |
*** ChanServ sets mode: +v CarlFK | 11:04 | |
*** Bertl_zZ is now known as Bertl | 13:32 | |
*** rohitksingh has joined #timvideos | 15:31 | |
*** springermac_ has joined #timvideos | 16:27 | |
*** springermac is now known as Guest57252 | 16:27 | |
*** Guest57252 has quit IRC | 16:30 | |
*** springermac__ has joined #timvideos | 16:30 | |
*** springermac__ is now known as springermac | 16:31 | |
*** springermac_ has quit IRC | 16:32 | |
*** springermac_ has joined #timvideos | 17:11 | |
*** springermac is now known as Guest57203 | 17:11 | |
*** Guest57203 has quit IRC | 17:13 | |
*** springermac__ has joined #timvideos | 17:13 | |
*** springermac__ is now known as springermac | 17:13 | |
*** springermac_ has quit IRC | 17:15 | |
*** Bertl is now known as Bertl_oO | 17:59 | |
*** rohitksingh has quit IRC | 18:08 | |
*** rohitksingh has joined #timvideos | 18:23 | |
*** rohitksingh has quit IRC | 20:25 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!