Raspberry Pi 4 & MESA 7i92

More
6 years 8 months ago #158065 by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
If the 7C81 is not recognized it means that you need o update your LinuxCNC installation to the latest. The unable to load issue might be because there are still modules loaded when you launch LinuxCNC, sometimes this takes a reboot to fix.

Here's what I get with recent 2.9 and a 7C81 on a RPI4:

LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/pi'
Machine configuration file is '7c81-1k.ini'
Starting LinuxCNC...
emc/iotask/ioControl.cc 701: can't load tool table.
Found file(REL): ./hm2-pidstepper.hal
Note: Using POSIX realtime
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): IOPort
hm2/hm2_7c81.0: IO Pin 001 (P1-02): PWMGen #0, pin Out0 (PWM or Up) (Output)
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): IOPort
hm2/hm2_7c81.0: IO Pin 012 (P1-17): IOPort
hm2/hm2_7c81.0: IO Pin 013 (P1-19): Encoder #0, pin A (Input)
hm2/hm2_7c81.0: IO Pin 014 (P1-21): Encoder #0, pin B (Input)
hm2/hm2_7c81.0: IO Pin 015 (P1-23): Encoder #0, pin Index (Input)
hm2/hm2_7c81.0: IO Pin 016 (P1-25): IOPort
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): IOPort
hm2/hm2_7c81.0: IO Pin 020 (P2-02): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7c81.0: IO Pin 021 (P2-03): IOPort
hm2/hm2_7c81.0: IO Pin 022 (P2-04): IOPort
hm2/hm2_7c81.0: IO Pin 023 (P2-05): IOPort
hm2/hm2_7c81.0: IO Pin 024 (P2-06): IOPort
hm2/hm2_7c81.0: IO Pin 025 (P2-07): IOPort
hm2/hm2_7c81.0: IO Pin 026 (P2-08): IOPort
hm2/hm2_7c81.0: IO Pin 027 (P2-09): IOPort
hm2/hm2_7c81.0: IO Pin 028 (P2-11): IOPort
hm2/hm2_7c81.0: IO Pin 029 (P2-13): IOPort
hm2/hm2_7c81.0: IO Pin 030 (P2-15): IOPort
hm2/hm2_7c81.0: IO Pin 031 (P2-17): IOPort
hm2/hm2_7c81.0: IO Pin 032 (P2-19): IOPort
hm2/hm2_7c81.0: IO Pin 033 (P2-21): IOPort
hm2/hm2_7c81.0: IO Pin 034 (P2-23): IOPort
hm2/hm2_7c81.0: IO Pin 035 (P2-25): IOPort
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
note: MAXV max: 30.000 units/sec 1800.000 units/min
note: LJOG max: 30.000 units/sec 1800.000 units/min
note: LJOG default: 30.000 units/sec 1800.000 units/min
note: jog_order='XYZ'
note: jog_invert=set([])

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #158138 by ajsinfotech
Thanks PCW!

I have installed the 2.9 release, but the 7c81 card maybe need the latest update.
I'll update LinuxCNC to the last revision as you recommend.

Thanks!

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #159190 by ajsinfotech
Hi PCW

I try to install LinuxCNC from source on my RPi3 from this guide with just a minor changes:
gnipsel.com/linuxcnc/uspace/rpi4-emc.html

But when I run:
debuild -uc -us

I get the following error:
virtual memory exhausted: Cannot allocate memory
Makefile:227: recipe for target 'objects/emc/rs274ngc/interp_python.o' failed
make[1]: *** [objects/emc/rs274ngc/interp_python.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/emc/src'
debian/rules:31: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc failed


My changes:

1 - I checkout this:
git checkout master
instead of:
git checkout 2.8

2 - I did not need to modify debian/configure, it was ok:
Debian-10|Debian-10.*|Raspbian-10|Raspbian-10.*)
Or maybe do I have to change this to:
Debian-10|Debian-10.*|Raspbian-9|Raspbian-9.*) :dry:

3 - I did not remove the following lines from debian/control.bottom.in. I chose to keep it original just in case:
python-gtksourceview2,
python-vte,

Maybe do I have to remove this lines to my RPi3? :dry:

4 - When I run:
debian/configure uspace
It reports this:
successfully configured for 'uspace-Raspbian-9.11'-'uspace'...
instead of:
successfully configured for 'uspace-Raspbian-10'-'uspace'...

Could the Raspbian-9.11 be the problem? :dry:
Or maybe is the RPi3 virtual memory not enough? :unsure:

I try all this exactly on my RPi4 and everything runs fine! :)

Thanks!
Last edit: 6 years 7 months ago by ajsinfotech.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #159278 by andypugh
Replied by andypugh on topic Raspberry Pi 4 & MESA 7i92
It may be that the issue is a lack of non-virtual memory. How much RAM does your Pi have?

I am not sure if the pi swaps to SD card, I can imagine that not being a great idea.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #159333 by ajsinfotech
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? :blink:

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: 6 years 7 months ago by ajsinfotech.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #159866 by ajsinfotech
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) :S :

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. :unsure:

Thanks!
Last edit: 6 years 7 months ago by ajsinfotech.

Please Log in or Create an account to join the conversation.

Time to create page: 0.230 seconds
Powered by Kunena Forum