Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Peter C. Wallace

On Mon, 1 Feb 2021, Gene Heskett wrote:


Date: Mon, 1 Feb 2021 13:01:52 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] My pi4b build is broken

On Monday 01 February 2021 11:10:39 Peter C. Wallace wrote:


On Mon, 1 Feb 2021, Gene Heskett wrote:

Date: Mon, 1 Feb 2021 11:01:16 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] My pi4b build is broken

On Monday 01 February 2021 10:45:06 Peter C. Wallace wrote:

On Mon, 1 Feb 2021, Gene Heskett wrote:


That would be advantageous. But the 3 phase stepper servo's I've
fallen in love with don't make it available externally. They do have
an error output you can apply to the e-stop though and that is
downright handy.

Is there an index in the cable back to the driver from the encoder
on those? IDK.


I dont think any of the commom closed loop stepper drives have an
index on the encoder, but most step/dir driven servos do.


Does this mean the 2 phase closed loop stuff has it? One of the reasons I
migrated to the 3 phase is the smaller step, 1.2 as opposed to 1.8
degrees for a full step. That, and the machine noise is 5% of a 2 phaser
because these drivers only use coil current enough to do as they are
told. If the error goes up, so does the current.  At working speeds it
moves like Casper the ghost. With the 1600 oz 2 phase on the Z, it shook
a 12" crescent wrench out of the chip pan, or tried like hell.  I had to
put a 1/4 round fence on the edge of the keyboard table where the gear
box used to be as I broke keyboards and mice on the cement floor so many
times. Vibrated off.  These are sweet, motor and driver at $120 a copy.

Thank you Peter.



I dont think any of the closed loop stepper drives support index
(since having and index or absolute encoder is not needed for these
drives unlike normal 3 phase servo drives)

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Gene Heskett
On Monday 01 February 2021 11:10:39 Peter C. Wallace wrote:

> On Mon, 1 Feb 2021, Gene Heskett wrote:
> > Date: Mon, 1 Feb 2021 11:01:16 -0500
> > From: Gene Heskett 
> > Reply-To: EMC developers 
> > To: emc-developers@lists.sourceforge.net
> > Subject: Re: [Emc-developers] My pi4b build is broken
> >
> > On Monday 01 February 2021 10:45:06 Peter C. Wallace wrote:
> >> On Mon, 1 Feb 2021, Gene Heskett wrote:
> >
> > That would be advantageous. But the 3 phase stepper servo's I've
> > fallen in love with don't make it available externally. They do have
> > an error output you can apply to the e-stop though and that is
> > downright handy.
> >
> > Is there an index in the cable back to the driver from the encoder
> > on those? IDK.
>
> I dont think any of the commom closed loop stepper drives have an
> index on the encoder, but most step/dir driven servos do.

Does this mean the 2 phase closed loop stuff has it? One of the reasons I 
migrated to the 3 phase is the smaller step, 1.2 as opposed to 1.8 
degrees for a full step. That, and the machine noise is 5% of a 2 phaser 
because these drivers only use coil current enough to do as they are 
told. If the error goes up, so does the current.  At working speeds it 
moves like Casper the ghost. With the 1600 oz 2 phase on the Z, it shook 
a 12" crescent wrench out of the chip pan, or tried like hell.  I had to 
put a 1/4 round fence on the edge of the keyboard table where the gear 
box used to be as I broke keyboards and mice on the cement floor so many 
times. Vibrated off.  These are sweet, motor and driver at $120 a copy.

Thank you Peter.

> Peter Wallace
> Mesa Electronics
>
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Gene Heskett
On Monday 01 February 2021 11:01:16 Gene Heskett wrote:

> On Monday 01 February 2021 10:45:06 Peter C. Wallace wrote:
> > On Mon, 1 Feb 2021, Gene Heskett wrote:

> > Peter Wallace
> > Mesa Electronics

Works a treat Peter, thanks.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread andy pugh
On Mon, 1 Feb 2021 at 16:11, Peter C. Wallace  wrote:

