Advanced Search

Search Results (Searched for: )

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 03:02
A request for Rodw regarding RPi iamges. was created by Cant do this anymore bye all

A request for Rodw regarding RPi iamges.

Category: Installing LinuxCNC

OK I know I'm being lazy by not creating a pull request, but is there any chance that when the images are generated that the SPI interface could be enabled by the config.txt file. Just to make life easier for new users.

Even when not enabled device node spdidev10.0 is still created, not sure what this is for but pretty sure that the GPIOs related to this node aren't exposed, I'd guess it is something internal for the Rpi. One very patient user was lead astray by this.

So if this is possible. I know the time it takes to create an image so please don't take this as a demand that must be acted on riht away.
All The Best
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 02:51
Replied by Cant do this anymore bye all on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

Honestly I forgot about the 10.0 entry. I really should have qualified this spidev0.xx & spidev1.xx.

Thanks for pointing this out.

Like anything on this forum people will overlook, not bother with it or a hundred other things that will make their life a misery. Look I used to make Mint based linuxcnc images, even including a READ.ME on the desktop people would still not bother to read it & ask the same questions over & over again, even aft they had been answered in the thread. Even updating the open post of the thread discussing these things didn't help.

Actually I'll jump over to Rods github and propose that the spi overlays are enable in the generated images. I really should have done this last year when they were originally being prepared.
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 02:44

Have you tried linuxcnc support to run on rockchip series development boards?

Category: General LinuxCNC Questions

There have been attempts run Linuxcnc on Rockchip platforms.
Unlike gaming raw graphics throughput isn't a great concern.

The key to a successful Linuxcnc system is tasks happening at dependable and regular intervals., which doesn't always equate to raw clock speed. The Begle Bone Black was quite capable running Machinekit (a fork of Linuxcnc that has gone very quiet) using the on board PRUs for generating the required signals. This is a board with a 1Ghz arm proc and 512MB ram. Ran very well with Debian Wheezy.

And whilst SBC are intersting in the broader computing world, best bang for buck appear to be 2nd hand ex corporate PCs. They are cheap and provide a very easy entry for most users.
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 02:40
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

No but it has been mentioned multiple times in multiple places (pretty sure I have mentioned it myself in this thread, maybe my posts are too long), why it isn't enabled by default is only something those that produce the images can say. I was a advocate for enabling it by default and disabling BT & sound

Or at least this should be mentioned on the download page, but people being people they can be lazy and only want the goodies or they only follow links to the actual downloads.

As you can see there is only one spi device interface that the 7c80 will respond to without a custom cable.

On a Pi <5, if you see anything in /dev/ spi*, spi is enabled...
Seeing as how i didn't have another pi5 with it already enabled to compare /dev/spi* to, it is a fair assumption for folks to make.
At the least, this needs a note/callout.
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 02:33
Replied by Cant do this anymore bye all on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

No but it has been mentioned multiple times in multiple places (pretty sure I have mentioned it myself in this thread, maybe my posts are too long), why it isn't enabled by default is only something those that produce the images can say. I was a advocate for enabling it by default and disabling BT & sound

Or at least this should be mentioned on the download page, but people being people they can be lazy and only want the goodies or they only follow links to the actual downloads.

As you can see there is only one spi device interface that the 7c80 will respond to without a custom cable.
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 02:27 - 04 Jan 2025 02:35
Replied by Cant do this anymore bye all on topic Arduino IO Expansion

Arduino IO Expansion

Category: Show Your Stuff

Fuck there goes my new year's resolution, getting caught up in stuff like this.
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 02:27
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You need to enable spidev0.0 by turning SPI on in the boot/broadcom/config.txt file

(I have no idea what pins spidev10.0 connects to)

 

Thought that would have been already enabled in the downloaded image...
I enabled it in /boot/broadcom/config.txt
here is the output
pi@linuxcnc:/dev$ ls spi*
spidev0.0  spidev0.1  spidev10.0

