Raspberry Pi 4 with Mesa 7c81

More
4 years 1 month ago #251236 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
There is no parport so select "none"

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

More
4 years 1 month ago #252039 by haziqiqbal9421@gmail.com
Thanks for the help but there is still no movement. Here is what I have done so far.

Installed mesaflash from github.com/LinuxCNC/mesaflash
Downloaded 7c81_g540x2d.bit file from www.mesanet.com/software/parallel/7c81.zip
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi readhmid
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --write 7c81_g540x2d.bit
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi reload

Everything went fine but when I did the HALRUN, it gave errors that I couldn't understand. hm2_rpspi is probably not working and show pin is not showing anything

halrun
halcmd: loadrt hostmot2
Note: Using POSIX non-realtime
hm2: loading Mesa Hostmot2 driver version 0.15

halcmd: loadrt hm2_rpspi
rmmod: ERROR: ../libkmod/libkmod-module.c: 793 kmod_module_remove_module() could not remove 'spi_bcm2835': Operation not permitted
rmmod: ERROR: could not remove module 'spi_bcm2835': Operation not permitted
hm2_rpspi: ERROR: Failed to execute '/bin/rmmod spi_bcm2835'
hm2_rpspi: can't open /dev/mem
hm2_rpspi: cannot map peripheral memory
hm2_rpspi: rtapi_app_main: Permission denied (-13)
<stdin>:2: waitpid failed /home/pi/linuxcnc-dev/bin/rtapi_app hm2_rpspi
<stdin>:2: /home/pi/linuxcnc-dev/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_rpspi failed, returned -1

halcmd: show pin
Component Pins:

Owner Type Dir Value Name

I've connected the 5-axis breakout board with P1 of Mesa 7c81 and my jumper positions are also default on the mesa board. Also when I launch my configuration, there is a pop-up at the bottom right corner which says:

hm2/hm2_7c81.0: Watchdog has bit! (set the .has-bit pin to False to resume)

Kindly help in these regards

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

More
4 years 1 month ago - 4 years 1 month ago #252041 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
1. G540 firmware is not appropriate for your breakout, you should use 5ABOB
firmware (unless you are connected to a Gecko G54 step drive)
(ironically this was already loaded in the as-shipped 7C81)

2. The other errors look like LinuxCNC was not built with the correct permissions
(If built from source did you run 'sudo make setuid' after 'make' ?)
Last edit: 4 years 1 month ago by PCW.

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

More
4 years 1 month ago #252251 by haziqiqbal9421@gmail.com
It looks like I have created the problem myself. I didn't know about the right firmware and I was just following this thread without realizing that I have different hardware. In the support software zip file, there are two 5ABOB configs. 7c81_5abobx2d.bit and 7c81_5abobx3d.bit
Which one should I use? and what is the difference between them?
And what board and firmware will I need to select in PNCconf? 

I don't remember running anything like "sudo make setuid'. I downloaded the SD card image from www.linuxcnc.org/iso/linuxcnc-2.8.1-pi4.zip  which already has linuxcnc on it and wrote the image file on SD card. I'm using a RPi 4B

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

More
4 years 1 month ago #252270 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
Its a bit tricky because you need to specify G540 for pncconf (because pncconf does not support the 5ABOB) but use 5ABOB firmware on the 7C81 to match your BOBs pinout

There is no difference in the 5ABOB firmwares is you only have one BOB
(one supports 2 BOBs the other supports 3)

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

More
4 years 5 days ago #255238 by COFHAL
I am upgrading a 4-axis milling machine that works with MACH 3 and two parallel ports. I am going to use a raspberry PI 4 with a 7c81 that I already bought and I already have them working. The team has a BOB like the one in the photo and a C10 card with which it handles an MPG. The BOB uses pins 2 and 3 to control the spindle CW and CCW, pin 1 as a PWM generator for spindle speed control. Pin 14 is used as a charge pump generator that is controlled by the BOB. Pin 16 and are used to activate the motor drivers and pin 17 to enable the C10 card, inputs 10, 11,12,13 and 15 are used for the limit switches, Estop and probe and pins 4, 5,6,7,8,9, to control the motors of the X,Y,Z axes. C10 is used as inputs, pins 3 to 15 as inputs to an MPG 2, and pins 1,14,16,17 as outputs. Pins 1 and 14 are used for control of the lubrication and cooling pumps. and pins 16 and 17 control the motor of axis A. For this configuration I thought that none of the BIT files available for the 7c81 card would work for me. Could you help me with a firmware that could be adapted to my needs. 

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

Moderators: PCW, jmelson
Time to create page: 0.070 seconds
Powered by Kunena Forum