> I dont think any of the commom closed loop stepper drives have an
> index on the encoder, but most step/dir driven servos do.

Though I imagine that you could add one? Which would probably be
advantageous for a step-dir servo driven spindle.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Peter C. Wallace

On Mon, 1 Feb 2021, Gene Heskett wrote:


Date: Mon, 1 Feb 2021 11:01:16 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] My pi4b build is broken

On Monday 01 February 2021 10:45:06 Peter C. Wallace wrote:


On Mon, 1 Feb 2021, Gene Heskett wrote:


That would be advantageous. But the 3 phase stepper servo's I've fallen
in love with don't make it available externally. They do have an error
output you can apply to the e-stop though and that is downright handy.

Is there an index in the cable back to the driver from the encoder on
those? IDK.



I dont think any of the commom closed loop stepper drives have an
index on the encoder, but most step/dir driven servos do.

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Gene Heskett
On Monday 01 February 2021 10:45:06 Peter C. Wallace wrote:

> On Mon, 1 Feb 2021, Gene Heskett wrote:
> > Date: Mon, 1 Feb 2021 10:20:41 -0500
> > From: Gene Heskett 
> > Reply-To: EMC developers 
> > To: emc-developers@lists.sourceforge.net
> > Subject: Re: [Emc-developers] My pi4b build is broken
> >
> > On Monday 01 February 2021 10:03:39 Peter C. Wallace wrote:
> >> On Mon, 1 Feb 2021, Gene Heskett wrote:
> >>> Date: Mon, 1 Feb 2021 09:55:57 -0500
> >>> From: Gene Heskett 
> >>> Reply-To: EMC developers 
> >>> To: EMC developers 
> >>> Subject: [Emc-developers] My pi4b build is broken
> >>>
> >>> Greetings all, from your pi canary;
> >>>
> >>> As of late last night, building linuxcnc on the rpi4 has worked,
> >>> but fails to run. Build scripts attached, they have Just Worked
> >>> for months. lots of errors I've been meaning at ask about but all
> >>> are in the docs generation stage. 235 unit tests all passed.
> >>>
> >>> Errors are usually can't make .pdf from .jpg or .png. Must be over
> >>> 100 of those.
> >>>
> >>> Installed the built .deb's and trying to run it gets this:
> >>> ==
> >>> pi@rpi4:/media/pi/workspace $ linuxcnc -l
> >>> LINUXCNC - 2.9.0~pre0
> >>> Machine configuration directory is
> >>> '/home/pi/linuxcnc/configs/sheldon-lathe' Machine configuration
> >>> file is '7i90-axis.ini'
> >>> Starting LinuxCNC...
> >>> Found file(REL): ./hm2-7i90-stepper.hal
> >>> Note: Using POSIX realtime
> >>> hm2: loading Mesa HostMot2 driver version 0.15
> >>> rmmod: ERROR: Module spi_bcm2835 is not currently loaded <-looks
> >>> like an error hm2_rpspi: ERROR: Failed to execute '/sbin/rmmod
> >>> spi_bcm2835' <-ditto, but config doesn't use it hm2_rpspi:
> >>> Platform: Raspberry Pi 4 Model B Rev 1.1
> >>> hm2_rpspi: Base address 0xfe00 size 0x0180
> >>> hm2_rpspi: Mapped peripherals from 0xfe00 (size 0x0180) to
> >>> gpio:0x0xb47f5000, spi:0x0xb47f9000, aux:0x0xb480a000 hm2_rpspi:
> >>> SPI0/CE0 clock rate: 41666000/2500 Hz, VPU clock rate:
> >>> 55000 Hz hm2_rpspi: SPI0/CE0 write clock rate calculated:
> >>> 39285714 Hz (clkdiv=14) hm2_rpspi: SPI0/CE0 read clock rate
> >>> calculated: 2500 Hz (clkdiv=22) hm2_rpspi: SPI0/CE0 Valid
> >>> cookie matched
> >>> hm2_rpspi: SPI0/CE0 Base: hm2_7i90.0
> >>> hm2/hm2_7i90.0: Low Level init 0.15
> >>> hm2/hm2_7i90.0: MD 2: 3x IOPort v0: accepted, using 3
> >>> hm2/hm2_7i90.0: MD 0: 1x Hostmot2 DPLL v0: accepted, using 1
> >>> hm2/hm2_7i90.0: MD 1: 1x Watchdog v0: accepted, using 1
> >>> hm2/hm2_7i90.0: MD 3: 4x Encoder v2: accepted, using 4
> >>> hm2/hm2_7i90.0: MD 4: 2x PWMGen v0: accepted, using 1
> >>> hm2/hm2_7i90.0: MD 5: 4x StepGen v2: accepted, using 4
> >>> hm2/hm2_7i90.0: MD 6: 1x LED v0: accepted, using 1
> >>> hm2/hm2_7i90.0: 72 I/O Pins used:
> >>> hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step
> >>> (Output) hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin
> >>> Direction (Output) hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen
> >>> #1, pin Step (Output) hm2/hm2_7i90.0: IO Pin 003 (P1-07):
> >>> StepGen #1, pin Direction (Output) hm2/hm2_7i90.0: IO Pin 004
> >>> (P1-09): Encoder #0, pin A (Input) hm2/hm2_7i90.0: IO Pin 005
> >>> (P1-11): Encoder #2, pin A (Input) hm2/hm2_7i90.0: IO Pin 006
> >>> (P1-13): Encoder #0, pin B (Input) hm2/hm2_7i90.0: IO Pin 007
> >>> (P1-15): Encoder #2, pin B (Input) hm2/hm2_7i90.0: IO Pin 008
> >>> (P1-17): Encoder #0, pin Index (Input) hm2/hm2_7i90.0: IO Pin
> >>> 009 (P1-19): Encoder #2, pin Index (Input) hm2/hm2_7i90.0: IO
> >>> Pin 010 (P1-21): Encoder #1, pin A (Input) hm2/hm2_7i90.0: IO
> >>> Pin 011 (P1-23): Encoder #3, pin A (Input) hm2/hm2_7i90.0: IO
> >>> Pin 012 (P1-25): Encoder #1, pin B (Input) hm2/hm2_7i90.0: IO
> >>> Pin 013 (P1-27): Encoder #3, pin B (Input) hm2/hm2_7i90.0: IO
> >>> Pin 014 (P1-29): Encoder #1, pin Index (Input) hm2/hm2_7i90.0:
> >>> IO Pin 015 (P1-31): Encoder #3, pin Index (Input) hm2/hm2_7i90.0:
> >>>  IO Pin 016 (P1-33): StepGen #2, pin Step (Output) hm2/hm2_7i90.0:
> >&

Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Peter C. Wallace

