On Monday 24 October 2016 03:53:21 W. Martinjak wrote:

> On 2016-10-24 09:09, Gregg Eshelman wrote:
> > Search for Raspberry Pi CNC hat. The Up Board has a Raspberry Pi
> > compatible header so the Pi "hats" (as the daughterboards for the Pi
> > are called) will plug onto it. I assume any of those that can be
> > used with Linux on the R-Pi should work with Linux on the Up Board.
> > Other SBCs are adopting the Raspberry Pi header. Might be something
> > for Mesa and Pico to have a look at to make industrial grade CNC
> > boards for. For SBCs capable of running standard Microsoft Windows
> > like the Up Board they could also have Windows support.
>
> Hey folks,
>
> there is already a driver for the Raspberry Pi and the Mesa 7i90 in
> LinuxCNC in the master branch.
> http://linuxcnc.org/docs/devel/html/man/man9/hm2_rpspi.9.html
>
> matsche

For whatever reason I do not know, but I just found the reason for all my  
joint errors. I had previously looked at some of the signal on this 
buss, with less than impressed results.  Then I blacklisted this kernels 
spi modules.  On a reboot, and an attempt to restart lc nc hoping it 
would find the RIGHT hm2_rpspi driver shown above, only to discover it 
is nowhere to be found.

So what do I do to get the Master version of lcnc that does have this 
driver?

Oh fudge, shit damn, master-rt was not enabled. Tis now. But it will not 
show me an install other than uspace.

And apparently that option in /.boot/config.txt that disables the kernels 
spi drivers, disables it globally, because I do have:
pi@raspberrypi:~ $ ls -l /usr/lib/linuxcnc/modules/hm2_rpspi.so
-rw-r--r-- 1 root root 6424 Dec  3 
18:24 /usr/lib/linuxcnc/modules/hm2_rpspi.so
This is what I get in the terminal when I try to run linuxcnc -l:

hm2: loading Mesa HostMot2 driver version 0.15
Unknown board: HOST????
hm2_rpspi: rtapi_app_main: Operation not permitted (-1)
./hm2-stepper-7i90.hal:40: waitpid failed /usr/bin/rtapi_app hm2_rpspi
./hm2-stepper-7i90.hal:40: /usr/bin/rtapi_app exited without becoming 
ready
./hm2-stepper-7i90.hal:40: insmod for hm2_rpspi failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2_rpspi: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
hm2: unloading
<commandline>:0: unloadrt failed
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the 
log:
    /home/pi/linuxcnc_debug.txt
and
    /home/pi/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

So, I'm going to take that line back out of /boot/config.txt, reboot, do 
an lsmod and blacklist any bcmXXXX file that shows up. I've already 
disabled the sound, so any bcmxxxx files that show up I'll put in a 
blacklist line in /etc/modules. BRB. I think.

I give up, After about 6 or 7 reboots, playing 10000 monkeys, I finally 
stopped it from loading the bcm2835.wdt and bcm2835_gpiomem modules, but 
linuxcnc still can't find its own driver.

pi@raspberrypi:~/linuxcnc/configs/lathe $ tail 7i90-axis.ini

[SPINDLE_9]
PWMGEN_S_SCALE = 46.00
PWMGEN_S_FREQ = 10000
ENCODER_SAMPLE = 250000

[HOSTMOT2]
DRIVER=hm2_rpspi
BOARD=7i90
CONFIG="num_encoders=1 num_pwmgens=1 num_stepgens=2"

hm2-stepper-7i90.hal
has a paragraph:

# hostmot2 driver
loadrt hostmot2

# load low-level driver
loadrt [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG)

But it throws this on startup:
pi@raspberrypi:~ $ linuxcnc -l
LINUXCNC - 2.8.0-pre1-2765-g5fec8d9
Machine configuration directory is '/home/pi/linuxcnc/configs/lathe'
Machine configuration file is '7i90-axis.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-stepper-7i90.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
Unknown board: HOST????
hm2_rpspi: rtapi_app_main: Operation not permitted (-1)
./hm2-stepper-7i90.hal:40: waitpid failed /usr/bin/rtapi_app hm2_rpspi
./hm2-stepper-7i90.hal:40: /usr/bin/rtapi_app exited without becoming 
ready
./hm2-stepper-7i90.hal:40: insmod for hm2_rpspi failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2_rpspi: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
hm2: unloading
<commandline>:0: unloadrt failed
Note: Using POSIX realtime

I am about to put on my earmuffs, pull out Bertha, aka old meat in the 
pot and convert this 1500 lbs into scrap iron.

So whats gone sour this time?  All this bull shit, when apt updated the 
rt kernel to a non-rt and blew it all away.

I have repeatedly asked how to pin this rt kernel so that won't happen 
again, and all I've been told is that it will NOT remove or overwrite an 
installed kernel.  Apparently blacklisting those two modules had nothing 
to do with the bcm2835 spi related modules. About 3 weeks back, before 
it all got blown away by the kernel update, it was working 100% on the 
hm2_rpspi module with unterminated loose wire jumpers, but after the 
kernel update, joint errors in seconds even if it wasn't being moved, in 
fact if I could get to it quick enough it wouldn't error till I took my 
finger off the key to stop it.

I just spent the better part of a day building jumpers with 82 ohm 
resistors at th r-pi end of the jumpers.  It didn't make a bit of 
difference but took so long because I had to take both ends of these 
crappy jumpers apart and raise the contacts grip on the pin otherwise 2 
fell off while I was counting pins to put one end back of the right pin, 
trace those 2 and fix them so they might stay plugged up long enough to 
put the other end back on the right pin.

Did I mention I have a headache, and at 21:00 its beer-thirty.  Might 
even have 2 of those miller 64 nearly beers.

Anybody that can see whats wrong now, I'd appreciate a hand.

Thanks everybody, but it seems there is always yet another lock door to 
kick my way thru while restoring this like is was 3 or 4 weeks back.
 >
> >       From: Gene Heskett <[email protected]>
> >  To: [email protected]
> >  Sent: Sunday, October 23, 2016 11:46 AM
> >  Subject: Re: [Emc-users] Machinekit? --> LinuxCNC computer
> >
> > On Sunday 23 October 2016 12:02:58 Roland Jollivet wrote:
> >> By the way, while you guys are discussing SBC's, there's also the
> >> UP board <http://www.up-board.org/> too, which is x86.
> >>
> >> Here's a fun video <https://www.youtube.com/watch?v=dPJiShBIPw8> on
> >> it too. Worth looking at...
> >
> > Nice board, pricy tho at a 90 buck starting point. And no pci buss,
> > so nothing from pico or mesa is usable. Whats available to plug onto
> > the 40 pin pi header that can duplicate a mesa anything i/o
> > functionality?
> >
> > C'mon crickets, speak up.  I looked thru that blog post link to see
> > what might be found only to see that decently capable boards for the
> > BBB like the k9 have been discontinued for lack of interest.
> >
> > This is not how we move linuxcnc to the next generation hardware.
> >
> >
> > --------------------------------------------------------------------
> >---------- Check out the vibrant tech community on one of the world's
> > most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Emc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to