sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
<FelixVi> is there a way to adjust bitslip from bios?
AceChen has quit [Quit: leaving]
AceChen has joined #m-labs
X-Scale has quit [Ping timeout: 268 seconds]
[X-Scale] has joined #m-labs
[X-Scale] is now known as X-Scale
X-Scale has quit [Ping timeout: 248 seconds]
[X-Scale] has joined #m-labs
[X-Scale] is now known as X-Scale
FelixVi2 has joined #m-labs
<FelixVi2> soo, the memory controller works at 25 MHz core clock
<FelixVi2> For that, you don't need serdes or ddr really, but it works
<FelixVi2> something is up with that and I don't know what
<FelixVi2> but I guess I'll continue for now
<FelixVi2> hmm, interesting - it is broken again on another board
<FelixVi2> close, but no pass on memtest
<FelixVi2> does anybody know anything off-hand or is it best to open an issue about this?
<cr1901_modern> You seem to not be able to catch a break. I sympathize in general, but I've never had any of the issue you're having getting started.
<cr1901_modern> (which is one reason I enjoy migen/misoc so much; failures don't cascade)
<cr1901_modern> well, until the past few days anyway...
<FelixVi2> yeah, I feel like it's getting close
<FelixVi2> but after working with it for only a few days, things are still a bit rough
<GitHub126> [artiq] jbqubit opened issue #852: flashing Sayma_AMC https://github.com/m-labs/artiq/issues/852
<GitHub153> [artiq] sbourdeauducq commented on issue #852: Looks like a hardware bug that we also see here. Make sure that the RTM is installed (there is a MMC firmware bug that intermittently causes this issue if the RTM is not there) and power-cycle the board. Cc @gkasprow https://github.com/m-labs/artiq/issues/852#issuecomment-345904525
<sb0> <FelixVi> ok, there was some brackets missing in sdram.c << in your code or the original?
<FelixVi2> that was in my code... the original is fine
<FelixVi2> I got the memory controller passing memtest again on the second board - but something is wrong. This is super low speed and it feels harder then it should be
<sb0> misoc/software/memtest needs an additional core
<FelixVi2> I think this is fixable with extra timing constraints, but migen doesn't support many yet
<sb0> get it to work without that additional core first. memtest does high bandwidth tests that are more stringent than the simple tests in the bios.
<FelixVi2> that's something I can look at
<FelixVi2> yeah, I compiled a simple puts program for testing
<FelixVi2> flterm doesn't like to let me upload anything (yet)
<FelixVi2> this is what it says: https://pastebin.com/5kJZjdQN
<FelixVi2> there's probably some address misconfiguration or something
<FelixVi2> memtest is the puts program, I just forgot to rename it - it compiled and linked fine
<sb0> strange. maybe some cygwin-specific issue.
<FelixVi2> this is windows - cygwin can't access the device
<FelixVi2> I don't get what that response means
<FelixVi2> any clue where to look for problems?
<cr1901_modern> does cygwin implement termios.h
* cr1901_modern sighs... guess I'm installing cygwin
<FelixVi2> what determines the kernel address?
<FelixVi2> but no matter what I do, I always get 'b''' as response
<cr1901_modern> This is the last time I'm doing cygwin debugging
<FelixVi2> this is windows
<FelixVi2> I think the cygwin part of this is working well
<FelixVi2> I am not sure how the FPGA generates responses
<FelixVi2> or how it can be 'b'''
<cr1901_modern> A. Why do you have two pythons installed?
<cr1901_modern> B. My guess is that the firmware crashed
<FelixVi2> one python on win, one python on cygwin
<FelixVi2> cygwin literally just has one, on windows I use virtualenv
<FelixVi2> so that *should* be no problem
<cr1901_modern> So why not use flterm on cygwin?
<FelixVi2> doesn't open the device
<FelixVi2> hold on, let me try
rohitksingh_work has joined #m-labs
<FelixVi2> this is the cygwin error
<cr1901_modern> I've never used any of python's async features, so I can't comment
<FelixVi2> oh, don't you upload with flterm?
<FelixVi2> I guess it just needs to be async to not have timeout issues
<cr1901_modern> No, I wasn't even under the impression it worked under windows
<FelixVi2> but without that, it could be any timing
<cr1901_modern> (flterm.c anyway)
<FelixVi2> oh, this is flterm.py
<cr1901_modern> I'm pretty close to saying "cygwin isn't supported, just msys2 or the native python"
<FelixVi2> this is flterm.c under cygwin: https://pastebin.com/9mQva9Nh
<FelixVi2> also gets a bogus response, yet a different one
<FelixVi2> are the deault kernel addresses good?
<FelixVi2> do I set those somewhere?
<FelixVi2> hmmm...
<cr1901_modern> I don't know... read the source/check generated/mem.h
<sb0> rohitksingh_work, how are the mor1kx mods coming along?
<sb0> FelixVi2, I don't think there's a firmware crash. this more looks like a PC-side failure to read from the serial port.
<sb0> maybe something to do with charsets...
<sb0> or maybe windows is utterly slow and the firmware times out
<FelixVi2> sb0: I'll have a look - but wouldn't flterm.c work fine then?
<GitHub114> [artiq] jbqubit commented on issue #852: I've tried power cycling. The RTM is connected. No luck. https://github.com/m-labs/artiq/issues/852#issuecomment-345911057
<GitHub157> [artiq] sbourdeauducq commented on issue #852: Does your board have the 1V8 supply working (corresponding LED on)? https://github.com/m-labs/artiq/issues/852#issuecomment-345912735
<cr1901_modern> FelixVi2: I have a cygwin environment set up. I'll test w/ minispartan6 tomorrow
<cr1901_modern> won't solve your SDRAM problems, but I can at least figure out whether the whole flow works (incl flterm)
<sb0> _florent_, did you look into sayma ethernet?
_whitelogger has joined #m-labs
<rohitksingh_work> sb0: Hi! I haven't yet started work on that (you might be aware of the reason which I had shared via mail). I will be able to work on that starting December, which is coming closer by day! I will finish up my paperworks by then. In my estimate, the core work will not take more than a week by any chance. Getting it merge-able might take time due to review process, since it will be my first contribution (coding and documentation guidelines, review
<FelixVi2> cr1901_modern: awesome, let me know if I can do anything. My misoc fork has some notes on installation in case you find that useful
<FelixVi2> cr1901_modern: I think I have an idea what's going on with the memory. But I need to be able to run code to really work on it
<FelixVi2> cr1901_modern: One can either use timing constraints to improve margin or change the clock tree
<FelixVi2> cr1901_modern: is that something that applies to lattice fpgas?
<FelixVi2> either way, probably time to rest for a bit soon, getting this up and running has been a big push
<FelixVi2> cr1901_modern: I'll hit the bed for now - just pushed to github again so you can see the latest changes - everything on there currently works in my hands (apart from flterm)
<FelixVi2> thanks again for helping out! I'm off but will check logs again in the morning
FelixVi2 has quit []
<sb0> _florent_, it's for artix7 with IBUFDS_GTE2
balrog has quit [Ping timeout: 240 seconds]
balrog has joined #m-labs
_rht has joined #m-labs
<sb0> FelixVi, flterm.c is written for linux, i don't know if cygwin provides the required support
<rjo> whitequark: what are you working on?
<GitHub186> [artiq] gkasprow commented on issue #852: @jbqubit you can flash your MMC easily - all you need is Flashmagic and USB cable https://github.com/m-labs/artiq/issues/852#issuecomment-345979166
<GitHub96> [artiq] sbourdeauducq commented on issue #852: I suppose this also works with OpenOCD and most JTAG cables with the ARM pinout, but I have not tried (there is a risk of bricking the board and of more MMC frustration). In ionpak there is an example OpenOCD script to program a ELF binary into a TM4C MCU. https://github.com/m-labs/artiq/issues/852#issuecomment-345980013
<GitHub102> [smoltcp] whitequark pushed 1 new commit to master: https://github.com/m-labs/smoltcp/commit/34c3a8c905f6877d1e900197627b026b93abdd5d
<GitHub102> smoltcp/master 34c3a8c whitequark: Rewrite the ARP cache to allow for flood protection and expiration.
<GitHub102> [smoltcp] whitequark closed issue #25: Implement ARP-related timers https://github.com/m-labs/smoltcp/issues/25
<GitHub135> [smoltcp] whitequark commented on issue #25: Done in 34c3a8c. https://github.com/m-labs/smoltcp/issues/25#issuecomment-345991113
<travis-ci> m-labs/smoltcp#426 (master - 34c3a8c : whitequark): The build was broken.
<GitHub179> [smoltcp] dlrobertson commented on issue #25: +1 for renaming `ArpCache` to `NeighborCache` https://github.com/m-labs/smoltcp/issues/25#issuecomment-345992775
<GitHub159> [smoltcp] whitequark pushed 2 new commits to master: https://github.com/m-labs/smoltcp/compare/34c3a8c905f6...c63dd6c580dc
<GitHub159> smoltcp/master 2005e77 whitequark: Don't build on stable for now.
<GitHub159> smoltcp/master c63dd6c whitequark: Fix a broken macro invocation.
<travis-ci> m-labs/smoltcp#427 (master - c63dd6c : whitequark): The build was fixed.
ysionnea1 is now known as ysionneau
<GitHub107> [smoltcp] whitequark pushed 1 new commit to master: https://github.com/m-labs/smoltcp/commit/6ee44a9bae9155a5b1c8aaed3781d99e6a4c349b
<GitHub107> smoltcp/master 6ee44a9 whitequark: Implement eviction in neighbor cache for fixed storage size.
<whitequark> sb0: rjo: the above is *almost* enough
<whitequark> there's still one more edge case where ARP floods could be generated, I'll handle it tomorrow
<travis-ci> m-labs/smoltcp#428 (master - 6ee44a9 : whitequark): The build was broken.
<GitHub181> [smoltcp] whitequark pushed 1 new commit to master: https://github.com/m-labs/smoltcp/commit/e0cbe2255677586f82baa50e89c14859521b3020
<GitHub181> smoltcp/master e0cbe22 whitequark: Add a missing feature check.
<rjo> whitequark: and the ethernet switch issue?
<rjo> whitequark: what time are you going to be working on those issues tomorrow?
<whitequark> in ~8 hours from now
<travis-ci> m-labs/smoltcp#429 (master - e0cbe22 : whitequark): The build was fixed.
<rjo> ok. looking forward to it.
<GitHub25> [smoltcp] whitequark opened issue #83: Eviction of entries from owned neighbor cache https://github.com/m-labs/smoltcp/issues/83
rohitksingh_work has quit [Read error: Connection reset by peer]
nurelin has quit [Quit: WeeChat 1.6]
nurelin has joined #m-labs
<GitHub19> [misoc] jordens pushed 1 new commit to master: https://git.io/vFdEw
<GitHub19> misoc/master 3536a9f Robert Jordens: kasli: add eth boilerplate (wip, missing phy)
stekern has quit [Ping timeout: 240 seconds]
<bb-m-labs> build #284 of misoc is complete: Success [build successful] Build details are at http://buildbot.m-labs.hk/builders/misoc/builds/284
rohitksingh has joined #m-labs
FabM has quit [Quit: ChatZilla 0.9.93 [Firefox 52.3.0/20170811091919]]
stekern has joined #m-labs
FabM has joined #m-labs
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
stekern has quit [Read error: No route to host]
<sn00n> halb
rohitksingh has quit [Quit: Leaving.]
rohitksingh has joined #m-labs
<sb0> costs just USD 120
<FelixVi> cr1901_modern: I'm on it again - testing DDR timing again after modification yesterday night (I am back on the first board that liked different timing yesterday)
<FelixVi> after that, I'll look at flterm again to see if I can get that worked out either for Win or Cygwin
_rht has quit [Quit: Connection closed for inactivity]
rohitksingh has quit [Quit: Leaving.]
<FelixVi> cr1901_modern: I think the problem is that asyncserial.py doesn't wait until there's data coming back from the device
<FelixVi> sb0: did asyncserial work in Windows at some point? There is code that's win specific but I wonder if it ever got tested
<sb0> yes, it does
<FelixVi> sb0: there is one commit that says "Windows compatibility with more pyserial versions"
<FelixVi> let me try that one, maybe it got broken after
<sb0> cr1901_modern, seems you broke the pull request. https://github.com/m-labs/migen/pull/88/commits
<cr1901_modern> sb0: Yes I did. I think I should delete and resubmit when ready
<cr1901_modern> (it was an accident of course)
<GitHub1> [artiq] jbqubit commented on issue #852: I've switched to using a bench top power supply, no back plane. All power LEDS on Sayma_AMC are illuminated. Current draw on +12V is 363 mA. A new variety of flashing errors appear.... https://github.com/m-labs/artiq/issues/852#issuecomment-346115155
<GitHub75> [artiq] jbqubit commented on issue #852: @gkasprow I'd rather not mess with the MMC right now. I just want to get ARTIQ running on Sayma_AMC. https://github.com/m-labs/artiq/issues/852#issuecomment-346115498
<cr1901_modern> sb0: Actually, the PR is good. What I should've done was cherry pick FelixVi's changes instead of merging. I'll go ahead and do that
<cr1901_modern> It'll be a good distraction while gcc untars itself since I have to recompile it for cygwin (yay)
<FelixVi> cr1901_modern: I am troubleshooting flterm on Windows
<FelixVi> That's where people around here will ultimately run it
<cr1901_modern> around here?
<FelixVi> I'm in a research institute and would like to allow people to use migen/misoc on some boards I make for them
<FelixVi> but none of those machines are linux boxes
<cr1901_modern> sb0: PR is fixed
<FelixVi> that's why I am doing all the crazy Cygwin stuff in the first place
<cr1901_modern> Fair. I would have recommended msys2 but that has it's own warts
<cr1901_modern> (or native. native should work by now)
<FelixVi> well, I'm actually pretty happy with how Cygwin works - seems like it's pretty smooth
<FelixVi> if only I could upload code now ;)
<FelixVi> I am starting to think the problem might be with python
<FelixVi> I am using "Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18)"
<larsc> it always is
<FelixVi> and sb0's commit that reference working Win version are from Apr 2016
<FelixVi> so I don't know if I need to go one older version
<cr1901_modern> Why are we using two Pythons again?
<FelixVi> hmm?
<FelixVi> it's one python in a virtualenv
<cr1901_modern> "Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18)" <-- Cygwin python is 3.6
<FelixVi> oh, this is windows python
<cr1901_modern> So why not run migen under native windows python?
<FelixVi> as there is history of version working with windows - so why open another can of worms using Cygwin?
<cr1901_modern> I mean, the cygwin fixes as good and all. But I'm confused as to why you need both
<FelixVi> cr1901_modern: I haven't cross compiler lm32-elf-gcc
<FelixVi> but I think ultimately native Python might be the best way to go
<FelixVi> either way, I think people generally will need to generate bin files and upload them using flterm
<FelixVi> I'll probably be the only one building the SoC
<cr1901_modern> I see. Well, tbh there's _way_ too much happening at once with the PRs I need to send off for migen,
<cr1901_modern> combined w/ the cygwin fixes and making sure native windows works as well
<cr1901_modern> (Of course none of this would happen if the world didn't decide POSIX was the One True Standard, but whatever- ppl love their *nixes)
<FelixVi> yeah, I'm happy to help out
<FelixVi> I'll be able to do testing and vet things on Win and Cygwin
<FelixVi> but to do that, I need a working toolchain to play with
<cr1901_modern> FelixVi: I have a working toolchain. Let me find the dl link
<cr1901_modern> Really, what I should ideally be doing is weekly build
<FelixVi> cr1901_modern: you have a working Win or Cygwin toolchain?
<cr1901_modern> Win32
<cr1901_modern> Or I did anyway
<cr1901_modern> lemme check my backups
<FelixVi> yeah, I'd be happy to try flterm from that
<cr1901_modern> Oh, I don't have a standalone x86 gcc- you _def_ need mingw or (preferred) mingw-w64/msys2 for that
<FelixVi> if there's a flterm.exe, I'd be there
<cr1901_modern> Does misoc even provide an flterm.c?
<FelixVi> I *should* be able to cross compile lm32-elf from Cygwin in my current configuration
<FelixVi> flterm.py
X-Scale has quit [Quit: HydraIRC -> http://www.hydrairc.com <- \o/]
<FelixVi> What I see with flterm.py is that it tries to work with an empty byte checking for ack
<FelixVi> so somehow it doesn't realize it's not reading anything
<cr1901_modern> FelixVi: Might take a few secs before it's ready. This is the _win32_ version of lm32-toolchain https://www.dropbox.com/s/5mqgtjreen4u2sl/lm32-toolchain.zip?dl=0
<FelixVi> and it should wait for the first valid character
<cr1901_modern> FelixVi: I need you to make a file of all the problems you've encountered (that still exist) for the Cygwin python and native python >>
<cr1901_modern> while you were compiling a SoC
<cr1901_modern> B/c I can't keep track of them anymore
<FelixVi> I wrote it down in the readme of my misoc repo
<cr1901_modern> And I want _both_. Native python fixes and cygwin python fixes should be separate PRs
<FelixVi> oh, not to get cygwin started, but for flterm.py
<FelixVi> i'll get on that
<cr1901_modern> include the flterm.py issues in this document
<cr1901_modern> (for both native and cygwin fixes)
<FelixVi> this is the read and it needs to check if there's something to read first
<FelixVi> is where flterm is broken, because it checks an empty bytes object for ack
<FelixVi> and terminates with this message "[FLTERM] Got unknown reply 'b''' from the device, aborting."
<cr1901_modern> Again, _which python_?
<FelixVi> i'll try to add the case where it's just empty and make it loop
<FelixVi> native win 3.5.2 Jun 25
<FelixVi> let's do cygwin after this
<cr1901_modern> I am unable to test this unfortunately
<FelixVi> well, we can do Cygwin first, too
<FelixVi> give me a sec
<FelixVi> k, I think win is fixed
<FelixVi> is your Cygwin all ready to go?
<cr1901_modern> FelixVi: No unfortunately, still compiling gcc
<FelixVi> so what I pointed at was the issue
<cr1901_modern> So why does it work on *nix then?
<FelixVi> I don't know what exactly happens, but not letting it raise an exception and waiting for ack does the trick
<FelixVi> and my compiled code also seems to be fine, it's printing
<FelixVi> cr1901_modern: It doesn't HAVE to
<FelixVi> but since everything else works with Cygwin now, we might as well fix this one
<FelixVi> I think it's actually the same problem
<cr1901_modern> FelixVi: Not what I meant
<cr1901_modern> I meant why doesn't *nix need to check if there's chars to read first?
<FelixVi> ah, gotcha
<cr1901_modern> I would've thought both *nix and Windows would block and the event loop would just go on to the next thing in the queue
<FelixVi> nt uses a different mechanism in asyncserial altogether
<cr1901_modern> One external dep I would've like to get rid of in misoc is the need for make; a native windows user is unlikely to have that installed
<cr1901_modern> but I guess failing that, I should just package that as part of the lm32-elf-gcc zip for Windoze
<FelixVi> My plan was to do monthly builds
<FelixVi> maybe every three months actually :)
<FelixVi> But the good news is that I'm finally up and running!!!
<cr1901_modern> Excellent. As soon as I have gcc built, I'll try on my end
<FelixVi> cr1901_modern: any idea why busy loops don't seem to work, but inline asm with 'nop' does on lm32?
<cr1901_modern> does the inline asm have "volatile" qualifier?
<FelixVi> yeah
<FelixVi> so it's an optimization thing?
<cr1901_modern> yes
<FelixVi> k, that makes sense
<FelixVi> so I confirm that everything seems good then
<FelixVi> man, that was a crazy ride to get to this point
<cr1901_modern> it tells the compiler "anything reachable by the compiler from that specific point can be altered by the asm block"
<cr1901_modern> (which of course is a lie, but the compiler can't/doesn't look inside asm blocks)
<FelixVi> I don't remember tbh, but I think busy loops used to work on AVR micros
<FelixVi> but it's been a while, so I am not sure anymore
<cr1901_modern> Probably did lol
<cr1901_modern> FelixVi: So, are you doing everything from the native python now?
<cr1901_modern> running misoc/migen and flterm?
<FelixVi> cr1901_modern: misoc/migen in Cygwin, flterm native
<cr1901_modern> Okay that's still not ideal... should be one or the other. Try my lm32 toolchain w/ the native python
<FelixVi> yeah, I'll take a look
<cr1901_modern> _florent_: So, I didn't intend for this to happen, but perhaps sometime soon LiteX should pull in migen/misoc changes?
<cr1901_modern> B/c right now they're kinda diverging w/ the platforms, style fixes I added, the windoze bug fixes, and platform API changes that rjo wants
<FelixVi> cr1901_modern: Cygwin tells me resource temporarily unavailable
<cr1901_modern> I'll check on my machine. Still waiting for gcc
stekern has joined #m-labs
<FelixVi> cr1901_modern: I think "os != 'nt'" in asyncserial doesn't cover Cygwin
<FelixVi> resource unavailable seems to be related to non-blocking calls in Cygwin which may be handled differently than *nix
<cr1901_modern> FelixVi: I believe that is correct (in that cygwin does not identify as "nt")
<FelixVi> let's see if we can figure it out. Maybe somebody else in here knows about this issue, too
<FelixVi> I'll grab lunch real quick
<cr1901_modern> FelixVi: gcc fails to build. I'm not spending time debugging why right now
<cr1901_modern> (gcc fails to build on cygwin)
<cr1901_modern> I'll try again later
<cr1901_modern> actually, tentatively found a patch
<FelixVi> see my misoc readme
<FelixVi> need to disable libquadmath
<FelixVi> that should do it if you're trying to build gcc-7.2.0 on Cygwin-2.882 (64-bit)
<cr1901_modern> Different gcc version- Not the same issue
<cr1901_modern> And you should probably _put_ the error you receive when compiling libquadmath
<FelixVi> I think it just wan't around when lm32-elf got put together
<FelixVi> and I doublt we'll need 128-bit fp math on lm32
<cr1901_modern> I still would like the error anyway
<FelixVi> I'll make sure to catch the error message when I compile next time
<FelixVi> actually, why are you using an older version?
<cr1901_modern> To match the version I have installed
<cr1901_modern> already*
<cr1901_modern> just in case
<FelixVi> I hope we don't get another load of errors from having different gcc versions
<FelixVi> I just went for the latest one as I hope it has more bugfixes than new problems :)
<cr1901_modern> FelixVi: In any case, I run into a separate issue "No such file or directory: 'cmd': 'cmd'"
<cr1901_modern> erm...
<GitHub67> [artiq] gkasprow commented on issue #852: @jbqubit did you modify the loading script? @jordens posted some time ago that to make JTAG over USB running, one needs to setup right clock edge. https://github.com/m-labs/artiq/issues/852#issuecomment-346151755
<FelixVi> cr1901_modern: did you add packages as I noted down in the readme?
<FelixVi> cr1901_modern: It looks like you're missing something
<cr1901_modern> FelixVi: Will do. Need to take a break for now
<FelixVi> I also cleaned up my misoc fork to have clean history - hopefully you can see from there what I did
<FelixVi> sb0: Is there a predefined way if all I want to do is build a software package?
<FelixVi> I can add it to the target, but would prefer to leave that alone
<FelixVi> Hmm, but I see how it needs information about the SoC gateware... I guess I'll go through the target
<cr1901_modern> Okay, break over/dinner eaten. Back to work (for some value of work)
<FelixVi> Cool, I'm trying to figure out why the linker doesn't find log10 - but can switch to whatever you want to look at
<whitequark> rjo: o/
<cr1901_modern> FelixVi: My install was fine. My problem is that I pruned my path a _little_ too much
<cr1901_modern> including C:\Windows\SYSTEM32
<cr1901_modern> FelixVi: You said you also had issues with bitstreams or not?
<FelixVi> cr1901_modern: no, everything is working fine
<cr1901_modern> I said bitstreams, I meant flash proxy
<FelixVi> yeah
<FelixVi> what board are you using?
<cr1901_modern> minispartan6
<cr1901_modern> that board is supported in openocd
<FelixVi> xc6slx9?
<cr1901_modern> lx25
<cr1901_modern> xs3cprog does _not_ work with proxy bitstreams last I checked
<cr1901_modern> at least, not the ones provided by rjo's repo
<FelixVi> I am not sure, I made my own for the boards I am using
<FelixVi> I'm looking
<cr1901_modern> FelixVi: Strictly speaking I didn't need to change anything in misoc to get a successful compile, so I'm not opening a PR for _misoc_ cygwin fixes
<FelixVi> that's alright
<FelixVi> I generated my bscan files from xc3sprog/bscan_spi
<cr1901_modern> and what about native Windows w/ migen/misoc flow?
<FelixVi> how do you let it know about the compiler location?
<cr1901_modern> append to cygwin's or windows path
<FelixVi> turns out I don't have my windows python setup :)
<FelixVi> ValueError: Cannot extract CSR name from code, need to specify.
<FelixVi> on python 3.5.2
<FelixVi> so the path for python 3.6 breaks 3.5
<FelixVi> that's good to know
<FelixVi> i get that without the patch, too
<cr1901_modern> Why won't the bugs stopped? Migen has _never_ been this uncooperative.
<cr1901_modern> How can you possibly get that without the patch?! Try another virtualenv then
<FelixVi> hold on
<FelixVi> I think I got it
<FelixVi> ah, it doesn't work for the lack of make
<FelixVi> I forgot the patch for python version was in migen, not misoc
<cr1901_modern> FelixVi: Right, you need to provide your own make on the path. I wish this wasn't a requirement, but
<cr1901_modern> haven't thought of a better solution likely to be accepted
<FelixVi> yeah, that might be a good argument for cygwin
<cr1901_modern> Still please test it
<FelixVi> as you can easily compile gcc and binutils and you get make for free
<FelixVi> I am not sure how to get make
<cr1901_modern> I'll "lend" you mine, and put it on the same path as the native lm32-gcc
<FelixVi> is there a build somewhere or do you cross compile?
<cr1901_modern> http://gnuwin32.sourceforge.net/packages/make.htm this one should work
<FelixVi> it says it's missing libiconv-2.dll
<FelixVi> that's a dependency of your toolchain
<cr1901_modern> it's a standalone package, how did they not provide it?!
* cr1901_modern is getting annoyed now
<FelixVi> when that one is there, libintl-8.dll is the next one
<cr1901_modern> Did you run the setup?
<FelixVi> it is not in the make dependencies
<cr1901_modern> or download the binaries as a zip file?
<cr1901_modern> Run the setup
<FelixVi> it is a missing dependency of your toolchain
<FelixVi> make runs fine by itself
<cr1901_modern> then what's the problem?
<FelixVi> make is fine
<FelixVi> lm32-elf-gcc is missing dll files
<cr1901_modern> Oh. Hrm...
<cr1901_modern> do an "ldd" of lm32-elf-gcc please
<FelixVi> libiconv-2, libintl-8, dcomp, gpsvc, isehims are missing
<FelixVi> on top of that also api-ms-win-core ones - what windows version are you running?
<cr1901_modern> 7
<FelixVi> hmm, those are referenced by advapi32
<cr1901_modern> I mean I have those
<cr1901_modern> Idk what to tell you if your installation thinks essential dlls provided by the system are missing
<FelixVi> yeah, I agree
<cr1901_modern> what is dcomp and isehims?
<FelixVi> ieshims
<FelixVi> those are not found when path doesn't include the internet explorer folder
<cr1901_modern> of course... ._.
<FelixVi> that's an easy fix
<FelixVi> gpsvc is some group policy stuff
<FelixVi> did you test your windows build on your computer?
<cr1901_modern> What do you mean?
<FelixVi> does your lm32-toolchain run on your computer?
<cr1901_modern> Yes, and has for 2.5 years
<cr1901_modern> w/o issues*
<FelixVi> those are make dependencies
<FelixVi> which are not missing
<FelixVi> see above
<FelixVi> oh, nvm
<FelixVi> cc1.exe: error: -Werror=incompatible-pointer-types: no option -Wincompatible-pointer-types
<cr1901_modern> ignore, my compiler is too old for that
<cr1901_modern> or just take that option out* I mean
<cr1901_modern> I'll recompile lm32-elf-gcc at some point
<FelixVi> when taking that out, it is missing zlib1.dll
<cr1901_modern> Updated the zip, redownload
<FelixVi> process_begin: CreateProcess(NULL, chmod -x bios.elf, ...) failed.
<FelixVi> make (e=2): The system cannot find the file specified.
<FelixVi> make: *** [bios.elf] Error 2
<FelixVi> i am editing the bios makefile
<cr1901_modern> I would suggest creating a dummy bat file for chmod. It's a noop on Windows
<cr1901_modern> (instead of editing the bios makefile)
mumptai has joined #m-labs
<FelixVi> ok, python3 in common.mak needs to either python or one need another bat file for that
<FelixVi> at least with virtualenv in windows
<cr1901_modern> I don't know what that means
<FelixVi> but the rest seems to be ok
<FelixVi> python3 doesn't exist, virtualenv lets you choose your python environment to work with and the executable is always python
<FelixVi> but that's a simple fix
<cr1901_modern> That's beyond the scope of misoc imho
<FelixVi> yes and no
<FelixVi> imho if people can't get misoc to work b/c of problems like this, it's a problem
<cr1901_modern> Then open a bug
<FelixVi> at least I don't want to have people come here all the time b/c of a simple issue like that ;)
<FelixVi> i'll put it in my branch and can submit a PR
<FelixVi> but need to check whether common.mak is outogenerated or supplied as is
<cr1901_modern> as-is
<cr1901_modern> You need to split your fork into features, not submit it all at once
<FelixVi> I'll clean up submit history before I submit a PR
<cr1901_modern> edits to common.mak directly are unlikely to be accepted (I mean, _I_ use an edited common.mak for the outdated compile options, but I haven't sent that upstream)
<FelixVi> but what I am thinking is that I'll have a win branch and a cygwin branch for a while until upstream supports both and my fork can disappear
<cr1901_modern> that's fine
<FelixVi> yeah, or it'll stick around b/c it works for my particular situation
<FelixVi> but I'm happy to submit anything we worked out the past couple days and people can pick what they like
<FelixVi> it seems to run fine on win - let me test
<cr1901_modern> I am out of bandwidth right now to fix Windows issues. I lost most of my day to this ._.
<FelixVi> I think I can handle cleaning things up
<FelixVi> most issues are worked out, I am now getting a compiler error for one of my software packages
mumptai has quit [Remote host closed the connection]
<FelixVi> no idea where that is coming from, it doesn't happen in the latest compiler
<FelixVi> but we know it can work