On Mon, 1 Feb 2021, Gene Heskett wrote:


Date: Mon, 1 Feb 2021 10:20:41 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] My pi4b build is broken

On Monday 01 February 2021 10:03:39 Peter C. Wallace wrote:


On Mon, 1 Feb 2021, Gene Heskett wrote:

Date: Mon, 1 Feb 2021 09:55:57 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: EMC developers 
Subject: [Emc-developers] My pi4b build is broken

Greetings all, from your pi canary;

As of late last night, building linuxcnc on the rpi4 has worked, but
fails to run. Build scripts attached, they have Just Worked for
months. lots of errors I've been meaning at ask about but all are in
the docs generation stage. 235 unit tests all passed.

Errors are usually can't make .pdf from .jpg or .png. Must be over
100 of those.

Installed the built .deb's and trying to run it gets this:
==
pi@rpi4:/media/pi/workspace $ linuxcnc -l
LINUXCNC - 2.9.0~pre0
Machine configuration directory is
'/home/pi/linuxcnc/configs/sheldon-lathe' Machine configuration file
is '7i90-axis.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-7i90-stepper.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
rmmod: ERROR: Module spi_bcm2835 is not currently loaded <-looks
like an error hm2_rpspi: ERROR: Failed to execute '/sbin/rmmod
spi_bcm2835' <-ditto, but config doesn't use it hm2_rpspi: Platform:
Raspberry Pi 4 Model B Rev 1.1
hm2_rpspi: Base address 0xfe00 size 0x0180
hm2_rpspi: Mapped peripherals from 0xfe00 (size 0x0180) to
gpio:0x0xb47f5000, spi:0x0xb47f9000, aux:0x0xb480a000 hm2_rpspi:
SPI0/CE0 clock rate: 41666000/2500 Hz, VPU clock rate: 55000
Hz hm2_rpspi: SPI0/CE0 write clock rate calculated: 39285714 Hz
(clkdiv=14) hm2_rpspi: SPI0/CE0 read clock rate calculated: 2500
Hz (clkdiv=22) hm2_rpspi: SPI0/CE0 Valid cookie matched
hm2_rpspi: SPI0/CE0 Base: hm2_7i90.0
hm2/hm2_7i90.0: Low Level init 0.15
hm2/hm2_7i90.0: MD 2: 3x IOPort v0: accepted, using 3
hm2/hm2_7i90.0: MD 0: 1x Hostmot2 DPLL v0: accepted, using 1
hm2/hm2_7i90.0: MD 1: 1x Watchdog v0: accepted, using 1
hm2/hm2_7i90.0: MD 3: 4x Encoder v2: accepted, using 4
hm2/hm2_7i90.0: MD 4: 2x PWMGen v0: accepted, using 1
hm2/hm2_7i90.0: MD 5: 4x StepGen v2: accepted, using 4
hm2/hm2_7i90.0: MD 6: 1x LED v0: accepted, using 1
hm2/hm2_7i90.0: 72 I/O Pins used:
hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step
(Output) hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin
Direction (Output) hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen
#1, pin Step (Output) hm2/hm2_7i90.0: IO Pin 003 (P1-07):
StepGen #1, pin Direction (Output) hm2/hm2_7i90.0: IO Pin 004
(P1-09): Encoder #0, pin A (Input) hm2/hm2_7i90.0: IO Pin 005
(P1-11): Encoder #2, pin A (Input) hm2/hm2_7i90.0: IO Pin 006
(P1-13): Encoder #0, pin B (Input) hm2/hm2_7i90.0: IO Pin 007
(P1-15): Encoder #2, pin B (Input) hm2/hm2_7i90.0: IO Pin 008
(P1-17): Encoder #0, pin Index (Input) hm2/hm2_7i90.0: IO Pin
009 (P1-19): Encoder #2, pin Index (Input) hm2/hm2_7i90.0: IO
Pin 010 (P1-21): Encoder #1, pin A (Input) hm2/hm2_7i90.0: IO
Pin 011 (P1-23): Encoder #3, pin A (Input) hm2/hm2_7i90.0: IO
Pin 012 (P1-25): Encoder #1, pin B (Input) hm2/hm2_7i90.0: IO
Pin 013 (P1-27): Encoder #3, pin B (Input) hm2/hm2_7i90.0: IO
Pin 014 (P1-29): Encoder #1, pin Index (Input) hm2/hm2_7i90.0:
IO Pin 015 (P1-31): Encoder #3, pin Index (Input) hm2/hm2_7i90.0:
 IO Pin 016 (P1-33): StepGen #2, pin Step (Output) hm2/hm2_7i90.0:
  IO Pin 017 (P1-35): StepGen #2, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 018 (P1-37): StepGen #3, pin Step
