#linuxcnc-devel Logs
Jul 11 2019
#linuxcnc-devel Calendar
12:24 AM seb_kuzminsky: https://github.com/LinuxCNC/linuxcnc/pull/623
12:53 AM memfrob: How fun was commit a373dcbdd72b1a946712b12340760903217cebc0 ?
02:34 PM cerna: Just idea: Has anybody tried CUSE based interface in Preempt_rt related context? Is it capable of surviving real-time constraints?
02:44 PM CaptHindsight: cerna: filesystems based on FUSE/CUSE??
02:45 PM cerna: CaptHindsight: Yes.
02:46 PM CaptHindsight: I think you'll have to try it and fine out :)
02:46 PM CaptHindsight: fine/find
02:48 PM cerna: Yeah. I know. Just wanted to ask
03:21 PM CaptHindsight: I haven't heard of anyone trying to yet
03:22 PM CaptHindsight: well at least in the past few years
03:22 PM CaptHindsight: cerna: ^^
03:22 PM CaptHindsight: does PNCconf look for 5i25 configs in usr/lib/formware/hm2?
03:26 PM CaptHindsight: looks like , yes
03:27 PM Centurion_Dan: has anybody had success with usb3 based interfaces?
03:32 PM CaptHindsight: Centurion_Dan: not without rewriting LCNC
03:32 PM CaptHindsight: well you can use USB with LCNC if you are moving things very slowly
03:32 PM Centurion_Dan: CaptHindsight: why would it require rewriting linuxcnc?
03:33 PM CaptHindsight: USB latency times are very long
03:34 PM Centurion_Dan: usb3 provides near the same latency capabilities as a pcie channel
03:34 PM Centurion_Dan: and it'
03:37 PM Centurion_Dan: is a dedicated port with no onboard hub, and the bandwidth is enormous
03:38 PM CaptHindsight: let me know how it works for you
03:38 PM CaptHindsight: I haven't looked at it for a few years
03:41 PM cerna: CaptHindsight: I will try it. That's for sure. My user case would be direct access from other (read non-parseltongue) languages to the HAL variables.
03:41 PM CaptHindsight: does PNCconf look for 5i25 configs in usr/lib/firmware/hm2? there must be other magic at work here :)
03:42 PM cerna: <Centurion_Dan "has anybody had success with usb"> I seem to remember that there is some work around realtime USB in XENOMAI. I would look there.
03:42 PM Centurion_Dan: cerna: thanks.
03:45 PM CaptHindsight: someone in Japan did a fork of LCNC for use with USB
03:45 PM CaptHindsight: Japan or maybe Taiwan
03:46 PM cerna: https://sourceforge.net/projects/usb20rt.berlios/ and this paper from Kiszka http://www.cs.ru.nl/lab/xenomai/RTDM-and-Applications.pdf
03:56 PM CaptHindsight: Centurion_Dan: take a look at how quickly USB can interrupt transfers
04:31 PM cradek: gosh I appreciate all the work you folks are doing to keep up with everything
04:52 PM memfrob: cradek, thank you
04:52 PM andypugh: I have a commit that improves LinuxCNC compilation on v4.x kernels. I wonder if tha belongs in 2.7 ?
04:54 PM andypugh: memfrob: Do you think that your linuxcnc-patches from RTAI-master belong in the linuxCNC code?
04:55 PM memfrob: Not as-is, the commenting of the include asm line breaks compatibility with older kernels, the right way to do it is use your fix with the 8255 renaming of READ and WRITE
04:56 PM memfrob: The --full-linux-version patch has a problem too; it won't work with mainline RTAI
04:56 PM CaptHindsight: I'm on 2 hours sleep for the last 48 hours....
04:57 PM CaptHindsight: does anyone recall how to change configs on Mesa 6i25 from its default to say MX3660?
04:58 PM memfrob: andypugh, if there's any issues building RTAI today, i'm not the best on sleep either and won't be much of assistance
04:58 PM CaptHindsight: does it need to be reflashed or just added to the ini/hal file?
04:59 PM CaptHindsight: looks like both, reflash and proper ini and Hal
05:00 PM andypugh: CaptHindsight: 6i25 needs a mesaflash re-flash
05:00 PM andypugh: (And that will change the pin names, so HAL needs to change)
05:00 PM andypugh: SHould be no INI changes.
05:01 PM CaptHindsight: thank you
05:01 PM CaptHindsight: for some reason I was thinking PNCconf would do it all
05:02 PM CaptHindsight: choose 6i25, choose firmware from the dropdown
05:02 PM andypugh: Pncconf doesn’t even talk to the hardware, you can run it without hardware.
05:02 PM CaptHindsight: thanks, sleep will fix this
05:04 PM andypugh: memfrob: https://github.com/LinuxCNC/linuxcnc/commit/469d3cb9b767a48d149b4ab2a02fe49fb07eae26
05:20 PM memfrob: ok, now for fixing the kernel string problem
05:21 PM memfrob: that's not my decision how it gets fixed, but mainline linuxcnc configure.ac is broken
05:24 PM memfrob: (it's also broken for RTAI 4, kernel 3.16.52 and possibly the 3.10.108 kernel as well)
05:25 PM memfrob: Me being a bash guru, my suggestion would be the syntax itself
05:26 PM memfrob: KERNEL_VERS=$(gcc -E -dM ${VERSION_FILE} | grep UTS | cut -d '"' -f 2) might work
05:27 PM memfrob: or maybe..
05:27 PM memfrob: KERNEL_VERS=$($CC -E -dM ${VERSION_FILE} | grep UTS | cut -d '"' -f 2)
05:29 PM memfrob: if that doesn't work: KERNEL_VERS=$($CC -E -dM ${VERSION_FILE} .. KERNEL_VERS2="echo ${KERNEL_VERS} | grep "UTS" | cut -d '"' -f 2) . KERNEL_VERS_REAL_ONE="${KERNEL_VERS2}"
05:30 PM memfrob: it'd require some trial and error and nether method is promised to work. --full-linux-version is the most fail-safe way i can think of
05:33 PM CaptHindsight: cradek: did EMC ever come as just a package vs LiveCD/installer?
05:33 PM CaptHindsight: I know that you can just install from the repos
05:35 PM cradek: we've had both for a long time. before that it was either a full install from CD, or get the source in tarball form and a kernel patch and good luck
05:36 PM CaptHindsight: I've only worked on stripping a Debian distro down to <600MB...
05:36 PM cradek: in the pre-debianish CD installers linuxcnc was not packaged, it was bad and hard to upgrade.
05:37 PM CaptHindsight: is there lots of extra work to build the whole install CD vs just packages?
05:38 PM cradek: getting the packages (including kernel) right is maybe 75% of the work
05:39 PM andypugh: I haven’t tried this, but the dependencies suggest that if you were to have a repo cotntaining all my debs from today, then installing LinuxCNC would automatically pull in RTAI and that would install the right kernel.
05:40 PM andypugh: I have done live-build and it wasn’t all that hard.
05:43 PM CaptHindsight: I still prefer programming with a soldering iron and my 1's and 0"s
05:44 PM CaptHindsight: I don't mind writing low level apps that talk directly to hardware...
05:44 PM CaptHindsight: but keeping up with all the abstract languages and OS's quirks is of little interest
05:52 PM cradek: oh! in the first build for ubuntu (5.10) we handed out unmodified ubuntu CDs (or people downloaded them) and we just had an instruction to add our repo
05:52 PM cradek: so *yes* now I remember, the answer to your question
05:53 PM CaptHindsight: thanks you for the update
05:54 PM CaptHindsight: Centurion_Dan: http://en.araisrobo.com/a/araisrobo.com/en/linuxcnc/build-for-beagle broken link now but maybe you can track this down
05:54 PM CaptHindsight: LinuxCNC with FPGA/USB Interface
05:55 PM * jthornton never could get the BDI to install... guess I was just Brain Dead
05:57 PM Centurion_Dan: CaptHindsight: Thanks, will take a look. Does the beaglebone and other arm socs expose the gpio interfaces via an internal usb bus?
05:59 PM CaptHindsight: Centurion_Dan: I rarely ever see internal USB buses
06:00 PM CaptHindsight: with ARM peripherals are rarely ever in the same locations, unlike x86
06:01 PM CaptHindsight: http://www.ti.com/general/docs/datasheetdiagram.tsp?genericPartNumber=AM3358&diagramId=SPRS717K
06:02 PM CaptHindsight: some TI internal bus between IP blocks
06:02 PM CaptHindsight: USB is just external
06:03 PM CaptHindsight: USB has lots of bandwidth, but bad for small interrupting chunks of data
06:03 PM CaptHindsight: it's more like the really long express train that skips stops
06:08 PM CaptHindsight: Centurion_Dan: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?ArtekBranch
06:09 PM cerna: CaptHindsight: Thank you so much for the link, I remembered I have seen it somewhere but could not find it at the moment and it pissed me off something terrible.
06:09 PM CaptHindsight: https://github.com/araisrobo
06:09 PM CaptHindsight: yeah, had toi use special Google-fu to find it
06:16 PM CaptHindsight: https://forum.linuxcnc.org/9-installing-linuxcnc/26729-installing-on-12-04-using-araisrobo-hardware
06:24 PM memfrob: andypugh, linuxcnc still needs to know the correct kernel to compile against, and if the string is corrupted, it won't build
06:27 PM andypugh: Yes, we do need to get that sorted out.
06:29 PM andypugh: Centurion_Dan: SoC GPIO is typically accessed through memory mapping.
06:53 PM phillc54: linuxcnc-build: force build --branch=master 2000.docs
06:53 PM linuxcnc-build: build forced [ETA 8m50s]
06:53 PM linuxcnc-build: I'll give a shout when the build finishes
07:01 PM linuxcnc-build: Hey! build 2000.docs #4865 is complete: Warnings [8warnings compile]
07:01 PM linuxcnc-build: Build details are at http://buildbot.linuxcnc.org/buildbot/builders/2000.docs/builds/4865
07:07 PM TurBoss: Package python-gtksourceview2 is not available, but is referred to by another package.
07:07 PM TurBoss: This may mean that the package is missing, has been obsoleted, or
07:07 PM TurBoss: is only available from another source
07:07 PM TurBoss: ☹️
07:07 PM TurBoss: oops
07:07 PM TurBoss: wrong chat
07:07 PM jthornton: that's a minor one
07:11 PM TurBoss: has solution?
07:12 PM TurBoss: ah 😆 another one
07:16 PM jthornton: AFAIK it's only used by a demo sim so I just deleted the dependency and the demo sim
07:41 PM memfrob: Oh, Paolo got back to me about my assembly changes, he said there's been issues in the past due to changes in compiler behavior, but it's what's currently used in the linux kernel and I haven't noticed any issues with it.
07:42 PM memfrob: Paolo said the code dates back to 2007 and GCC has changed a lot since then, more precise, less buggy. If the code itself was buggy to date, it wouldn't be in the kernel.
07:43 PM memfrob: 4.14 to kernel 5.2 all share the same assembly instructions so it's got to be stable.
07:45 PM memfrob: https://mail.rtai.org/pipermail/rtai/2019-July/028030.html
11:42 PM phillc54: linuxcnc-build: force build --branch=master 2000.docs
11:42 PM linuxcnc-build: build forced [ETA 8m50s]
11:42 PM linuxcnc-build: I'll give a shout when the build finishes
11:43 PM phillc54: linuxcnc-build: force build --branch=master 1630.rip-stretch-rtpreempt-amd64
11:43 PM linuxcnc-build: build #1019 forced
11:43 PM linuxcnc-build: I'll give a shout when the build finishes
11:50 PM linuxcnc-build: Hey! build 2000.docs #4866 is complete: Warnings [8warnings compile]
11:50 PM linuxcnc-build: Build details are at http://buildbot.linuxcnc.org/buildbot/builders/2000.docs/builds/4866