<nwest>
didn't know that as a thing to do, but I just tried `echo 1 > /sys/bus/pci/rescan` and no change
j4cbo has joined #litex
<nwest>
aha, I'll need to work out the exact sequence, but it's a bit of a crapshoot now. the rescan is an important bit, but there's some order of not having module loaded, load gateware, load module, rescan that does seem to work but is sensitive
<nwest>
thanks
<nwest>
the confounding info here is I'm operating over a TB3 extension board, so cable gets plugged/unplugged between some uses. It will consistently work if I do
<nwest>
1) rmmod
<nwest>
2) load gateware
<nwest>
3) init / load module
<nwest>
4) rescan
Degi_ has joined #litex
Degi has quit [Ping timeout: 260 seconds]
Degi_ is now known as Degi
<j4cbo>
so, i'm using litex for a very small system (iCE40, SERV softcore) where I really don't need anything the litex BIOS provides but will instead just put all my code (<4kB) in block RAM
<j4cbo>
is there a way to get the litex Builder to compile it for me as part of building the SoC, the way it normally builds the BIOS, or do i need to just compile my code myself and use compile_software=False and soc.initialize_rom()?
bl0x_ has joined #litex
bl0x has quit [Ping timeout: 256 seconds]
<nwest>
Also seems to reliably work if I
<nwest>
1) rmmod litepcie before unplugging
<nwest>
2) load gateware
<nwest>
3) init.sh (insmod)
<nwest>
no rescan required. Any ideas if there's some hotplug detach events that could be caught to handle this unplug nicer?