*** tpb has joined #timvideos | 00:00 | |
mithro | ewen: interesting.... | 00:01 |
---|---|---|
ewen | mithro: However so far I've not figured out where it's getting that path from... :-) | 00:01 |
ewen | NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include) | 00:09 |
ewen | (Linux Makefile) | 00:09 |
ewen | Which suggests it's being cached somewhere... | 00:09 |
ewen | $ or1k-elf-newlib-gcc -print-file-name=include | 00:10 |
ewen | /src/fpga/litex-buildenv/build/conda/bin/../lib/gcc/or1k-elf/8.2.0/include | 00:10 |
ewen | $ grep Usage.*shell-cached scripts/Kbuild.include | 00:12 |
ewen | # Usage: $(call shell-cached,shell_command) | 00:12 |
ewen | mithro: Looks like it caches in .cache.mk stored in $(obj), which is build/arty_net_or1k.linux/software/linux/.cache.mk in this case | 00:17 |
ewen | ewen@parthenon:/src/fpga/litex-buildenv$ find . -name "*cache.mk*" | 00:17 |
ewen | ./build/arty_net_or1k.linux/software/linux/.cache.mk | 00:17 |
ewen | ./build/cache.mk | 00:17 |
ewen | ewen@parthenon:/src/fpga/litex-buildenv$ ls -l build/arty_net_or1k.linux/software/linux/.cache.mk | 00:17 |
ewen | -rw-rw-r-- 1 ewen ewen 23901 Jan 9 12:12 build/arty_net_or1k.linux/software/linux/.cache.mk | 00:17 |
ewen | ewen@parthenon:/src/fpga/litex-buildenv$ grep 5.4.0 build/arty_net_or1k.linux/software/linux/.cache.mk | 00:17 |
ewen | __cached_or1k-elf-newlib-gcc_-print-file-name_include := /src/fpga/litex-buildenv/build/conda/bin/../lib/gcc/or1k-elf/5.4.0/include | 00:17 |
ewen | ewen@parthenon:/src/fpga/litex-buildenv$ | 00:17 |
ewen | CarlFK[m]: mithro: FTR, "rm ./build/arty_net_or1k.linux/software/linux/.cache.mk" and then running scripts/build-linux.sh works properly. I guess this is a side effect of starting with an older buildenv. | 00:18 |
ewen | FTR, successfully built or1k linux and booted, via TFTP in QEMU (about to try on the Arty itself). | 00:22 |
ewen | mithro: Success. Can build/boot Linux on Arty as well. | 00:29 |
mithro | ewen: \o/ | 00:40 |
*** andi-m has quit IRC | 00:45 | |
*** andi-m has joined #timvideos | 00:45 | |
CarlFK[m] | Woot | 00:51 |
*** sc00bz1 has quit IRC | 01:09 | |
*** sc00bz has joined #timvideos | 01:10 | |
*** CarlFK has joined #timvideos | 01:22 | |
*** ChanServ sets mode: +v CarlFK | 01:22 | |
ewen | While following https://github.com/timvideos/litex-buildenv/wiki/HowTo-FuPy-on-iCE40-Boards it appears that I've managed to (partially?) brick one of my TinyFPGA BX boards. The "tinyprog --program-image" returned Failure (2-3 times), and after unplugging/plugging in BX board it's no longer finding the bootloader for programming :-( | 01:37 |
tpb | Title: HowTo FuPy on iCE40 Boards · timvideos/litex-buildenv Wiki · GitHub (at github.com) | 01:37 |
ewen | TinyProg CLI | 01:38 |
ewen | ------------ | 01:38 |
ewen | Using device id 1d50:6130 | 01:38 |
ewen | Only one board with active bootloader, using it. | 01:38 |
ewen | Programming /dev/ttyACM0 with build/tinyfpga_bx_base_lm32.minimal//image-gateware+bios+none.bin | 01:38 |
ewen | Programming at addr 028000 | 01:38 |
mithro | ewen: I think having the wrong version of tinyprog and overriding the warning might do that? | 01:38 |
ewen | There was no warning, AFAICT. | 01:39 |
mithro | hrm.... | 01:39 |
mithro | ewen: Are you using a VM? | 01:39 |
ewen | No, native on Ubuntu 16.04 VM | 01:39 |
ewen | (16.04 laptop, I mean | 01:39 |
ewen | tinyprog 1.0.22b1 <pip> | 01:40 |
ewen | (Installed via conda, via litex-buildenv) | 01:40 |
mithro | ewen: Hrm.... | 01:41 |
ewen | mithro: Not 100% bricked. After leaving it plugged in for a while, *then* pressing reset, I did manage to re-upload the blink example. | 01:41 |
ewen | I'll see if I can find another USB cable to try... | 01:41 |
ewen | mithro: Looks like there's two things going on: 1. bootloader is only active for a wee while after reset, and 2. for some reason I'm having trouble programming BX from within litex-buildenv. | 01:44 |
ewen | (Latter problem persists with a different USB cable.) | 01:44 |
mithro | ewen: If you are seeing (1) then it sounds like the bootloader is not detecting that your system has working USB | 01:45 |
mithro | do you have output in dmesg about xhci being all confused? | 01:45 |
ewen | mithro: Not from xhci itself, now. Seem to have usb-1.2 / cdc_acm messages only. Including failed to set dtr/rts | 01:47 |
ewen | blink demo: 135100 bytes to program | 01:49 |
ewen | litex: 180192 bytes to program | 01:50 |
ewen | Of note, my working "blink" example window is using tinyprog 1.0.18, and the litex-buildenv one is using tinyprog 1.0.22b1 | 01:55 |
*** mauz555 has joined #timvideos | 01:56 | |
ewen | Possibly relevant TinyFPGA thread: https://discourse.tinyfpga.com/t/issues-with-tinyprog-u-on-bx/628/8 | 01:57 |
tpb | Title: Issues with tinyprog -u on BX - TinyFPGA (at discourse.tinyfpga.com) | 01:57 |
ewen | And possibly relevant bug (different file size): https://github.com/tinyfpga/TinyFPGA-Bootloader/issues/23 | 01:58 |
tpb | Title: Programming TinyFPGA BX with userdata of size exactly 1244 bytes fails · Issue #23 · tinyfpga/TinyFPGA-Bootloader · GitHub (at github.com) | 01:58 |
*** mauz555 has quit IRC | 01:59 | |
ewen | 1.0.22b1 is a beta pre-release; there's a 1.0.23 at https://pypi.org/project/tinyprog/#history, although there's still apparently no Python3 wheel (https://github.com/tinyfpga/TinyFPGA-Bootloader/issues/25) | 02:01 |
tpb | Title: tinyprog · PyPI (at pypi.org) | 02:01 |
ewen | In theory since https://github.com/timvideos/litex-buildenv/pull/119 we're installing tinyprog from github (not PyPI) | 02:02 |
tpb | Title: Install tinyprog from repo until new version is uploaded to PyPI. by cr1901 · Pull Request #119 · timvideos/litex-buildenv · GitHub (at github.com) | 02:02 |
ewen | mithro: Looks like it might be file length related. If I do "make image-flash" then it successfully programs. If I do "make gateware-flash" then it fails on every attempt. | 02:06 |
ewen | mithro: As best I can tell from TinyFPGA discourse thread that bug is supposed to be fixed in Oct 2018, possibly by 1.0.23. (But for some reason we're still installing 1.0.22b1 as best I can tell.) | 02:06 |
ewen | $ make firmware-connect | 02:12 |
ewen | flterm --port=/dev/ttyUSB0 --speed=115200 | 02:12 |
ewen | [FLTERM] Starting... | 02:12 |
ewen | Executing booted program at 0x20058008 | 02:12 |
ewen | MicroPython v1.9.4-534-gd2bd404 on 2019-01-09; litex with lm32 | 02:12 |
ewen | >>> | 02:12 |
ewen | mithro: Seems like TinyProg has 1.0.22b1 version in the *git* version: https://github.com/tinyfpga/TinyFPGA-Bootloader/blob/0b70c51b8a3fa6b4b2ce4f8d31435ec80d0c8a3f/programmer/setup.py#L14 | 02:56 |
tpb | Title: TinyFPGA-Bootloader/setup.py at 0b70c51b8a3fa6b4b2ce4f8d31435ec80d0c8a3f · tinyfpga/TinyFPGA-Bootloader · GitHub (at github.com) | 02:56 |
ewen | Yet https://pypi.org/project/tinyprog/#history has a 1.0.23 (but apparently only for Python 2). | 02:57 |
tpb | Title: tinyprog · PyPI (at pypi.org) | 02:57 |
ewen | FTR, I've tried to encourage tinyfpga to release 1.0.23 in a way it can be installed on Python 3 (see, https://discourse.tinyfpga.com/t/issues-with-tinyprog-u-on-bx/628/16 and https://github.com/tinyfpga/TinyFPGA-Bootloader/issues/25#issuecomment-452556842) | 03:23 |
tpb | Title: Issues with tinyprog -u on BX - TinyFPGA (at discourse.tinyfpga.com) | 03:23 |
*** Kripton has quit IRC | 03:46 | |
*** Kripton has joined #timvideos | 03:46 | |
*** ewen has quit IRC | 04:26 | |
*** tsglove2 has joined #timvideos | 04:59 | |
*** rohitksingh_work has joined #timvideos | 05:00 | |
*** springermac_ has joined #timvideos | 05:03 | |
*** tsglove has quit IRC | 05:08 | |
*** springermac has quit IRC | 05:08 | |
*** futarisIRCcloud has joined #timvideos | 06:57 | |
*** CarlFK has quit IRC | 07:32 | |
*** cr1901_modern has quit IRC | 09:12 | |
*** cr1901_modern has joined #timvideos | 10:43 | |
*** futarisIRCcloud has quit IRC | 10:47 | |
*** rohitksingh_work has quit IRC | 13:24 | |
*** Kripton has quit IRC | 13:35 | |
*** Kripton has joined #timvideos | 13:46 | |
*** tsglove2 has quit IRC | 14:33 | |
*** rohitksingh has joined #timvideos | 14:43 | |
*** puck_ has quit IRC | 15:45 | |
*** puck_ has joined #timvideos | 15:49 | |
*** CarlFK has joined #timvideos | 17:23 | |
*** ChanServ sets mode: +v CarlFK | 17:23 | |
*** rohitksingh has quit IRC | 18:32 | |
*** Kripton has quit IRC | 19:25 | |
*** Kripton has joined #timvideos | 19:26 | |
*** rohitksingh has joined #timvideos | 19:35 | |
*** rohitksingh has quit IRC | 19:45 | |
*** rohitksingh has joined #timvideos | 19:45 | |
*** rohitksingh has quit IRC | 20:43 | |
*** fischerm has joined #timvideos | 22:08 | |
*** CarlFK has quit IRC | 23:54 | |
*** Kripton has quit IRC | 23:57 | |
*** Kripton has joined #timvideos | 23:58 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!