*** tpb has joined #timvideos | 00:00 | |
mithro | Well, I've now run into an issue | 00:03 |
---|---|---|
mithro | the lm32 cpu doesn't seem to compile with icecube2 | 00:03 |
mithro | and the io doesn't seem to work with nextpnr | 00:03 |
cr1901_modern | cc: daveshah :) | 00:03 |
mithro | trying with arachne-pnr now... | 00:05 |
mithro | After placement: | 00:09 |
mithro | PIOs 11 / 63 | 00:09 |
mithro | PLBs 856 / 960 | 00:09 |
mithro | BRAMs 32 / 32 | 00:09 |
*** CarlFK has quit IRC | 00:14 | |
*** TimGremalm has quit IRC | 00:28 | |
*** futarisIRCcloud has joined #timvideos | 00:39 | |
mithro | arachne-pnr can't route 3-4 lines... | 01:07 |
*** CarlFK has joined #timvideos | 01:08 | |
*** ChanServ sets mode: +v CarlFK | 01:08 | |
mithro | Welp, arachne-pnr doesn't work with the litex bridge version either.... | 01:17 |
mithro | Oh, it seems the bridge version is now working in nextpnr! | 02:23 |
*** futarisIRCcloud has quit IRC | 02:49 | |
*** TimGremalm has joined #timvideos | 02:51 | |
mithro | cr1901_modern: I've got a job for you :-P | 03:07 |
mithro | tannewt: ping? | 03:43 |
mithro | tannewt: As far as I can tell, the hardware is working - I just now need to get the software right... | 03:44 |
tannewt | mithro: can you sniff the usb traffic through litescope still? | 03:46 |
cr1901_modern | mithro: Oh? | 03:57 |
mithro | tannewt: I have my pipistrello sniffing the traffic | 03:58 |
tannewt | is it getting anywhere? | 03:58 |
mithro | tannewt: It sends the first setup packet and then everything is naked | 03:59 |
mithro | cr1901_modern: bram patching! | 03:59 |
cr1901_modern | isn't that already doable in ice40? | 03:59 |
tannewt | and its acked? on linux thats the get descriptor right? | 04:00 |
tannewt | is the usb interrupt working? | 04:01 |
mithro | cr1901_modern: In litex | 04:02 |
cr1901_modern | ahhhh, hmmm | 04:03 |
mithro | tannewt: I don't think tinyusb is getting the first setup data | 04:03 |
mithro | tannewt: And I'm unsure the correct behaviour of tinyusb anyway... | 04:04 |
tannewt | Its usually that the usb interrupt handler is called and it calls dcd_setup_received to queue the packet | 04:05 |
tannewt | should it be in here: https://github.com/mithro/tinyusb/blob/develop/src/portable/valentyusb/dcd_valentyusb.c#L46 ? | 04:07 |
tpb | Title: tinyusb/dcd_valentyusb.c at develop · mithro/tinyusb · GitHub (at github.com) | 04:07 |
mithro | tannewt: can we just start with polling? | 04:07 |
tannewt | sure we can hack it | 04:08 |
tannewt | https://github.com/mithro/tinyusb/blob/develop/src/device/usbd.c#L306 | 04:09 |
tpb | Title: tinyusb/usbd.c at develop · mithro/tinyusb · GitHub (at github.com) | 04:09 |
tannewt | I think thats where you'd want to add a call to fake the interrupt | 04:09 |
mithro | tannewt: Just trying to get back to a working bios so I don't have to rebuild gateware every time I updated tinyusb | 04:19 |
cr1901_modern | mithro: Not sure how I should go about this... this is a litex/misoc-specific feature, so prob easiest to generate a script to reinitialize the bram and run that. | 04:21 |
cr1901_modern | if reinit_bram=True or something | 04:21 |
mithro | cr1901_modern: maybe a "make firmware-patch" ? | 04:35 |
cr1901_modern | hmmm, that prob works, but you'd need to also run a make target before hand w/ zero-initialized BRAM too. | 04:40 |
mithro | I wish I could turn off SOF tokens.... | 05:21 |
mithro | tannewt: In the isr what functions should I be doing? | 05:29 |
tannewt | first is dcd_setup_received | 05:49 |
tannewt | mithro, did you take a look at the porting guide? | 05:50 |
mithro | which one? | 05:50 |
mithro | Did you update it? | 05:50 |
tannewt | https://github.com/hathach/tinyusb/blob/develop/doxygen/porting.md | 05:50 |
tpb | Title: tinyusb/porting.md at develop · hathach/tinyusb · GitHub (at github.com) | 05:50 |
tannewt | yup yesterday | 05:50 |
mithro | Ha | 05:51 |
mithro | I hadn't reloaded... | 05:51 |
tannewt | :-) | 05:51 |
tannewt | merged this morning | 05:51 |
*** rohitksingh has joined #timvideos | 06:05 | |
mithro | Should %hhu give ma a print of a uint8_t ? | 06:21 |
mithro | https://www.irccloud.com/pastebin/fyXYNxYv/ | 06:23 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 06:23 |
mithro | start xfer d:1 e:0 l:0 | 06:25 |
mithro | why am I getting a zero length transfer? | 06:25 |
tannewt | @mithro is that in? it is used for control status phase | 06:46 |
mithro | tannewt: Hrm? | 06:52 |
tannewt | whats the direction of the zero length packet? | 06:53 |
mithro | https://www.beyondlogic.org/usbnutshell/usb4.shtml#Control | 06:54 |
tpb | Title: USB in a NutShell - Chapter 4 - Endpoint Types (at www.beyondlogic.org) | 06:54 |
mithro | OUT: If the host sent OUT token(s) during the data stage to transmit data, the function will acknowledge the successful receipt of data by sending a zero length packet in response to an IN token. However if an error occurred, it should issue a STALL or if it is still busy processing data, it should issue a NAK asking the host to retry the status phase later. | 06:54 |
tannewt | right, is that not happening for you? | 07:02 |
mithro | tannewt: I'm adding a test case for it now | 07:02 |
mithro | tannewt: I didn't have a way to send zero length packets previously.... | 07:52 |
tannewt | ah! get it going? | 07:53 |
mithro | hrm... | 08:05 |
mithro | https://www.irccloud.com/pastebin/L9dO5OZr/ | 08:05 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 08:05 |
mithro | hrm... | 08:57 |
mithro | <artificial>:(.text.dcd_poll.constprop.18+0xa0): undefined reference to `memset' | 08:57 |
*** Sc00bz has quit IRC | 09:01 | |
mithro | That is very weird | 09:06 |
mithro | I had to set memset as "__attribute__((used))" | 09:06 |
cr1901_modern | what the ._.? | 09:07 |
cr1901_modern | Weird | 09:07 |
cr1901_modern | mithro: Brain's kinda fried atm, I'll finish the bram upload when I wake up | 09:07 |
*** sc00bz has joined #timvideos | 09:07 | |
*** rohitksingh has quit IRC | 09:28 | |
*** rohitksingh has joined #timvideos | 09:47 | |
*** CarlFK has quit IRC | 09:57 | |
*** CarlFK has joined #timvideos | 10:13 | |
*** ChanServ sets mode: +v CarlFK | 10:13 | |
*** CarlFK has quit IRC | 11:05 | |
*** CarlFK has joined #timvideos | 11:07 | |
*** ChanServ sets mode: +v CarlFK | 11:07 | |
*** rohitksingh has quit IRC | 11:49 | |
*** rohitksingh has joined #timvideos | 12:26 | |
*** rohitksingh has quit IRC | 13:04 | |
*** rohitksingh has joined #timvideos | 13:04 | |
*** medicalwei has quit IRC | 15:32 | |
*** medicalwei has joined #timvideos | 15:38 | |
*** rohitksingh has quit IRC | 15:44 | |
*** rohitksingh has joined #timvideos | 15:46 | |
*** tsglove has quit IRC | 16:00 | |
*** tsglove has joined #timvideos | 16:00 | |
mithro | tannewt: I am pretty sure the hardware is working but I can't get tinyusb to work | 17:41 |
mithro | Would you be able to give it a bit? | 17:41 |
mithro | Target=usb | 17:42 |
mithro | tannewt: I think we are taking to long to respond, so the host is resetting things | 18:04 |
mithro | I need to reenable the instruction cache | 18:04 |
daveshah | mithro: alternative option is to copy code to spram at startup | 18:09 |
mithro | daveshah: currently still working on the bx | 18:09 |
daveshah | Ah, I see | 18:10 |
daveshah | I'm too excited about finally having a bootloader for the UP5k :P | 18:12 |
tannewt | mithro: I should have time this evening to look | 18:14 |
mithro | daveshah: Should be pretty easy once the tinyfpga-bx works | 18:20 |
daveshah | Sure | 18:26 |
*** cr1901_modern has quit IRC | 18:29 | |
*** rohitksingh has quit IRC | 20:07 | |
*** hozer has quit IRC | 20:35 | |
*** nueces has joined #timvideos | 20:36 | |
*** nueces has left #timvideos | 20:38 | |
*** cr1901_modern has joined #timvideos | 21:52 | |
CarlFK | who is our local qemu x86 expert? http://imgr.sytes.net/a/qemu_spec1.png Spectre V2: Spectre mitigation: LFENCE not serializing, switching to generic retpoline | 22:58 |
CarlFK | shorne: ^^ | 23:40 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!