(Output) hm2/hm2_7i90.0: IO Pin 019 (P1-39): StepGen #3, pin
Direction (Output) hm2/hm2_7i90.0: IO Pin 020 (P1-41): PWMGen
#0, pin Out0 (PWM or Up) (Output) hm2/hm2_7i90.0: IO Pin 021
(P1-43): PWMGen #0, pin Out1 (Dir or Down) (Output) hm2/hm2_7i90.0:
   IO Pin 022 (P1-45): IOPort
hm2/hm2_7i90.0: IO Pin 023 (P1-47): IOPort
hm2/hm2_7i90.0: IO Pin 024 (P2-01): IOPort
hm2/hm2_7i90.0: IO Pin 025 (P2-03): IOPort
hm2/hm2_7i90.0: IO Pin 026 (P2-05): IOPort
hm2/hm2_7i90.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_7i90.0: IO Pin 028 (P2-09): IOPort
hm2/hm2_7i90.0: IO Pin 029 (P2-11): IOPort
hm2/hm2_7i90.0: IO Pin 030 (P2-13): IOPort
hm2/hm2_7i90.0: IO Pin 031 (P2-15): IOPort
hm2/hm2_7i90.0: IO Pin 032 (P2-17): IOPort
hm2/hm2_7i90.0: IO Pin 033 (P2-19): IOPort
hm2/hm2_7i90.0: IO Pin 034 (P2-21): IOPort
hm2/hm2_7i90.0: IO Pin 035 (P2-23): IOPort
hm2/hm2_7i90.0: IO Pin 036 (P2-25): IOPort
hm2/hm2_7i90.0: IO Pin 037 (P2-27): IOPort
hm2/hm2_7i90.0: IO Pin 038 (P2-29): IOPort
hm2/hm2_7i90.0: IO Pin 039 (P2-31): IOPort
hm2/hm2_7i90.0: IO Pin 040 (P2-33): IOPort
hm2/hm2_7i90.0: IO Pin 041 (P2-35): IOPort
hm2/hm2_7i90.0: IO Pin 042 (P2-37): IOPort
hm2/hm2_

Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Gene Heskett
On Monday 01 February 2021 10:03:39 Peter C. Wallace wrote:

