#linuxcnc Logs

Jul 25 2019

#linuxcnc Calendar

01:56 AM Deejay: moin
05:17 AM Tom_L: morning
05:18 AM XXCoder: yo
05:21 AM Elmo40: moo
05:35 AM jthornton: morning
05:36 AM XXCoder: ught
08:10 AM perry_j1987: morning
09:14 AM JT-Shop: morning
11:13 AM gonzo_: jthornton, let me know when you are in circulation
11:13 AM gonzo_: will have one of these pcie lpt cards from you
11:27 AM JT-Shop: gonzo_: https://paste.ubuntu.com/p/c63H2kbN3f/
11:27 AM JT-Shop: I plugged it in and that is the output from dmesg
11:27 AM JT-Shop: does that look right?
11:28 AM gonzo_: JT-Shop, looks good so far. Defauly address and the epp address 0x400 higher
11:29 AM gonzo_: the proof of the pudding, is in the eating
11:29 AM gonzo_: won't know if it will do full epp till we get it on a mesa card
11:30 AM gonzo_: but if you are confident it will, I'm up for giving it a go
11:31 AM JT-Shop: let me make a cable up
11:31 AM JT-Shop: I'd rather see for sure before shipping it all that far
11:58 AM Tom_L: what a guy
11:59 AM pcw_home: That port at 0x378 is most likely the motherboard port
12:01 PM JT-Shop: https://paste.ubuntu.com/p/DC2RghZ7rm/
12:02 PM JT-Shop: I don't see a header for a parallel port, but that don't mean anything
12:04 PM JT-Shop: yep unplugged the pcie card and got the same parport info
12:06 PM pcw_home: what does lspci say?
12:07 PM JT-Shop: working on that now
12:07 PM JT-Shop: just did lspci with the card out now going to do it again with the card in
12:08 PM pcw_home: that and diff should be useful
12:10 PM JT-Shop: 01:00.0 Parallel controller: MosChip Semiconductor Technology Ltd. Device 9900
12:11 PM gonzo_: JT-Shop, cheers, appreciated
12:12 PM gonzo_: the addresses O was getting were at the 0xec00 area
12:12 PM gonzo_: but no idea where they come from
12:13 PM gonzo_: assume some sort of bus controler serves them out?
12:16 PM JT-Shop: lspci -v https://paste.ubuntu.com/p/rZ36tG7r96/
12:26 PM roycroft: here's something for you, jt-shop: http://www.roycroft.us/Chickens.mp3
12:39 PM gonzo_: looks more familiar
12:42 PM jym: hello all
12:54 PM pcw_home: So you would use E010 or E000 as the address in the hal file
12:54 PM pcw_home: These addresses are assigned by the BIOS at startup so will vary from system to system
12:56 PM pcw_home: (and also change if you move the card slot, add cards etc etc)
12:58 PM gonzo_: I'm assuming need to use the hidger of the two for epp for ioaddr_h
12:58 PM gonzo_: yep, have had all the fun and =games with cards moving (pci cards) when you add a new card and the deck shuffles
01:09 PM esch: anyone used a horner plc/Cscape?
01:10 PM esch: been trying to communicate with this damn thing for a day now
01:13 PM pcw_home: The shuffle issue is why its better to use the index (0,1,2) but it looks like the MOSChip 9900 is not recognized as a parallel port by whatever OS JT is running
01:13 PM pcw_home: Which is odd sonce the MOS Chip 9900 has been around for quite a few years
01:14 PM pcw_home: s/sonce/since
01:26 PM jym: pcw_home: OS JT???
01:26 PM gonzo_: as in: Mr. JT
01:26 PM jym: oh
01:27 PM jym: I misread
01:28 PM pink_vampire: can Linux cnc support 5 axis machining **simultaneously***?
01:28 PM jym: pink_vampire: 8 axis iirc
01:30 PM jym: pcw_home: Whats the difference between base addressing and this "index" you speak of? I do relaize base address on PCI are "fluid"
01:33 PM pcw_home: 0 means first parallel port found, 1 means second found
01:33 PM pink_vampire: I need a good 5 axis post processor for hsn
01:33 PM pink_vampire: hsm
01:34 PM pcw_home: so you don't need to deal with addresses
01:34 PM SpeedEvil: https://imgur.com/gallery/0Dnhjgp :)
01:34 PM gonzo_: btw, when you use the addresses 0,1,2 do you meant addressing them as hm2_7i90.0.xxx
01:35 PM gonzo_: or setting up rtload with ioaddr=0/1/2 ?
01:35 PM pink_vampire: SpeedEvil, nice
01:36 PM pcw_home: gonzo_ No this is only about parallel port addressing
01:37 PM gonzo_: so the latter?
01:37 PM pcw_home: But I may be wrong here, The hal_parport driver does this, not sure if hm2_7i90 does
01:38 PM gonzo_: hal_parport is used for direct driving using the lpt lines?
01:39 PM pcw_home: Yes
01:40 PM JT-Shop: pcw_home: I tried 0xe010 and 0xe000 and got errors
01:40 PM jym: pcw_home: ah, gotcha
01:41 PM pcw_home: did you try 0xE000 for low and 0xE010 for high address?
01:43 PM JT-Shop: yes but not with a E
01:43 PM pcw_home: its not case sensitive so that should not matter
01:44 PM gonzo_: it needs the full hi address, not just the offset?
01:44 PM pcw_home: ahh that may be it
01:44 PM pcw_home: Its been years since I've messed with EPP stuff that was not on a Motherboard port
01:45 PM gonzo_: I tried both, but reckoning my cards were just not doing proper epp
01:45 PM pcw_home: motherboard stuff seems to "just Work", add-in cards are a crap-shoot
01:45 PM gonzo_: nope, just crap
01:46 PM JT-Shop: https://paste.ubuntu.com/p/GyzcfYRhQ8/
01:46 PM JT-Shop: that's what I got
01:46 PM CaptHindsight: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH I've been using these
01:46 PM CaptHindsight: I have a 7i90 and I'll try the new ones that just arrived in EPP mode
01:47 PM gonzo_: JT-Shop, do you need to swap the addresses?
01:47 PM pcw_home: how about halcmd: loadrt hm2_7i90 ioaddr=0xE000 ioaddr_hi=0x010
01:47 PM CaptHindsight: they used to be fine for EPP
01:48 PM CaptHindsight: and only $10 delivered
01:48 PM JT-Shop: Linux parallel port @57360 not found
01:50 PM CaptHindsight: pcw_home: if they can get broken silicon to work with a driver patch the Chinese will just ship that
01:50 PM CaptHindsight: with Windows
01:51 PM * JT-Shop does not feel good after riding this morning
01:51 PM JT-Shop: systolic is up for some reason
01:53 PM CaptHindsight: dehydrated? salty breakfast? new stress?
01:53 PM gonzo_: tight underpants
01:53 PM JT-Shop: rode about 10 miles on the road bike this morning, not done that in a long while
01:54 PM JT-Shop: gonzo_: it ain't looking too good at this point for the pcie card
01:55 PM CaptHindsight: http://www.linuxcnc.org/testing-stretch-rtpreempt/ + http://wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH + 7i90 should work
01:57 PM CaptHindsight: I won't bother testing in gonzo_ won't try the Stretch ISO
01:57 PM JT-Shop: hmm it has drivers for linux... maybe I should read the manual
02:00 PM pcw_home: "JT-Shop: Linux parallel port @57360 not found" Not sure if that matters or not, probably not
02:00 PM pcw_home: did you try with address high = 0x010?
02:01 PM CaptHindsight: I see errors like that when the wrong base address is used
02:01 PM JT-Shop: I think I need to install a driver for linux
02:02 PM CaptHindsight: I'll make a typo and use 0x100 when I meant to use 0x010
02:02 PM CaptHindsight: or similar
02:02 PM pcw_home: Why the 9900 doesn't have built in support in Linux is a mystery
02:03 PM CaptHindsight: too old a kernel?
02:03 PM gonzo_: CaptHindsight, I don't have the knowledge to start hacking about. So I'm just using the install as supplied.
02:04 PM CaptHindsight: gonzo_: I;m just asking you to use a newer version of LCNC
02:05 PM pcw_home: If the hardware works like a normal port it should not need a Linux driver but many chips are broken and need chip specific futzing to work
02:05 PM gonzo_: is 2.7.14 not the latest?
02:05 PM JT-Shop: going to try it downstairs on debian 9
02:06 PM CaptHindsight: gonzo_: what cpu and motherboard are you using?
02:07 PM CaptHindsight: gonzo_: no, it is not
02:07 PM gonzo_: now you are asking
02:07 PM gonzo_: http://linuxcnc.org/downloads/ says so, so I'm confused
02:07 PM CaptHindsight: gonzo_: I'm asking to poi8nt you to the exact link to download an install ISO
02:07 PM gonzo_: is that not the official site?
02:08 PM CaptHindsight: please answer my question
02:08 PM CaptHindsight: I have other work to do and can't be on much longer
02:08 PM CaptHindsight: is it 64b or 32b cpu?
02:09 PM gonzo_: I assume it is 64bit. But without scraping off the heatskink, I have no idea. Unless there is some way of asking linux, as you can in windoze
02:10 PM gonzo_: I would assume that the install I used is:
02:10 PM gonzo_: http://www.linuxcnc.org/iso/linuxcnc-2.7.14-wheezy.iso
02:11 PM CaptHindsight: http://www.linuxcnc.org/testing-stretch-rtpreempt/linuxcnc-stretch-uspace-amd64-r12.iso
02:11 PM CaptHindsight: gonzo_: download and install using this ISO ^^
02:12 PM CaptHindsight: it has a newer Linux kernel with more drivers
02:12 PM CaptHindsight: or updated drives that include more cards
02:12 PM CaptHindsight: drives/drivers
02:13 PM CaptHindsight: JT-Shop: whats the PCI vendor and device ID for the 9900 card?
02:13 PM CaptHindsight: I'll look in the backlog to see if you already pasted this
02:14 PM CaptHindsight: or your lspci output
02:16 PM jthornton: https://paste.ubuntu.com/p/rZ36tG7r96/
02:20 PM CaptHindsight: jthornton: please post output from "lspci -vv"
02:20 PM CaptHindsight: the whole thing if you want, I can search through it
02:21 PM jthornton: can't right now, getting COMRESET failed (errno=-32) on my debian 9 pc
02:24 PM CaptHindsight: ok, we can track this down later
02:25 PM CaptHindsight: i can look for what kernel version or newer is required for that exact card
02:26 PM gonzo_: the processor is an i686
02:26 PM CaptHindsight: http://www.linuxcnc.org/testing-stretch-rtpreempt/linuxcnc-stretch-uspace-amd64-r12.iso
02:26 PM CaptHindsight: download and install this ISO ^^
02:27 PM CaptHindsight: gonzo_: ^^
02:31 PM JT-Shop: lspci -vv https://paste.ubuntu.com/p/mjM5NWRhbZ/
02:34 PM CaptHindsight: JT-Shop: thanks, I have to be on the phone
02:34 PM CaptHindsight: no driver loaded
02:37 PM jthornton: what does this mean Capabilities: <access denied>
02:38 PM CaptHindsight: please paste lspci -nn
02:40 PM CaptHindsight: jthornton: run it as sudo lspci -vv and sudo lspci -nn
02:40 PM jthornton: ok
02:41 PM CaptHindsight: that should make <access denied> go away
02:42 PM CaptHindsight: the -nn will have a line for the LPT card similar to this
02:42 PM CaptHindsight: 03:00.0 USB controller [0c03]: Etron Technology, Inc. EJ168 USB 3.0 Host Controller [1b6f:7023] (rev 01)
02:42 PM jthornton: https://paste.ubuntu.com/p/TYVRy4tYj7/
02:43 PM CaptHindsight: [1b6f:7023] is the area we are interested
02:43 PM jthornton: ah well I need to redirect to a file the output
02:43 PM CaptHindsight: [9710:9900] OK !!
02:44 PM CaptHindsight: https://devicehunt.com/search/type/pci/vendor/9710/device/9900 good ID's
02:44 PM CaptHindsight: now to check the kernel
02:45 PM jthornton: https://paste.ubuntu.com/p/96VFcmxqyp/
02:46 PM jthornton: ok got it all this time
02:47 PM jthornton: be back in a bit
02:48 PM gonzo_: CaptHindsight, will this new install leave the setup as is, or is it a fresh image?
02:48 PM CaptHindsight: all fresh if you install over the old one
02:49 PM CaptHindsight: so backup your home and configs
02:50 PM gonzo_: I'll put a new hdd in, the previous install took too much of my life
02:50 PM CaptHindsight: gonzo_: to be clear, which LPT card/s do you currently have in your possession?
02:50 PM gonzo_: There is a moschip 9912 in the pc at the mo
02:51 PM gonzo_: and I have a ch382l avail
02:52 PM CaptHindsight: OK
02:53 PM CaptHindsight: I have a ch382l and 7i90 here as well
02:54 PM gonzo_: still confused as I read that linuxcnc does not use the linux drivers
02:56 PM pcw_mesa: It does not but some (IMHO) broken chips need the driver to enable the chip
03:03 PM jym: pcw_ lcnc doesn't use epp natively?
03:03 PM jym: pcw_mesa: lcnc doesn't use epp natively?
03:04 PM pcw_mesa: It does +- broken parallel port chipsets
03:05 PM pcw_mesa: I should say it _can_, hal_parport can set EPP mode if desired
03:06 PM pcw_mesa: Which is needed for some BOBs as it changes some signals from open drain to push-pull even when just used for standard mode I/O
03:06 PM jym: ah ok
03:12 PM CaptHindsight: jym: http://linuxcnc.org/docs/2.8/html/hal/parallel-port.html
03:13 PM CaptHindsight: covers it all pretty well ^^^
03:29 PM gonzo_: is that doc only for the biit wigglking builds? Not for hostmot2?
03:31 PM JT-Shop: yea it's for using the parallel port for stepgens
03:34 PM gonzo_: just checking
03:35 PM gonzo_: lots of stuff on forum seems very authoritative about how to set all this up, but just assumes the bit wiggling type systems
03:35 PM gonzo_: I was warned well away from that when I first started to build my system
03:37 PM gonzo_: I assume there is very little of that these days, with lpt portrs being pretty much extinct
03:37 PM pcw_mesa: JT-Shop Updated mesaflash with somewhat improved error handling, typos fixed, better help for SPI address , support for 7C80,7C81, 7I94,7I95,7I98 added http://freeby.mesanet.com/mf34.zip
03:39 PM pcw_mesa: still needs connector pinout printing fixed for newer cards
03:42 PM JT-Shop: you get push rights to the repo?
03:44 PM pcw_mesa: no just did it locally
03:45 PM pcw_mesa: by rights, this should completely replace "master"
03:46 PM pcw_mesa: the latest was mesaflash-7i97 which I patched
03:47 PM JT-Shop: do you want me to add a repo to my github mesaflash2?
03:48 PM pcw_mesa: Sure
03:49 PM pcw_mesa: Pretty sure no one else is going to work on this
04:02 PM JT-Shop: ok
04:08 PM jym: It's 30m, but I liked it https://www.youtube.com/watch?v=1VWcGwPJQfc
04:22 PM Deejay: gn8
05:16 PM _unreal_: wow looks like the networks were going nutty today
05:41 PM gonzo_: CaptHindsight, finally have this newer install going, and even irc client again
05:42 PM gonzo_: (was getting painfull runnuing between buildings to use irc)
05:42 PM gonzo_: put the ch382l card back in. lspci does not see it
05:42 PM gonzo_: (same as before)
05:47 PM pcw_mesa: if lspci does not see it, its dead (if Linux does not see it that could be a driver issue)
05:48 PM pcw_mesa: Note that lspci may not report it as a parallel port
05:53 PM gonzo_: interesting, if I set ioaddr=0 then the debug message says it cannot find port at 0xEC00
05:54 PM gonzo_: how would it think to transpose thas address, if no card found
05:55 PM gonzo_: in lspci, that address is a serial port, but uses a paraport_serial driver
05:56 PM gonzo_: have read something about these chips being some weird serial device
06:06 PM gonzo_: https://paste.ubuntu.com/p/5Fy6mM4KVy/
06:09 PM jthornton: gonzo_, you can get a lot more info with sudo lspci -vv and sudo lspci -nn
06:11 PM gonzo_: https://paste.ubuntu.com/p/F22YgyMt8m/
06:13 PM gonzo_: all looks great, but gibberish at the mo
06:13 PM gonzo_: have tried both addresses in rtload
06:13 PM gonzo_: no go
06:14 PM gonzo_: board at..... not found!
06:14 PM flyback: did you look at the card
06:14 PM flyback: and confirm the chip id and revision
06:15 PM flyback: vendors like to swap shit all the timme
06:16 PM gonzo_: just marked ch382l
06:38 PM gonzo_: will pull it out tomorriw and check
08:23 PM _unreal_: I still have yet to figure out how to flip this stupid XYZ orientation on fusion360
08:23 PM _unreal_: for the GRAPE stl i HAVE
08:25 PM Tom_L: but andy made you a video :)
08:44 PM _unreal_: ya a video with zero audio and 80 % of what he did was with short cut keys
08:51 PM SpeedEvil: I am reminded (probably unfairly) of the tagline of a game. "This game was made for a specific sort of person. To hurt them".
10:23 PM CaptHindsight: gonzo_: 1c00:3250 http://wiki.linuxcnc.org/cgi-bin/wiki.pl?WCH parallel port + 2 serial ports when the Dev. ID is 3250
10:24 PM CaptHindsight: so the kernel sees the WCH CH382L, why do you say that it doesn't?
10:25 PM CaptHindsight: LPT address is likely: 0xec00
10:26 PM CaptHindsight: Region 2: I/O ports at ec00 [size=4]
10:56 PM _unreal_: wholy crap its almost midnight
10:57 PM _unreal_: I just finished moving a bunch of stuff around in my room making room to bring a big filing cabinet
10:58 PM _unreal_: just moved it in and put a bunch of stuff away
10:58 PM _unreal_: big difference
11:02 PM roycroft: you could have chucked it all out the window with the same effect
11:02 PM roycroft: and a lot less work
11:43 PM Connor: Anyone have a good source for surface grinder wheels? I'm looking for a specific one.. I can find it.. but they want me to buy 10 at a time in all places but MSC.. However, MSC doesn't have them in stock and says 3 weeks.. :(