<xiangfu> Hi lekernel
<wolfspraul> xiangfu: hi there
<wolfspraul> I am trying to flash your binaries from /people/xiangfu/milkymist-one
<wolfspraul> I'm a little confused with the flashall.batch file in there
<xiangfu> wolfspraul: jtag -n flashall.batch will flash all expect the 'flickernoise'
<wolfspraul> the batch file in the wiki also has soc-rescue and splash-rescue
<wolfspraul> and yes, also flickernoise.fbi, but in your directoy there is a file flickernoise.fbiz - it that zipped and will it be unzipped automatically?
<wolfspraul> why is there no flickernoise in flashall.batch ?
<xiangfu> my flash.batch have soc-rescue and splash-rescue too :)
<xiangfu> wolfspraul: forget sorry.
<xiangfu> adding now
<wolfspraul> oh right, sorry. I confused the + and -. so in fact the soc-rescue and splash-rescue are missing in the batchfile as documented in the wiki
<xiangfu> (fbiz) yes. just flash the fibz to milkymist. the new bios will automatic detect and extract it.
<xiangfu> check again. flickernoise added.
<wolfspraul> when I built my urjtag, at the end it said "detected libusb: no" and "detected libftdi: no"
<wolfspraul> is that a problem?
<wolfspraul> maybe I need to install some -dev packages (Debian) to make it pickup libusb/libftdi...
<xiangfu> yes
<xiangfu> have to install them
<wolfspraul> which ones are needed for our case?
<wolfspraul> do I need both libusb/libfti? libfti2xx? inpout32?
<xiangfu> libftdi-dev libftdi1  libusb-0.1-4 libusb-dev
<wolfspraul> I have no user account in the milkymist wiki, but there are lots of spam accounts
<wolfspraul> nice :-)
<wolfspraul> ok great
<wolfspraul> after apt-get libfti-dev libusb-dev, it picked up both of those now
<xiangfu> I just updated.
<wolfspraul> I created an account 'wolfgang', if Sebastien approves it I can edit too
<xiangfu> hmm.. I think urjtag works with usb-0.1 and usb-1.0, great. I install both of them in my system.
<wolfspraul> I don't think you need libftdi1 and libusb-0.1-4 in the list
<wolfspraul> they will be pulled in by the -dev packages
<xiangfu> ok.
<xiangfu> I am not sure if we need both libftdi1 and libusb. since we using the usb interface and libftdi chip in daughter board. I just install both of them.
<xiangfu> need to make sure with someone who really understand the detail.
<wolfspraul> strange. I had to run 'ldconfig' after 'make install' so that jtag could find liburjtag.so.0
<xiangfu> yes
<wolfspraul> xiangfu: ok great, it all worked and I'm booting from your binaries :-)
<wolfspraul> the used USB keyboard I bought still doesn't work, this time it has no USB hub
<wolfspraul> works on my notebook
<wolfspraul> is USB keyboard working in your images?
<wolfspraul> it's the first time I try this keyboard, so it may very well be something with the keyboard
<wolfspraul> I'm looking at the video-in preview now, nice
<wolfspraul> had some trouble at first when I plugged in the camera, it didn't pickup the signal, and when i pressed 'ok', the board froze
<wolfspraul> after a reboot it's all fine though
<wolfspraul> let me see whether I can reproduce this...
<xiangfu> great. next time I will try to add the "VERSIONS" and "md5sum". VERSIONS is for compile those bin with which git commit.
<wolfspraul> nah, now it works
<wolfspraul> ok, so my remaining problem is that the usb keyboard doesn't work
<wolfspraul> no USB hub now
<wolfspraul> can we increase the size of the video-in preview?
<xiangfu> no
<wolfspraul> If someone is really looking at it, I am sure there is no reason why it shouldn't be bigger, if we have the screen space anyway
<wolfspraul> no bigger video-in preview?
<xiangfu> no.
<xiangfu> hardcode to 144x180
<terpstra> lekernel, Is Jon Beniston a lattice employee?
<terpstra> (i am atm connecting gdb via my jtag chain tool and want to know if the code in gdb from him was used successfully, which i assume is 'yes' if he works at lattice)
<wolfspraul> xiangfu: is the MAC hardcoded somewhere in those binaries?
<tuxbrain> wolfspraul: (usb keyboard) mine is working on 0.2 version of firmware.
<roh> hm. i've seen it working also here.
<roh> no clue which version
<wolfspraul> ah yes, sure in general it is working.
<wolfspraul> I have 2 unknowns right now: 1) I reflashed Xiangfu's binaries 2) I have a new (used) USB keyboard I just bought for 5 USD on the street
<roh> i used a crappy noname and a old cherry kbd i think. lekernel has a rollable rubbermat-thingie
<roh> cram the keyboards into your notebook and see if they work there
<wolfspraul> it works on my notebook but not on my m1 (with xiangfu images)
<roh> i see. any usb errors in dmesg?
<wolfspraul> sure it works there, otherwise I wouldn't ahve bought it. that was my 'in-store' test :-)
<roh> maybe linux is just more error proof
<wolfspraul> good idea, but no, all fine (just plugged in)
<wolfspraul> roh - btw, I was looking at some screws on the market today
<roh> hm
<wolfspraul> I can easily get pretty much everything here
<wolfspraul> the spacers, the bottom spacer/stand, the screws for top and bottom, and the ones for the connectors (that one I still need to find a bit shorter one)
<wolfspraul> do you want me to buy anything and send to you?
<roh> not sure. do you have prices?
<wolfspraul> I don't like the allen/inbus keys we have right now.
<wolfspraul> I'd prefer the simplest type possible, just a cross-type.
<wolfspraul> the ones on the side (for the connectors) are not black yet, at least on my case
<wolfspraul> prices is so close to zero it's hard to tell :-)
<wolfspraul> the spacers were about 10 cents (the big ones)
<roh> the 'small parts' are only 3-4 euros in total per case.. so its not that bad. its more important to have reliable repeatable sources for that (where i do not need to worry about getting something else for the same order-number)
<wolfspraul> yes sure, agreed
<wolfspraul> my main point is:
<wolfspraul> 1) allen/inbus key
<wolfspraul> 2) all screws black now?
<wolfspraul> also the ones on the side holding the connectors?
<wolfspraul> the screws must be something like 1-2 cents or so, or less
<wolfspraul> I only bought 20-30, I cannot tell
<roh> i'd like to use only black ones (anodized, not only colored, that rubs off) but i cannot get all types in black.
<wolfspraul> she laughed at me and said I should buy at least 100 :-)
<wolfspraul> do you still use allen/inbus keys on top and bottom?
<roh> the top/bottom screws are something like 4 cent a piece.
<roh> yes. inbus was nicest to use mechanically. slot sucks and pozidrive or so wasnt available with an nice flat head. only sucky, totally cheap looking ones and not in black.
<wolfspraul> did you find black ones for the connectors on the side?
<roh> its DIN912
<roh> nope. thats DIN7981
<wolfspraul> what is what?
<wolfspraul> what is DIN912, what is DIN7981?
<roh> the spec for the screw type.
<roh> the rest is 'diameter, lenght'
<wolfspraul> which one?
<wolfspraul> you mentioned two now - DIN912 and DIN7981 - which one is which?
<roh> 912 is the head/bottom one (inbus) and the 7981 is the one for the sides
<wolfspraul> ah ok
<roh> the sides are ST2.9x13 for the dmx and ST2.2/13 for the rca
<roh> means you should be able to buy 'DIN912 M3x6' and 'DIN7981 2.2x13' as well as 'DIN7981 2.9x13' and they should ask for color and material only  ;)
<wolfspraul> you are very sure that the case I descriped as 'transparent light-blue' is the one called 'hellblau' (5C18) at modulor?
<roh> very sure.
<wolfspraul> ok good
<roh> i found it nearly too transparent/light ... but i guess thats taste
<roh> maybe we should test a bigger group than 3 people? ;)
<wolfspraul> oh, DMX and RCA have different widths?
<roh> yes. the thick ones break the rca socket, and the thin ones do not grip in the dmx. so we need 2 diameters
<wolfspraul> interesting
<wolfspraul> ok I will note some of this into parts.txt
<roh> the thick ones i found in black. the thin ones not.
<roh> it should be already in there
<wolfspraul> understood
<roh> the din arent in there arm.. adding
<wolfspraul> roh: if we find an ST2.5, do you think it may fit in both the RCA and DMX connectors?
<roh> dunno. we could try.
<roh> but i dont think it exists. i would have seen on the lists
<roh> if you want enough screws its easy to get built-to-order.. so i guess its the same like with getting black ones ,)
<roh> pushed parts.txt
<lekernel> terpstra: I think he is. but lattice is a chip vendor, which does not distinguish itself from the others regarding the quality of their software.
<Fallenou> what is crazy is that making a chip is way more difficult than making a software
<lekernel> for a very bad experience, you can try their LM32 simulator in GDB :)
<terpstra> think i'll pass :)
<lars_> Fallenou: for a software guy maybe.
<Fallenou> is not convinced :p
<lekernel> wolfspraul: can you post lsusb -vvv and dmesg traces of your non working keyboard to the list?
<lekernel> wolfspraul: also, connect the keyboard in Milkymist BIOS and have a look at what gets sent to the serial port
<lars_> if all you ever did all your life long is designing and building chips I could imagine you might have trouble writing good software if you suddenly had to
<lekernel> (btw the keyboard can also be used in the BIOS. well, when it works ;-)
<Fallenou> lars_: I guess you're right
<wolfspraul> lekernel: here is lsusb for the kbd http://pastebin.com/LWBeWSwq
<lekernel> and dmesg, bios?
<lekernel> it looks normal so far
<lekernel> probably one of those incredibly pesky usb bugs... :(
<lekernel> works fine on 20 keyboards, fails on the 21th
<wolfspraul> dmesg http://pastebin.com/14Est1Qx
<wolfspraul> bios need to try, what should I do exactly?
<lekernel> ah, you have two input devices detected for this keyboard
<lekernel> that might well be the problem
<lekernel> just connect serial to observe the BIOS boot messages with the keyboard attached
<lekernel> is that a keyboard with fancy "multimedia" keys?
<lekernel> those have weird protocols sometimes
<wolfspraul> no, very simple, logo says 'logitech'
<wolfspraul> i will try bios in a bit, don't have my m1 in front of me right now
<lekernel> and USB descriptor says "GREEN ASIA" ;)
<methril> lekernel, is something wrong with the milkymist wiki? I<m unable to register
<lekernel> no, it's just that account creation is disabled because of heavy spam bot attacks and mediawiki's ridiculous lack of solutions for it
<lekernel> I can enable it for a while until you get your account created
<methril> ok
<lekernel> should be ok now
<lekernel> tell me when you're done
<methril> done
<methril> thank you
<scrts> whoa o_O
<kristianpaul> :o
<mwalle> lekernel: terpstra: jon beniston was an external employee at lsc, just for porting binutils/gcc/gdb to the lm32 processor
<lekernel> http://www.youtube.com/watch?v=Z1IMV3FJO7Q <= genode OS talk
<kristianpaul> yes, install ssl dev pacjages for your syste,
<kristianpaul> oops
<mwalle> gdb stub is almost working.. i hacked flterm to pass the gdb packets to a pseudo terminal, so you can use flterm and gdb at the same time