#emc-devel | Logs for 2010-05-29

[01:24:10] <cradek> jepler: cubic splines are representable as nurbs: here is truetype-tracer output from a postscript type1 font: http://timeguy.com/cradek-files/emc/asdf.ngc
[01:24:30] <cradek> (some computer-modern font picked at random)
[01:25:24] <jepler> cradek: that's good to know
[01:26:00] <jepler> probably the conic splines are too, then? (G5.1 ... L3 ?)
[01:28:38] <jepler> (hm, is L related to the number of points ? Is it necessary to specify it at all, then?
[02:07:24] <jepler> (or else G5.2 is redundant?)
[02:47:18] <cradek> L is the number of control points considered at a time. it's <= the number of points given (+- fenceposts, I dunno)
[02:47:30] <cradek> so no, the end code is needed
[04:17:00] <KimK> cradek: Still around? Yes, I'm bringing the quadrature card in question to the fest (and some things that are quadrature-encoder-like, whatever they turn out to be, LOL.) Also two PCs (the other one with Mesa cards). And I *really* hope a big flat screen, we'll see. And cords, power strips, etc. Tools. Scope? I guess I should put this stuff on the wiki, now that I started a 2010 page.
[04:22:10] <KimK> cradek: Have you heard of anyone making an extended stay (other than Monday for the exhibitors)? Either arriving early or leaving late? Or both?
[04:26:20] <cradek> jeff and I will be in ohio for the preceding weekend - not sure when we will drive home
[05:16:31] <KimK> cradek: I could use some advice about whether to run the emc install script that gets the key, points apt-get to hardy 2.3 (2.4?) etc. John's PC has the 2.4.0 parallel port issue so I backed it to 2.3.5. But I thought 2.4.1pre might help with some other stuff if I can avoid the parallel port issue. I'm trying to do make, --enable-run-in-place, etc, have never done it. Should I run the (2.4 modified) install script?
[05:20:36] <KimK> cradek: I mean, it seems that on one hand I *must* because I want apt-get from the 2.4 sources, but on the other hand I *must not* because I don't want to load anything that will bring back the parallel port issue. So I'm not sure what to do. Any advice appreciated. Thanks.
[11:31:37] <alex_joni> KimK: you don't want to run the script for 2.4
[11:31:50] <alex_joni> you still need to have 2.3.x installed (as that one is working ok)
[11:32:01] <alex_joni> to test 2.4.1~pre, you need to grab a copy from git
[11:32:12] <alex_joni> it's described in the wiki how to get the code, and compile it in place
[11:34:34] <aystarik> did anyone tried to run in 64 bit lately?
[11:51:13] <alex_joni> aystarik: why, any issues?
[12:06:27] <aystarik> latency test prints something looking like max-int
[12:08:35] <aystarik> both native rtai and emc
[12:15:21] <JT-Dev> * JT-Dev wonders if my problems trying mozmck 10.04 is related to the video driver it didn't have?
[12:56:43] <alex_joni> aystarik: hmm.. it worked ok a while ago
[12:57:43] <cradek> aystarik: I think jepler had 64 bit rtai working and it seemed fine except the machine hung occasionally (weekly?)
[12:58:16] <cradek> but yeah, it was not too recently.
[12:59:04] <jepler> it's been literally years.
[12:59:10] <jepler> I run sim on 64-bit machines all the time.
[12:59:36] <jepler> are you using the 8.04 kernel from linuxcnc.org, or a different kernel? that's the kernel that I know was good way back then.
[13:00:10] <jepler> (good except for the eventual lockups, whether I was running rtai or not -- but that PC was always just a bit flaky)
[13:07:35] <alex_joni> jepler: years, but not more than 2 :P
[13:27:46] <jepler> no, I suppose not
[14:40:57] <jthornton> if git clone asks for a password does that mean the .ssh/id_dsa.pub file is bad?
[14:43:11] <jthornton> hmm, I have the id_dsa file too with the private key that I copied from another computer that has push access
[14:44:31] <jthornton> oh crap I think I figured out what I was doing wrong :/
[14:45:29] <jthornton> yep that is it my name is not "developername"
[14:46:02] <jthornton> maybe I should read what I copy before I paste it LOL
[14:50:51] <alex_joni> :)
[15:12:47] <CIA-1> EMC: 03jepler 07v2.4_branch * r015304ab3bd5 10/src/hal/user_comps/modbus.c: compute correct response size for read_input_registers
[15:12:47] <CIA-1> EMC: 03jepler 07v2.4_branch * r43c2039a7c03 10/docs/man/man9/encoder.9: fix markup problem
[15:12:48] <CIA-1> EMC: 03jepler 07v2.4_branch * r416b8337e708 10/docs/src/drivers/pluto_p.lyx: multi-board support for pluto is unlikely
[16:12:31] <jepler> I just installed 64-bit 8.04.4 in qemu, added the linuxcnc.org kernel, and get abysmal latency test numbers (kern/latency and latency-test) but not 'something looking like max-int')
[16:14:06] <alex_joni> well, I wouldn't expect smaller numbers in qemu
[16:20:52] <jepler> if the numbers are bad but changing, that means it works
[16:21:19] <jepler> ah poo
[16:21:32] <jepler> looks like I screwed up that change to pluto_p.lyx
[16:48:54] <JT-Dev> mozmck if your around I made it past the rtai in 10.04 finally
[17:00:18] <johnt> 10.04 I have mozmck 2.4 installed but it doesn't give me a chance to select the rtai kernal
[17:01:44] <jepler> johnt: hold down the shift key to access the bootloader menu. The Bootloader should not have any visible representation, unless the User holds down the Shift key, which will trigger the text-mode boot selector.
[17:01:50] <jepler> https://wiki.ubuntu.com/DesktopExperienceTeam/KarmicBootExperienceDesignSpec#Bootloader
[17:02:25] <johnt> jepler, thanks I tried every other key I could think of :)
[17:06:11] <johnt> I'm getting somewhere now I'm up to locked memory :) brb after I fix that
[17:17:09] <jepler> I got a new hard drive for 10.04 so I wouldn't have to trash 8.04, but now I've discovered the drive won't work in that computer--an early sata_via chipset that won't talk to 3.0Gbps drives, and the drive has no jumper setting to select 1.5G :(
[17:17:35] <jepler> the machine's not even 5 years old
[17:17:53] <cradek> ugh.
[17:19:27] <jepler> I think that existing hard drive has 6.06, 5.10 and maybe even a BDI so I should just wipe one of them instead
[17:36:40] <jepler> no bdi .. but it does seem to have windows XP
[17:40:49] <mozmck> jepler: 10.04 may resize the partitions and install beside 8.04 without any problem.
[17:41:12] <mozmck> it does great doing that with Vista and Windows 7.
[17:56:28] <alex_joni> for some strange reason I didn't manage to install it on my laptop
[17:56:39] <alex_joni> had some reserved space free for just this purpose
[17:57:18] <alex_joni> it did install, but the bootloader was just fscking things up (and I tried both grub2 and grub)
[17:59:42] <cradek> fwiw I successfully resized 8.04 and installed 10.04 alongside it
[18:00:19] <cradek> (insert standard disclaimer about how you'd be insane to try that without backups)
[18:00:50] <alex_joni> heh
[18:01:11] <alex_joni> but since you do your regular backups anyways, it's no issue
[18:01:26] <cradek> of course
[18:43:51] <jepler> latency test running on AMD Sempron 3000+ (1.8GHz), 12ns jitter after a minute or so
[18:44:03] <jepler> I don't recall what I got under 8.04 since I use it as a servo machine
[18:44:24] <jepler> no issues besides the known ones (soft memlock was set to 64)
[18:45:47] <jepler> hmph! I started glxgears and got 75us latency, even though glxinfo says it's software rasterizer
[18:50:57] <jepler> (it's not onboard video either .. Matrox G400)
[19:09:27] <jepler> 10.04 with mozmck's packages officially moves my little mill
[19:09:29] <jepler> bbl
[19:18:06] <cradek> yay!
[19:30:14] <johnt> here is where I'm at trying to run 2.4 on 10.04 EMC error http://pastebin.com/M5gy0NS2 dmesg http://pastebin.com/ERdL40tE
[19:30:51] <johnt> trying to run axis sim
[19:31:56] <johnt> the latency test loads up but does not run also
[19:34:26] <johnt> * johnt wanders out to the shop to make a few parts on the Hardinge
[19:40:26] <jepler> you've got a bunch of milltask processes. if you can't kill them in any other way, restart. Other than that I don't spot anything that looks like a real error.
[19:41:06] <jepler> er, no, you don't -- the output of ps is repeated over and over
[19:41:17] <jepler> I can't tell what's actually wrong then
[19:43:25] <JT-Hardinge> jepler: thanks for looking
[19:43:44] <Dave911> Can not find -sec EMC -var NML_FILE -num 1 ........ Isn't this the issue with the NML= _____ file in the EMC section of the ini file.... I've seen this error before ... 2.4 doesn't require it I believe .. put it in and it does this I think
[19:44:56] <JT-Hardinge> I'm using the 2.4 axis sim... let me run down to the basement and see if it is in there
[19:45:11] <Dave911> So comment out your NML= line and restart ..
[19:48:08] <johnt> no NML= line in that file
[19:49:06] <Dave911> If you are using 2.4 comment out that line ...
[19:50:35] <johnt> there is no NML= line
[19:51:30] <Dave911> In the system that is having this problem?
[19:51:45] <johnt> the other strange thing is the latency test pops up but does not run
[19:52:31] <johnt> yes this is a brand new 10.04 install with 2.4 installed
[19:53:02] <Dave911> Well... then you have got me ... perhaps that error shows up due to other things also ..
[19:54:51] <johnt> when I told EMC to add a desktop launcher it won't let me use it as it says "Untrusted application launcher..." Cancel
[19:55:02] <johnt> when I click on it
[19:55:56] <alex_joni> johnt: try increasing DEBUG and load sim/axis again
[19:55:58] <johnt> I had to go to the permissions tab and check execute
[19:56:02] <johnt> ok
[19:57:18] <Dave911> If I put the nml= into the ini file I get a bunch of waiting for s.axes ... also but I also get different NML related message before that ... so that is obviously not it.. sorry ...
[19:57:40] <johnt> EMC errors http://pastebin.com/9iFfQthk
[19:58:48] <johnt> dmesg http://pastebin.com/LQZfVtnH
[19:59:36] <micges> johnt: ini and hal also please
[19:59:41] <johnt> ok
[20:00:26] <johnt> axis.ini sim http://pastebin.com/MwpyJtfN
[20:01:23] <johnt> core_sim.hal http://pastebin.com/WJWaDtAH
[20:02:31] <alex_joni> micges: it's sample configs
[20:02:39] <micges> johnt: you're using mozmck kernel packages?
[20:02:43] <johnt> yes
[20:02:52] <micges> what hardaware
[20:02:53] <micges> ?
[20:03:07] <micges> alex_joni: I see, but it's strange
[20:03:18] <johnt> asus motherboard with AMD quad core
[20:03:24] <alex_joni> the problem is motion not coming up
[20:03:27] <johnt> ATI video card
[20:03:37] <alex_joni> backlash is the first thing that gets sent to the motion controller
[20:03:43] <alex_joni> I suspect RT stuff is failing
[20:03:57] <micges> setaxes before failing too
[20:04:01] <johnt> should I reinstall the packages
[20:04:03] <alex_joni> but I'd like to see a dmesg, but with higher rtapi error levels
[20:04:14] <alex_joni> micges: setaxes calls set backlash iirc
[20:04:30] <alex_joni> err.. no, you're right
[20:04:38] <alex_joni> but both talk to motion in the end
[20:04:39] <micges> alex_joni: no but it's meainingless
[20:05:05] <alex_joni> johnt: try this from a terminal: sudo /etc/init.d/realtime start
[20:05:17] <alex_joni> echo 5 > /proc/rtapi/debug<tab>
[20:05:29] <alex_joni> I think it's debug_level, but it's been a long while
[20:05:33] <alex_joni> then try to run emc
[20:05:53] <johnt> nothing happened alex_joni
[20:06:13] <alex_joni> check dmesg and see if there's more messages now
[20:06:37] <johnt> should I clear dmesg first then run it?
[20:06:42] <alex_joni> soemthing else
[20:06:46] <alex_joni> edit /etc/rtapi.conf
[20:06:53] <alex_joni> and change DEBUG=1 to 5 or so
[20:06:59] <alex_joni> clear dmesg
[20:07:01] <alex_joni> then rerun emc2
[20:07:06] <johnt> ok
[20:07:39] <johnt> rtapi.conf is empty
[20:07:55] <alex_joni> really?
[20:08:01] <alex_joni> that sounds bogus to me
[20:08:09] <johnt> yes, double checking now
[20:08:49] <johnt> actually there is no /etc/rtapi.conf
[20:09:07] <alex_joni> maybe /etc/emc2/rtapi.conf ?
[20:09:23] <johnt> got one there
[20:11:15] <alex_joni> jepler: should we distribute pyc's with the emc2 deb? or regular py's ?
[20:11:31] <johnt> EMC Errors http://pastebin.com/FaH27FB3
[20:12:05] <alex_joni> insmod: error inserting '/usr/realtime-2.6.32-22-rtai/modules/rtai_hal.ko': -1 File exists
[20:12:14] <alex_joni> sudo /etc/init.d/realtime stop
[20:12:25] <johnt> dmesg http://pastebin.com/wEXY6pUL
[20:12:40] <alex_joni> johnt: not usefull ;)
[20:12:46] <alex_joni> there need to be a lot of things in there
[20:12:53] <alex_joni> at least a couple lines more
[20:13:12] <alex_joni> (running realtime start first was a bad instruction from me..)
[20:13:14] <johnt> johnt@lucid:~$ sudo /etc/init.d/realtime stop
[20:13:14] <johnt> ERROR: Module hal_lib does not exist in /proc/modules
[20:13:14] <johnt> ERROR: Module rtapi does not exist in /proc/modules
[20:13:14] <johnt> ERROR: Module rtai_math does not exist in /proc/modules
[20:13:14] <johnt> ERROR: Module rtai_sem does not exist in /proc/modules
[20:13:15] <johnt> ERROR: Module rtai_fifos does not exist in /proc/modules
[20:13:17] <johnt> ERROR: Module rtai_sched does not exist in /proc/modules
[20:13:19] <johnt> ERROR: Module rtai_hal does not exist in /proc/modules
[20:13:34] <alex_joni> then something borked..
[20:13:43] <alex_joni> you probably will fix it easiest by rebooting
[20:14:05] <johnt> brb
[20:16:22] <johnt> after clean boot EMC Errors http://pastebin.com/gHR8v12X
[20:17:10] <johnt> and dmesg http://pastebin.com/7Jp84DiW
[20:18:30] <alex_joni> yeah, dmesg was included
[20:18:36] <alex_joni> hmm.. all looks ok
[20:19:03] <alex_joni> can you start from a terminal, with DEBUG set really high (0xffffff) and pastebin the whole terminal info?
[20:19:13] <johnt> sure
[20:20:12] <micges> alex_joni: output seems ok but motion seems not responsive, maybe some shmem problems?
[20:20:41] <johnt> micges, also note that the latency test does not run
[20:21:52] <micges> oh
[20:22:29] <johnt> alex_joni, much of the terminal info scrolled off the screen
[20:23:20] <johnt> is it possible I might need to reinstall rtai?
[20:25:56] <alex_joni> johnt: not even rtai's latency test?
[20:26:18] <johnt> from the terminal window? latency-test
[20:29:40] <alex_joni> not that one
[20:30:08] <alex_joni> cd /usr/realtime-2.6.32-22-rtai/runtests/latency/kern
[20:30:12] <alex_joni> sudo ./run
[20:30:28] <alex_joni> make sure emc2 isn't running when you do that
[20:31:35] <johnt> No such file or directory
[20:32:25] <johnt> there is a testsuite
[20:32:32] <alex_joni> testsuite.. right
[20:32:42] <alex_joni> my memory isn't the youngest anymore
[20:33:02] <johnt> I'm sure I have you beat on loss of memory :P
[20:33:16] <johnt> one moment
[20:34:37] <johnt> it starts but no numbers show up for the columns
[20:35:20] <alex_joni> hmm.. sounds like timer isn't working or something like that
[20:35:26] <alex_joni> leaving RTAI tasks frozen
[20:35:38] <alex_joni> johnt: sorry, no idea what to suggest
[20:36:02] <alex_joni> can you pastebin a comple dmesg after boot?
[20:36:06] <alex_joni> without clearing it?
[20:36:17] <alex_joni> or pastebin /var/log/bootlog
[20:36:24] <alex_joni> or whatever it's called like
[20:36:39] <alex_joni> boot.log iirc
[20:36:49] <johnt> ok
[20:38:41] <johnt> /var/log/bootstrap.log http://pastebin.com/JdgHpNwD
[20:39:02] <alex_joni> bootstrap is the wrong one
[20:39:35] <johnt> boot is empty and boot.log has machine code in it
[20:40:16] <alex_joni> then only dmesg after a reboot
[20:40:29] <johnt> boot.log has stuff about batteries and sensors etc in it
[20:40:37] <johnt> ok
[20:40:45] <alex_joni> err.. wait
[20:40:49] <alex_joni> lastlog maybe?
[20:41:21] <alex_joni> err. no..
[20:43:28] <penguin> hi.... i'm learnnig HAL programming, is not difficult
[20:45:08] <penguin> i have a question: what parameter/function capture first the commanded position by gcodes?
[20:45:23] <johnt> bootup dmesg http://pastebin.com/TxGfbKzC
[20:45:31] <penguin> is axis.N.motor-pos-cmd ?
[20:46:35] <micges> penguin: I don't fully understand, axis.N.motor-pos-cmd is commanded position of axis after interpolation
[20:46:51] <micges> updated every 1ms
[20:47:32] <penguin> the first first function that catch the position is that?
[20:47:48] <penguin> before send it to stepgen
[20:50:00] <penguin> (i want to know how to catch the gcode commanded position before send it to stepgen)
[20:51:04] <micges> yes this is position that should be sended to stepgen
[20:51:36] <alex_joni> johnt: I'd try booting with isolcpus=3 as a bootoption
[20:51:46] <alex_joni> I think RTAI likes to use the last cpu
[20:52:00] <alex_joni> check with SWPadnos, he might know isolcpus more than me
[20:52:05] <johnt> alex_joni, where do I put that at?
[20:52:09] <penguin> micges: then, axis.N.motor-pos-cmd "read" gcode positions before anything
[20:52:35] <alex_joni> johnt: bootoption
[20:52:45] <alex_joni> that means you hold shift for grub to come up
[20:52:50] <johnt> ah ok
[20:52:59] <alex_joni> then you select the line you want to boot (the rtai kernel) and press e for edit
[20:53:08] <alex_joni> then you can add what I said to the end of the line
[20:53:11] <johnt> ok
[20:53:41] <micges> penguin: I think you can call it that way
[20:54:53] <penguin> micges: in the same way, the "S" command (pwm value) is captured in first instance by motion.spindle-speed-out ?
[20:55:40] <micges> yes
[20:56:57] <johnt> didn't make a difference alex_joni
[21:00:06] <alex_joni> all out of ideas
[21:00:52] <johnt> thanks for trying
[21:02:18] <penguin> micges: so, i can process "S" value before send it to pwmgen (for example)
[21:02:48] <penguin> (make a function that takes S value and output pwngen value)
[21:03:00] <KimK> alex_joni: Hi, thanks for leaving me an answer on my earlier Q. Yes, I have installed git, etc. on that machine, and I was following the "Building EMC realtime" advice toward the end of wiki page http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Rastering_With_A_Laser, and it started off OK, but when I got to "make" it failed with an error: Makefile:31: Makefile.inc: No such file or directory <newline> Makefile:42: *** Makefile.inc must specify RTPREFIX and othe
[21:03:00] <KimK> r variables. Stop. I've never done the whole make-your-own and --enable-run-in-place and so on, so I don't know what to do next. I would like to be able to run the standard release as usual, and whatever "previews" are available through git. I would appreciate any advice on this error.
[21:03:04] <KimK> Oops
[21:04:36] <KimK> Sorry, got long-winded again
[21:05:27] <alex_joni> heh
[21:05:50] <alex_joni> did you run autoconf.sh and configure first?
[21:05:52] <alex_joni> before make..
[21:05:54] <alex_joni> ?
[21:07:23] <alex_joni> KimK: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Installing_EMC2#Building_emc2_realtime
[21:09:14] <KimK> Yes, I was following their list, <cd src> <./autogen.sh> <./configure --enable-run-in-place> [seemed OK so far] <make> [then got the two errors] So I never got to <sudo make setuid>
[21:10:13] <KimK> Then I thought, maybe he wanted to have already run that install script to get some missing files?
[21:10:32] <KimK> he wanted to --> he wanted me to
[21:10:34] <alex_joni> if configure completes ok, then you have what you need
[21:10:37] <alex_joni> but I doubt that
[21:10:45] <alex_joni> try 'sudo apt-get build-dep emc2'
[21:12:09] <alex_joni> * alex_joni is off to bed
[21:12:12] <alex_joni> good night all
[21:13:22] <johnt> good night Alex
[21:14:42] <micges> good night alex
[21:28:59] <mozmck> johnt: So latency-test will run but it just shows 0 for everything?
[21:30:55] <KimK> alex_joni: Thanks for your advice, sorry I hung up on you, lol, I certainly didn't mean to do that. I went to try doing what you said on the PC in question, but I tried to do it remotely using "Remote Desktop Viewer". Unfortunately, I forgot that I discovered yesterday that "Remote Desktop Viewer" (Vinagre) has some kind of bug and when I "connect to..." with it, I get the black screen of death, so I have to remember to use KRDC, which seems to work OK. Bu
[21:30:55] <KimK> t I forgot about it today and so I froze, had to restart. Hope you see this later, thanks for your help. I'm trying it now.
[21:31:03] <KimK> Oops again.
[23:49:25] <ries_> ries_ is now known as ries
[23:59:57] <KimK> alex_joni: (when he returns) OK, it compiled for a long time (slow machine) but may be OK? I can't test it right now, machine is in use, but will try it as soon as I can. More news after a while...