lekernel changed the topic of #milkymist to: Milkymist One, Migen, Milkymist SoC & Flickernoise :: Logs: http://en.qi-hardware.com/mmlogs :: Something to do? https://github.com/milkymist/bugs/issues
voidcoder has joined #milkymist
<GitHub94> [board-m1] adamwang pushed 1 new commit to master: https://github.com/milkymist/board-m1/commit/9564c146ad7ce840c5887b4d4eee741c86a978b8
<GitHub94> [board-m1/master] fixed Uncoonected wires which caused by continuous global lable arrangement of FLASH_D[15..0]. - Adam Wang
<GitHub58> [board-m1] adamwang pushed 1 new commit to master: https://github.com/milkymist/board-m1/commit/38faa9854afd1bebf9b7231778429b3d8f7306db
<GitHub58> [board-m1/master] added R183 & changed FLASH_STS_N to FLASH_STS - Adam Wang
<GitHub28> [board-m1] adamwang pushed 1 new commit to master: https://github.com/milkymist/board-m1/commit/4bb91a86f919c9c957278d35f303fa1377faa192
<GitHub28> [board-m1/master] changed U18's pin16 local lable VGA_B7 to VGA_B0 - Adam Wang
rejon has joined #milkymist
rejon has joined #milkymist
rejon has joined #milkymist
elldekaa has joined #milkymist
<kyak> ok, you can laugh at me, but i was sure that mm's component plugs are actually outs
<kyak> so i bought 3 RCA plug-plug and connected it to my TV and was wondering why it doesn't work :)
<kyak> my usb bluetooth keyboard is not working.. i was sure that it pretends to be a generic keyboard
<kyak> while trying to "Update from web", it says "failed to download bitstream"
<kyak> lines look pretty ugly when mm is connected to my TV via VGA
<kyak> in any resolution
<kyak> it's like they are shadowed
<kyak> "Update from files".. How do i put files there?
<kyak> what is "remote access"?
<kyak> btw, even if i set 1024x768 for the "Desktop", it still goes to 640x480 in visualization mode
<Fallenou> hehe I confirm that components are inputs and not outputs
<kyak> that's also not so bad :) now i can connect my home media player to mm rather than connecting mm to TV :)
<Fallenou> yes :)
<Fallenou> first section
<Fallenou> Update from web and update from files
<Fallenou> kyak: about your usb bluetooth keyboard, please don't hesitate to send the usb descriptor to the mailing list (sudo lsusb -vvv -d deviceid:vendorid in Linux)
<Fallenou> my usb bluetooth mouse does not work either :)
<kyak> oh thanks a lot
<kyak> will do
<Fallenou> kyak: remote access is FTP access, you can set it up in the setting menu (settings or something similar, don't have my M1 with me right now)
<Fallenou> you just open the menu, set up a login and password, and then connect to your M1 via FTP
<Fallenou> make sure to boot with ethernet wire plugged in, so that DHCP can do it's magic :)
<Fallenou> just out of curiosity, what is your SoC and software version right now in the about menu ?
<kyak> ok, need to find a wired keyboard to enter those login/pass for FTP
<kyak> or is there soem default?
<kyak> my version now are soc 1.1/fn 1.1/ patch tool 62
<Fallenou> ok
<Fallenou> so you can update to 1.2
<kyak> yeah
<Fallenou> which has MIDI usb afaik :)
<kyak> it shows those versions as available for upgrade
<kyak> but can't download the images
<Fallenou> I think I had troubles with web update too
<Fallenou> I had to update from files
<Fallenou> just like you
<Fallenou> I'm afraid there is no default password for ftp :x
<Fallenou> I had no keyboard, but xiangfu sent me his config file with ftp activated with login 'a' and password 'a'
<kyak> probably i will go jtag way.. it's all set up, and finding a wired keyboard is not possible right now
<kyak> how did you use xiangfu's config?
<Fallenou> I must have copied it over NFS mount
<kyak> hm.. didn't see such an option
<Fallenou> you can mount a NFS shared folder on the M1
<Fallenou> using the RTEMS shell
<kyak> how do i access RTMES shell?
<Fallenou> using your jtag cable to get a serial console
<kyak> ah ok
* Fallenou is trying to find xiangfu email
<Fallenou> with this config file, password and login are 'a'
<kyak> thanks!
<kyak> when using reflash_mm1.sh i have errors like "Unknown cable type: milkymist" and following...
<kyak> Error: Cable not configured. Please use 'cable' command first!
<Fallenou> try with sudo
<Fallenou> don't forget to write down your mac address
<Fallenou> not to lose it
<Fallenou> if you don't have a sticker
<Fallenou> reflashing could erase your mac address
<kyak> can't i just use a DEADBEAF mac address?
<kyak> (sudo) already added myself as an owner of 20b7:0713 usb device via udev..
<kyak> same errors when i'm root
<Fallenou> well you could use your own mac address
<Fallenou> but it would be a shame :)
<Fallenou> Milkymist has it's own mac address range
<kyak> he :)
<Fallenou> your M1 has been shipped to you with a unique mac address
<Fallenou> try not to lose it :)
<kyak> i agree, it's pretty cool.. though i have a range of broken network cards i can steal unique macs from :)
<Fallenou> how did you install the jtag software ?
<kyak> i'm running arch linux, i just installed urjtag from aur
<Fallenou> Agreed, but it won't show up as "Milkymist" in wireshark ;) *nerd*
<kyak> --)
<Fallenou> I guess you should use custom urjtag
<kyak> oh!
<Fallenou> it didn't work for me either with Debian urjtag
<Fallenou> "compile urjtag"
<kyak> reading
<kyak> (mac) do i need to remember just the last octet?
<Fallenou> the 2 last bytes I think
<kyak> ok, it's 00:57 (just in case i forget i find it in logs)
<Fallenou> :)
voidcoder has joined #milkymist
<kyak> i've stolen the configure args from the wiki and updated the PKGBUILD.. let's see how it works
<Fallenou> I had to disactivate a few options in the configure to make it compile fine
<Fallenou> but I guess you will find out soon :)
<kyak> error messages start with "Unknown cable type: milkymist"
<kyak> this is pretty strange
<kyak> do i need to provide a "config" for "milkimist cable"?
<kyak> or how does urjtag know about milkymist ?
<Fallenou> as far as I remember, I just followed the wiki page and it went fine
<Fallenou> are you sure you are using the new urjtag you just compiled ?
<Fallenou> try ldconfig and sudo ldconfig
<kyak> ok, i need urjtag-git to start with.. i'm using 0.10, it doesn't support mm i think
voidcoder has joined #milkymist
<Fallenou> oh sure, you really need to compile the version pointed by the wiki page
<Fallenou> I thought you modified the arch build process to fetch the correct version :)
<kyak> Fallenou: while it compiles.. Do i need to power on mm during flash?
<Fallenou> yes
<kyak> seems kinda awkward that mm draws something on TV while being flashed.. is it ok?
<kyak> or do i need to boot it in a special mode?
<Fallenou> never plugged the vga to something while reflashing, sorry dunno
<Fallenou> just plug power, plug usb, do the flash
<kyak> so i'll unplug vga then :)
<Fallenou> nothing special to do
<kyak> how long does it take to flash?
<Fallenou> I only flashed the entire M1 once, but it was quick IIRC
<Fallenou> usually I only flash the bios :)
<wolfspraul> kyak: nice to see you start playing with it! :-)
<wolfspraul> these things take time until you know the "essential workarounds" :-)
<kyak> ok, it reflashes now :)
<wolfspraul> where I guess everybody has a slightly different set of them...
<wolfspraul> please keep your feedback coming, as a first-timer it's invaluable!
<kyak> ah now, not really..
<kyak> ok, be back soon.. :)
<Fallenou> Error: Unable to detect JTAG chain end! < hum ! strange !
<wolfspraul> I was unsuccessful flashing on Fedora, but on Debian it worked
<wolfspraul> so on my Fedora system I now have a Debian kvm machine just for m1 flashing :-)
* Fallenou is using Debian too, in virtualbox
<Fallenou> kyak: maybe try another usb cable
<Fallenou> shorter one ?
elldekaa has joined #milkymist
<wolfspraul> it reminds me of my fedora problems, which after a frustrating hour or so I just bypassed with the Debian VM
<Fallenou> too bad, since F14 has all the tools for M1 dev IIRC
<wolfspraul> he could also try reducing the frequency from 6000000 to 3000000 (half) or less
<wolfspraul> that has helped some people before, but just another long shot
Gurty` has joined #milkymist
<kyak> hm, none of these helped
<kyak> reducing the frequency or changing the cable
<Fallenou> going to vote, bbl
<kyak> vote smart :)
<kyak> confusing
<kyak> wtf.. "detect" works in jtag even if i type it fast enough after "cable milkymist"
<kyak> in fact, i have to paste these two lines
<kyak> and it still shows "Error: Unable to detect JTAG chain end!"
pablojavier has joined #milkymist
xiangfu has joined #milkymist
* Fallenou is back
<kyak> Fallenou: what are the serial port settings to get to console?
<Fallenou> clone the milkymist repository
<Fallenou> and use tools/flterm --port /dev/ttyUSB0
<kyak> ah cool :)
<Fallenou> make -C tools/ flterm
<kyak> [FLTERM] Starting...
<kyak> and nothing
<Fallenou> humm
<Fallenou> close flterm
<Fallenou> sudo rmmod ftdi_sio
<Fallenou> sudo rmmod usbserial
<Fallenou> unplug usb cable
<Fallenou> plug it again
<Fallenou> wait a few seconds, then run flterm --port /dev/YourTtyUSB
<Fallenou> and power cycle the M1
<Fallenou> you should see something in the console when the M1 boots
<Fallenou> the bios for instance
<Fallenou> and then, the RTEMS shell
<kyak> yep
<kyak> so i had ot have flterm running while rebooting mm
<kyak> i have the console now, thanks!
<Fallenou> you're welcome :)
<Fallenou> I have a little script that does the 2 rmmod, when my console does not work anymore, I run the script and unplug/plug again the cable
<kyak> tricky, but it works :)
<wolfspraul> kyak: what is your host system?
<wolfspraul> as I said I had a similar problem on Fedora (and I think kristianpaul as well)
<kyak> my host is arch linux
<wolfspraul> something in libusb maybe, but I just went to debian and it was gone
<wpwrak> (jtag) the problems seems to be fjmem.bin. perhaps you simply don't have it around ?
<wolfspraul> ok [arch linux]
<Fallenou> in theory xiangfu script tests if the fjmem.bin is present, and downloads it if it's not
<Fallenou> kyak: ls -alr ~/.qi/
<Fallenou> please
<Fallenou> err alR
<kyak> i replaced those ${HOME}/.qi with ${HOME}/build/mm for my convenience :)
<wpwrak> ah, using xiangfu's script. yes, that should take care of it
<Fallenou> hello wpwrak :)
<kyak> fjmem.bit is there
<xiangfu> it should be download fjmem.bin
<Fallenou> everyone's up to help you kyak !
<kyak> there is no fjmem.bin
<kyak> btw, reflash_m1.sh complained to 404 during dowbload
<kyak> when i used --release
<xiangfu> s/fjmem.bin/fjmem.bit
<kyak> but worked fine with --qi
<kyak> (see my question about the difference between two mirrors)
<xiangfu> kyak, I guess you are using a old reflash_m1.sh?
<kyak> xiangfu: just the one linked from wiki
<xiangfu> version: 2012-03-05
<kyak> 2012-03-05 it is
<xiangfu> ok.
<wpwrak> the device ID is interesting: 0x24008093. that's stepping 2. my m1rc3 has stepping 3. so we have a mix of steppings. not sure if there's much of a difference between them, though
<wpwrak> Fallenou: heya :)
<xiangfu> kyak, oh. yes. --release. will report some 404 error. it should be ignore by reflash_m1.sh.
<kyak> xiangfu: just did everything from scratch: http://dpaste.com/735566/
<kyak> still the same prob
<wpwrak> find /home/bas/.qi -name fjmem.bin\*
<kyak> nothing
<wpwrak> same with ~/build/mm then ?
<xiangfu> "Error: Unable to detect JTAG chain end!" <---
<kyak> there is /home/bas/.qi/milkymist/fjmem/fjmem.bit
<wpwrak> ah. yes. sorry. my typo :)
<xiangfu> what is your urjtag version?
<kyak> UrJTAG 0.10 #2026
<xiangfu> "jtag --version"
<kyak> latest svn
<wpwrak> maybe try the first steps manually then. (urjtag version looks good)
<wpwrak> urjtag<enter>
<Fallenou> I have #2017
<wpwrak> cable milkymist
<kyak> wpwrak: manually works strange
<wpwrak> detect
<wpwrak> then see if there's already an error after "detect"
<kyak> as said, "detect" works only if i paste it together with "cable milkymist"
<kyak> otherwise it returns nothing
<wpwrak> hmm. that's suspicious
<kyak> wpwrak: second time i pasted it
<wpwrak> very suspicious indeed. so things already go wrong very early
<wpwrak> probably not .. that's just to add a new stepping
<kyak> perhaps i'll revert to #2017 which works for Fallenou?
<Fallenou> I only have one stepping in my file btw
<Fallenou> but yes #2017 works with my M1r3 under Debian
<Fallenou> kyak: I remember I had troubles with urjtag (especially building it) , maybe try to read this log : http://en.qi-hardware.com/mmlogs/milkymist_2012-01-29.log.html
<Fallenou> dunno if it can help you
* xiangfu is testing #2026 now
<xiangfu> I also using #2017 for long time.
<kyak> sorry guys, be back in couple of hours. Thanks for your help!
<xiangfu> just tested #2026 here. works fine under my ubuntu system.
<wpwrak> i have 2026 as well. works fine. there can be USB physical layer issues. i've seen that on some occasions. my setup is a bit convoluted, with 1-2 hubs in the path. usually picking a cable connected to a different port solves such issues. in any case, the original cable ought to be fine.
<wpwrak> ah, and my libusb (ubuntu onerous) calls itself /lib/x86_64-linux-gnu/libusb-1.0.so.0.0.0
rejon has joined #milkymist
<kyak> so what's the difference between http://milkymist.org/updates/current/ (1 Mar 2012) and http://downloads.qi-hardware.com/software/images/Milkymist_One/latest/ (4 Apr 2012)?
<xiangfu> kyak, the "Milkymist_One/latest/" build under buildhost. tested by "http://en.qi-hardware.com/wiki/Milkymist_One_Firmware#Test_Plan"
<xiangfu> kyak, and the qi image build with 'hid' branch with support part of Mouse+keyboard device. and qi image have all images you needs
<xiangfu> http://milkymist.org/updates/current/ . the WebUpdate will download image from there.
<xiangfu> (Mouse+keyboard) I mean Mouse+keyboard combo device.
xiangfu has joined #milkymist
hypermodern has joined #milkymist
<kyak> heh, xiangfu's sysconfig.bin has ip 192.168.0.42 :) luckily, it's in my ip range
<kyak> unfortunately, a/a for ftp doesn't work -\
<Fallenou> you can select dhcp, cannot you ?
<Fallenou> with mouse
<kyak> ah yeah, that i can do
<kyak> login/pass is x/x :)
<Fallenou> strange
<Fallenou> it was a/a for me :)
<Fallenou> anyway, good that it works for you
<kyak> ok, updated the thing..
<Fallenou> \o/
<kyak> "patch pool" is still as of version 62 though
<kyak> what can i do?
<kyak> ok, updating patches worked from GUI
<kyak> i guess i'm good then :) thanks again!
<kyak> it works, apart from jtag programming
<kyak> but at least flterm seems to work fine
<kyak> and the image is muhc-much better when i hook it up to a monitor
<kyak> guess the TV is not very good with VGA
<kyak> it likes HDMI and DVI :)
<kyak> Fallenou: btw, copying those image via nfs didn't work for me either
<kristianpaul> works, flashing also by jtag?
<kyak> though i copied config find
<kyak> *fine
<kyak> no, no flashing via jtag
<kristianpaul> that Unable to detect JTAG chain end!
<kyak> yep
<kristianpaul> reads very suspicious about something physical..
<kristianpaul> or missing file in urjtag...
<kyak> tried another cable.. and btw, flashing Ben with the same setup just fine
<kristianpaul> hmm
<kyak> and you know Ben is also sensible to these types of things
<kristianpaul> M1 is the top ;)
<kyak> so it's like Ben in square? :)
<kristianpaul> you may geg surprises but is first time i see that jtag chain end message to be honest
<kristianpaul> but dont heasite to try shorter usb cables or for example
<kyak> ok...
<kyak> btw, is there a way to control mm remotely?
<kristianpaul> yes
<kristianpaul> via jtag :)
<kyak> i have serial console
<kyak> how can i do it?
<kristianpaul> depends on whtat you want to control,
<Fallenou> there is IR (infra red) remote control
<kristianpaul> sorry you mean by milkymist, flickernoise?
<kyak> the visualazation :)
<Fallenou> you can send messages via opensound control (OSC)
<kristianpaul> i was thinking in other layers..
<kristianpaul> ahh!
<kristianpaul> indeed, OSC
<kyak> like start/stop/change
<Fallenou> you can use hardware buttons (3 buttons) on the PCB
<kyak> oh ok
<kyak> ah, buttons, great
<Fallenou> you can bind keyboard buttons
<Fallenou> or midi buttons
<kyak> so for example the workflow could be as follows - edit patch, upload via FTP, choose it via buttons[5~
<kyak> what is "midi buttons"?
<Fallenou> if you hook up a midi controler
<Fallenou> midi or midi-usb
<Fallenou> like these http://www.korg.com/nanoseries2 for instance
<kyak> ah cool.. it's like another world for me
<kyak> never seen these things :)
<kyak> Fallenou: what's going to happen after i send the id of my usb/bt keyboard?
<Fallenou> you have also dmx but I don't know if you can send orders like "next patch" or things like this in dmx
<kyak> to the ML i mean
<kyak> and if i have a bt mouse, should i do the same?
<Fallenou> well first it will let Milkymist contributors know that your keyboard is not supported/working at the moment
<Fallenou> and they could be able to either tell you why it does not work, and better, if it could be supported any time soon
<kyak> ok.. sounds great
<Fallenou> and it could help them improve the M1 adding support for it (with your help)
<Fallenou> it greatly depends on what's actually the real issue that prevents your keyboard from working with the M1
<kyak> does it mean that RTEMS doesn't support this device or it just wasn't compiled in?
<Fallenou> but it's always a good thing to know :)
<kyak> ok, i got you
<Fallenou> Milkymist is using its own USB host controler, and usb software stack, which is not perfect yet
<Fallenou> so not all USB compliant devices are working out of the box right now
<Fallenou> but it's improving :)
<kyak> i see
<Fallenou> wpwrak mwalle and others are working on improving USB system in M1
<kyak> Fallenou: a small question about terminology.. what's the difference between a patch and performance?
<Fallenou> a patch is a text file describing how inputs are processed to produce outputs
<Fallenou> performance, is the name of the mode in which the patch is "executed" and the outputs are driven like described in the patch
<Fallenou> "performance mode"
<Fallenou> like "show mode"
<Fallenou> or "party mode"
<kyak> k, that's clear
<kyak> why do i press "New" performace and nothing happens?
<kyak> ah. probably it clears the currently chosen patches
<Fallenou> hum not sure about this button, as I said I don't have my M1 with me
<Fallenou> and I mostly do development on it
<Fallenou> I played a little bit with performance mode, but not much
<Fallenou> try Load or Start
<kyak> ah, that's a good link.. thanks !
mwk_ has joined #milkymist
guyzmo has joined #milkymist
bkero1 has joined #milkymist
bkero has joined #milkymist
bkero has joined #milkymist
kilae has joined #milkymist
bkero has joined #milkymist
<wpwrak> kyak: there's no BT support. our plan is to migrate to linux at some point in time, and then to enjoy all the drivers we get there.
<wpwrak> kyak: FN currently only understands a bit of HID and some of USB-MIDI
jimmythehorn has joined #milkymist
<kyak> wpwrak: got it
<kyak> what is the recommended version of oscsend?
<kyak> i see several overthere
<kyak> long press Middle_button shutdown Milkymist one after power on.
<kyak> hm.. it indeed switches off.. and then switches back on
<kyak> good news: Flickernoise doesn't support UTF-8 :)
<kyak> in OSD, at least
<Fallenou> sometimes wiki is not up to date, but it gives a good insight usually
<kyak> oscsend /patch doesn't seem to work..
<kyak> ok, i'm out..
<Fallenou> ?
hypermodern has joined #milkymist
voidcoder has joined #milkymist
hypermodern has joined #milkymist
togi_ has joined #milkymist
hypermodern has joined #milkymist
voidcoder has joined #milkymist
pablojavier has joined #milkymist
<Fallenou> gn8
dvdk has joined #milkymist
<dvdk> hi
<dvdk> trying to upgrade firmware of my M1
<dvdk> from the M1's GUI (via web). Reports "cannot download bistream"
<dvdk> any ideas what I'm missing?
<dvdk> it *does* detect that the 1.2 version is available online.
<kristianpaul> hi, sorry no idea, perhaps missing file
<dvdk> some problem at the qi-hw webserver from where the stuff is downloaded!?
<dvdk> do i need a micro-sd card for the download or does it have enough nand flash internally?
<kristianpaul> or u should try flash by script and jtag..
<kristianpaul> no need micro-sd stuff
<dvdk> where's info on fw upgrade? can't seem to find in qi-hw.com nor milkymist wiki
wolfspra1l has joined #milkymist
<kristianpaul> Automated JTAG method (for developers)
<dvdk> ah, searched for "upgrade" should have searched for "flashing". hmm.
<kristianpaul> yeah bit cofusing tough..
<dvdk> thx kristianpaul, added to my M1 bookmarks
<kristianpaul> reflash :)
<dvdk> hmm just running reflash_m1.sh spits out help, though i can't see what else it needs?
<kristianpaul> -qi
<dvdk> kristianpaul: doesn't help
<dvdk> it's --qi. the wiki is wrong.
<kristianpaul> --qi
<dvdk> kristianpaul: seems to work (prints erasing block...)
<kristianpaul> good
<kristianpaul> you may want to reflash --data partition
<kristianpaul> we need a way to create a milkymist datasheet.. not a wiki or a booki or at least just plain text..
<kristianpaul> kyak: still missing a core for the conbus (including both maste and slave)
* kristianpaul dislikes wiki without hihglight for programing languages
<kristianpaul> in the other side qi wiki had it :)
<dvdk> something's broken after upgrade
<dvdk> don't seem to have any filesystem data. also doesn't safe/restore when rebooting
<dvdk> says "no patches" on bootup.
<kristianpaul> hmm perhaps need reflash data partition as well
<dvdk> reflashing again.
<dvdk> ah, logging in: ls /ssd/patchpool: permission denied
<dvdk> how do i reformat the ssd?
<kristianpaul> may give you an idea
Jia has joined #milkymist
<dvdk> kristianpaul: unmount, erase /dev/flash5, then web-update to get patches. thx for info
<dvdk> new firmware doesn't allow patch to be exited via mouse click?
<dvdk> don't have a keyboard connected. this is annoying.
<wolfspra1l> dvdk: oh, I see
<wolfspra1l> the idea is to stay in flickernoise whenever possible, avoid accidental dropping into FN
<wolfspra1l> kristianpaul: welcome back from your trip! :-)
<dvdk> ntsc input is lousy btw
<kristianpaul> wolfspra1l: thanks
<wolfspra1l> dvdk: thanks for trying! You are probably one of the first to ever try...