Here is the mesaflash output.
pi@linuxcnc:~$ sudo mesaflash --device 7c80 --addr /dev/spidev1.0 --spi --readhmid
open: No such file or directory
No 7C80 board found
pi@linuxcnc:~$ sudo mesaflash --device 7c80 --addr /dev/spidev10.0 --spi --readhmid
Unexpected cookie at 0100..0110:
ffffffff ffffffff ffffffff
No 7C80 board found
pi@linuxcnc:~$ sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7C80
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 27
  Clock Low frequency: 100.0000 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256
  • Cong
  • Cong
04 Jan 2025 02:09

Have you tried linuxcnc support to run on rockchip series development boards?

Category: General LinuxCNC Questions

 For example, rk3566,rk3588, if you can generally use what display mode, the following is the rk3566 supported by the 3D graphics engine:
 Mali-G52 1-Core-2EE

 Support OpenGL ES 1.1, 2.0, and 3.2

 Support Vulkan 1.0 and 1.1

 Support OpenCL 2.0 Full Profile

 Support 1600Mpix/s fill rate when 800MHz clock frequency

 Support 38.4GLOPs when 800MHz clock frequency
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 02:03
Replied by Cant do this anymore bye all on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You need to enable the SPI in config.txt and reboot, it is under the boot folder but the folder have slightly different names to a std Raspbian OS.
If the 7c80 is similar to the 7c81 the spi pins are hardwired to the first spi port on the first spi interface.

linuxcnc.org/docs/html/man/man9/hm2_rpspi.9.html

The hm2_spix is pretty much the same. As you can see from the above the SPI signals are hardwired.

If the SPI circuit of the 7c80 is based on the 7c81 design:
Basically without creating a custom cable (which I mentioned previously) the only SPI interface is using the following pins
MOSI=10(19), MISO=9(21), SCLK=11(23), CE0=8(24)

To tell the truth I'm not even sure spidev10.0 is for end user use. I think the only pins exposed on the 40 pin header are for spidev1.xx & spidev0.xx

The reason the card will be seen when using halcmd is that the hm2_spix driver takes full control of the hardware regarding the spi pins. To put it simply it replaces the kernel module that handles spi hardware.

Summarizing:
Mesaflash requires the devnodes for spi to be created by the kernel. Which physically limited to /dev/spidev0.0

hm2_rpspi & hm2_spix don't use the dev nodes as the setup for the GPIO is done by the Linuxcnc driver. Yet phsycially physically limited to the GPIOS associated with /dev/spidev0.0
Without specifying a spi interface it will default to the hardware (GPIO pins) associated with /dev/spidev0.0
An alternate interface can be specified but the physical connections between the RPi and the Mesa board need to be changed to suit. ie CS, CLK,MISO& MOSI will be the same at the mesa end but will need changing at the RPi end.
  • kb0thn
  • kb0thn
04 Jan 2025 01:57

Inhibit tool when z is above set point

Category: HAL

Hi Group,

I've got a large format wood router that I've put a diode laser on. The diode laser is just turned on and off with a digital output. I would like to have LinuxCNC inhibit the laser if Z is above a certain point. What is the best way to do something like this?

Thanks!

-Jim
  • blazini36
  • blazini36
04 Jan 2025 01:56
Replied by blazini36 on topic Arduino IO Expansion

Arduino IO Expansion

Category: Show Your Stuff

Yeah Tommy is pretty much correct in the fact that 1.5Mbaud does not equal 1.5Mbit because there are wasted bits.....start, stop, parity, address, etc
 
That will affect the overall byte rate, not the overall bit rate. If fact Tommy's definition made no mention of of protocols, which stop-start-parity etc would be part of.
When designing hardware for the transmission of serial data any control bits or bytes don't come into the equation.
 

So your argument is that Baud rate = Bit rate?

This started cuz you said "a Mesa card using a smart serial daughter card would be the go, operates at 2.5M bits per second over a Cat5 cable"

"and from Mesa manualsIn the operate mode, the baud
rate is set to 2.5M baud (default)."

