Raspberry Pi 4 & MESA 7i92
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
06 Mar 2020 14:15 - 06 Mar 2020 17:22 #159333
by ajsinfotech
Replied by ajsinfotech on topic Raspberry Pi 4 & MESA 7i92
Thanks andypugh!
1GB RAM and the RPi3 definitely swaps. In fact, I disabled all this by doing some lateral tuning just to better performance and to avoid SD card stressing. Of course I change it back when I get this error, but no success.
I think there is an issue on the way the virtual memory is handled by debuild command on -armhf architectures. I also try dpkg-buildpackage command but the same thing, so I think both commands share low level functions at some point. I'm not absolutely sure, but my few tests address me in that way.
Maybe someone with deep knowledge about package building could enlighten us?
As a workaround I decide not to build the package. I just build linuxcnc from source as states here:
linuxcnc.org/docs/master/html/code/build...cnc.html#Quick-Start
I know I waste all the advantages of building a package but, in the meantime, it works!
Thanks!
1GB RAM and the RPi3 definitely swaps. In fact, I disabled all this by doing some lateral tuning just to better performance and to avoid SD card stressing. Of course I change it back when I get this error, but no success.
I think there is an issue on the way the virtual memory is handled by debuild command on -armhf architectures. I also try dpkg-buildpackage command but the same thing, so I think both commands share low level functions at some point. I'm not absolutely sure, but my few tests address me in that way.
Maybe someone with deep knowledge about package building could enlighten us?
As a workaround I decide not to build the package. I just build linuxcnc from source as states here:
linuxcnc.org/docs/master/html/code/build...cnc.html#Quick-Start
I know I waste all the advantages of building a package but, in the meantime, it works!
Thanks!
Last edit: 06 Mar 2020 17:22 by ajsinfotech.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
12 Mar 2020 12:53 - 12 Mar 2020 14:04 #159866
by ajsinfotech
Replied by ajsinfotech on topic Raspberry Pi 4 & MESA 7i92
Hi people,
With the last problem solved. Now a run into this one:
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/pi/emc/configs/gmoccapy-rpi3-mesa-mill-v1.0.1'
Machine configuration file is 'gmoccapy-rpi3-mesa-mill-v1.0.1.ini'
Starting LinuxCNC...
Found file(REL): ./gmoccapy-rpi3-mesa-mill-v1.0.1.hal
Note: Using POSIX realtime
motmod: already exists
hm2: loading Mesa HostMot2 driver version 0.15
hm2/hm2_7c81.0: Low Level init 0.15
hm2/hm2_7c81.0: Smart Serial Firmware Version 43
hm2/hm2_7c81.0: 57 I/O Pins used:
hm2/hm2_7c81.0: IO Pin 000 (P1-01): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c81.0: IO Pin 001 (P1-02): IOPort
hm2/hm2_7c81.0: IO Pin 002 (P1-03): StepGen #0, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 003 (P1-04): IOPort
hm2/hm2_7c81.0: IO Pin 004 (P1-05): StepGen #0, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 005 (P1-06): IOPort
hm2/hm2_7c81.0: IO Pin 006 (P1-07): StepGen #1, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 007 (P1-08): IOPort
hm2/hm2_7c81.0: IO Pin 008 (P1-09): StepGen #1, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 009 (P1-11): StepGen #2, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 010 (P1-13): StepGen #2, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 011 (P1-15): StepGen #3, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 012 (P1-17): StepGen #3, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 013 (P1-19): IOPort
hm2/hm2_7c81.0: IO Pin 014 (P1-21): Encoder #0, pin A (Input)
hm2/hm2_7c81.0: IO Pin 015 (P1-23): Encoder #0, pin B (Input)
hm2/hm2_7c81.0: IO Pin 016 (P1-25): Encoder #0, pin Index (Input)
hm2/hm2_7c81.0: IO Pin 017 (J5-TX0): IOPort
hm2/hm2_7c81.0: IO Pin 018 (J6-TX1): IOPort
hm2/hm2_7c81.0: IO Pin 019 (P2-01): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c81.0: IO Pin 020 (P2-02): IOPort
hm2/hm2_7c81.0: IO Pin 021 (P2-03): StepGen #4, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 022 (P2-04): IOPort
hm2/hm2_7c81.0: IO Pin 023 (P2-05): StepGen #4, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 024 (P2-06): IOPort
hm2/hm2_7c81.0: IO Pin 025 (P2-07): StepGen #5, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 026 (P2-08): IOPort
hm2/hm2_7c81.0: IO Pin 027 (P2-09): StepGen #5, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 028 (P2-11): StepGen #6, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 029 (P2-13): StepGen #6, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 030 (P2-15): StepGen #7, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 031 (P2-17): StepGen #7, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 032 (P2-19): IOPort
hm2/hm2_7c81.0: IO Pin 033 (P2-21): Encoder #1, pin A (Input)
hm2/hm2_7c81.0: IO Pin 034 (P2-23): Encoder #1, pin B (Input)
hm2/hm2_7c81.0: IO Pin 035 (P2-25): Encoder #1, pin Index (Input)
hm2/hm2_7c81.0: IO Pin 036 (J5-TXEN0): IOPort
hm2/hm2_7c81.0: IO Pin 037 (J6-TXEN1): IOPort
hm2/hm2_7c81.0: IO Pin 038 (P7-01): IOPort
hm2/hm2_7c81.0: IO Pin 039 (P7-02): IOPort
hm2/hm2_7c81.0: IO Pin 040 (P7-03): IOPort
hm2/hm2_7c81.0: IO Pin 041 (P7-04): IOPort
hm2/hm2_7c81.0: IO Pin 042 (P7-05): IOPort
hm2/hm2_7c81.0: IO Pin 043 (P7-06): IOPort
hm2/hm2_7c81.0: IO Pin 044 (P7-07): IOPort
hm2/hm2_7c81.0: IO Pin 045 (P7-08): IOPort
hm2/hm2_7c81.0: IO Pin 046 (P7-09): IOPort
hm2/hm2_7c81.0: IO Pin 047 (P7-11): IOPort
hm2/hm2_7c81.0: IO Pin 048 (P7-13): IOPort
hm2/hm2_7c81.0: IO Pin 049 (P7-15): IOPort
hm2/hm2_7c81.0: IO Pin 050 (P7-17): IOPort
hm2/hm2_7c81.0: IO Pin 051 (P7-19): IOPort
hm2/hm2_7c81.0: IO Pin 052 (P7-21): IOPort
hm2/hm2_7c81.0: IO Pin 053 (P7-23): IOPort
hm2/hm2_7c81.0: IO Pin 054 (P7-25): IOPort
hm2/hm2_7c81.0: IO Pin 055 (P5-RX0): IOPort
hm2/hm2_7c81.0: IO Pin 056 (P6-RX1): IOPort
hm2/hm2_7c81.0: registered
Found file(REL): ./custom.hal
[TASK] CYCLE_TIME not found in /home/pi/emc/configs/gmoccapy-rpi3-mesa-mill-v1.0.1/gmoccapy-rpi3-mesa-mill-v1.0.1.ini; using default 0.100000
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
Waiting for component 'inihal' to become ready..............USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
Any idea?
I also tried to use pncconf just in case, but it doesn't even works. It throws the following warning and of course my board configuration does not appear in the list (7c81) :
You have no hostmot2 firmware downloaded in folder:
/lib/firmware/hm2/
PNCconf will use internal firmware data
Besides, I don't know how to set my board in the pncconf. I was googling but didn't find any clue.
Thanks!
With the last problem solved. Now a run into this one:
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/pi/emc/configs/gmoccapy-rpi3-mesa-mill-v1.0.1'
Machine configuration file is 'gmoccapy-rpi3-mesa-mill-v1.0.1.ini'
Starting LinuxCNC...
Found file(REL): ./gmoccapy-rpi3-mesa-mill-v1.0.1.hal
Note: Using POSIX realtime
motmod: already exists
hm2: loading Mesa HostMot2 driver version 0.15
hm2/hm2_7c81.0: Low Level init 0.15
hm2/hm2_7c81.0: Smart Serial Firmware Version 43
hm2/hm2_7c81.0: 57 I/O Pins used:
hm2/hm2_7c81.0: IO Pin 000 (P1-01): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c81.0: IO Pin 001 (P1-02): IOPort
hm2/hm2_7c81.0: IO Pin 002 (P1-03): StepGen #0, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 003 (P1-04): IOPort
hm2/hm2_7c81.0: IO Pin 004 (P1-05): StepGen #0, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 005 (P1-06): IOPort
hm2/hm2_7c81.0: IO Pin 006 (P1-07): StepGen #1, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 007 (P1-08): IOPort
hm2/hm2_7c81.0: IO Pin 008 (P1-09): StepGen #1, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 009 (P1-11): StepGen #2, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 010 (P1-13): StepGen #2, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 011 (P1-15): StepGen #3, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 012 (P1-17): StepGen #3, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 013 (P1-19): IOPort
hm2/hm2_7c81.0: IO Pin 014 (P1-21): Encoder #0, pin A (Input)
hm2/hm2_7c81.0: IO Pin 015 (P1-23): Encoder #0, pin B (Input)
hm2/hm2_7c81.0: IO Pin 016 (P1-25): Encoder #0, pin Index (Input)
hm2/hm2_7c81.0: IO Pin 017 (J5-TX0): IOPort
hm2/hm2_7c81.0: IO Pin 018 (J6-TX1): IOPort
hm2/hm2_7c81.0: IO Pin 019 (P2-01): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c81.0: IO Pin 020 (P2-02): IOPort
hm2/hm2_7c81.0: IO Pin 021 (P2-03): StepGen #4, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 022 (P2-04): IOPort
hm2/hm2_7c81.0: IO Pin 023 (P2-05): StepGen #4, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 024 (P2-06): IOPort
hm2/hm2_7c81.0: IO Pin 025 (P2-07): StepGen #5, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 026 (P2-08): IOPort
hm2/hm2_7c81.0: IO Pin 027 (P2-09): StepGen #5, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 028 (P2-11): StepGen #6, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 029 (P2-13): StepGen #6, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 030 (P2-15): StepGen #7, pin Step (Output)
hm2/hm2_7c81.0: IO Pin 031 (P2-17): StepGen #7, pin Direction (Output)
hm2/hm2_7c81.0: IO Pin 032 (P2-19): IOPort
hm2/hm2_7c81.0: IO Pin 033 (P2-21): Encoder #1, pin A (Input)
hm2/hm2_7c81.0: IO Pin 034 (P2-23): Encoder #1, pin B (Input)
hm2/hm2_7c81.0: IO Pin 035 (P2-25): Encoder #1, pin Index (Input)
hm2/hm2_7c81.0: IO Pin 036 (J5-TXEN0): IOPort
hm2/hm2_7c81.0: IO Pin 037 (J6-TXEN1): IOPort
hm2/hm2_7c81.0: IO Pin 038 (P7-01): IOPort
hm2/hm2_7c81.0: IO Pin 039 (P7-02): IOPort
hm2/hm2_7c81.0: IO Pin 040 (P7-03): IOPort
hm2/hm2_7c81.0: IO Pin 041 (P7-04): IOPort
hm2/hm2_7c81.0: IO Pin 042 (P7-05): IOPort
hm2/hm2_7c81.0: IO Pin 043 (P7-06): IOPort
hm2/hm2_7c81.0: IO Pin 044 (P7-07): IOPort
hm2/hm2_7c81.0: IO Pin 045 (P7-08): IOPort
hm2/hm2_7c81.0: IO Pin 046 (P7-09): IOPort
hm2/hm2_7c81.0: IO Pin 047 (P7-11): IOPort
hm2/hm2_7c81.0: IO Pin 048 (P7-13): IOPort
hm2/hm2_7c81.0: IO Pin 049 (P7-15): IOPort
hm2/hm2_7c81.0: IO Pin 050 (P7-17): IOPort
hm2/hm2_7c81.0: IO Pin 051 (P7-19): IOPort
hm2/hm2_7c81.0: IO Pin 052 (P7-21): IOPort
hm2/hm2_7c81.0: IO Pin 053 (P7-23): IOPort
hm2/hm2_7c81.0: IO Pin 054 (P7-25): IOPort
hm2/hm2_7c81.0: IO Pin 055 (P5-RX0): IOPort
hm2/hm2_7c81.0: IO Pin 056 (P6-RX1): IOPort
hm2/hm2_7c81.0: registered
Found file(REL): ./custom.hal
[TASK] CYCLE_TIME not found in /home/pi/emc/configs/gmoccapy-rpi3-mesa-mill-v1.0.1/gmoccapy-rpi3-mesa-mill-v1.0.1.ini; using default 0.100000
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
Waiting for component 'inihal' to become ready..............USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
Any idea?
I also tried to use pncconf just in case, but it doesn't even works. It throws the following warning and of course my board configuration does not appear in the list (7c81) :
You have no hostmot2 firmware downloaded in folder:
/lib/firmware/hm2/
PNCconf will use internal firmware data
Besides, I don't know how to set my board in the pncconf. I was googling but didn't find any clue.
Thanks!
Last edit: 12 Mar 2020 14:04 by ajsinfotech.
Please Log in or Create an account to join the conversation.
12 Mar 2020 14:39 #159876
by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
motmod: already exists
is the likely reason LinuxCNC is not starting
This maybe due to a hal file error or a previous failed
LinuxCNC run
You should be able to use pncconf to create a template hal/ini file set
(say for a 5i25) and just change the driver and board name and perhaps some
GPIO numbers to get a working configuration
is the likely reason LinuxCNC is not starting
This maybe due to a hal file error or a previous failed
LinuxCNC run
You should be able to use pncconf to create a template hal/ini file set
(say for a 5i25) and just change the driver and board name and perhaps some
GPIO numbers to get a working configuration
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
30 Mar 2020 13:39 - 30 Mar 2020 13:41 #162109
by ajsinfotech
Replied by ajsinfotech on topic Raspberry Pi 4 & MESA 7i92
Thanks Peter! Finally linuxcnc is up and running.
Now I need to use one encoder from mesa 7c81 but differs a bit from the linuxcnc module version. I need to use the encoder as a simple counter (just input A in counter-mode).
Is there any example using an encoder from a mesa card?
Thanks!
Now I need to use one encoder from mesa 7c81 but differs a bit from the linuxcnc module version. I need to use the encoder as a simple counter (just input A in counter-mode).
Is there any example using an encoder from a mesa card?
Thanks!
Last edit: 30 Mar 2020 13:41 by ajsinfotech.
Please Log in or Create an account to join the conversation.
30 Mar 2020 14:32 #162115
by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
You can use the normal encoder counter as a simple (A only) counter by setting
the encoders counter-mode parameter true. This sets the encoder counter into UP/DOWN
mode. Beware that the "B" input sets the count direction in UP/DOWN mode.
the encoders counter-mode parameter true. This sets the encoder counter into UP/DOWN
mode. Beware that the "B" input sets the count direction in UP/DOWN mode.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
30 Mar 2020 14:48 - 30 Mar 2020 14:49 #162116
by ajsinfotech
Replied by ajsinfotech on topic Raspberry Pi 4 & MESA 7i92
Thanks Peter!
I already have running the software encoder. I want to use the hardware one that the 7c81 provides.
I'm using a RPi3 so I don't want to overload the cpu, that's why I decide to add a 7c81 to the project.
Thanks!
What do you mean "normal-encoder"? The software module provided by linuxcnc? I want to use the hardware module from 7c81 to relief my RPi3 cpu workload.You can use the normal encoder counter
I already have running the software encoder. I want to use the hardware one that the 7c81 provides.
I'm using a RPi3 so I don't want to overload the cpu, that's why I decide to add a 7c81 to the project.
Thanks!
Last edit: 30 Mar 2020 14:49 by ajsinfotech.
Please Log in or Create an account to join the conversation.
30 Mar 2020 14:49 #162117
by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
I mean the HM2 hardware encoder module has a UP/DOWN mode
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
30 Mar 2020 14:59 - 30 Mar 2020 15:04 #162118
by ajsinfotech
Replied by ajsinfotech on topic Raspberry Pi 4 & MESA 7i92
ok, I use
# IO Pin 014 (P1-21): Encoder #0, pin A (Input)
setp hm2_7c81.0.encoder.00.counter-mode true
I get a perfect square signal from the scope but when I connect to the P1-21 pin from the 7c81 it keeps the level high.
BTW
But halshow shows it as an OUT pin. So...
No count detected in halshow.
What I'm doing wrong?
# IO Pin 014 (P1-21): Encoder #0, pin A (Input)
setp hm2_7c81.0.encoder.00.counter-mode true
I get a perfect square signal from the scope but when I connect to the P1-21 pin from the 7c81 it keeps the level high.
BTW
...
hm2/hm2_7c81.0: IO Pin 013 (P1-19): IOPort
hm2/hm2_7c81.0: IO Pin 014 (P1-21): Encoder #0, pin A (Input)
hm2/hm2_7c81.0: IO Pin 015 (P1-23): Encoder #0, pin B (Input)
hm2/hm2_7c81.0: IO Pin 016 (P1-25): Encoder #0, pin Index (Input)
hm2/hm2_7c81.0: IO Pin 017 (J5-TX0): IOPort
...
But halshow shows it as an OUT pin. So...
No count detected in halshow.
What I'm doing wrong?
Last edit: 30 Mar 2020 15:04 by ajsinfotech.
Please Log in or Create an account to join the conversation.
30 Mar 2020 15:09 #162121
by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
Wrong pin?
You might verify that you have the correct pin by looking at the GPIO 14 state
or the encoder input A pin state in halshow
You might verify that you have the correct pin by looking at the GPIO 14 state
or the encoder input A pin state in halshow
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
30 Mar 2020 16:01 - 30 Mar 2020 16:21 #162126
by ajsinfotech
hm2/hm2_7c81.0: IO Pin 014 (P1-21): Encoder #0, pin A (Input)
Sorry but, we are talking about P1-21 physical pin right? Why 14?
I addressed the pin as:
hm2_7c81.0.encoder.00.input-a
I do not use 21 nor 14 pin in the sentence.
Anyway pin 21 shows as an output in halshow:
hm2_7c81.0.gpio.021.in false
It shouldn't be true?
Pin 14 shows as an input in halshow:
hm2_7c81.0.gpio.014.in true
Replied by ajsinfotech on topic Raspberry Pi 4 & MESA 7i92
hm2/hm2_7c81.0: IO Pin 014 (P1-21): Encoder #0, pin A (Input)
Sorry but, we are talking about P1-21 physical pin right? Why 14?
I addressed the pin as:
hm2_7c81.0.encoder.00.input-a
I do not use 21 nor 14 pin in the sentence.
Anyway pin 21 shows as an output in halshow:
hm2_7c81.0.gpio.021.in false
It shouldn't be true?
Pin 14 shows as an input in halshow:
hm2_7c81.0.gpio.014.in true
Last edit: 30 Mar 2020 16:21 by ajsinfotech.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds