*** tpb has joined #timvideos | 00:00 | |
shorne_ | yike, I installed vivado and it crashes quite a lot | 01:06 |
---|---|---|
shorne_ | good old java | 01:08 |
shorne_ | libjvm.so(+0x923da9) | 01:08 |
shorne_ | Probably this issue | 01:09 |
shorne_ | https://forums.xilinx.com/t5/Installation-and-Licensing/Vivado-crashes-during-startup/td-p/766031 | 01:09 |
tpb | Title: Vivado crashes during startup - Community ForumsXilinx.com (at forums.xilinx.com) | 01:09 |
shorne_ | "It seems like it is a bug of gnome using wayland." which is what I have | 01:10 |
shorne_ | ok, ill try without the gui for now | 01:10 |
shorne_ | well, I tried with my own installed version of java and it works | 01:59 |
shorne_ | I cant believe, after installing vivado they installed the jre like 8 times | 02:00 |
shorne_ | mithro: during linux build I am getting an error ' ./scripts/gen_initramfs_list.sh: Cannot open 'openrisc-rootfs.cpio.gz'' | 02:28 |
shorne_ | It seems that file needs to be in the linux root? | 02:28 |
shorne_ | I guess I need to download it from you somewhere? | 02:29 |
shorne_ | Ill try with my own root for now | 02:30 |
*** shorne_ is now known as shorne | 02:32 | |
shorne | Kernel: arch/openrisc/boot/vmlinux.bin is ready | 02:34 |
shorne | I had to run : make build/opsis_net_or1k//software/linux/firmware.fbi | 03:00 |
shorne | kernel boots.. but fails loaded VFS (as I removed rootfs) | 03:00 |
shorne | OK, now to try on a board... | 03:14 |
shorne | Is there a place I can read about this hole architecture | 03:14 |
shorne | i.e. what other projects do I need to know of other than HDMI2USB-litex-firmware | 03:15 |
shorne | - What is in Platforms vs Targets | 03:16 |
shorne | - what is gateware / firmware | 03:16 |
shorne | Ill read through docs I can find | 03:16 |
shorne | Another question | 03:17 |
shorne | - What is this python hdl language? Is it Chisel? | 03:17 |
sb0 | chisel is scala-based | 03:20 |
shorne | ah ok, I emembered wrong | 03:22 |
mithro | shorne: 'm around now | 04:46 |
mithro | shorne: Platform == FPGA Board + things connected to the FPGA board | 04:46 |
mithro | shorne: Target == Configuration of the SoC | 04:47 |
mithro | shorne: Take a look at docs/notes.md | 04:47 |
mithro | jimmo: You should take a look at docs/notes.md too | 04:47 |
mithro | shorne: writing up some overview docs is on the to-do list | 04:57 |
mithro | shorne / shenki / jimmo: I'm getting close to being happy to merge the arty stuff | 05:42 |
mithro | I'm hoping I can get the CI for Vivado running, then I'll merge | 05:43 |
mithro | Now I have to remember how to run the tarball generation script... | 06:11 |
mithro | Oh -- look at that, Vivado and ISE have a silent (batch) install mode -> https://www.xilinx.com/support/answers/32330.html | 06:59 |
tpb | Title: AR# 32330: Install - Can I run the ISE installer in a silent (batch) mode? (at www.xilinx.com) | 06:59 |
*** anant3110 has joined #timvideos | 08:59 | |
*** anant3110 has quit IRC | 09:28 | |
mithro | jimmo: Did you try to rsync the build setup from your desktop to your laptop? | 09:37 |
jimmo | yes | 09:37 |
jimmo | but i re-ran download-env | 09:37 |
mithro | Try make clean first? | 09:37 |
jimmo | missing pyclean | 09:38 |
jimmo | but i guess you meant from build/.../qemu | 09:38 |
mithro | No, from the top level -- wanted it to delete ./build/xxx_xxx_xxx/ | 09:39 |
jimmo | ah right | 09:39 |
jimmo | cool yep that worked, thanks | 09:41 |
mithro | I assume it was something like needing to rerun ./configure | 09:42 |
jimmo | yeah i thought build-qemu did that, but now i see that it doesn't | 09:44 |
jimmo | cool i'm back to almost booting linux :D | 09:44 |
mithro | jimmo: Not every time | 09:44 |
mithro | jimmo: I guess we can attach gdb and see where Linux is stuck | 09:44 |
*** anant3110 has joined #timvideos | 09:49 | |
anant3110 | mithro : Hi, we talked yesterday. I haven't been able to set up the environment as of now. (internet issues) I will get back to you once I m done setting things up. | 09:52 |
mithro | anant3110: No worries, sadly the FPGA toolchain downloads are quite large in size :-/ | 09:52 |
anant3110 | mithro : True that. I will have decent internet speed tomorrow and I would be able to get things ready. I am just thankful that most of the workflow for FPGAs is automated! :-P I ll make it work by tomorrow or latest by day after and get back to you. | 10:00 |
jimmo | @mithro so on the opsis i should be able to `make image-flash` and then `make firmware-connect` ? | 10:26 |
mithro | Yes | 10:26 |
jimmo | cool, got the H2U prompt | 10:33 |
jimmo | "WARNING:root:unbind-helper not found, will have to run as root!" | 10:33 |
jimmo | can i fix this with more udev rules? | 10:33 |
jimmo | @mithro how to arty? missing flash.py | 10:37 |
mithro | jimmo: If you have the udev rules you shouldn't don't need unbind-helper | 10:37 |
mithro | jimmo: No flash support for the arty yet, just use load | 10:38 |
jimmo | gateware-load ? | 10:38 |
mithro | Yeah | 10:39 |
jimmo | embedded:startup.tcl:60: Error: Can't find board/digilent_arty.cfg | 10:39 |
jimmo | i see there's a patch you've written | 10:40 |
jimmo | but it doesn't seem to have been applied | 10:40 |
jimmo | ./build/conda/pkgs/openocd-0.10.0_166_g0e4fbfba0-20170703_0650/info/recipe/digilent-arty.patch | 10:40 |
mithro | Oh.... | 10:40 |
*** anant3110 has quit IRC | 10:40 | |
mithro | I wonder why that didn't apply... | 10:43 |
shorne | mithro: thanks I read through a few thing, like migen and misoc and how they use the term gateway as well | 10:44 |
shorne | The python is migen | 10:44 |
shorne | mithro: please sse my comments on the google doc | 10:45 |
shorne | "LiteX Linux Support Random Notes" | 10:45 |
mithro | shorne: You mean "gateware" ? | 10:45 |
mithro | shorne: Things get confusing when you have a soft-cpu :-P | 10:45 |
shorne | yes, gateware ... sorry its a typo my hands are used to typing gateway | 10:46 |
jimmo | @mithro looks like the other patch did apply | 10:51 |
shorne | mithro: so I got linux booting on qemu, should I try on mimas or arty now? | 10:51 |
shorne | or anything you want me to look into in qemu? | 10:51 |
jimmo | @shorne did it boot to userspace? | 10:51 |
shorne | jimmo: for qemu it didnt because I dont have the rootfs | 10:53 |
shorne | but it booted up until rootfs mount with is pretty much user space | 10:54 |
shorne | I can try with my own busybox rootfs (on qemu) but was waiting to here what I "should" use | 10:54 |
jimmo | tim gave me a rootfs last night that he got from joel | 10:55 |
jimmo | https://drive.google.com/file/d/0B5VlNZ_Rvdw6d21LWXdHQlZuOVU/view?usp=sharing | 10:55 |
tpb | Title: shenki-openrisc-rootfs.cpio - Google Drive (at drive.google.com) | 10:55 |
shorne | jimmo: thanks Ill try that out | 10:56 |
mithro | shorne: Arty | 10:56 |
mithro | jimmo is just trying to do exactly the same thing | 10:56 |
shorne | mithro: ok, I just set 'export PLATFORM=arty' then trying the same boot | 10:59 |
jimmo | @mithro any hints on the openocd patch? | 10:59 |
mithro | jimmo, create build/conda/share/openocd/scripts/board/digilent_arty.cfg | 10:59 |
mithro | With contents -> https://gist.github.com/mithro/9f60cbd59c91b015c6491a0b2a091500#file-digilent_arty-cfg | 10:59 |
tpb | Title: Digilent Arty config for OpenOCD. · GitHub (at gist.github.com) | 10:59 |
jimmo | yep, but why isn't that happening automatically? | 11:00 |
mithro | jimmo: Can fix that later :-P | 11:02 |
jimmo | how does conda know what "timvideos" channel is? | 11:03 |
jimmo | did you register something? | 11:04 |
mithro | jimmo: Yes | 11:04 |
mithro | https://github.com/timvideos/conda-hdmi2usb-packages | 11:04 |
tpb | Title: GitHub - timvideos/conda-hdmi2usb-packages: Conda build recipes for the toolchains needed by LiteX / MiSoC firmware (at github.com) | 11:04 |
jimmo | @mithro the tarball at https://anaconda.org/TimVideos/openocd/files only has one of the patches applied | 11:13 |
jimmo | so something's going wrong with the conda builder | 11:13 |
mithro | jimmo: yeah | 11:13 |
mithro | jimmo: But lets get your arty working first | 11:13 |
mithro | The builds are done here -> https://travis-ci.org/timvideos/conda-hdmi2usb-packages | 11:13 |
jimmo | ahh i thought this might be it | 11:20 |
jimmo | https://www.irccloud.com/pastebin/tDJNfJs1/ | 11:20 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 11:20 |
mithro | jimmo: Ahh.... - wonder the correct way to fix it | 11:27 |
mithro | jimmo: Got "make gateware-load" working? | 11:33 |
mithro | shorne: Are you able to look at where the kernel is stuck? | 11:33 |
jimmo | @mithro sent you a pull request | 11:44 |
jimmo | to fix the conda | 11:44 |
jimmo | @mithro do you have udev rules for the arty? | 11:48 |
mithro | jimmo: No, I just manually chmod the /dev/bus/usb device at the moment | 11:49 |
jimmo | if i create some where should i put them? | 11:50 |
mithro | mode-switch | 11:50 |
mithro | https://github.com/timvideos/HDMI2USB-mode-switch/tree/master/udev | 11:50 |
tpb | Title: HDMI2USB-mode-switch/udev at master · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 11:50 |
mithro | https://github.com/timvideos/HDMI2USB-mode-switch/pull/68 | 11:51 |
tpb | Title: WIP: Mimasv2 support by mithro · Pull Request #68 · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 11:51 |
mithro | jimmo: I'm pretty sure conda is broken because we are using a feature that isn't supported any more... | 11:52 |
jimmo | i tested that change though | 11:52 |
mithro | jimmo: How? | 11:52 |
jimmo | conda build ? | 11:52 |
mithro | guess we will see in a second -> https://travis-ci.org/timvideos/conda-hdmi2usb-packages/jobs/288177097 | 11:54 |
mithro | jimmo: I think that error is caused by my attempt to get static linking of libusb / libftdi | 12:00 |
jimmo | yes, that failed for me too | 12:00 |
mithro | jimmo: The thing that I thought was going to fail at was | 12:01 |
mithro | ValueError: support for __conda_version__ has been removed as of Conda-build 3.0.Try Jinja templates instead: http://conda.pydata.org/docs/building/meta-yaml.html#templating-with-jinja | 12:01 |
jimmo | what changed between 202 and 203? | 12:04 |
jimmo | doesn't look like there were any commits | 12:04 |
mithro | jimmo: I assume that is when they removed the support above? | 12:04 |
jimmo | huh | 12:05 |
jimmo | https://travis-ci.org/timvideos/conda-hdmi2usb-packages/builds/251889973 | 12:05 |
jimmo | The log length has exceeded the limit of 4 MB (this usually means that the test suite is raising the same exception over and over). | 12:06 |
jimmo | The job has been terminated | 12:06 |
jimmo | lol, because the path became _h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl | 12:08 |
jimmo | oh and that's generated from the __conda_version__ ? | 12:08 |
mithro | jimmo: they do binary patching - so need the path length to be as long as possible... | 12:09 |
jimmo | i have no idea what you mean by that | 12:09 |
mithro | jimmo: They patch path strings inside the binaries | 12:10 |
mithro | jimmo: They can patch it with shorter paths by moving the '\0' | 12:11 |
jimmo | so why did the newlib logs change so dramatically? | 12:11 |
mithro | jimmo: https://conda.io/docs/user-guide/tasks/build-packages/make-relocatable.html | 12:11 |
mithro | NOTE: The prefix length was changed in conda build 2.0 from 80 characters to 255 characters. Legacy packages with 80-character prefixes must be rebuilt to take advantage of the longer prefix. | 12:12 |
jimmo | and did you move to conda 2.0 about 20 days ago? | 12:15 |
mithro | jimmo: Not deliberately | 12:16 |
jimmo | looks like it | 12:17 |
jimmo | or whatever | 12:18 |
jimmo | it's definitely that | 12:18 |
mithro | jimmo: Stop getting distracted, we can get this later | 12:18 |
jimmo | but this is the stuff that breaks people's setup | 12:19 |
jimmo | i.e. every step is "oh crap gotta ask tim for the latest workaround" | 12:19 |
jimmo | we need to fix this stuff | 12:19 |
mithro | jimmo: Sure and we need to fix it, but at the the moment those things we can see how to fix | 12:19 |
jimmo | every thing i've been stuck on so far is nothing specific to my setup | 12:19 |
mithro | jimmo: I have no idea if you can get the arty booting or not | 12:20 |
jimmo | i can't get a USB serial device from it | 12:20 |
jimmo | probably udev but i can't see what's wrong | 12:20 |
mithro | jimmo: You just plugged in the device, what did you get from lsusb? | 12:21 |
shorne | where am I supposed to get flash.py? | 12:21 |
shorne | when I run 'make flash' it says missing flash.py | 12:21 |
mithro | shorne: Flashing doesn't work on the arty yet | 12:21 |
jimmo | @shorne you're exactly where i am | 12:21 |
jimmo | run `make gateware-load` instead | 12:22 |
jimmo | but it'll fail because you'll be missing digilent_arty.cfg | 12:22 |
shorne | ok | 12:22 |
jimmo | `cat ./build/conda/pkgs/openocd-0.10.0_166_g0e4fbfba0-20170703_0650/info/recipe/digilent-arty.patch | grep '^\+' | grep -v 'b/tcl' | cut -c2- > build/conda/share/openocd/scripts/board/digilent_arty.cfg` | 12:22 |
shorne | which is the openocd config | 12:22 |
jimmo | yep | 12:23 |
shorne | ok, where can I put the config? I have written openocd configs before | 12:23 |
mithro | build/conda/share/openocd/scripts/board/digilent_arty.cfg | 12:24 |
jimmo | @shorne - that command should copy it from the patch that didn't apply | 12:29 |
shorne | right I see it | 12:30 |
shorne | It seems I dont have access to my device | 12:31 |
shorne | maybe something missing in udec | 12:31 |
shorne | udev | 12:31 |
shorne | I need to go | 12:32 |
jimmo | @shorne yep, exactly what i'm trying to debug now. | 12:33 |
mithro | jimmo: What does lsusb show? | 12:33 |
jimmo | it shows exactly what i have a udev rule for | 12:33 |
jimmo | Bus 001 Device 025: ID 0403:6010 Future Technology Devices International, Ltd FT2232C/D/H Dual UART/FIFO IC | 12:34 |
mithro | jimmo: Try "chmod a+rwx /dev/bus/usb/001/025" | 12:34 |
jimmo | SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="uucp" | 12:35 |
mithro | jimmo: What is the permissions on that file? | 12:35 |
jimmo | argh i'll bet sigrok is overriding my rule | 12:36 |
mithro | jimmo: What is the permissions? | 12:37 |
jimmo | sigrok installed a udev rule in /usr and it's putting it in a group that doesn't exist on arch | 12:37 |
jimmo | BAD SIGROK | 12:37 |
mithro | jimmo: So, you have permission now? | 12:41 |
jimmo | i think so but still dont' get /dev/ttyUSB* | 12:44 |
mithro | modprobe ftdi_sio ? | 12:44 |
mithro | [6739081.055551] usb 3-14.3: FTDI USB Serial Device converter now attached to ttyUSB0 | 12:45 |
mithro | [6739081.057763] usb 3-14.3: FTDI USB Serial Device converter now attached to ttyUSB1 | 12:45 |
mithro | [6739190.901365] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 | 12:45 |
mithro | [6879735.975604] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1 | 12:45 |
jimmo | argh yes not quite but i know what it is | 12:47 |
jimmo | brb | 12:47 |
jimmo | yup | 12:48 |
mithro | What was it? | 12:49 |
jimmo | i did (the equivalent of) an apt-get upgrade earlier today | 12:49 |
jimmo | which included a kernel upgrade | 12:50 |
jimmo | and hadn't rebooted | 12:50 |
jimmo | (i don't really know what happens here but FTDI devices don't work until reboot) | 12:50 |
jimmo | ok, cool i can serial | 12:50 |
jimmo | do i have to netboot? | 12:51 |
mithro | You need to set up your network to be 192.168.100.100 | 12:51 |
mithro | You want to install atftpd too | 12:51 |
jimmo | i can't make firmware-load with linux? | 12:52 |
mithro | jimmo: Hrm? | 12:53 |
jimmo | why do i have to netboot? | 12:53 |
jimmo | just because it's faster? | 12:53 |
mithro | jimmo: Because its *much* faster (IE 10 seconds compared to ~5 minutes) | 12:54 |
jimmo | ok but i can at least check that it works this way | 12:54 |
mithro | And I've never booted Linux via serial | 12:54 |
jimmo | looks like make firmware-load doesnt' respect the FIRMWARE env var | 12:54 |
mithro | jimmo: Possibly - as I mentioned I've not tested this way | 12:55 |
mithro | jimmo: Then you should just be able to do "make tftpd_start" and "make tftp" then reboot the Arty | 12:57 |
jimmo | by reboot you mean the reset button? | 12:58 |
jimmo | (i.e. not power cycle obviously) | 12:58 |
jimmo | netboot would be simpler if this PC had a spare ethernet port, or if i had a switch in this room | 12:59 |
mithro | jimmo: Just do a "make gateware-load" should reboot it | 12:59 |
jimmo | right | 12:59 |
jimmo | i have a USB ethernet dongle somewhere i'll find that | 13:00 |
jimmo | tomorrow.. | 13:00 |
jimmo | i think it's in sam's room | 13:00 |
mithro | Don't have working wireless? | 13:01 |
jimmo | [FLTERM] Booting the device. | 13:01 |
jimmo | [FLTERM] Done. | 13:01 |
jimmo | Executing booted program at 0x40000000 | 13:01 |
jimmo | ...nothing | 13:01 |
mithro | jimmo: What did you do? | 13:02 |
jimmo | make image, make gateware-load, make firmware-load | 13:04 |
jimmo | TARGET=base, PLATFORM=arty, CPU=or1k | 13:04 |
jimmo | i'll leave TARGET=net building and try with netboot tomorrow | 13:06 |
mithro | Okay, I'll try again here in a bit -- maybe I broke something -- still trying to get the CI going so I can merge the pull request | 13:09 |
jimmo | Unable to download cmdline.txt over TFTP | 13:23 |
jimmo | No command line parameters found | 13:23 |
jimmo | Unable to download initrd.bin over TFTP | 13:23 |
jimmo | No initial ramdisk found | 13:23 |
jimmo | @mithro do you have them to go with that rootfs that joel made? | 13:24 |
mithro | ypi dpm | 13:24 |
mithro | you don't need them... | 13:24 |
jimmo | https://www.irccloud.com/pastebin/nxtG1awg/ | 13:25 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 13:25 |
mithro | jimmo: hrm... | 13:26 |
jimmo | can you send me your third_party/linux-litex/arch/openrisc/boot/vmlinux.bin | 13:26 |
jimmo | actually i doubt that's it, because i could boot that file on qemu (and on the opsis i think?) | 13:27 |
mithro | jimmo: yeah - does the qemu thing still work? | 13:28 |
jimmo | @mithro netboot doesn't appear to be working in qemu | 13:36 |
mithro | jimmo: Can you try CPU=lm32? | 13:38 |
jimmo | nah i'm pretty sure it's my network config | 13:38 |
jimmo | your script uses ifconfig, hwich i don't have | 13:38 |
jimmo | so updating it to use `ip addr` | 13:39 |
jimmo | hrmm | 13:44 |
jimmo | Booting from network... | 13:44 |
jimmo | Local IP : 192.168.100.50 | 13:44 |
jimmo | Remote IP: 192.168.100.100 | 13:44 |
jimmo | Oct 16 00:41:05 jimmo-nuc atftpd[25005.139839388460800]: socket may listen on any address, including broadcast | 13:44 |
jimmo | Oct 16 00:41:05 jimmo-nuc atftpd[25005.139839388460800]: Serving boot.bin to 192.168.100.50:7642 | 13:44 |
jimmo | Unable to download boot.bin over TFTP | 13:44 |
jimmo | Network boot failed | 13:44 |
jimmo | No boot medium found | 13:44 |
mithro | jimmo: Can you load the normal firmware? | 13:47 |
jimmo | not by netboot | 13:48 |
mithro | But it works via firmware-load ? | 13:49 |
jimmo | to the arty, yes | 13:50 |
jimmo | (the H2U firmware) | 13:50 |
mithro | Checking now | 13:51 |
mithro | http://pastebin.ubuntu.com/25745734/ | 13:54 |
tpb | Title: Ubuntu Pastebin (at pastebin.ubuntu.com) | 13:54 |
mithro | jimmo: Oh, do you have any modifications to litex? | 13:58 |
jimmo | @mithro i can netboot the arty to hdmi2usb fine | 14:01 |
mithro | But not Linux? | 14:01 |
jimmo | but can't seem to qemu it to either right now | 14:01 |
jimmo | and yeah, can't netboot to linux either | 14:02 |
jimmo | yep just double-checked, same problem - on the arty it loads boot.bin but then freezes at `Executing booted program at 0x40000000` | 14:04 |
mithro | jimmo: what Linux are you using? | 14:05 |
jimmo | arch | 14:05 |
jimmo | is that what you mean? | 14:05 |
mithro | jimmo: No - I mean were did you build it from? | 14:06 |
jimmo | [email protected]:mithro/linux-litex.git origin/litex-minimal | 14:07 |
jimmo | make litex_defconfig | 14:07 |
mithro | Oh... | 14:09 |
mithro | Is your third_party/litex on or1k-linux? | 14:10 |
jimmo | which origin? | 14:12 |
jimmo | (remote, i mean) | 14:12 |
jimmo | $ git submodule update | 14:13 |
jimmo | Submodule path 'third_party/litex': checked out 'db6c88bbef0bdd64890e38aacf069f1f29d675ee' | 14:13 |
mithro | mithro/or1k-linux | 14:13 |
jimmo | ok, making gateware now | 14:18 |
jimmo | (qemu still doesn't work, should it?) | 14:18 |
jimmo | what do i need to rebuild? | 14:18 |
mithro | Testing here now... | 14:18 |
jimmo | can't get the arty to netboot now | 14:30 |
jimmo | should i be able to TARGET=base ./scripts/build-qemu.sh ? | 14:32 |
jimmo | (with FIRMWARE=linux) | 14:32 |
jimmo | i'm guessing there isn't qemu spi flash for arty ? | 14:35 |
jimmo | i need to sleep now... sorry i couldn't get anything to work | 14:37 |
mithro | Hrm.... | 14:44 |
*** idk_ has joined #timvideos | 18:39 | |
*** rohitksingh has joined #timvideos | 18:51 | |
*** felix_u8 has joined #timvideos | 18:55 | |
*** rohitksingh has quit IRC | 19:37 | |
*** rohitksingh has joined #timvideos | 19:43 | |
*** rohitksingh has quit IRC | 19:47 | |
*** felix_u16 has joined #timvideos | 19:57 | |
*** felix_u8 has quit IRC | 20:00 | |
*** techman83 has quit IRC | 22:02 | |
*** techman83 has joined #timvideos | 22:02 | |
*** ChanServ sets mode: +v techman83 | 22:02 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!