You said
"In a purely digital system, one voltage equaling zero (0v) and another voltage equaling 1 (5v) baud rate with be the same as bit rate."

OK but a 1/2 duplex RS485 line at 115.2Kbaud is running the same baud rate of a full duplex RS485 line running at 115.2Kbaud right? You don't say full duplex is double the baud rate do you? Full duplex does not have to switch the data line from Rx to Tx or vice versa to switch directions so it can technically transfer up to double the amount of data depending on whether the 1/2 duplex link has to switch directions at all.

If it switches even once you can't say that both links transmitted the same amount of data in the same amount of time at the same baud rate unless you say "well overall, not accounting for direction".....OK well in that case the full duplex link can still potentially transmit literally double but it's completely unpredictable.

data rate, or "bit rate" is ALWAYS "theoretical" or average, it is never absolute. Baud Rate is not absolute either but it is relative. Bus frequency is absolute, even if it is dynamic. It's all semantics covered in nonsense, personally I would say "Mbit" and mean "Mbaud" and not expect to be corrected but I won't argue that they are the same thing.
  • PCW
  • PCW's Avatar
04 Jan 2025 01:51 - 04 Jan 2025 01:54

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

You need to enable spidev0.0 by turning SPI on in the boot/broadcom/config.txt file

(I have no idea what pins spidev10.0 connects to)
 
  • cmorley
  • cmorley
04 Jan 2025 01:44
Replied by cmorley on topic qtdragon additonal buttons

qtdragon additonal buttons

Category: Qtvcp

The screen shown is a modded qtdragon_hd so requires a larger monitor.
I can't find the original topic on the forum here, but I do have a copy of the .ui file
You would put this file in YOUR_CONFIG_FOLDER/qtvcp/screens/qtdragon_hd/qtdragon_hd.ui
  • ccatlett1984
  • ccatlett1984
04 Jan 2025 01:36 - 04 Jan 2025 01:51
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.

Pi5 MESA 7c80: mesaflash can't see the card.

Category: Driver Boards

If you can reliably access the card on the RPI4, you would

sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80d.bit
sudo mesaflash --device 7c80 --spi --addr /dev/spidev0.0 --write 7c80fall.bit --fallback

(7c80d.bit and 7c80fall.bit are in the 7c80.zip file in /configs/hostmot2/)
the zip file is available from the store in the card specification tab

 
From Pi4, dump of mesaflash BEFORE flashing: pastebin.com/kf8iUXQY
dump of mesaflash AFTER flashing: pastebin.com/5xm8FHpq

I forced a --reload in between each flash cmd, to validate the card took the firmware before moving on.

If this looks correct, I will proceed to swapping the pi5 back into the machine.

Update: Post flashing, with the Pi5 - halcmd sees the card.
pi@linuxcnc:/$ sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid [sudo] password for pi: open: No such file or directory No 7C80 board found
in /dev/ only a single spi entry exists "spidev10.0"
running mesaflash (using the above spi entry) results in the following
pi@linuxcnc:/$ sudo mesaflash --device 7c80 --addr /dev/spidev10.0 --spi --readhmid
Unexpected cookie at 0100..0110:
ffffffff ffffffff ffffffff
No 7C80 board found
pi@linuxcnc:/$

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
04 Jan 2025 01:28
Replied by Cant do this anymore bye all on topic Arduino IO Expansion

Arduino IO Expansion

Category: Show Your Stuff

Yep have the hardware.
Nope doesn't work the way you propose.

Tried with a 500mm cable between my RPi5 and a 7c81 board, SPI fails even below the rates for a USB to arduino serial connection. In actual fact even having a grounded conductor between each SPI signal and trying to send signals from one pcb to another is not reliable over a distance of about 75mm.

From experience high speed serial communications, RS-422, SATA or whatever you want to try requires differential signalling, which causes timing issues with SPI. I researched this about 12 months ago.
Displaying 20671 - 20685 out of 21837 results.
Time to create page: 1.233 seconds
Powered by Kunena Forum