> On Mon, 1 Feb 2021, Gene Heskett wrote:
> > Date: Mon, 1 Feb 2021 09:55:57 -0500
> > From: Gene Heskett 
> > Reply-To: EMC developers 
> > To: EMC developers 
> > Subject: [Emc-developers] My pi4b build is broken
> >
> > Greetings all, from your pi canary;
> >
> > As of late last night, building linuxcnc on the rpi4 has worked, but
> > fails to run. Build scripts attached, they have Just Worked for
> > months. lots of errors I've been meaning at ask about but all are in
> > the docs generation stage. 235 unit tests all passed.
> >
> > Errors are usually can't make .pdf from .jpg or .png. Must be over
> > 100 of those.
> >
> > Installed the built .deb's and trying to run it gets this:
> > ==
> > pi@rpi4:/media/pi/workspace $ linuxcnc -l
> > LINUXCNC - 2.9.0~pre0
> > Machine configuration directory is
> > '/home/pi/linuxcnc/configs/sheldon-lathe' Machine configuration file
> > is '7i90-axis.ini'
> > Starting LinuxCNC...
> > Found file(REL): ./hm2-7i90-stepper.hal
> > Note: Using POSIX realtime
> > hm2: loading Mesa HostMot2 driver version 0.15
> > rmmod: ERROR: Module spi_bcm2835 is not currently loaded <-looks
> > like an error hm2_rpspi: ERROR: Failed to execute '/sbin/rmmod
> > spi_bcm2835' <-ditto, but config doesn't use it hm2_rpspi: Platform:
> > Raspberry Pi 4 Model B Rev 1.1
> > hm2_rpspi: Base address 0xfe00 size 0x0180
> > hm2_rpspi: Mapped peripherals from 0xfe00 (size 0x0180) to
> > gpio:0x0xb47f5000, spi:0x0xb47f9000, aux:0x0xb480a000 hm2_rpspi:
> > SPI0/CE0 clock rate: 41666000/2500 Hz, VPU clock rate: 55000
> > Hz hm2_rpspi: SPI0/CE0 write clock rate calculated: 39285714 Hz
> > (clkdiv=14) hm2_rpspi: SPI0/CE0 read clock rate calculated: 2500
> > Hz (clkdiv=22) hm2_rpspi: SPI0/CE0 Valid cookie matched
> > hm2_rpspi: SPI0/CE0 Base: hm2_7i90.0
> > hm2/hm2_7i90.0: Low Level init 0.15
> > hm2/hm2_7i90.0: MD 2: 3x IOPort v0: accepted, using 3
> > hm2/hm2_7i90.0: MD 0: 1x Hostmot2 DPLL v0: accepted, using 1
> > hm2/hm2_7i90.0: MD 1: 1x Watchdog v0: accepted, using 1
> > hm2/hm2_7i90.0: MD 3: 4x Encoder v2: accepted, using 4
> > hm2/hm2_7i90.0: MD 4: 2x PWMGen v0: accepted, using 1
> > hm2/hm2_7i90.0: MD 5: 4x StepGen v2: accepted, using 4
> > hm2/hm2_7i90.0: MD 6: 1x LED v0: accepted, using 1
> > hm2/hm2_7i90.0: 72 I/O Pins used:
> > hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step
> > (Output) hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin
> > Direction (Output) hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen
> > #1, pin Step (Output) hm2/hm2_7i90.0: IO Pin 003 (P1-07):
> > StepGen #1, pin Direction (Output) hm2/hm2_7i90.0: IO Pin 004
> > (P1-09): Encoder #0, pin A (Input) hm2/hm2_7i90.0: IO Pin 005
> > (P1-11): Encoder #2, pin A (Input) hm2/hm2_7i90.0: IO Pin 006
> > (P1-13): Encoder #0, pin B (Input) hm2/hm2_7i90.0: IO Pin 007
> > (P1-15): Encoder #2, pin B (Input) hm2/hm2_7i90.0: IO Pin 008
> > (P1-17): Encoder #0, pin Index (Input) hm2/hm2_7i90.0: IO Pin
> > 009 (P1-19): Encoder #2, pin Index (Input) hm2/hm2_7i90.0: IO
> > Pin 010 (P1-21): Encoder #1, pin A (Input) hm2/hm2_7i90.0: IO
> > Pin 011 (P1-23): Encoder #3, pin A (Input) hm2/hm2_7i90.0: IO
> > Pin 012 (P1-25): Encoder #1, pin B (Input) hm2/hm2_7i90.0: IO
> > Pin 013 (P1-27): Encoder #3, pin B (Input) hm2/hm2_7i90.0: IO
> > Pin 014 (P1-29): Encoder #1, pin Index (Input) hm2/hm2_7i90.0:
> > IO Pin 015 (P1-31): Encoder #3, pin Index (Input) hm2/hm2_7i90.0:   
> >  IO Pin 016 (P1-33): StepGen #2, pin Step (Output) hm2/hm2_7i90.0:  
> >   IO Pin 017 (P1-35): StepGen #2, pin Direction (Output)
> > hm2/hm2_7i90.0: IO Pin 018 (P1-37): StepGen #3, pin Step
> > (Output) hm2/hm2_7i90.0: IO Pin 019 (P1-39): StepGen #3, pin
> > Direction (Output) hm2/hm2_7i90.0: IO Pin 020 (P1-41): PWMGen
> > #0, pin Out0 (PWM or Up) (Output) hm2/hm2_7i90.0: IO Pin 021
> > (P1-43): PWMGen #0, pin Out1 (Dir or Down) (Output) hm2/hm2_7i90.0: 
> >IO Pin 022 (P1-45): IOPort
> > hm2/hm2_7i90.0: IO Pin 023 (P1-47): IOPort
> > hm2/hm2_7i90.0: IO Pin 024 (P2-01): IOPort
> > hm2/hm2_7i90.0: IO Pin 025 (P2-03): IOPort
> > hm2/hm2_7i90.0: IO Pin 026 (P2-05): IOPort
> > hm2/hm2_7i90.0: IO Pin 027 (P2-07): IOPort
> > hm2/hm2_7i90.0: IO Pin 028 (P2-09): IOPort
> > hm2/hm2_7i90.0: IO Pin 029 (P2-11): IOPort
> > hm2/hm2_7i90.0: IO Pin 030 (P2-13): IOPort
> > hm2/hm2_7i90.0: IO Pin 031 (P2-15): IOPort
> > hm2/hm2_7i90.0: IO Pin 032 (P2-17): IOPort
> > hm2/hm2_7i90.0: IO Pin 033 (P2-19): IOPort
> > hm2/hm2_7i90.0: IO Pin 034 (P2-21): IOPort
> > hm2/hm2_7i90.0: IO Pin 035 (P2-23): IOPort
> > hm2/hm2_7i90.0: IO Pin 036 (P2-25): IOPort
> > hm2/hm2_7i90.0: IO Pin 037 (P2-27): IOPort
> > hm2/hm2_7i90.0: IO Pin 038 (P2-29): IOPort
> > hm2/hm2_7i90.0: IO Pin 039 (P2-31): IOPort
> > 

