#linuxcnc-devel | Logs for 2014-02-17

[09:06:43] <dgarr> is this a correct way to add a udev rules file to a deb package? http://www.panix.com/~dgarrett/stuff/0001-xhc-hb04-udev-rules-file.patch
[09:11:07] <cradek> dgarr: I think sticking it in debian/extras/etc/udev/rules.d would be better
[09:11:45] <cradek> dgarr: that way it gets registered as a file in the installed package, instead of appearing as a side-effect
[09:12:02] <cradek> the limits.conf hackery is probably because that file exists with or without us
[09:13:44] <dgarr> so one just puts the file in a (new directory) debian/extras/etc/udev/rules.d ?
[09:15:07] <cradek> I think so. you might also have to list it in a .files file?
[09:16:23] <cradek> ah, you have to list it in debian/extras/linuxcnc.files, I bet
[09:18:41] <dgarr> ok-- thankyou i'll try it in the test branch
[09:25:27] <KGB-linuxcnc> 03Dewey Garrett 05xhc-hb04 026b112 06linuxcnc 03debian/extras/etc/udev/rules.d/90-xhc.rules 10debian/extras/linuxcnc.files xhc-hb04: udev rules file * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=026b112
[11:33:20] <dgarr> cradek adding file to extras/etc/udev/rules.d worked , tested debs for precise and lucid. the install even prompts for permission if it is about to overwrite a user installed rules file of same name -- thanks again
[11:34:43] <cradek> I like that prompting feature for what the deb calls "config files" (things in etc?) - also if you modify it, it'll detect that when you upgrade, and ask you what to do
[11:35:55] <zeeshan> is kirk wallace in here? :p
[11:36:24] <zeeshan> kwallace ;p
[11:36:25] <cradek> he's one of us old-timers who use our names, so you ought to be able to pick him out of the crowd
[11:36:53] <zeeshan> i use my real name too
[11:36:57] <zeeshan> but im only 29 ;p
[11:37:29] <skunkworks_> I smell
[11:37:40] <archivist> I is old but hide under a nick
[11:38:03] <zeeshan> is mr wallace active in here usuaully? ;p
[11:40:03] <pcw_home> he's here occasionally
[11:44:02] <archivist> zeeshan, you need training to leave irc on so you see replies
[11:44:26] <zeeshan> archivist: i wasn't expecting him to use his real name ;p
[11:49:01] <dgarr> a problem with reassignment of fd2 in axis, with git bisect result: http://www.panix.com/~dgarrett/stuff/fd2_connection.txt
[11:49:09] <dgarr> Any ideas? jepler ^^
[11:52:31] <skunkworks_> cradek, did you see why the path following wasn't changing on 10.04?
[12:04:19] <KGB-linuxcnc> 03Dewey Garrett 05xhc-hb04 7737af9 06linuxcnc 10configs/sim/axis/xhc-hb04/README xhc-hb04: update README for udev rules now in deb * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=7737af9
[13:03:48] <Connor> Heya, Trying to build a user_comp from someones branch..
[13:05:31] <Connor> https://github.com/OKComputers/linuxcnc-mirror/tree/wj200_vfd
[13:05:38] <zeeshan> are you getting crazy errors like i was last night when building my mvx9000 vfd driver
[13:05:57] <Connor> No. It's just not compiling it from what I can tell.
[13:06:17] <Connor> and I couldn't run the ./configure in his branch cause it didn't exist
[13:07:32] <zeeshan> did you run autoconf in the src folder?
[13:07:44] <zeeshan> he's got a configure.in in there
[13:08:39] <Connor> wonder what src this was built from.. if it was 2.5 or master
[13:09:16] <Connor> I don't want to have to build this for Pete every time a new master comes out...
[13:09:59] <Connor> okay.. building HIS version now.. we'll see if it compiles it..
[13:10:11] <Connor> then.. to figure out how to get it to compile against the current master.
[13:10:12] <pcw_home> isn't most comp code generic (well +- modbus dependencies)
[13:10:36] <Connor> I would hope so.. so once it's built.. he should be good ?
[13:11:36] <pcw_home> the things I tried had portable source
[13:12:02] <Connor> okay.. so.. compiled the src.. still don't see a .so file for the custom component..
[13:12:11] <zeeshan> not hidding in .o?
[13:12:11] <zeeshan> :p
[13:12:30] <Connor> I don't see anything.. no .o no .so
[13:12:35] <Connor> just the src files..
[13:12:39] <zeeshan> no i mean in the .o hidden folder
[13:12:44] <zeeshan> in the same folder you're compiling
[13:13:12] <Connor> dont see a .o folder
[13:13:18] <Connor> ls -la
[13:13:50] <zeeshan> from what im seeing in the make file
[13:14:32] <zeeshan> things like boss_plc.so for example is going to be in the hal/components folder
[13:14:36] <zeeshan> if it compiled right
[13:15:12] <zeeshan> i mean boss_plc.o
[13:15:34] <Connor> wonder if it's not making it because i'm having to do it in simulator mode ?
[13:19:52] <zee-CNC> if (*(haldata->forwardreverse)){
[13:19:52] <zee-CNC> command = 0b00100000;
[13:22:43] <zeeshan> okay for the address 0706H , my vfd expects a communication command that is in the format: bit 0-1: 00 for no function, 01 for stop, 10 for run, 11 for jog+run. bit 2-3: Reserved. bit 4-5: 00 no function, 01 forward, 10 reverse, 11 change direction. bit 6-15: reserved
[13:25:21] <zeeshan> 0b00100000 <- what is the 'b' doing in here -- shouldnt it be 10 to put the VFD in run state? that way bits 4-5 which are set to 10 would mean the motor is going to spin in reverse state?
[13:25:59] <zeeshan> it's been a while since i've programmed :P
[13:27:41] <pcw_home> b is binary
[13:28:00] <KimK> 0b is a prefix denoting that what follos should be interpreted as a binary value
[13:28:07] <zeeshan> ahhh
[13:28:23] <zeeshan> so i read the binary word from right to left then?
[13:28:24] <pcw_home> so thats 0x20 hex or 32 decimal
[13:28:42] <pcw_home> LSb on right
[13:29:38] <KimK> s/follos/follows/ (bah, typos)
[13:29:42] <Connor> pcw_home: Okay, So, I've never built modules from src code... do you have to compile the whole src tree ? and why doesn't it compile anything in the user_mods directory ?
[13:29:48] <zeeshan> the 4th binary bit in my case is '0' and the 5th binary bit is '1' correct?|
[13:30:12] <pcw_home> Yes
[13:30:40] <zeeshan> thank you for clarifying this :)
[13:32:01] <zeeshan> looks like kirk had 2 versions of the driver in the same folder, and one of them was the right one which is this one
[13:32:13] <zeeshan> allows for both reading and writing through modbus.
[13:32:14] <pcw_home> Connor: I've just used comp -- install in the normal src tree
[13:32:41] <pcw_home> might need
[13:32:43] <pcw_home> sudo comp --install --userspace cfile
[13:32:44] <pcw_home> for a userland comp
[13:32:52] <pcw_home> not sure
[13:35:01] <Connor> comp not found
[13:35:56] <pcw_home> you have the linuxcnc dev package installed?
[13:36:03] <Connor> and.. sudo apt-get install linuxcnc-dev returns E: Package 'linuxcnc-dev' has no installation candidate
[13:36:25] <zeeshan> i just installed it last night
[13:36:29] <Connor> I'm running on 12.04
[13:36:33] <zeeshan> oh
[13:36:34] <Connor> so.. that may be issue.
[13:36:51] <Connor> looks like I need to install a vm with 10.04 image on it so I can test this stuff out.
[13:37:00] <zeeshan> im using 10.04..
[13:37:16] <Connor> This is my primary desktop.. not a cnc controller.
[13:37:18] <zeeshan> and running the 2.5.3 linuxcnc-dev package
[13:37:38] <cradek> dgarr: that looks like a harrowing bisect and a very weird behavior. I think jepler will be back from vacation wednesdayish.
[13:37:41] <Connor> I'll need to be using the 2.6 master
[13:38:11] <Connor> once I can compile it.. then.. I'm hoping I can just send him the binary for it..
[13:38:40] <Connor> also looks like I need to mod the src code to return some extra stuff that he wants.. like the current amps..
[13:39:07] <dgarr> cradek: the bisect took a while and it makes one appreciate that every commit should result in a compileable state.
[13:39:38] <dgarr> i've added some more notes, with canterp.ini, it doesn't re use fd 2
[13:39:50] <cradek> yes, you are the preacher and I am the choir
[13:40:19] <dgarr> nevertheless, bisect is a powerful resource
[13:41:01] <cradek> yes, but sure is nicer if people practice good version control hygeine.
[13:42:44] <zee-CNC> connor why dont you request a shell
[13:42:53] <zee-CNC> so that way you can remotely do it on his computer?
[13:43:09] <Connor> I will.. once he has it wired up to the net.
[13:44:12] <Connor> Getting ISO now.. so I can finish out the vm
[13:49:25] <Connor> installing..
[14:11:12] <Connor> error: modbus.h No such file or directory
[14:11:28] <Connor> but I do a apt-get install modbus-dev and have that fie in my system
[14:11:44] <zeeshan> need libmodbus5 installed
[14:11:51] <Connor> I have it.
[14:12:38] <zeeshan> look under /usr/include/modbus
[14:12:58] <Connor> its' there.
[14:13:15] <zeeshan> maybe the make file isn't picking up the location
[14:13:37] <Connor> I'm doing comp --compile wj200_vfd.comp
[14:13:41] <zeeshan> oh
[14:15:00] <cradek> that's probably a userspace comp
[14:15:05] <cradek> comp --userspace?
[14:15:56] <cradek> also I think comp doesn't have a provision for linking extra libraries
[14:16:09] <cradek> you might have to build it in two steps, like he does in bd52948
[14:16:40] <cradek> or just apply bd52948 to whatever you're using
[14:17:45] <Connor> okay. comp --userspace made a c file
[14:22:30] <Connor> cradek: I'm totally lost now.. :(
[14:53:23] <CaptHindsight> I don't feel any difference between RTAI and preempt_rt
[15:12:39] <skunkworks_> other than latency?
[15:12:41] <skunkworks_> ;)
[15:36:55] <CaptHindsight> sorry posted in the wrong channel
[18:34:39] <KGB-linuxcnc> 03Dewey Garrett 05master dc981df 06linuxcnc 10src/emc/rs274ngc/rs274ngc_pre.cc rs274ngc_pre: store tilde expanded filename * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=dc981df
[18:34:39] <KGB-linuxcnc> 03Dewey Garrett 05master 9e6628c 06linuxcnc 10tcl/ngcgui.tcl ngcgui: workaround reassignment of fd2 * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=9e6628c
[18:34:39] <KGB-linuxcnc> 03Dewey Garrett 05master c437dee 06linuxcnc 10tcl/bin/pickconfig.tcl pickconfig: avoid error attempting to create link * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=c437dee
[20:47:20] <KGB-linuxcnc> 03Dewey Garrett 05master afbb3fb 06linuxcnc 10tcl/bin/pickconfig.tcl pickconfig: fix typo not found in rip build * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=afbb3fb
[21:40:21] <CaptHindsight> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackageFromTarball is this the latest info for xenomai on x86 for emc?
[21:46:18] <memleak> hello qingpei! welcome!
[21:46:48] <qingpei> memleak: hi... nice to meet all of your guys here
[21:51:52] <CaptHindsight> it tends to be quiet in here this time of the day
[22:20:26] <zultron> CaptHindsight, that's a basic tutorial for rolling your own Xenomai kernel.
[22:22:25] <zultron> The Xenomai kernels in the lcnc repos are built with my packaging. Looking for the link...
[22:23:11] <zultron> Maybe this: https://github.com/zultron/kernel-rt-deb
[22:24:01] <zultron> And this is a pbuilderrc + Makefile that will build a bunch of kernels for various ubuntus, debians, and arches: https://github.com/zultron/debian-linuxcnc-autobuild
[22:24:36] <zultron> I think Seb uses that to build the Xenomai kernels in the repo.
[22:25:59] <zultron> And there's a somewhat outdated wiki that talks about how to recreate: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages