#emc | Logs for 2006-09-01

Back
[00:11:15] <davidf> Hi
[00:11:41] <davidf> Anyone know how to check ram on a linux system )ubuntu)?
[00:12:33] <davidf> That's all I can think of I haven't checked trying to fix this erratic stalling...
[00:14:10] <cradek> reboot, hit escape to get the boot menu, pick memtest
[00:15:20] <davidf> cradek: That sounds simple enough even for me. Thanks,
[00:15:36] <cradek> davidf: did you decide to try a different machine?
[00:15:49] <cradek> bad ram will generally cause applications to crash
[00:15:57] <cradek> hey that reminds me
[00:16:23] <cradek> in cvs yesterday jmk and I put in some reporting of realtime anomolies
[00:16:49] <cradek> it would be nice if you could try it, but to do that you'll have to compile the cvs version, as it's not in 2.0
[00:16:56] <davidf> cradek, not yet. There is some dust in this box, and the stralling is so seldom and random, It just doesn't seem like something like incompatibility.
[00:17:37] <davidf> Sometimes it will go for 5 minutes perfectly, then a 2 second buzz, and continues (though offset, of course.)
[00:18:25] <davidf> I'd be glad to do it if I can figger it out.
[00:18:55] <cradek> I think there are instructions in the wiki - I'm looking for them now
[00:19:25] <davidf> Don't know if I have the requisite compiler / linker installed.
[00:19:44] <cradek> it's all very easy to install
[00:20:29] <davidf> ok
[00:21:09] <cradek> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl/emcinfo.pl?Installing_EMC2#On_Ubuntu_5_10_and_6_06_from_source
[00:22:10] <davidf> ok I'll have a read.
[00:23:03] <cradek> on step 2.2 use 'cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -d emc2.head emc2' instead of what it says there
[00:23:04] <davidf> cradek, do you think its possible that there is something in 2.0.3 that might be causing this? I don't think it ever happened before I upgraded.
[00:23:54] <cradek> no I really don't ...
[00:24:06] <davidf> ok.
[00:24:21] <cradek> we carefully put only very safe bugfixes in those 2.0 versions
[00:24:39] <davidf> ok
[00:25:05] <jepler> did you try downgrading to one of the earlier versions to see if the problem goes away? That's always an option
[00:25:31] <davidf> It's just SO weird. Perfect behavior in every way for a whole run, then later, Zap! out of the blue.
[00:26:07] <cradek> you could certainly try 2.0.1 or whatever you were using before
[00:26:47] <cradek> the configs are compatible back to before 2.0.0, you could even go back to 2.0.0
[00:27:04] <davidf> I even changed to a 7406 open collector off the parport, wewired, checked every connection, added an AC line filter, spent an hour on the phone with a Parker tech, still the same crap.
[00:27:27] <cradek> well I still think it's your computer.
[00:27:35] <cradek> this checking in cvs head *might* show it, if so.
[00:27:54] <davidf> Seems like it would be doing it more often.
[00:28:51] <davidf> what's that you said?
[00:28:53] <cradek> yeah I guess so.
[00:29:04] <cradek> ?
[00:29:20] <davidf> 4 lines up.
[00:29:34] <cradek> 'this checking in cvs head *might* show it, if so.'?
[00:29:37] <davidf> cvs head
[00:29:49] <cradek> that's the development version
[00:29:57] <cradek> the one I suggested you compile and try
[00:30:14] <davidf> oh, you mean if I compile & run the dev version?
[00:30:17] <davidf> ok.
[00:30:18] <cradek> yes
[00:30:46] <cradek> I'm going to go do the same so I have a baseline
[00:31:00] <davidf> ok, I'll give that a try right now. Do I need to uninstall it first or anything?
[00:33:11] <davidf> jepler, sorry I didn't see your question till now. No I haven't but I was thinking of doing that.
[00:37:02] <cradek> no you don't have to uninstall
[00:37:30] <davidf> ok. I've started the process...
[00:38:53] <davidf> getting an error message:
[00:39:16] <davidf> 0% [Connecting to us.archive.ubuntu.com (146.137.96.7)]
[00:39:16] <davidf> Err http://us.archive.ubuntu.com breezy/main libglib1.2-dev 1.2.10-10ubuntu1
[00:39:16] <davidf> Could not connect to us.archive.ubuntu.com:80 (146.137.96.15). - connect (113 No route to host) [IP: 146.137.96.15 80]
[00:39:16] <davidf> 0% [Connecting to us.archive.ubuntu.com (146.137.96.15)]
[00:39:49] <cradek> try 'sudo apt-get update'
[00:40:16] <cradek> huh maybe their mirrors are down again
[00:40:17] <cradek> darnit
[00:41:21] <davidf> yeah its trying 2 different IP's same error on both- cant connect.
[00:41:33] <jepler> huh, I'm able to install packages from us.archive.ubuntu.com with apt-get
[00:42:07] <davidf> how do i make it stop trying to connect - cant type any other commands.
[00:42:18] <cradek> control-c
[00:42:33] <davidf> of course.
[00:44:09] <cradek> davidf: you can use the european ubuntu mirrors: in /etc/apt/sources.list change all the us.archive to uk.archive
[00:44:18] <davidf> ok got a bunch of stuff, now its back to the same IP it cant hit:
[00:44:21] <davidf> 99% [Connecting to us.archive.ubuntu.com (146.137.96.15)]
[00:44:46] <davidf> ok.
[00:44:46] <cradek> same here
[00:44:52] <cradek> try uk
[00:45:14] <cradek> then sudo apt-get update again
[00:49:49] <davidf> cradek, so just open that file in text editor, and change everything from us.arcgive to uk.archive?
[00:50:07] <davidf> typo...
[00:50:10] <jepler> yes, but make sure you use a text editor that doesn't add extra newlines where they don't belong
[00:50:49] <davidf> everything in that file is commented out. Should I remove the comments?
[00:51:12] <jepler> everything? can't be.
[00:51:25] <davidf> hmm. you're right.
[00:51:43] <davidf> ok. I'll just change the active stuff by hand.
[00:52:54] <davidf> hmm. cant edit it. guess it is read only.
[00:53:12] <davidf> I need to set permissions I guess?
[00:53:25] <cradek> sudoedit /etc/apt/sources.list
[00:53:39] <davidf> geez all the hand holding you guys have to do.
[00:54:09] <davidf> sudoedit or sudo edit?
[00:54:45] <cradek> sudoedit
[00:54:47] <davidf> k
[00:58:18] <davidf> ok now how do i save it?
[00:58:32] <davidf> from terminal-
[00:58:41] <davidf> or do i?
[00:58:50] <cradek> look at the help on the bottom of the screen, I think it's control-w
[00:59:30] <davidf> ^X.
[00:59:38] <cradek> aha
[00:59:48] <davidf> Did that, but it is giving me a weird name to save it as.
[01:00:08] <cradek> that's fine, just hit return
[01:00:19] <davidf> done
[01:00:20] <cradek> afterward sudoedit will put it in the right place for you
[01:00:22] <cradek> ok
[01:00:26] <cradek> now sudo apt-get update
[01:00:35] <cradek> and if that goes well, you can go back to the wiki instructions
[01:01:02] <davidf> that's working.
[01:01:06] <cradek> great
[01:02:43] <davidf> do I want to build axis?
[01:03:03] <davidf> cradek
[01:03:16] <cradek> yes do both of the build-dep
[01:03:22] <davidf> k
[01:04:07] <CIA-8> 03cradek 07HEAD * 10emc2/src/emc/motion/control.c:
[01:04:07] <CIA-8> tighten this test to 10%, as my reliable machine and jmk's both show
[01:04:07] <CIA-8> slop around 1% max.
[01:05:21] <cradek> on step 2.2 use 'cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -d emc2.head emc2' instead of what it says there
[01:08:14] <davidf> cradek, is there a way to copy that line from this chat? ctrl - something?
[01:08:28] <davidf> cant do it with the mouse.
[01:08:31] <cradek> just highlight it, then go to the terminal and middle-click
[01:08:41] <davidf> two button mouse.
[01:08:51] <davidf> pulkl its tail?
[01:08:51] <cradek> try both buttons together for middle-click
[01:08:55] <cradek> haha
[01:09:29] <cradek> does it have a wheel?
[01:09:55] <davidf> no
[01:10:04] <cradek> wow, old mouse then
[01:10:21] <davidf> picked it up from a parking lot after an auction. :)
[01:10:45] <davidf> nobody wanted it. felt sorry for it & took it hoome.
[01:10:51] <cradek> you sound like me
[01:11:00] <davidf> poor you.
[01:11:14] <cradek> "so what if this computer is the size of a school bus, it's PERFECTLY FINE"
[01:11:24] <davidf> =)
[01:11:57] <davidf> bash: cvs: command not found
[01:12:06] <cradek> you skipped a step then
[01:12:19] <davidf> oh. ok... let me check
[01:13:00] <davidf> sudo apt-get install cvs
[01:13:08] <davidf> makes sense.
[01:13:14] <cradek> that's the one
[01:13:59] <davidf> why do I want to get an apartment anyway?
[01:14:15] <cradek> huh?
[01:14:47] <davidf> apt-get
[01:14:53] <davidf> dumb
[01:14:55] <cradek> ha
[01:15:00] <cradek> never noticed that
[01:15:05] <davidf> oh boy...
[01:15:13] <davidf> Media change: please insert the disc labeled
[01:15:13] <davidf> 'Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)'
[01:15:13] <davidf> in the drive '/cdrom/' and press enter
[01:15:19] <cradek> heh
[01:15:27] <davidf> now the fun starts looking for that.
[01:15:32] <cradek> cancel that again, and comment out the first line (cdrom) of /etc/apt/sources.list
[01:16:01] <davidf> whatcha mean by cancel that agin?
[01:16:07] <cradek> just hit control-c
[01:16:11] <davidf> again...
[01:16:12] <cradek> then sudoedit /etc/apt/sources.list again
[01:16:15] <davidf> k
[01:17:28] <cradek> smuckers is selling pre-made PBJ sandwiches with no crust
[01:17:50] <cradek> for when you just don't have time to "cook" your own sandwich I guess
[01:18:16] <davidf> LMYAOOL
[01:19:38] <davidf> When my sis was little, she went through a phase where she absolutely refused to eat anything but jelly sandwiches with the crust cut off. Maybe that's what happened to her brain...
[01:21:38] <cradek> my parents regularly buy pre-fried microwaveable bacon
[01:21:51] <cradek> seems not long ago we would have all had a good laugh at that
[01:22:08] <cradek> it's like pre-toasted microwaveable toast
[01:22:16] <cradek> (which I've also seen)
[01:22:43] <davidf> actually its not too bad, but extremely thin and expensive. Saves a paper towel though. That costs something.
[01:23:05] <davidf> you've got to be kidding.
[01:23:10] <cradek> um, no.
[01:23:23] <davidf> crust, or not?
[01:23:34] <cradek> crust
[01:23:42] <davidf> well forget that then.
[01:23:52] <cradek> haha
[01:24:01] <cradek> believe it or not, it was "bimbo" brand
[01:24:07] <davidf> ok I think I got lost here.
[01:24:39] <davidf> I tried the cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -d emc2.head emc2
[01:24:53] <davidf> and I'm getting cmd not found again.
[01:25:00] <cradek> did you do apt-get install cvs?
[01:25:05] <cradek> did you do sudo apt-get install cvs?
[01:25:07] <davidf> yes
[01:25:16] <davidf> do it again?
[01:25:31] <cradek> isn't that the one we aborted because it wanted the cd?
[01:25:58] <davidf> yes
[01:26:08] <cradek> ok then do it again
[01:27:13] <davidf> here's the response after that:
[01:27:36] <davidf> dave@ubuntu:~$ cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -d emc2.head emc2
[01:27:36] <davidf> bash: cvs: command not found
[01:27:36] <davidf> dave@ubuntu:~$ apt-get install cvs
[01:27:36] <davidf> E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
[01:27:36] <davidf> E: Unable to lock the list directory
[01:27:37] <davidf> dave@ubuntu:~$
[01:27:47] <cradek> sudo
[01:27:58] <davidf> k
[01:29:13] <davidf> dave@ubuntu:~$ sudo apt-get install cvs
[01:29:13] <davidf> E: Type 'restricted' is not known on line 2 in source list /etc/apt/sources.list
[01:29:13] <davidf> E: The list of sources could not be read.
[01:29:16] <davidf> just a sec...
[01:31:35] <davidf> ok, jepler was right to warn of bad CR's
[01:31:42] <davidf> working...
[01:32:05] <davidf> ok that step is done....
[01:33:51] <davidf> darn cant seem to get to the top dir.
[01:34:00] <davidf> did cd /
[01:34:15] <davidf> that right?
[01:34:32] <cradek> you want to get the cvs in your home directory
[01:34:36] <cradek> just "cd" by itself to get there
[01:34:52] <davidf> no I'm there, but cd src gives no such dir.
[01:35:07] <davidf> oh ok.
[01:36:07] <davidf> dave@ubuntu:~$ cd src
[01:36:08] <davidf> bash: cd: src: No such file or directory
[01:36:24] <cradek> it's inside the emc2.head directory you just checked out
[01:36:24] <davidf> whats wrong?
[01:36:35] <cradek> cd emc2.head/src
[01:37:20] <davidf> ok. The instructions just say 'from the top directory, do cd src. Probably should idiot proof that.
[01:37:42] <cradek> please edit the wiki instructions however you see fit
[01:37:59] <davidf> Now you're getting dangerous.
[01:39:16] <davidf> dave@ubuntu:~$ cd emc2.head/src
[01:39:17] <davidf> bash: cd: emc2.head/src: No such file or directory
[01:39:41] <cradek> ?
[01:39:43] <davidf> sorry...
[01:39:46] <cradek> did you do the checkout?
[01:39:56] <davidf> I think so.
[01:40:08] <cradek> it would have printed lots of files that it was getting
[01:40:14] <davidf> yes.
[01:40:15] <cradek> dave@ubuntu:~$ cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -d emc2.head emc2
[01:40:26] <cradek> this right?
[01:40:39] <cradek> that should have created a directory emc2.head
[01:41:05] <davidf> dave@ubuntu:~$ cvs -z5 -d:ext:anon@cvs.linuxcnc.org:/cvs co -d emc2.head emc2
[01:41:05] <davidf> The authenticity of host 'cvs.linuxcnc.org (206.222.212.221)' can't be established.
[01:41:05] <davidf> DSA key fingerprint is 5b:b7:3d:04:9d:dd:86:ad:dc:c6:78:81:d4:3d:05:8e.
[01:41:05] <davidf> Are you sure you want to continue connecting (yes/no)?
[01:41:08] <cradek> yes
[01:41:15] <davidf> ok
[01:41:53] <davidf> ok thats really a bunch of files.
[01:42:15] <cradek> that's all the source for emc2 and its documentation
[01:42:51] <davidf> good lord.
[01:43:07] <davidf> ok thats done.
[01:43:50] <cradek> ok you should be able to do step 2.3 now
[01:43:59] <cradek> the "top" directory is that emc2.head
[01:45:01] <davidf> configuring...
[01:46:07] <davidf> making...
[01:46:50] <cradek> I tweaked those instructions in 2.2 and 2.3
[01:48:26] <davidf> k
[01:48:41] <davidf> still doing the make
[01:48:48] <cradek> good
[01:48:54] <cradek> it might take a bit the first time
[01:49:22] <davidf> has to compile everthing the first time right?
[01:49:27] <cradek> yes
[01:50:15] <davidf> some of this is coming back to me. Did some of this years ago but its pretty foggy
[01:51:00] <davidf> got this:
[01:51:07] <davidf> You now need to run 'sudo make setuid' in order to run in place.
[01:51:07] <davidf> Password:
[01:51:07] <davidf> chown root ../bin/emc_module_helper
[01:51:07] <davidf> chmod 4750 ../bin/emc_module_helper
[01:51:07] <davidf> dave@ubuntu:~/emc2.head/src$ cd..
[01:51:07] <davidf> bash: cd..: command not found
[01:51:09] <davidf> dave@ubuntu:~/emc2.head/src$
[01:51:35] <cradek> cd ..
[01:51:50] <cradek> looks like a successful build
[01:51:58] <davidf> cd ..
[01:52:02] <davidf> ok
[01:54:13] <davidf> ok, did scripts/emc & emc came up.
[01:54:16] <davidf> :)
[01:54:18] <cradek> yay
[01:54:24] <cradek> is your custom config shown?
[01:54:27] <davidf> now try it?
[01:54:33] <cradek> yeah just run it
[01:56:19] <davidf> hmm, clicked ok & it disappeared.
[01:56:31] <cradek> what config did you choose?
[01:57:50] <davidf> custom one. Probably hit cancel by mistake. Ran it from the task bar & its up.
[01:58:05] <cradek> that's 2.0.3 then
[01:58:13] <davidf> oh.
[01:58:14] <cradek> you need to run the one in the emc2.head directory
[01:58:29] <cradek> you now have two versions, the released and the development, just like developers do
[01:58:42] <CIA-8> 03jepler 07HEAD * 10emc2/docs/NEWS: this probably bears mentioning
[01:59:35] <CIA-8> 03jepler 07HEAD * 10emc2/docs/NEWS: put items in chronological order
[02:00:18] <jepler> a 2.0 configuration won't work with the development version without changes
[02:00:31] <cradek> oh right
[02:00:43] <cradek> grnnghrngg
[02:00:53] <davidf> right. got errors.
[02:01:22] <cradek> make a copy of your config and let's fix it up
[02:01:30] <davidf> ok.
[02:01:37] <davidf> the ini?
[02:01:41] <jepler> I forget what the differences are -- I know one is to 'loadrt trivkins' but I think there's another
[02:01:42] <cradek> the whole directory
[02:01:46] <davidf> or the hal files?
[02:02:05] <cradek> if your directory is 'david' copy it to a new directory 'david.head' or something like that
[02:02:36] <cradek> this way you can run both versions by picking the appropriate config
[02:03:42] <cradek> jepler: nml file I think
[02:03:52] <cradek> and iocontrol
[02:04:11] <jepler> oh the spindle stuff?
[02:04:15] <cradek> yeah
[02:04:31] <jepler> what's a good name for a wiki page to document this? There should be one...
[02:04:44] <cradek> SorryThisIsGoingToSuck
[02:05:05] <jepler> no seriously
[02:05:08] <davidf> so what new?
[02:05:37] <cradek> UpdatingConfigurationsForDevelopmentVersions
[02:05:54] <cradek> too long?
[02:05:56] <jepler> it's long but descriptive
[02:06:08] <cradek> davidf: I think jepler's going to write a wiki page with instructions
[02:06:58] <jepler> well I'm starting one
[02:07:17] <jepler> you might not want to wait .. in fact I was hoping that you'd figure it out and I'd just write it in the wiki
[02:07:37] <cradek> ah
[02:07:39] <cradek> well let's see
[02:07:58] <cradek> copy ~/emc2.head/configs/common/emc.nml ~/emc2/configs/myconfig
[02:08:05] <cradek> err cp
[02:08:55] <davidf> done.
[02:09:14] <cradek> find the halfile that has loadrt EMCMOT in it
[02:09:25] <cradek> it's probably core_stepper.hal in your custom config
[02:09:37] <cradek> above that line put "loadrt trivkins"
[02:11:34] <cradek> if you have spindle control, find the halfile that hooks up the spindle signals, and change e.g. iocontrol.0.spindle-on to motion.spindle-on
[02:11:51] <davidf> hang on...
[02:11:53] <cradek> this might be in standard_pinout.hal
[02:11:57] <cradek> no hurry
[02:12:15] <cradek> I think this is it
[02:13:04] <davidf> when you said 'find the file that has loadrt EMCMOT in it... Did you mean find the line in myconfigs, of actually 'find the file'?
[02:13:18] <davidf> -of, + or
[02:13:28] <cradek> I did mean find the file
[02:13:40] <cradek> it could be in any hal file depending on how you organized your custom config
[02:13:46] <davidf> thinjk thats in the ini...
[02:13:54] <cradek> no it'll be a hal file
[02:13:59] <davidf> ok.
[02:14:06] <cradek> I'm guessing core_stepper.hal for you
[02:14:24] <jepler> OK, here's my first stab: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?UpdatingConfigurationsForDevelopmentVersions
[02:14:53] <davidf> well now wait a sec...
[02:15:16] <cradek> jepler: nice showing the diffs
[02:15:22] <davidf> I did the dir copy thing, but instaed of getting a dir, I got a file called myconfigs
[02:16:21] <davidf> look above just above err cp.
[02:16:41] <davidf> that made a file in that dir. Is that what you wanted?
[02:16:42] <cradek> in that command you were supposed to replace "myconfig" with the name of your config
[02:17:11] <davidf> ok, so now its myconfig. Fine.
[02:17:23] <cradek> yes we're trying to replace the emc.nml file in your config with the new one distributed with the devel source
[02:17:31] <davidf> but I thought I was copying a whole dir.
[02:17:42] <davidf> ok.
[02:17:45] <cradek> yes you were supposed to do that first, I thought you had that done
[02:18:38] <davidf> oops.
[02:18:49] <cradek> let's back up and look at the big picture
[02:18:58] <davidf> k
[02:19:10] <cradek> the idea here is to make a new config (which is a directory with some files in it) that's like the old one, but with some things updated
[02:19:27] <davidf> think I know what you want
[02:19:32] <davidf> right...
[02:19:40] <cradek> one of those things we're updating is to replace the .nml file with the one from the new source download
[02:19:45] <davidf> k
[02:20:01] <cradek> so copy the whole dir, make one right next to it with a new name
[02:21:18] <jepler> 'night guys
[02:21:24] <jepler> if you find any other items add them to that page...
[02:21:29] <jepler> and link it from somewhere
[02:21:31] <cradek> bye jepler
[02:21:39] <davidf> night
[02:21:54] <cradek> if I were as smart as jepler I'd go to bed too
[02:23:04] <davidf> so copy ~/emc2.head to ~emc2dev.head maybe?
[02:23:18] <davidf> If you want to do this later thats fine.
[02:23:22] <cradek> no
[02:23:27] <cradek> where's your custom config?
[02:23:44] <cradek> ~/emc2/configs/somename
[02:24:17] <davidf> emc2/configs
[02:24:30] <davidf> its in there.
[02:24:35] <cradek> ok what's it called
[02:25:06] <davidf> myconfig
[02:25:40] <cradek> really? that's the one you've been running in 2.0.3?
[02:25:49] <davidf> oh. no.
[02:26:41] <davidf> I have an ini file called inchMill50K.ini in the standard place.
[02:27:04] <davidf> I didnt make any new dirs.
[02:27:12] <cradek> what directory is that one in?
[02:27:18] <davidf> Just new files.
[02:27:25] <davidf> hang on.
[02:28:10] <davidf> emc2/configs/stepper-xyza
[02:28:30] <cradek> ok and that's from your home directory right?
[02:28:35] <davidf> yes
[02:28:38] <cradek> ok
[02:28:41] <cradek> cd ~/emc2/configs
[02:28:51] <cradek> cp -R stepper-xyza stepper-xyza.dev
[02:29:12] <cradek> cp ~/emc2.head/configs/common/emc.nml ~/emc2/configs/stepper-xyza.dev
[02:29:51] <davidf> done
[02:30:32] <cradek> now pull up ~/emc2/configs/stepper-xyza.dev/stepper_xyza.hal in your editor
[02:30:36] <davidf> I see. That's something like I thought you wanted.
[02:30:56] <cradek> make SURE you're changing stuff in the .dev config now
[02:31:01] <cradek> we don't want to mess up your config for 2.0.3
[02:31:02] <davidf> ok.
[02:31:16] <cradek> at about line 5 there's loadrt [EMCMOT]EMCMOT ........
[02:31:34] <cradek> above that, add a line that says "loadrt trivkins" (with no quotes)
[02:32:55] <davidf> done.
[02:33:03] <cradek> ok save and exit that file
[02:33:13] <cradek> pull up standard_pinout.hal in the same .dev directory
[02:33:31] <cradek> near the bottom find linksp spindle_on iocontrol.0.spindle-on
[02:33:41] <cradek> change "iocontrol.0" to "motion"
[02:33:48] <cradek> so it says .... motion.spindle-on
[02:34:41] <davidf> done.
[02:34:58] <cradek> ok save and exit that one too
[02:35:01] <cradek> I think we might be done
[02:35:10] <cradek> go back to ~/emc2.head and run scripts/emc
[02:35:20] <cradek> pick your .dev config and see if it starts
[02:35:26] <davidf> ok.
[02:38:20] <davidf> dave@ubuntu:~/emc2.head$ scripts/emc
[02:38:20] <davidf> EMC2 - pre-2.1 CVS HEAD
[02:38:20] <davidf> Machine configuration directory is '/home/dave/emc2/configs/stepper-xyza/'
[02:38:20] <davidf> Machine configuration file is 'inchMill50K.ini'
[02:38:20] <davidf> Starting emc...
[02:38:21] <davidf> insmod: error inserting '/home/dave/emc2.head/rtlib/motmod.ko': -1 Unknown symbol in module
[02:38:23] <davidf> HAL:5: ERROR: insmod failed, returned 1
[02:38:25] <davidf> HAL config file /home/dave/emc2/configs/stepper-xyza//stepper_xyza.hal failed.
[02:38:27] <davidf> Shutting down and cleaning up EMC...
[02:38:29] <davidf> [2]+ Terminated $EMC2_BIN_DIR/$EMCSERVER -ini $INIFILE
[02:38:31] <davidf> Cleanup done
[02:38:33] <cradek> hmm
[02:38:33] <davidf> EMC terminated with an error. You can find more information in the log files
[02:38:35] <davidf> /home/dave/emc_debug.txt
[02:38:37] <davidf> and
[02:38:41] <davidf> /home/dave/emc_print.txt
[02:38:43] <davidf> as well as in the output of the shell command 'dmesg'
[02:38:45] <davidf> dave@ubuntu:~/emc2.head$
[02:38:48] <cradek> now wait a second
[02:38:53] <cradek> you picked stepper-xyza
[02:38:58] <cradek> you need to pick stepper-xyza.dev
[02:39:17] <davidf> didnt see that. did we make that?
[02:39:22] <cradek> yes
[02:39:32] <cradek> that's the one you were just editing
[02:40:22] <cradek> ... I hope
[02:41:02] <davidf> stepper-xyza.dev is a dir...
[02:41:11] <cradek> right
[02:41:29] <cradek> emc configs are dirs with files in them
[02:41:35] <davidf> ok.
[02:41:39] <cradek> err, an emc config is a dir with some files in it
[02:41:48] <davidf> in there is inchmill50K.ini.
[02:41:52] <cradek> right
[02:42:02] <cradek> you should see that in the config chooser that comes up first
[02:42:23] <davidf> But I didnt see it in the list when emc2 ran. Let me try again. I picked the old one.
[02:42:43] <cradek> if it's not there we messed something up.
[02:43:29] <davidf> there was a file called stepper-xyza.
[02:43:46] <cradek> no it was a directory.
[02:43:54] <cradek> with your ini file in it right?
[02:44:02] <davidf> I cliked that & it ran. But I dont know if its a copy of inchMill50k or not.
[02:44:28] <davidf> well I double clicked it & emc2 ran...
[02:45:01] <davidf> no its not right. It looks like the default file.
[02:45:09] <davidf> hang onn...
[02:46:20] <cradek> your customs should be at the top of the list of configs
[02:46:51] <davidf> right got it. But it came up with a file already loaded.
[02:47:10] <davidf> emc2_axis in itallics. right?
[02:47:21] <cradek> yes that's normal
[02:47:34] <cradek> it's just for looks
[02:47:42] <cradek> but you can run it if you want
[02:47:43] <davidf> ok. Should I run that g code now?
[02:47:47] <davidf> ok.
[02:48:10] <cradek> so does your mill work now?
[02:48:27] <davidf> well we'll see.
[02:48:39] <davidf> I forgot to home the z axis
[02:48:53] <davidf> Let me stop & restart so I can see the drawing.
[02:50:41] <davidf> nice font.
[02:51:40] <davidf> success.
[02:51:48] <cradek> ok great, it runs
[02:51:52] <davidf> But that happens all the time.
[02:52:18] <davidf> Well obviously not ALL the time or we wouldnt be doing tyhis.
[02:52:25] <cradek> now the whole point of this is that there's a new error message when a particular problem with the realtime subsystem is detected
[02:52:38] <davidf> way cool.
[02:52:43] <cradek> I am hoping you get that error at the same time your axis stalls
[02:52:46] <davidf> Running again.
[02:52:55] <cradek> if so, that will confirm my suspicion about your machine still having problems.
[02:54:34] <davidf> so far its tracing back over the drawing perfectly.
[02:54:45] <cradek> ok
[02:55:03] <cradek> the feed may be too slow in that file to test your machine well
[02:55:05] <davidf> runniong 3rd time...
[02:55:20] <cradek> you could run whatever gave you problems before
[02:55:37] <davidf> no its pretty fast actually. faster than I was running
[02:55:42] <cradek> ok
[02:56:40] <davidf> but this is mostly straight lines, longer than the script lettering (lots of ver short line segments) so the accel has more time to speed up.
[02:57:10] <cradek> yeah your low accel is going to really slow you down on lots of short lines
[02:57:27] <davidf> looks like F 60 that right?
[02:57:40] <cradek> don't remember, possibly
[02:57:51] <davidf> Think my max vel in the ini is 30 right now.
[02:57:57] <cradek> ok, it's just going 30 then
[02:57:59] <davidf> looks about right.
[02:58:06] <davidf> ran well again.
[02:58:26] <cradek> you can definitely hear if it stalls right?
[02:58:35] <cradek> since the moves are short it may not be off much after a stall
[02:58:54] <davidf> see, this is what is such a pita. Wont screw up when you want it to, just whenever you think its fixed.
[02:59:17] <cradek> I don't think we could have fixed it ... you're just "lucky" right now
[02:59:25] <cradek> I'm crossing my fingers for that error
[03:00:00] <davidf> It's so cool to see it going back over the 4th time, & not be able to tell you drew it more than once.
[03:00:41] <davidf> Even after 10 or 20 homes on x & y I cant see even a hair's breadth of error with thiese home switches.
[03:00:53] <davidf> successfull again.
[03:01:14] <davidf> Geez, could it be the file I was cutting???!!!!
[03:01:28] <davidf> I swear I'll shoot myself.
[03:02:00] <davidf> Maybe I shold load that test file.
[03:02:03] <cradek> sure
[03:02:31] <davidf> still cutting emc2 axis...
[03:02:40] <cradek> but no problem in the gcode can cause stalls on a properly working machine
[03:03:12] <cradek> I'm going to get to bed
[03:03:18] <davidf> oh crap! Just got that error message and I clicked it before I read it all!
[03:03:26] <cradek> oh??
[03:03:31] <cradek> look in your dmesg
[03:03:40] <davidf> Said unexpected real-time delay.. & something else...
[03:03:45] <cradek> yayyyyy
[03:03:51] <davidf> dmsg?
[03:03:56] <cradek> dmesg|tail -10
[03:04:04] <davidf> dmesg?
[03:04:08] <cradek> yeah
[03:04:09] <davidf> in terminal?
[03:04:11] <cradek> yes
[03:04:16] <cradek> that shows the system log
[03:04:20] <cradek> the error will also be in there
[03:05:16] <davidf> is that a halcmd?
[03:05:26] <cradek> nope, it's a regular linux command
[03:05:49] <davidf> I typed dmesg|tail -10 and nothing happened.
[03:06:07] <cradek> in a terminal?
[03:06:12] <cradek> it should show some log messages
[03:06:15] <cradek> try just dmesg
[03:06:22] <davidf> just a blinking cursor on a blank line.
[03:06:45] <davidf> same thing.
[03:06:51] <cradek> there's no prompt?
[03:06:58] <davidf> no.
[03:07:11] <cradek> is that the terminal running emc?
[03:07:19] <davidf> yes.
[03:07:24] <davidf> new one?
[03:07:24] <cradek> ok it's busy, use a new one
[03:07:59] <davidf> [10560.592454] 984331: ERROR: Unexpected realtime delay; check dmesg for details.
[03:07:59] <davidf> [10560.592476]
[03:07:59] <davidf> [10560.592479] In recent history there were
[03:07:59] <davidf> [10560.592485] 723239, 722550, 724707, 724601, and 720988
[03:07:59] <davidf> [10560.592491] elapsed clocks between calls to the motion controller.
[03:08:00] <davidf> [10560.592498] This time, there were 11132841 which is so anomolously
[03:08:02] <davidf> [10560.592504] large that it probably signifies a problem with your
[03:08:04] <davidf> [10560.592510] realtime configuration. For the rest of this run of
[03:08:06] <davidf> [10560.592524] EMC, this message will be suppressed.
[03:08:08] <davidf> [10560.592528]
[03:08:16] <cradek> well there we have it
[03:08:27] <davidf> well there YOU have it maybe.
[03:08:58] <davidf> :)
[03:09:12] <cradek> your machine got lost doing something else (ignoring emc) for 10 million clock cycles
[03:09:29] <davidf> well what a goof-off.
[03:09:56] <cradek> that's .0125 seconds at 800MHz clock
[03:10:03] <davidf> geez.
[03:10:11] <cradek> did you get a stall when that happened, or were you between program runs?
[03:10:15] <davidf> q is, what?
[03:10:23] <davidf> stall.
[03:10:29] <cradek> ok
[03:10:51] <cradek> this absolutely confirms that something about your computer is incompatible with realtime
[03:11:00] <davidf> but what can take that kind of processor time?
[03:11:35] <davidf> looks like a network check of on line or something
[03:11:38] <cradek> that's what you have to figure out :-)
[03:11:53] <davidf> would a BFH help?
[03:11:59] <cradek> possibly
[03:12:10] <davidf> help me, anyway.
[03:12:40] <cradek> we've checked the obvious things, onboard video, ACPI
[03:12:49] <davidf> Too bad I'm in the basement. I could throw it out the window but its at ground level.
[03:13:02] <cradek> it wouldn't be as satisfying then I suppose
[03:13:08] <davidf> na.
[03:13:28] <davidf> There is a table saw down here though...
[03:13:38] <cradek> describe the computer to me
[03:13:56] <davidf> Well, lets see, its a piece of shit.
[03:14:02] <cradek> haha
[03:14:05] <davidf> really though.
[03:14:17] <davidf> Graphics card.
[03:14:18] <cradek> now at least you know your time would not be wasted trying a different computer
[03:14:31] <davidf> 733 MHz PIII
[03:14:54] <davidf> network card, dsl modem
[03:15:09] <davidf> Those little bus slots
[03:15:30] <cradek> any other cards in it?
[03:15:34] <davidf> no ISA slots etc
[03:15:38] <davidf> no.
[03:15:51] <davidf> integrated everthing, compaq
[03:15:55] <cradek> so the cards in it are just ethernet and video?
[03:16:10] <davidf> on board ethernet.
[03:16:13] <cradek> ok
[03:16:18] <cradek> so the only card in it is video?
[03:16:26] <davidf> integrated video, not in use.
[03:16:37] <davidf> yes, video card.
[03:16:47] <cradek> does it have onboard sound?
[03:17:26] <davidf> think so. 3 sockets for phone jacks.
[03:17:34] <cradek> maybe you should disable that in the bios
[03:17:41] <cradek> and anything else onboard that you're not using
[03:17:46] <davidf> I think I tried to do that...
[03:17:47] <cradek> are you using any of the usb?
[03:17:50] <cradek> ok
[03:18:05] <cradek> I bet your two button mouse isn't usb...
[03:18:08] <davidf> no. I disabled the usb & that didn't help either.
[03:18:12] <cradek> ok
[03:18:13] <cradek> hmmm
[03:18:40] <davidf> Then I went back to default config I think after I turned off everthing one by one to no avail.
[03:18:41] <cradek> once you've grasped at each of the straws a few times, you might just have to try another machine.
[03:18:55] <davidf> k.
[03:18:57] <cradek> does it have ide disk or scsi?
[03:19:01] <davidf> ide
[03:19:10] <cradek> regular ide or sata?
[03:19:18] <davidf> switch it over to another box?
[03:19:27] <davidf> I think regular.
[03:19:35] <davidf> But I'm not sure.
[03:19:37] <cradek> what model of video card is it?
[03:19:39] <cradek> ok
[03:20:13] <davidf> I saw that awhile ago, cant remember the name, but I think Jepler was talking about one yesterday.
[03:20:22] <cradek> lspci|grep VGA
[03:20:34] <davidf> k
[03:21:10] <davidf> 0000:02:04.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200 (rev 01)
[03:21:37] <cradek> ok
[03:21:45] <cradek> I have a G450 in mine and it's known good
[03:21:51] <cradek> I would suspect a G200 would also be ok then
[03:22:16] <cradek> I think I'm out of advice except 'try another box'
[03:22:36] <davidf> So you dont think any high level process can grab the puter's brain then huh?
[03:22:41] <cradek> if you take the video card and disc, everything will probably just work
[03:23:05] <davidf> just switch it to a new box, huh?
[03:23:20] <cradek> something is sure grabbing the CPU for a long time (.01 seconds), we just don't know what
[03:23:39] <cradek> I bet that's dozens of step pulses missing
[03:23:48] <cradek> no wonder it stalls
[03:24:06] <davidf> Is there some way to list all the processes currently running (like the windows task manager?
[03:24:16] <cradek> yes but none of those are the culprit
[03:24:25] <cradek> something's taking the CPU completely away from Linux
[03:24:41] <davidf> trojan?
[03:24:45] <cradek> it's a piece of hardware or programming in the system bios
[03:25:12] <cradek> no, it's actually in the hardware somewhere beneath all the software.
[03:25:42] <davidf> like dma memory refresh
[03:25:46] <davidf> ?
[03:25:54] <cradek> yes it could be something doing lots of dma
[03:26:08] <davidf> that shouldnt take that long though.
[03:26:20] <davidf> for mem refresh
[03:26:30] <cradek> I think onboard video does that (suspends the processor, moves some memory blocks around)
[03:26:44] <cradek> no but it's something at that level that's wrong.
[03:27:14] <cradek> ok it's bedtime
[03:27:16] <davidf> ok, well, Why dont I let you off the hook till tomorrow
[03:27:23] <cradek> now you know what you have to do next
[03:27:30] <davidf> or forever if you want of course.
[03:27:34] <cradek> heh
[03:27:38] <cradek> I want to see this resolved too
[03:27:44] <davidf> right. where's that BFH?
[03:27:59] <cradek> actually I think this is great news
[03:28:10] <cradek> we have a nice test in emc that detects problems that were invisible before
[03:28:14] <davidf> Thanks Chris. Youre the best.
[03:28:20] <cradek> visible problems are MUCH easier to fix.
[03:28:27] <davidf> Yes that is really neat. Great job.
[03:28:33] <cradek> you now have a visible problem and you'll KNOW when it's fixed because the error will be gone.
[03:28:41] <davidf> yep.
[03:28:57] <cradek> ok goodnight, keep us posted, jmk will be happy to hear about this too
[03:29:09] <davidf> Still cant believe how downright NICE you guys all are.
[03:29:26] <cradek> oh did I forget to send you my consulting bill!?
[03:29:26] <davidf> goodnight & thankls loads.
[03:29:28] <cradek> haha
[03:29:31] <cradek> welcome
[03:29:47] <davidf> No problem. I'll put it in the stack.
[03:30:00] <davidf> 'nite.
[08:43:36] <code3r> looking for cheap hardware to develop a home machine using linux and EMC any direction would be great... I have a mini mill I made using floppy steppers and parallel port now I am hungry for more...
[11:52:58] <A-L-P-H-A> how does this sound as a backup solution?
[11:53:07] <A-L-P-H-A> use 7zip, to compress files.
[11:53:31] <A-L-P-H-A> use par2, to create recovery archives as well, just incase the DVD gets scratched (25% recovery method).
[11:54:11] <A-L-P-H-A> so 25% of the total data can be fubared, but since I have the par2s, I could recover whatever was missing.
[11:54:32] <A-L-P-H-A> http://en.wikipedia.org/wiki/PAR2
[11:54:44] <A-L-P-H-A> http://en.wikipedia.org/wiki/7zip
[13:25:21] <EvertL> To keep you guys informed: I have finally finished my rtnet driver for HAL. We are now going to run some tests on it to test its performance - if you are very interested and don't mind the pretty long installation procedure, you're welcome to test with us
[13:34:46] <SWPadnos> EvertL, yay!
[13:34:52] <EvertL> :)
[13:36:43] <SWPadnos> one day, I'll want to test
[13:37:52] <SWPadnos> I may want to look at it next week, though I won't be able to do any testing since the only time I'll have will be on a plane (and I'm not sure I can take a network as carry-on)
[13:39:03] <SWPadnos> glarrrrgh - I can't believe this. my cell phone now says "Unauthorized Charger" when I plug it into the computer to charge
[13:41:58] <jepler> hahahaa
[13:42:10] <SWPadnos> it used to work!
[13:42:39] <jepler> also, "glarrrrgh" sounds like a pretty funny screensaver
[13:42:44] <SWPadnos> her I was, thinking it would say "Charge Complete". like it does every other time
[13:42:46] <SWPadnos> heh
[13:43:03] <SWPadnos> rendered 3D arrrrrrgh
[13:44:19] <cradek_> cradek_ is now known as cradek
[13:46:03] <andrewm1973> evening (or morning) all
[13:46:17] <SWPadnos> hi andrewm1973
[13:46:49] <jepler> morning where I am...
[13:47:03] <andrewm1973> I think there is a problem with the emc2-instal.sh script for breezy badger. It has www.linuxcnc.COM in it.
[13:48:03] <jepler> oops! that would be a mistake.
[13:49:47] <andrewm1973> yeah - I changed it to .org and the "update" was still looking for .com.... so I looked in the sources.list file the GREP added something to. And it was inthere as COM from the first attempt to run.
[13:50:35] <cradek> SWPadnos: can you fix it?
[13:50:50] <andrewm1973> Then I hadto argue with ubuntu that I could not work out how to become super user in - till I found an ubuntu forum that told me just to use some magic synaptic manager thing
[13:50:54] <andrewm1973> and it is all good now
[13:53:00] <andrewm1973> Who do I contact so someone can fix up the file that people will download. (save others having the same problem)
[13:53:25] <cradek> let me see if I can fix it
[13:54:33] <andrewm1973> Up till tonight I was just playing with a live-CD. This is the first time I tried a permanent inst.
[13:55:38] <SWPadnos> sorry - fix the script? where is it?
[13:55:57] <cradek> on linuxcnc.org somewhere
[13:56:07] <SWPadnos> heh - ok
[13:56:09] <cradek> I think I have a login there - I'm looking for it
[13:56:22] <SWPadnos> I can log in to fix the problem. if I know where it is
[13:57:05] <cradek> http://linuxcnc.org/emc2-install.sh
[13:57:11] <cradek> http://linuxcnc.org/dapper/emc2-install.sh
[13:57:23] <andrewm1973> http://www.linuxcnc.org/emc2-install.sh
[13:57:35] <SWPadnos> ok
[13:57:37] <andrewm1973> oops - you beat me to it.
[13:57:40] <cradek> be sure to check both
[13:58:52] <andrewm1973> I just rebooted the linux machine and am pretending to cut up a 3d-Chips in AXIS-Sim now - so all worked out good in the end :D
[14:01:17] <andrewm1973> Now I just need to build my etch-servo circuit board and I can play in real life.
[14:01:19] <SWPadnos> ok. fixed the one at root level. is there a reason the breezy script is in the root and the dapper script is in the dapper/ dir ?
[14:02:34] <SWPadnos> (the one in dapper/ was OK already)
[14:03:13] <jepler> SWPadnos: history? once there was only one, now there are two
[14:03:18] <SWPadnos> heh
[14:03:49] <SWPadnos> I suppose they could have descriptive names like emc2-dapper-install.sh and emc2-breezy-install.sh instead
[14:04:45] <jepler> or one script could detect the distribution
[14:05:10] <andrewm1973> Could there be some legacy reason to not have a different name for them ?
[14:05:12] <SWPadnos> hey - that might actually reduce workload when new Ubuntu releases come out ;)
[14:05:46] <SWPadnos> (though we'd probably need 6 or 7 releases to make up for the extra effort for detection)
[14:06:18] <SWPadnos> andrewm1973, I don't think so, except that the wiki instructions remain the same after the download step (ie, "run emc2-install.sh")
[14:07:34] <jepler> SWPadnos: then you have to add detecting whether the packages are available for that distribution
[14:07:37] <jepler> (. /etc/lsb-release; echo $DISTRIB_CODENAME)
[14:09:07] <SWPadnos> sure. I guess we'd need an automated patch-and-release system as well - one that tracks changes to the kernel, RTAI, and emc, and makes new LiveCDs and debs whenever needed
[14:09:24] <andrewm1973> well guys - thanks for gettign that fixed up.
[14:09:24] <SWPadnos> or we can just have a second copy of emc2-install.sh in breezy/ ;)
[14:09:45] <SWPadnos> sure. thanks for pointing it out
[14:10:01] <andrewm1973> It's past midnight here and I think I should go have a kip.
[14:10:20] <SWPadnos> a kip? hmmm
[14:10:44] <andrewm1973> kip = sleep (kinda)
[14:10:48] <SWPadnos> nap
[14:10:52] <SWPadnos> ?
[14:13:32] <jepler> the internet says ... http://www.worldwidewords.org/qa/qa-kip1.htm
[14:15:49] <SWPadnos> heh
[14:17:51] <jepler> skunkworks: what's up?
[14:21:08] <skunkworks> not much
[14:21:22] <skunkworks> trying to make it tru a friday without too may issue
[14:21:24] <skunkworks> issues
[14:21:34] <jepler> through?
[14:21:41] <CIA-8> 03jepler 07HEAD * 10emc2/src/emc/task/emctaskmain.cc:
[14:21:41] <CIA-8> introduce a new internal flag, emcTaskEager, which is set whenever task is in
[14:21:41] <CIA-8> the process of adding new segments to the queue. Halscope debug traces show
[14:21:41] <CIA-8> that running 'spiral.ngc', the tcqLen() rises to 1000 in about 1 second (and
[14:21:41] <CIA-8> should be relatively independent of [TASK]CYCLE_TIME), while the old code might
[14:21:41] <CIA-8> enqueue as few as 30 per second.
[14:22:12] <skunkworks> sorry - yes
[14:22:42] <skunkworks> you have missed my spelling issues - haven't you?
[14:22:52] <skunkworks> :)
[14:23:56] <skunkworks> jepler: how is the etch-o-sketch? have you got an itch for a mill or lathe?
[14:24:03] <skunkworks> yet?
[14:30:36] <lerneaen_hydra> lerneaen_hydra is now known as lerneaen_hydra_s
[14:30:39] <lerneaen_hydra_s> hmm
[14:30:46] <lerneaen_hydra_s> lerneaen_hydra_s is now known as hydra_school
[14:30:50] <hydra_school> that's better
[14:36:51] <jepler> skunkworks: I still haven't run it since the end of 'fest
[14:41:00] <skunkworks> still need to solder the wires back on the encoder?
[14:51:05] <hydra_school> 'lo
[14:51:13] <hydra_school> logger_aj, bookmark
[14:51:13] <hydra_school> See http://81.196.65.201/irc/irc.freenode.net:6667/emc/2006-09-01#T14-51-13
[14:57:19] <jepler> skunkworks: I did that and tested that the quadrature inputs worked again, but never actually ran it
[14:57:54] <jepler> and I even had something interesting in mind to do: skip using g-code at all, and use 'siggen' to make it generate spirograph-type designs
[15:33:31] <davidf> jepler, cradek helped me a lot last nite. We found an RT error with dmesg while emc ran. .01 sec. lost uP time. Good job!
[15:36:31] <jepler> yeah I saw the end of that conversation still on my screen this morning
[15:36:47] <davidf> Its a real nice thing.
[15:37:20] <davidf> I noticed it also gives a lot of info on what's on the system... more than the bios setup
[15:38:02] <davidf> One thing I saw was Bluetooth. Could that be a problem, & could you please tell me what it is?
[15:39:13] <davidf> Or anyone?
[15:40:35] <SWPadnos> bluetooth is a short-range wireless communications system
[15:41:31] <davidf> that's what I thought. Didn't know I had that. Must be built in to the MB. Didn't see anything in the Bios about it to turn it off.
[15:41:35] <davidf> Thanks SWPadnos
[15:41:54] <SWPadnos> you probably don't have the hardware, just the driver loading (just in case)
[15:42:11] <davidf> oh. ok.
[15:42:16] <SWPadnos> unless it's a laptop (which it isn't, IIRC)
[15:42:35] <davidf> right its a tower.
[15:42:44] <SWPadnos> there are a zillion things that are enabled by default, so they "just work"
[15:43:23] <SWPadnos> some day, one of us should put up a wiki page on "disabling all that unnecessary and possibly harmful stuff"
[15:45:08] <davidf> That would be great. yeah, if I understood more, the dmesg output might give a clue to what might be the problem. It is really nice but I'm clueless about most of it.
[15:45:41] <davidf> That would be great. Yeah, if I understood more, the dmesg output might give a clue to what might be the problem. It is really nice but I'm clueless about most of it.
[16:28:48] <Lerneaen_Hydra> 'lo
[16:49:19] <bill20r3> yo.
[16:51:08] <skunkworks> hey bill - how is the mill coming?
[16:51:20] <skunkworks> any new pictures?
[16:51:34] <bill20r3> slowly.
[16:51:48] <bill20r3> I drilled mounting holes in the motor-mount plate and they were spaced wrong.
[16:51:55] <bill20r3> got pretty frustrated and took some time off from it.
[16:52:08] <bill20r3> measuring stuff is hard. :-|
[16:53:05] <bill20r3> do you know roughly how critical the tolerances for power mosfet's?
[16:54:22] <A-L-P-H-4> what tolerances?
[16:54:52] <bill20r3> I dont know really, I let the smoke out of a IRLML6402 mosfet, and I'm trying to find a replacement
[16:54:55] <bill20r3> hopefully locally.
[16:55:03] <A-L-P-H-4> oh.
[16:55:13] <A-L-P-H-4> well... once the genie's out... it's out for good.
[16:55:20] <bill20r3> it's a SMD part, but I could use a non-smd replacement if I could find one.
[16:55:23] <A-L-P-H-4> it's not like the cartoons, where they can get it back in.
[16:55:31] <bill20r3> but I just dont know how much wiggle room I've got with the numbers.
[16:55:43] <A-L-P-H-4> depends on the whole board.
[16:55:46] <A-L-P-H-4> who made it?
[16:56:00] <bill20r3> it's an olimex AVR development board, AVR-P40-USB.
[16:56:25] <bill20r3> http://www.olimex.com/dev/avr-p40-usb-8535.html
[16:57:26] <A-L-P-H-4> and where's this smd part?
[16:57:50] <A-L-P-H-4> the little black thing between what looks to be a transistor, and resistor?
[16:59:25] <bill20r3> it's not in that picture, and not in the schematic.
[16:59:35] <bill20r3> (that schematic is out of date)
[16:59:50] <bill20r3> but I found the part number on another similar board that they make.
[17:00:29] <bill20r3> at the top-center of this: http://www.olimex.com/dev/images/pic-p40-usb-sch.gif
[17:01:03] <bill20r3> "FET1"
[18:08:03] <jepler> bill20r3: that FET is just for enabling the microcontroller once the USB negotiation has happened? If you don't care about obeying the USB spec, just unsolder it and short together the source and drain, or whatever they're called on a FET
[18:08:48] <SWPadnos> except that if it blew up, there may be another problem (since USB can only source 500 mA, in theory)
[18:09:28] <bill20r3> the usb programming part still works, but the board doesnt work normally.
[18:09:31] <bill20r3> it's wierd.
[18:09:39] <bill20r3> so I can burn code to a chip, but can't run it.
[18:09:58] <SWPadnos> burn via USB, or via the 10-pin header?
[18:10:04] <bill20r3> the 10pin
[18:10:19] <SWPadnos> powered from USB, or from the programming dongle/board?
[18:10:20] <jepler> it looks like 5V is supplied through the 10-pin header
[18:10:23] <bill20r3> the usb is just a serial port(connected to the avr), and power source.
[18:10:36] <bill20r3> the 5v comes from the usb.
[18:10:59] <bill20r3> the jtag dongle is optoisolated, so it gets power from the dev-board
[18:11:04] <jepler> pin 2 of ICSP is connected to +5V ...
[18:11:32] <SWPadnos> ISP isnt' JTAG
[18:11:36] <SWPadnos> isn't
[18:11:42] <jepler> if you plug it in to USB and measure the voltage at U1 pin 11 is it +5V? I suppose the FET could have failed as a short
[18:11:57] <bill20r3> it's a dual-purpose dongle, I referred tothe wrong purpose. :-)
[18:12:02] <jepler> but then you'd expect the whole thing to work...
[18:12:12] <bill20r3> I haven't put a meter to it yet.
[18:12:53] <SWPadnos> the photo on the product page is wrong - it doesn't show the FT232 chip in the board (unless it's tiny and hdden by the USB connector)
[18:13:21] <bill20r3> yeah, it is wrong.
[18:13:47] <bill20r3> and the schematic for the avr version is wrong too, only the pic version of that board has FET1 on the schematic.
[18:14:07] <bill20r3> the ft232 chip is on the bottom
[18:14:36] <bill20r3> a Fet is *basicially* a transistor, right?
[18:17:35] <jepler> yes, it's a kind of transistor, but it has some special characteristics
[18:17:54] <bill20r3> ok. I'm just trying to work out it's purpose, in head.
[18:18:05] <jepler> its purpose is to turn on power to the rest of the circuit once USB negotiation has been performed and turn it off if the USB device is told to enter sleep mode
[18:18:26] <jepler> USB permits small current before negotiation (10mA?) and tiny current (in the range of nA) for most devices in sleep mode
[18:18:43] <bill20r3> ahh. so the avr wont start executing anything until the usb negotation is done?
[18:18:50] <jepler> yes
[18:18:59] <bill20r3> that makes sense, especially if your code uses the rs232 port.
[18:19:28] <bill20r3> so the usb chip isn't switched, but the AVR is, and that 'switch' is broken.
[18:20:00] <jepler> well that doesn't explain why you'd still be able to reprogram the device
[18:20:38] <jepler> that's why I suggested you measure Vcc at the AVR, to determine if the FET failed open or shorted
[18:20:41] <bill20r3> yeah, I'll have to read up on what pins get used during the flashing.
[18:21:03] <bill20r3> * bill20r3 looks around for a usb cable.
[18:43:21] <bill20r3> about 3.7v on vcc, the datasheet says it wants 4.5-5.5
[18:44:56] <jepler> that could explain why it's kinda working
[18:45:17] <jepler> which avr is it?
[18:45:31] <bill20r3> atmega16
[18:47:40] <jepler> the other way that you can accidentally power an AVR is through the I/O pins
[18:48:41] <jepler> they contain protection diodes that are internally connected to VCC,
[18:49:12] <jepler> so if you have a logic 1 on one of the pins of the ft232 that's connected to the AVR, that could be the source of this 3.7v you're measuring
[18:49:24] <bill20r3> ah.
[18:49:38] <bill20r3> in either case, I need to replace that fet
[18:50:25] <jepler> I think so
[18:51:14] <jepler> I do think you're likely to get away with replacing it with a jumper...
[18:52:21] <jepler> (see page 50 of http://atmel.com/dyn/resources/prod_documents/doc2466.pdf if you didn't follow what I said about the diode to vcc)
[18:52:23] <bill20r3> as long as I'm not doing anything that uses the rs232 immediatly on boot?
[18:54:19] <jepler> it's true that you'd be sure to lose a power-on identification string or the like
[18:54:50] <bill20r3> I'm not using the rs232 at all anyway
[18:55:54] <jepler> then another option would be to power it from a wall-wart or somethingand not plug in the USB at all
[18:56:12] <bill20r3> yeah
[18:56:29] <bill20r3> thanks for your help w/ this, I gotta go eat.
[18:59:45] <jepler> see you
[19:06:46] <alex_joni> hello
[19:11:50] <jepler> hi alex_joni
[19:12:53] <skunkworks> Hi alex_joni
[19:15:52] <alex_joni> hi guys.. finally home ;)
[19:18:41] <jepler> good
[19:18:49] <jepler> it's the start of a 3-day weekend here in the US
[19:20:02] <skunkworks> give me another 2 hours and it will be the start
[19:20:59] <alex_joni> monday too?
[19:22:13] <jepler> well, true, it's 2 or more hours before the end of work .. but who's working?
[19:26:12] <cradek> not me - dave just woke me up emptying the trash
[19:26:37] <SWPadnos> need more coffee so you're alive after work? ;)
[19:26:48] <SWPadnos> err - after "work"
[19:27:13] <jepler> cradek: the secret is to not look too startled
[19:27:27] <SWPadnos> and to rest on a napkin, so there's no drool when you sit up
[19:27:30] <cradek> I sure screwed it up then
[19:29:29] <SWPadnos> though the napkin sticking to your cheek would be a dead giveaway
[19:29:47] <davidf> hi
[19:30:22] <SWPadnos> hmmm - should I get the $66 Athlon 64 FX3000, or the $669 Opteron 180?
[19:30:25] <SWPadnos> decisions, decisions
[19:30:50] <cradek> hi davidf
[19:31:07] <davidf> hey cradek
[19:31:12] <SWPadnos> hi davidf
[19:31:23] <davidf> hi.
[19:31:52] <davidf> Any of you guys know if its podssible to put a 20 Gig HD in a PII?
[19:32:09] <cradek> sure I think so
[19:32:24] <davidf> Cant get it to work. Tried 2 diff ones.
[19:32:33] <SWPadnos> as long as you have the correct interface, which at the PII era was almost assuredly IDE (or SCSI)
[19:32:34] <cradek> what problem does it have?
[19:32:50] <davidf> I got the one to see the drive & start linux, but got some errors
[19:32:57] <davidf> IDE.
[19:33:06] <cradek> what errors?
[19:33:59] <cradek> brb
[19:34:14] <davidf> It gets as far as loading modules, and stops with Alert - /dev/hdb1 does not exist, then drops to a shell.
[19:34:37] <SWPadnos> you should configure it as a master drive
[19:34:42] <SWPadnos> that should be hda1
[19:34:45] <davidf> then I get Cant access tty job control turned off.
[19:35:09] <SWPadnos> what other IDE devices are in this machine?
[19:35:20] <davidf> pretty sure it is hdb1 but I can hook it back up & try it again.
[19:35:36] <davidf> none I think. Has a CD rom
[19:35:43] <SWPadnos> that would be one ;)
[19:35:45] <davidf> floppy.
[19:35:52] <davidf> oh well.
[19:36:11] <SWPadnos> and you're not connecting this in addition to another drive, right? (ie, you replaced the drive that was there with this one)
[19:36:28] <davidf> right.
[19:36:45] <SWPadnos> is it connected at the end of the cable, or at the middle connector?
[19:36:57] <davidf> tried both.
[19:37:04] <SWPadnos> ok. it should be at the end
[19:37:24] <davidf> also tried jumper setting for enable cable select as to master / slave.
[19:37:40] <SWPadnos> the drive probably has a set of 3 jumper positions, labeled something like Master, Slave, Cable select (or MA SL CS)
[19:37:52] <SWPadnos> only MA / master shuold be jumpered
[19:37:54] <SWPadnos> should
[19:38:20] <davidf> And also jumpered as single drive, master, and master with non-ata slave (I think thats what it says)
[19:38:47] <davidf> Interesting thing, maybe this might help,
[19:38:48] <SWPadnos> ok - single drive is proper then
[19:38:59] <SWPadnos> unless the CD-ROM is connected to the same cable
[19:39:27] <davidf> no, different cable.
[19:39:30] <SWPadnos> ok
[19:40:39] <acemi> it should be slave, not master
[19:40:50] <davidf> I have to have a jumper on one setting to even see it on the PII, but I get that error. I get the same error on the PIII with that jumper setting, and I have to take all the jumpers off to work right on the PIII
[19:40:52] <SWPadnos> not as the only drive on a chain, I think
[19:41:54] <davidf> Slave setting is no jumper, and the box doesnt see it at all that way.
[19:42:24] <davidf> The other P2 I have doesnt see it no matter what.
[19:42:28] <acemi> but module is looking for /dev/hdb1
[19:42:41] <davidf> yes...
[19:42:45] <SWPadnos> it shuoldn't be - that's what made me think the drive wasa slave
[19:43:19] <davidf> Actually, SWPadnos I think that makes sense now.
[19:43:46] <davidf> Lets see, I installed linux with this drive in a PIII just as it came.
[19:44:15] <davidf> The drive had no jumpers. So that means it was set as slave at install.
[19:45:10] <davidf> So linux is looking for a slave on the P3, and the P2 needs a master. Hmm?
[19:45:38] <SWPadnos> sort of, but if you put a master in there, it won't boot from the slave
[19:46:30] <SWPadnos> the newer machine is probably a bit more forgiving of where the boot disk is
[19:46:42] <davidf> Can I change the linux sys to see it as a master and set the jumper for that? ie look for /dev/hda1?
[19:46:57] <alex_joni> davidf: several changes needed for that
[19:46:59] <alex_joni> not trivial
[19:47:04] <SWPadnos> erm - well. I suspect that's harder than reinstalling ;)
[19:47:09] <alex_joni> lots
[19:47:18] <davidf> nuf said.
[19:47:30] <alex_joni> you need to update the bootmanager, then edit /etc/fstab and probably some other places too
[19:47:32] <SWPadnos> the good news is that once you reinstall as hda, you'll be able to move the drive back and forth like we said ;)
[19:47:42] <SWPadnos> initrd comes to mind as well
[19:47:45] <alex_joni> you can do it, but only with another running linux in place
[19:48:01] <alex_joni> SWPadnos: I don't think initrd needs to change
[19:48:16] <SWPadnos> or boot it in the PIII, make the changes, then set it as master and hope nothing is screwed up
[19:48:21] <alex_joni> it only holds modules and such
[19:49:25] <davidf> Well if it does, then I reinstall anyway.
[19:50:07] <davidf> I was just hoping not to have to back up a lot of email, data, etc.
[19:50:48] <alex_joni> davidf: it's probably best if you do before fiddling with it
[19:51:15] <alex_joni> * alex_joni heads to bed early
[19:51:18] <SWPadnos> what about the other drive you tried?
[19:51:20] <alex_joni> have a good weekend guys
[19:51:35] <SWPadnos> see you Alex
[19:51:46] <Lerneaen_Hydra> bye
[19:51:49] <Lerneaen_Hydra> änight
[19:51:51] <Lerneaen_Hydra> 'night
[19:51:56] <davidf> Maybe I'll just buy another used drive & install a new linux / emc on that for the P2 & keep this as utility.
[19:52:01] <davidf> nite alex_joni
[19:52:39] <davidf> SWPadnos, not sure what drive you mean?
[19:52:49] <SWPadnos> you said you tried two drives
[19:53:17] <davidf> Just the one drive back & forth between boxes. The orig P2 drive has win 98 I'd like to keep.
[19:53:36] <SWPadnos> ah - ok. my misunderstanding
[19:54:00] <SWPadnos> didn't you install ubuntu to some drive though?
[19:54:24] <davidf> yes, a 20 Gig Seagate. Thats the one we are discussing
[19:54:52] <SWPadnos> so what needs to be backed up for you to do a reinstall on that drive (once it's jumpered as master)?
[19:55:34] <davidf> email is really the main thing I cant get over again.
[19:56:01] <davidf> and some G code files
[19:56:12] <davidf> The rest I can dl again.
[19:56:30] <SWPadnos> I'd stick it in the PIII, and pull off whatever you need
[19:56:48] <SWPadnos> it shouldn't matter that it stalls running emc ;)
[19:57:02] <davidf> right
[19:58:06] <davidf> && then set it as master & reinstall?
[19:58:30] <SWPadnos> yep. that's what I'd do (assuming I'm restricted to using hardware on hand ;) )
[19:59:07] <davidf> prety much the case right now.
[19:59:31] <davidf> Hate to have to go from a 733 P3 to a 466 P2 though.
[19:59:45] <davidf> Such is life.
[20:00:55] <davidf> Maybe I'll get brave and try partitioning the 6 gig on the windows box & put linux there.
[20:01:39] <davidf> Anyway thanks SWPadnos cradek et al
[20:01:44] <davidf> bbl
[20:02:10] <SWPadnos> sure - good luck
[20:03:56] <acemi> if you use map command in grub config, maybe it'll work
[20:04:44] <SWPadnos> it seems to start booting, but it's looking for /dev/hdb1 later in the boot (like at mount time or something)
[20:05:41] <acemi> with map command he can show master disk as /dev/hdb
[20:17:12] <Lerneaen_Hydra> 'night
[20:17:41] <jepler> see you Lerneaen_Hydra
[20:17:52] <Lerneaen_Hydra> bye
[20:17:58] <Lerneaen_Hydra> I'll be here tomorrow
[20:18:07] <jepler> skunkworks: the userspace 'task' program does a little work and then sleeps for [TASK]CYCLE_TIME
[20:22:51] <davidf> acemi you still there?
[20:23:04] <acemi> yes
[20:23:27] <davidf> so how hard would that be ?
[20:23:47] <davidf> I dont know my way around linux.
[20:24:17] <acemi> you have to boot with PIII and then you have to edit /boot/grub/menu.lst
[20:24:37] <davidf> Im on that box now.
[20:25:30] <acemi> did you open the file?
[20:25:38] <davidf> but if I mess up I better have stuff backed up I guess.
[20:26:08] <davidf> yes, menu.lst ?
[20:26:18] <acemi> yes
[20:26:19] <cradek> back up your emc configs before you do much more
[20:26:51] <davidf> I have emails & other stuff to do too. That'l take awhile.
[20:27:12] <davidf> is it just a one liner, or what?
[20:28:57] <acemi> http://www.linuxquestions.org/questions/showthread.php?s=46d991790d933d189366259166a0382b&p=2391150#post2391150
[20:29:06] <acemi> there is an example here
[20:29:13] <davidf> thanks!
[20:29:37] <acemi> my english is not good, i can explain easyly
[20:30:16] <acemi> -> i can't
[20:31:39] <davidf> np
[20:32:52] <davidf> So I really just need:
[20:32:55] <davidf> map (hd1) (hd0)
[20:32:55] <davidf> map (hd0) (hd1)
[20:33:08] <davidf> and that's all?
[20:33:28] <acemi> you must change the root() line too
[20:33:55] <davidf> root (hd1,0)
[20:34:09] <davidf> (ahead of those 2.)
[20:34:14] <davidf> right?
[20:34:15] <acemi> it'll be root(hd0,0)
[20:34:26] <davidf> ok.
[20:34:40] <acemi> because your disk will be master disk
[20:34:57] <acemi> but with map, you show it as slave
[20:35:39] <davidf> think I can do that. Better back up first. Worth a try. Thanks.
[20:36:01] <acemi> np
[20:36:15] <davidf> ok bbl.
[20:36:20] <davidf> bye
[20:36:26] <acemi> bye
[21:47:23] <dmessier> hi all
[22:17:25] <davidf> hi
[22:17:35] <davidf> acemi there?
[22:20:28] <davidf> SWPadnos, Hate to bother you again, but I'm about to do something I better ask someone to look at first
[22:20:49] <davidf> # title Linux
[22:20:49] <davidf> # root (hd0,1)
[22:20:49] <davidf> # kernel /vmlinuz root=/dev/hda2 ro
[22:20:49] <davidf> #
[22:20:49] <davidf> root (hd0,0)
[22:20:50] <davidf> map (hd1,hd0)
[22:20:52] <davidf> map (hd0,hd1)
[22:21:14] <davidf> Is that gonna break somthin?
[22:26:48] <davidf> cradek?
[22:27:33] <davidf> bbl