Re: [Emc-developers] My pi4b build is broken

2021-02-01 Thread Peter C. Wallace

On Mon, 1 Feb 2021, Gene Heskett wrote:


Date: Mon, 1 Feb 2021 09:55:57 -0500
From: Gene Heskett 
Reply-To: EMC developers 
To: EMC developers 
Subject: [Emc-developers] My pi4b build is broken

Greetings all, from your pi canary;

As of late last night, building linuxcnc on the rpi4 has worked, but
fails to run. Build scripts attached, they have Just Worked for months.
lots of errors I've been meaning at ask about but all are in the docs
generation stage. 235 unit tests all passed.

Errors are usually can't make .pdf from .jpg or .png. Must be over 100
of those.

Installed the built .deb's and trying to run it gets this:
==
pi@rpi4:/media/pi/workspace $ linuxcnc -l
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/pi/linuxcnc/configs/sheldon-lathe'
Machine configuration file is '7i90-axis.ini'
Starting LinuxCNC...
Found file(REL): ./hm2-7i90-stepper.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
rmmod: ERROR: Module spi_bcm2835 is not currently loaded <-looks like an error
hm2_rpspi: ERROR: Failed to execute '/sbin/rmmod spi_bcm2835' <-ditto, but 
config doesn't use it
hm2_rpspi: Platform: Raspberry Pi 4 Model B Rev 1.1
hm2_rpspi: Base address 0xfe00 size 0x0180
hm2_rpspi: Mapped peripherals from 0xfe00 (size 0x0180) to 
gpio:0x0xb47f5000, spi:0x0xb47f9000, aux:0x0xb480a000
hm2_rpspi: SPI0/CE0 clock rate: 41666000/2500 Hz, VPU clock rate: 55000 
Hz
hm2_rpspi: SPI0/CE0 write clock rate calculated: 39285714 Hz (clkdiv=14)
hm2_rpspi: SPI0/CE0 read clock rate calculated: 2500 Hz (clkdiv=22)
hm2_rpspi: SPI0/CE0 Valid cookie matched
hm2_rpspi: SPI0/CE0 Base: hm2_7i90.0
hm2/hm2_7i90.0: Low Level init 0.15
hm2/hm2_7i90.0: MD 2: 3x IOPort v0: accepted, using 3
hm2/hm2_7i90.0: MD 0: 1x Hostmot2 DPLL v0: accepted, using 1
hm2/hm2_7i90.0: MD 1: 1x Watchdog v0: accepted, using 1
hm2/hm2_7i90.0: MD 3: 4x Encoder v2: accepted, using 4
hm2/hm2_7i90.0: MD 4: 2x PWMGen v0: accepted, using 1
hm2/hm2_7i90.0: MD 5: 4x StepGen v2: accepted, using 4
hm2/hm2_7i90.0: MD 6: 1x LED v0: accepted, using 1
hm2/hm2_7i90.0: 72 I/O Pins used:
hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen #1, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 003 (P1-07): StepGen #1, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 004 (P1-09): Encoder #0, pin A (Input)
hm2/hm2_7i90.0: IO Pin 005 (P1-11): Encoder #2, pin A (Input)
hm2/hm2_7i90.0: IO Pin 006 (P1-13): Encoder #0, pin B (Input)
hm2/hm2_7i90.0: IO Pin 007 (P1-15): Encoder #2, pin B (Input)
hm2/hm2_7i90.0: IO Pin 008 (P1-17): Encoder #0, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 009 (P1-19): Encoder #2, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 010 (P1-21): Encoder #1, pin A (Input)
hm2/hm2_7i90.0: IO Pin 011 (P1-23): Encoder #3, pin A (Input)
hm2/hm2_7i90.0: IO Pin 012 (P1-25): Encoder #1, pin B (Input)
hm2/hm2_7i90.0: IO Pin 013 (P1-27): Encoder #3, pin B (Input)
hm2/hm2_7i90.0: IO Pin 014 (P1-29): Encoder #1, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 015 (P1-31): Encoder #3, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 016 (P1-33): StepGen #2, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 017 (P1-35): StepGen #2, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 018 (P1-37): StepGen #3, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 019 (P1-39): StepGen #3, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 020 (P1-41): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i90.0: IO Pin 021 (P1-43): PWMGen #0, pin Out1 (Dir or Down) 
(Output)
hm2/hm2_7i90.0: IO Pin 022 (P1-45): IOPort
hm2/hm2_7i90.0: IO Pin 023 (P1-47): IOPort
hm2/hm2_7i90.0: IO Pin 024 (P2-01): IOPort
hm2/hm2_7i90.0: IO Pin 025 (P2-03): IOPort
hm2/hm2_7i90.0: IO Pin 026 (P2-05): IOPort
hm2/hm2_7i90.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_7i90.0: IO Pin 028 (P2-09): IOPort
hm2/hm2_7i90.0: IO Pin 029 (P2-11): IOPort
hm2/hm2_7i90.0: IO Pin 030 (P2-13): IOPort
hm2/hm2_7i90.0: IO Pin 031 (P2-15): IOPort
hm2/hm2_7i90.0: IO Pin 032 (P2-17): IOPort
hm2/hm2_7i90.0: IO Pin 033 (P2-19): IOPort
hm2/hm2_7i90.0: IO Pin 034 (P2-21): IOPort
hm2/hm2_7i90.0: IO Pin 035 (P2-23): IOPort
hm2/hm2_7i90.0: IO Pin 036 (P2-25): IOPort
hm2/hm2_7i90.0: IO Pin 037 (P2-27): IOPort
hm2/hm2_7i90.0: IO Pin 038 (P2-29): IOPort
hm2/hm2_7i90.0: IO Pin 039 (P2-31): IOPort
hm2/hm2_7i90.0: IO Pin 040 (P2-33): IOPort
hm2/hm2_7i90.0: IO Pin 041 (P2-35): IOPort
hm2/hm2_7i90.0: IO Pin 042 (P2-37): IOPort
hm2/hm2_7i90.0: IO Pin 043 (P2-39): IOPort
hm2/hm2_7i90.0: IO Pin 044 (P2-41): IOPort
hm2/hm2_7i90.0: IO Pin 045 (P2-43): IOPort
hm2/hm2_7i90.0: IO Pin 046 (P2-45): IOPort
hm2/hm2_7i90.0: IO Pin 047 (P2-47): IOPort
hm2/hm2_7i90.0: IO Pin 048 (P3-01): IOPort