unknown port [solved] - Printable Version +- ds30 Loader free edition forums (https://picbootloader.com/forum) +-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3) +--- Forum: Console (https://picbootloader.com/forum/forumdisplay.php?fid=5) +--- Thread: unknown port [solved] (/showthread.php?tid=29) |
unknown port [solved] - dlutolf - 2010-12-17 when I try to program my device (WebPlatform from dangerousprototypes.com), I get the error "unknown port" OS: gentoo kernel: 2.6.37-rc1-00027-gff8b16d mono-version: mono-2.8.1-r1 command I run: (in a little script to make it easier) Code: #!/bin/bash notes on the above: - I tried with and without the -q flag - the documentation says I can execute ./ds30LoaderConsole.exe directly, however this fails (invalid executable format). need to run through mono explicitly - /dev/web_platform is a symlink (made dynamically with udev) to /dev/ttyUSB0. same behaviour if I specify /dev/ttyUSB0 general notes: - I find it irritating to have the "clear screen" command sent to the console - GUI does not work at all on my system. last time I tried display was messed up, now I just get an empty window now, the full output of the run: Code: Loading external device database...file not found: /usr/bin/devices.xml any ideas? RE: unknown port - Mikael Gustavsson - 2010-12-18 Thanks for your post! I'll correct the Linux example in the manual and remove clear screen GUI not working is out of my hand, except if I reworked it using gtk# instead of winforms. Something I wont do. What output do you get from mono ds30LoaderConsole.exe --list-ports? Do you really want to use "-q=a;b"? I think not. RE: unknown port - dlutolf - 2010-12-18 Quote:Thanks for your post!my pleasure! we've found your BL to be a great thing (at least under M$WIN). it's going to be a great help to distribute hardware and custom firmwares to people who don't have a programmer. means we can tolerate more hard-coded stuff :-) Quote:GUI not working is out of my hand, except if I reworked it using gtk# instead of winforms. Something I wont do.don't worry about it. as long as I get a console app I'm happy :-) Quote:I'll correct the Linux example in the manual and remove clear screensweet now, some more output: Code: $ mono ds30LoaderConsole.exe --list-ports same thing if I run as root. FYI: Code: # dmesg|tail -8 just out of curiosity, I removed the udev rule that creates the symlink - the problem is not there do I need to say the same hardware was flashed successfully under windows? since my leds are blinking the way they should (and previous output), I have no reason to believe it's hardware related. oh yeah.. another remark: I find it strange to look for the xml device list in /usr/bin - shouldn't this dir hold only executables? and yet another (trivial) one: the loader cannot load /usr/bin/devices.xml when it is a symlink from the kernel version I suppose you've guessed I have a custom config and not a pre-compiled kernel. let me know if there's any more info I can give you. RE: unknown port - Mikael Gustavsson - 2010-12-18 D you use gnome or kde? I works great with gnome in openSuse and Ubuntu. You probably need to run as root unless you have changed permissions on /dev/ttyUSB0. Try first to run from the bin directory from the zip-package with all files present in the same directory. RE: unknown port - dlutolf - 2010-12-19 I did run as root, and from the bin dir (I cd to it the script, the only file not in the dir is the hex I want to flash). my first tries where done as root in the dir anyway, without the script. I haver neither gnome nor kde, but fvwm (because it rules). console apps should run without X anyway RE: unknown port - Mikael Gustavsson - 2010-12-19 Sry, about window manager, I was of course referring to the GUI. The console application shouldn't require X. Are the ds30LoaderPort*.dll files located together with ds30LoaderConsole.exe? RE: unknown port - dlutolf - 2010-12-19 yes Code: $ls -l RE: unknown port - Mikael Gustavsson - 2010-12-19 There seems to be a problem with the path. If you execute from home/dave/PIC2/PIC/ds30 Loader/bin, you shouldn't get "..file not found:/usr/bin/devices.xml" Try Code: cd "/home/dave/PIC2/PIC/ds30 Loader/bin" You should get something like this: Quote:linux-jetf:/home/mikael/Download/ds30 Loader/bin # mono ds30LoaderConsole.exe --list-ports RE: unknown port - dlutolf - 2010-12-20 I confirm, I get the same (wrong) output when running ds30LoaderConsole.exe as root from the bin directory. RE: unknown port - Mikael Gustavsson - 2010-12-20 Do you still get "Loading external device database...file not found: /usr/bin/devices.xml", or is it another path? RE: unknown port - dlutolf - 2010-12-20 exact same thing RE: unknown port - Mikael Gustavsson - 2010-12-20 Here are three different versions, please test all three and let me know which ones work. bin3 is hard coded and should be put in /home/dave/PIC2/PIC/ds30 Loader/bin. RE: unknown port - dlutolf - 2010-12-24 hey Mikael, thanks for the archive not really sure where you want me to put the files, so here's what I did: copied all bin? dirs to /home/dave/PIC2/PIC/ds30 Loader/ I end up with Code: $ls -1R /home/dave/PIC2/PIC/ds30 Loader/ I then cd'ed to each of the bin? dir, then executed Code: $ mono ds30LoaderConsole.exe --list-ports output is attached ps: *.tgz files not allowed on the forum? what a shame.. pps: oh, I forgot to mention I don't have my web platform here, forgot it at a friend's place... so I couldn't actually try to upload a new hex file |