#linuxcnc-devel | Logs for 2016-05-21

Back
[00:12:56] <tinkerer> ok, I copied the debian-8.*) case and renamed it Raspbian-8.*)
[00:17:03] <tinkerer> wow, what a mess...
[00:24:11] <jepler> oh I forget, even though pi2/3 can run unmodified debian armhf userspace, "raspbian" still has a lot of traction and an incompatible ABI. That's unfortunate.
[00:25:53] <tinkerer> a mess of squares?
[00:29:14] <tinkerer> uebasht
[00:29:29] <tinkerer> oops wrong window
[00:56:39] -!- tobias47n9e__ has quit [Ping timeout: 250 seconds]
[01:05:48] <jepler> time to change your password :-/
[01:49:45] -!- remstw has quit [Ping timeout: 246 seconds]
[03:18:47] -!- teepee_ [teepee_!~teepee@unaffiliated/teepee] has joined #linuxcnc-devel
[03:20:56] -!- teepee has quit [Ping timeout: 272 seconds]
[03:20:56] teepee_ is now known as teepee
[04:14:50] -!- sel [sel!~sel@net77-43-27-64.mclink.it] has joined #linuxcnc-devel
[04:15:09] -!- sel has quit [Remote host closed the connection]
[05:50:02] -!- ve7it has quit [Remote host closed the connection]
[06:13:04] -!- Mathnerd314 has quit [Ping timeout: 240 seconds]
[06:15:22] -!- kwallace [kwallace!~kwallace@162.222.30.254] has parted #linuxcnc-devel
[07:33:29] -!- rob_h [rob_h!~robh@97e42a64.skybroadband.com] has joined #linuxcnc-devel
[07:50:34] -!- Komzpa has quit [Ping timeout: 240 seconds]
[08:54:16] -!- radish has quit [Remote host closed the connection]
[09:16:56] <tinkerer> yeah, packages created and installed on real raspi.
[09:23:14] -!- sel [sel!~sel@net77-43-27-64.mclink.it] has joined #linuxcnc-devel
[09:23:37] -!- sel has quit [Client Quit]
[09:58:40] -!- gaute has quit [Quit: Page closed]
[10:08:30] -!- radish has quit [Ping timeout: 246 seconds]
[10:15:58] <tinkerer> sandbox compiling of my driver with halcompile works too! STRIKE!
[10:21:24] -!- b_b has quit [Changing host]
[10:36:35] <tinkerer> Hmmm, fd = open("/dev/mem", O_RDWR | O_SYNC); => can't open /dev/mem
[10:36:55] -!- ktchk [ktchk!~eddie6929@n219079097164.netvigator.com] has joined #linuxcnc-devel
[10:37:12] <tinkerer> any clues?
[10:43:47] <archivist> http://man7.org/linux/man-pages/man4/mem.4.html kernel dependent ?
[10:46:24] <tinkerer> hmmm, I've thought halcompile --install sets the suid
[10:49:08] -!- b_b has quit [Read error: Connection reset by peer]
[10:50:23] -!- b_b has quit [Changing host]
[11:15:17] -!- emc has quit [Remote host closed the connection]
[12:02:15] -!- tobias47n9e_ has quit [Ping timeout: 250 seconds]
[12:33:27] -!- JT-JA14 [JT-JA14!~john@198.45.191.246] has joined #linuxcnc-devel
[12:41:27] -!- teepee_ [teepee_!~teepee@unaffiliated/teepee] has joined #linuxcnc-devel
[12:42:13] -!- teepee has quit [Ping timeout: 244 seconds]
[12:42:14] teepee_ is now known as teepee
[13:08:27] wtsmer is now known as remstw
[13:08:51] -!- JT-Shop has quit [Remote host closed the connection]
[13:18:05] -!- jthornton has quit [Ping timeout: 260 seconds]
[13:18:24] -!- JT-JA14 has quit [Ping timeout: 276 seconds]
[13:20:25] -!- kingarmadillo has quit [Ping timeout: 260 seconds]
[13:44:58] -!- BeachBumPete [BeachBumPete!~IceChat9@2601:585:8200:7a40:81c4:5084:f657:1efe] has joined #linuxcnc-devel
[14:02:04] -!- BeachBumPete [BeachBumPete!~IceChat9@2601:585:8200:7a40:81c4:5084:f657:1efe] has parted #linuxcnc-devel
[14:05:29] -!- kwallace [kwallace!~kwallace@162.222.30.254] has joined #linuxcnc-devel
[14:18:52] -!- kingarmadillo has quit [Ping timeout: 260 seconds]
[14:21:50] <jepler> tinkerer: in uspace realtime, it runs most of the time without root access to the filesystem, including /dev.
[14:22:08] <jepler> tinkerer: the way to temporarily access the filesystem as root is unfortunately not exposed in the RTAPI "C" API
[14:23:21] <jepler> the way this is accomplished is in rtapi_uspace.hh, class WithRoot
[14:23:26] <jepler> WithRoot() { if(!level) setfsuid(geteuid()); level++; }
[14:23:26] <jepler> ~WithRoot() { --level; if(!level) setfsuid(getuid()); }
[14:26:49] <jepler> so untested, you could implement rtapi_open_as_root in "C" as
[14:26:50] <jepler> int rtapi_open_as_root(const char *filename, int mode) {
[14:26:51] <jepler> setfsuid(geteuid());
[14:26:51] <jepler> int r = open(filename, mode);
[14:26:51] <jepler> setfsuid(getuid());
[14:26:53] <jepler> return r;
[14:26:55] <jepler> }
[14:32:04] -!- skunkworks has quit [Ping timeout: 240 seconds]
[15:06:58] <KGB-linuxcnc> 03Jeff Epler 05jepler/master/uspace-temporary-root e4030c8 06linuxcnc 10(6 files in 3 dirs) uspace: provide new APIs to access filesystem as root * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=e4030c8
[15:09:04] <linuxcnc-build> build #2309 of 1400.rip-wheezy-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1400.rip-wheezy-i386/builds/2309 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:09:40] <KGB-linuxcnc> 03Jeff Epler 05jepler/master/uspace-temporary-root 798236c 06linuxcnc 10(7 files in 3 dirs) uspace: provide new APIs to access filesystem as root * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=798236c
[15:09:54] <linuxcnc-build> build #1819 of 1402.rip-wheezy-rtpreempt-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1402.rip-wheezy-rtpreempt-i386/builds/1819 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:10:00] <linuxcnc-build> build #1303 of 1903.clang-wheezy-amd64 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1903.clang-wheezy-amd64/builds/1303 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:10:07] <linuxcnc-build> build #2309 of 1403.rip-wheezy-amd64 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1403.rip-wheezy-amd64/builds/2309 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:10:46] <linuxcnc-build> build #777 of 1520.rip-jessie-amd64 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1520.rip-jessie-amd64/builds/777 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:11:00] <linuxcnc-build> build #4150 of 1306.rip-precise-amd64 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1306.rip-precise-amd64/builds/4150 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:11:16] <linuxcnc-build> build #777 of 1530.rip-jessie-rtpreempt-amd64 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1530.rip-jessie-rtpreempt-amd64/builds/777 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:11:40] <linuxcnc-build> build #2343 of 1405.rip-wheezy-armhf is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1405.rip-wheezy-armhf/builds/2343 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:11:44] <linuxcnc-build> build #777 of 1500.rip-jessie-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1500.rip-jessie-i386/builds/777 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:11:51] <linuxcnc-build> build #777 of 1510.rip-jessie-rtpreempt-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1510.rip-jessie-rtpreempt-i386/builds/777 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:12:04] <linuxcnc-build> build #4148 of 1300.rip-precise-i386 is complete: Failure [4failed compile] Build details are at http://buildbot.linuxcnc.org/buildbot/builders/1300.rip-precise-i386/builds/4148 blamelist: Jeff Epler <jepler@unpythonic.net>
[15:50:19] -!- b_b has quit [Remote host closed the connection]
[16:39:11] <jepler> seb_kuzminsky: looks like the build is stuck because the builder for 1404.rip-wheezy-rtpreempt-amd64 is offline
[16:39:19] <jepler> http://buildbot.linuxcnc.org/buildbot/builders/1404.rip-wheezy-rtpreempt-amd64/builds/2507
[16:40:07] -!- pcw_home has quit [Remote host closed the connection]
[16:50:34] -!- zeeshan|2 has quit [Read error: Connection reset by peer]
[17:42:25] -!- dgarr [dgarr!~dgarrett@184.101.147.209] has joined #linuxcnc-devel
[17:42:42] <dgarr> bug reported to me: master branch bisected to ad06db2, start configs/sim/axis/axis.ini, F1,F2,Home-All, click Reload Icon twice-->"A file is already open; can'topen ...
[17:43:22] -!- dgarr has quit [Client Quit]
[17:54:47] <jepler> dgarr: thanks, noted
[18:12:22] -linuxcnc-github:#linuxcnc-devel- [13linuxcnc] 15jepler opened issue #62: linuxcnc.stat.program_open() errors if called twice in a row 02https://github.com/LinuxCNC/linuxcnc/issues/62
[18:15:35] -!- pcw_home [pcw_home!~chatzilla@c-50-143-148-115.hsd1.ca.comcast.net] has joined #linuxcnc-devel
[18:17:04] <tinkerer> jepler: Thanks!! that works.
[18:18:13] <jepler> tinkerer: thank you for the feedback. I will plan to add rtapi_open_as_root to our master branch soon, as you may have seen it is already on branch jepler/master/uspace-temporary-root
[18:19:42] <tinkerer> no, I've made hardcore hacking :)
[18:20:02] <tinkerer> the pragmatic way
[18:20:55] <tinkerer> bbl, I hear the voice of my wife... ;)
[18:21:23] <tinkerer> more later
[18:25:05] -!- skunkworks [skunkworks!ae7c3b1f@gateway/web/freenode/ip.174.124.59.31] has joined #linuxcnc-devel
[18:26:12] <skunkworks> 'looks' like the backlash in z is the end support bearing. I think it was really hard to get to - so no one adjusted it. the other axis have peen marks where the nut had been adjusted.
[18:33:10] <skunkworks> you can't even see the rotation of .0001 inch.. scary how this all works. .001 is just see-able
[18:50:40] -!- teepee has quit [Ping timeout: 272 seconds]
[18:51:57] -!- teepee [teepee!~teepee@unaffiliated/teepee] has joined #linuxcnc-devel
[19:42:49] -!- skunkworks_ [skunkworks_!~skunkwork@174-124-59-31.dyn.centurytel.net] has joined #linuxcnc-devel
[19:44:02] -!- ktchk has quit [Quit: ktchk]
[20:05:51] <skunkworks_> zlog
[20:05:52] <zlog> skunkworks_: Log stored at http://tom-itx.no-ip.biz:81/~tom-itx/irc/logs/%23linuxcnc-devel/2016-05-21.html
[20:06:44] <Tom_itx> at least one pc is still working here :D
[20:49:39] -!- kalxas has quit [Quit: Goodbye]
[21:09:26] <KGB-linuxcnc> 03Jeff Epler 05jepler/2.7/repated-program-open 3c4c908 06linuxcnc 10src/emc/usr_intf/axis/extensions/emcmodule.cc linuxcncmodule: fix repeated calls to program_open() * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=3c4c908
[21:10:28] <tinkerer> is pcw around?
[21:10:54] <tinkerer> or jepler?
[21:34:14] <tinkerer> where can I found the 7I90HDIO.PIN file.
[21:41:02] <tinkerer> err: find
[21:42:34] -!- skunkworks_ has quit [Ping timeout: 240 seconds]
[21:46:21] <jepler> http://mesanet.com/software/parallel/7i90.zip has the files that mesa ships for the 7i90 card. I don't know if any of them are called "7I90HDIO".
[21:47:44] <jepler> looks like linuxcnc.org doesn't ship any firmwares for the 7i90
[21:48:43] <jepler> usually it's the .bit file you're interested in, you can run mesaflash to get the .pin file which is just metadata, or read it out when starting linuxcnc
[21:49:10] <jepler> (of course you may not be able to do that with mesaflash since like hm2_spi in linuxcnc, it uses /dev/spidev for access to the card)
[21:49:20] -!- chillly has quit []
[21:52:10] <tinkerer> no the PIN file describe more then the firmware pins
[21:52:33] <tinkerer> for instance the usr leds
[21:53:26] <tinkerer> from the manual: See the 7I90HDIO.PIN file for FPGA pin locations of the LED signals.
[21:53:34] -!- rob_h has quit [Ping timeout: 240 seconds]
[21:53:45] -!- rob_h [rob_h!~robh@97e42a64.skybroadband.com] has joined #linuxcnc-devel
[21:53:55] <tinkerer> because I have big troubles with the card
[21:54:39] <tinkerer> the outputs suddenly stops working
[21:56:46] <tinkerer> I can communicate with the card and step around with axis but just virtual. the outputs of the card are staying high.
[21:56:59] <tinkerer> very strange
[21:57:45] <tinkerer> so I will try to debug with the leds
[21:57:46] <pcw_home> all I/Os high suggests that the watchdog has bitten
[21:58:05] <tinkerer> suddenly
[21:59:37] <tinkerer> it works the half night without any problems
[22:00:52] <tinkerer> I have to configurations on different raspis. one with machinekit and one with lcnc
[22:02:10] <tinkerer> the machinekit config has been unchanged since 2 days
[22:03:45] <tinkerer> and nevertheless the card stops working here too
[22:04:45] <tinkerer> so, when bites the watchdog?
[22:06:08] <tinkerer> or how can I serve the watchdog
[22:06:22] <tinkerer> or feed :)
[22:07:30] <tinkerer> pcw: can you tell me the pins of the usr leds?
[22:09:31] <tinkerer> suddenly lacks a "?"
[22:12:20] <tinkerer> jepler: it's not in the 7i90.zip
[22:13:42] <tinkerer> btw: I got some strange messages from lcnc " libGL error: failed to open drm device: No such file or directory
[22:13:42] <tinkerer> libGL error: failed to load driver: i965
[22:13:42] <tinkerer> "
[22:36:43] <cradek> that's not a linuxcnc error. try running any other opengl program.
[22:41:48] <tinkerer> ah ok
[22:42:31] <tinkerer> strange i965 on arm
[22:45:03] <tinkerer> pcw or jepler: no clues? I cant found any examples in the source for petting the watchdog
[22:45:25] <tinkerer> arg... find
[22:47:02] <jepler> it happens automatically as part of the "write" function
[22:47:40] <tinkerer> True if the watchdog has bit, False if the watchdog has not bit. If the watchdog has bit and the has_bit bit is True, the user can reset it to False to resume operation.
[22:49:44] <tinkerer> so I would like connect the has_bit pin to the usr led for checking if the wd has bit.
[22:50:32] <tinkerer> but I dont know name or number of the led pin
[22:54:51] <cradek> if the watchdog bites I think you can't control the LEDs on the board anymore - along with all IO they do a predefined thing
[22:56:13] <cradek> see the Watchdog section in the hostmot2 manpage
[22:57:14] <pcw_home> you can control the LEDs (they are not like the GPIO pins that are all floated on WD bite)
[22:57:29] <cradek> oh!
[22:57:46] <cradek> heh reading the manpage is still good advice even though I'm wrong, right?
[22:57:49] <tinkerer> yes I have assumed this
[22:58:18] <tinkerer> cradek: what does thet mean?
[22:58:22] <tinkerer> that
[22:58:28] -!- Miner_48er has quit [Quit: Leaving]
[22:58:35] <cradek> what?
[22:59:13] <pcw_home> The hal LED pins will be CR01,CR02,CR03 and CR04
[23:00:35] <tinkerer> I have read the manpage!
[23:03:19] <tinkerer> usr1 = cr03 & usr0 = cr04 ?
[23:06:01] <pcw_home> Oh yeah I forgot, the 7I90 only has 2 user LEDS so they will be named CR01 and CR02 in hal
[23:07:13] <tinkerer> ah, its labeled on the board: cr04 and cr05
[23:07:38] <tinkerer> thanks
[23:08:08] <pcw_home> Yeah theres no correspondence between silk screen art and hal names for user LEDs
[23:09:38] <tinkerer> I assume the gpios are disabled through the drivers (pi5c 16211a)?
[23:11:57] <tinkerer> silk screen art :D
[23:19:57] <tinkerer> The pins are numbered from CR01 upwards with the name corresponding to the PCB silkscreen.
[23:20:06] <tinkerer> :)
[23:20:41] <tinkerer> but: hm2-stepper-7i90.hal:64: Pin 'hm2_7i90.0.CR01' does not exist
[23:31:43] <pcw_home> The GPIOs are disabled by setting all DDRs to 0
[23:33:11] <tinkerer> ok
[23:34:40] -!- kingarmadillo has quit [Ping timeout: 252 seconds]
[23:34:45] <tinkerer> the led pin surprisingly the word led in the bin name... ;)
[23:34:54] <tinkerer> has
[23:45:11] <tinkerer> a slightly weired question: does the card store/remember the has_bit value for a certain time? despite disconnecting the card from power?
[23:53:37] <tinkerer> :D after putting the following line in the hal file the watchdog never bites: setp hm2_[HOSTMOT2](BOARD).0.watchdog.has_bit FALSE
[23:53:42] <tinkerer> very funny